Let be the total number of observations, an index and be the th observation. The mean squared error is given by

The mean squarred error is related to residual sum of squares (RSS) by the equation