This repository has been archived on 2021-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
scientificComputing/regression/code/meanSquareError.m
2015-11-08 18:10:06 +01:00

10 lines
308 B
Matlab

function error = meanSquareError(y, y_est)
% Function calculates the mean sqauare error between observed and predicted values.
%
% Agruments: y, the observed values
% y_est, the predicted values.
%
% Returns: the error in the mean-square-deviation sense.
error = mean((y - y_est).^2);