Calculator: Mean squared error
Enter the labelled inputs to calculate: Value MSE; Value RMSE; Value MAE.
Enter a finite value within the formula’s domain and supported numeric range.
How the calculation works
MSE=Σ(yi−ŷi)²/n; RMSE=√MSE; MAE=Σ|yi−ŷi|/n
Paired lists must have equal lengths. Variances use sample standard deviations where labelled. Probabilities must be nonnegative and sum to one; information is in bits, with zero-mass terms omitted. Pearson statistics use no continuity correction. Wilson uses the supplied normal critical value z.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
MSE=Σ(yi−ŷi)²/n; RMSE=√MSE; MAE=Σ|yi−ŷi|/n
What assumptions apply?
Paired lists must have equal lengths. Variances use sample standard deviations where labelled. Probabilities must be nonnegative and sum to one; information is in bits, with zero-mass terms omitted. Pearson statistics use no continuity correction. Wilson uses the supplied normal critical value z.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 3 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Observed values = 1 2 3
Predicted values = 1 2 4
|
Value MSE: 0.3333333333
Value RMSE: 0.5773502692
Value MAE: 0.3333333333
|
| 2 |
Observed values = 3 -0.5 2 7
Predicted values = 2.5 0 2 8
|
Value MSE: 0.375
Value RMSE: 0.6123724357
Value MAE: 0.5
|
| 3 |
Observed values = 10 20 30 40
Predicted values = 12 18 33 35
|
Value MSE: 10.5
Value RMSE: 3.240370349
Value MAE: 3
|