I'm reading the book "The Elements of Statistical Learning" (Hastie, Tibshirani, and Friedman). At page 62, they present the estimated prediction curves with the standard errors for best subset selection, ridge regression, lasso and PCR.
The question is: how is the standard error of a prediction error calculated?
Thank you.
Solved – How is the standard error of the estimated prediction error calculated
data miningpredictive-modelsregression
Best Answer
You can see that the $y$-axis is labeled CV-Error, which gives a clue.
Using cross validation, we can do the following:
Then the line plot in the above graphs is
And the error bars are derived from
So, in words, for each parameter the mean out of fold score is calculated across all the folds, and the standard error of the out of fold score is calculated across all the folds.