In robotic thick plate welding, the welding strength is ensured by periodically oscillating the welding torch attached to the end-effector in the horizontal direction, which is called weaving motion. Because the vertical accuracy of the end-effector affects a quality of the welding, it is necessary to reduce vertical error of the end-effector. In this paper, we focus on periodic motions, such as the weaving motion, and consider the suppression of vertical errors by feed-forward control. To calculate the feed-forward torque, it is necessary to identify the dynamic parameters of the robot. However, since noise and un-modeled dynamics are included in the experimental data, we identify parameters that have small influence on the motion error even though the existence of the parameter errors by considering the parameters as stochastic variables and identifying their error covariance to be the reference one. The reference error covariance is calculated from the sensitivity analysis of the vertical direction of the end-effector in the periodic motion with respect to the minimum set of dynamic parameters. Sensitivity of the dynamic/static motion, and sensitivity of feed-forward control are employed to improve the stability of the iterative calculation. By experiments using the planar 3-link manipulator, we confirm that vertical errors of the weaving motion are reduced by the feed-forward torque using the proposed method compared to the Least Mean Square.