Determination the smoothing constant that minimizes mean absolute error and mean square deviation