Mean squared prediction error
| This article does not cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (December 2009) |
In statistics the mean squared prediction error of a smoothing procedure is the expected sum of squared deviations of the fitted values
from the (unobservable) function
. If the smoothing procedure has operator matrix
, then
The MSPE can be decomposed into two terms just like mean squared error is decomposed into bias and variance; however for MSPE one term is the sum of squared biases of the fitted values and another the sum of variances of the fitted values:
Note that knowledge of
is required in order to calculate MSPE exactly.
[edit] Estimation of MSPE
For the model
where
, one may write
The first term is equivalent to
Thus,
If
is known or well-estimated by
, it becomes possible to estimate MSPE by
Colin Mallows advocated this method in the construction of his model selection statistic Cp, which is a normalized version of the estimated MSPE:
where
comes from that fact that the number of parameters
estimated for a parametric smoother is given by
, and
is in honor of Cuthbert Daniel.
![\operatorname{MSPE}(L)=\operatorname{E}\left[\sum_{i=1}^n\left( g(x_i)-\widehat{g}(x_i)\right)^2\right].](http://upload.wikimedia.org/wikipedia/en/math/a/e/9/ae9fbd2bd217a8ea499e589cae7e09bd.png)
![\operatorname{MSPE}(L)=\sum_{i=1}^n\left(\operatorname{E}\left[\widehat{g}(x_i)\right]-g(x_i)\right)^2+\sum_{i=1}^n\operatorname{var}\left[\widehat{g}(x_i)\right].](http://upload.wikimedia.org/wikipedia/en/math/9/c/c/9cc43f22aa09f82a7fb24324aa480bfd.png)
![\operatorname{MSPE}(L)=g'(I-L)'(I-L)g+\sigma^2\operatorname{tr}\left[L'L\right].](http://upload.wikimedia.org/wikipedia/en/math/8/8/3/88300faee112e65e916f46050e65e64d.png)
![\sum_{i=1}^n\left(\operatorname{E}\left[\widehat{g}(x_i)\right]-g(x_i)\right)^2
=\operatorname{E}\left[\sum_{i=1}^n\left(y_i-\widehat{g}(x_i)\right)^2\right]-\sigma^2\operatorname{tr}\left[\left(I-L\right)'\left(I-L\right)\right].](http://upload.wikimedia.org/wikipedia/en/math/f/3/a/f3a93fa0382adcb8c4b4b34b7f172897.png)
![\operatorname{MSPE}(L)=\operatorname{E}\left[\sum_{i=1}^n\left(y_i-\widehat{g}(x_i)\right)^2\right]-\sigma^2\left(n-2\operatorname{tr}\left[L\right]\right).](http://upload.wikimedia.org/wikipedia/en/math/4/4/7/4471071187969838cc708b0b131fe767.png)
![\operatorname{\widehat{MSPE}}(L)=\sum_{i=1}^n\left(y_i-\widehat{g}(x_i)\right)^2-\widehat{\sigma}^2\left(n-2\operatorname{tr}\left[L\right]\right).](http://upload.wikimedia.org/wikipedia/en/math/3/2/c/32c5ca664cc9ad258f72cbad2c16866d.png)
![C_p=\frac{\sum_{i=1}^n\left(y_i-\widehat{g}(x_i)\right)^2}{\widehat{\sigma}^2}-n+2\operatorname{tr}\left[L\right].](http://upload.wikimedia.org/wikipedia/en/math/0/3/6/03656f9d4635f1dfbcf20da8438f284c.png)