The MSE is an estimator of the difference between an observed principle and an estimation. It is often used as a cost function.

It is defined as the mean of the squares of the differences, summed.

Example

Consider the set of data: with observed quantities: The error values are then: The squared values are then: As such, the MSE is then .