MATLAB: RMSE

rmse

Hi,
Does anybody know if there is any command in matlab, to calculate the RMSE (Root Mean Square Error) in a curve fitting problem?
Thanks

Best Answer

One way is to compute it yourself. You just need to compute the root of the mean of the squared errors (hence the name):
y = <true values>
yhat = <fitted values>
RMSE = sqrt(mean((y - yhat).^2));
Related Question