Statistics for Imitating human motion using humanoid upper body models