Email Post: Optimality Principles for Model-Based Prediction of Human Gait