The RMSE calculator determines the root mean square error (RMSE) of a prediction based on the observed and predicted values.
The root mean square error (RMSE) is calculated using the following formula:
RMSE = | √ |
|
Where,
Σ = Symbol define 'sum',
Pi = Predicted value for the ith data point,
Oi = Observed value for the ith data point,
n = Number of data points or sample size.
Here is an example:
Calculate the root mean square error (RMSE) for the actual values of [5, 12, 23] and the predicted values of [15, 32, -0.24].
Here,
Pi = [15, 32, -0.24]
Oi = [5, 12, 23]
Apply the formula.
RMSE = √ Σ(Pi - Oi)2 / n
= √(15-5)2 + (32-12)2 + (-0.24-23)2 / 3
= √ (10)2 + (20)2 + (-23.24)2 / 3
= √ (100 + 400 + 540.0976) / 3
= √ 346.6992
RMSE = 18.62