This image shows the mean error formula.