3

Mean Squared Error: $\operatorname{MSE}=\frac{1}{n}\sum_{i=1}^n(\hat{Y_i} - Y_i)^2.$ <-- what is the purpose of the '$^2$' in here?

Mean Absolute Error: $\mathrm{MAE} = \frac{1}{n}\sum_{i=1}^n \left| f_i-y_i\right| =\frac{1}{n}\sum_{i=1}^n \left| e_i \right|$

Golan
  • 31

2 Answers2

1

In addition to the reasons pointed out to you by K.Rmth and Eckhard in their comments, consider that since $x^2 > |x|$ for $|x| > 1$ while $x^2 < |x|$ for $|x| < 1$ and thus the mean-square error penalizes large errors more that the mean absolute error does, but is more forgiving of small errors. Some people think that this emphasis on penalizing large errors more than small errors is a good thing; others don't.

Dilip Sarwate
  • 26,411
0

It is the same square as in the pythagorean theorem -- you are trying to find the Euclidean distance between the expected and the actual results.

Igor Rivin
  • 26,372
  • I don't see the relation between this and the pythagorean theorem. Could you explain that, please? – Golan Dec 14 '13 at 21:53