Mean Square Error
Study guides: Exam VEE-MS, Exam MAS-I, Exam MAS-II
The Mean Square Error (MSE) of an estimator \hat{\theta} measures its overall accuracy by combining both variance (spread) and bias (systematic error); the same name is used for the prediction error of a fitted model (see MSE as prediction error below):
\text{MSE}(\hat{\theta})
= E\!\left[(\hat{\theta} - \theta)^2\right]
= \text{Var}(\hat{\theta}) + \left(\text{Bias}(\hat{\theta})\right)^2
\text{where } \text{Bias}(\hat{\theta}) = E[\hat{\theta}] - \theta
- For an unbiased estimator,
\text{MSE}(\hat{\theta}) = \text{Var}(\hat{\theta}) - Bias–variance trade-off: a slightly biased estimator can have lower MSE than an unbiased one if its variance is sufficiently reduced
- The root mean square error (RMSE)
= \sqrt{\text{MSE}}is in the same units as\theta - In Bühlmann (least-squares) credibility, the credibility estimator is chosen to minimize MSE
MSE of a Biased Estimator For
X_i \stackrel{\text{iid}}{\sim} N(\mu, \sigma^2), compare the MSE ofS^2 = \frac{1}{n-1}\sum(X_i-\bar{X})^2(unbiased) and\hat{\sigma}^2 = \frac{1}{n}\sum(X_i-\bar{X})^2(biased MLE).Answer
E[S^2] = \sigma^2so\text{Bias}(S^2) = 0and\text{MSE}(S^2) = \text{Var}(S^2) = \dfrac{2\sigma^4}{n-1}.
E[\hat{\sigma}^2] = \frac{n-1}{n}\sigma^2so\text{Bias}(\hat{\sigma}^2) = -\frac{\sigma^2}{n}and\text{MSE}(\hat{\sigma}^2) = \frac{2(n-1)\sigma^4}{n^2} + \frac{\sigma^4}{n^2} = \frac{(2n-1)\sigma^4}{n^2}Forn > 1,\text{MSE}(\hat{\sigma}^2) < \text{MSE}(S^2), so the biased MLE has smaller MSE despite being biased.
MSE as prediction error
In statistical learning the target is a random response, not a fixed parameter. For a model Y = f(X) + \varepsilon fitted as \hat f, the MSE on the n observations used to fit it is the training MSE; the same average over unseen observations is the test MSE (see Test Error):
\text{MSE} = \frac{1}{n}\sum_{i=1}^{n}\big(y_i - \hat f(x_i)\big)^2
The expected test MSE at a point x_0 has three parts, not two:
\begin{aligned} E\big[(y_0 - \hat f(x_0))^2\big] &= \text{Var}\big(\hat f(x_0)\big) \\ &\quad + \big[\text{Bias}\big(\hat f(x_0)\big)\big]^2 \\ &\quad + \text{Var}(\varepsilon) \end{aligned}
\text{Var}(\varepsilon)is the irreducible error: the expected test MSE can never lie below it, however good\hat fis (the Bias-Variance Tradeoff governs the other two terms)- Reserving uses the same split: Mack (1994) takes the MSE of a reserve forecast
\hat C_{iI}given the dataDobserved so far,E\big[(\hat C_{iI} - C_{iI})^2 \mid D\big], and splits it into\text{Var}(C_{iI} \mid D), the future random (process) error, plus\big(E[C_{iI} \mid D] - \hat C_{iI}\big)^2, the estimation error — see Mack Chain Ladder Model