Statistics for Human Motion Synthesis with Optimization-based Graphs