-
Prediction Interval and Confidence IntervalMathematics 2021. 1. 4. 14:17
Prediction Interval (PI)
a prediction interval reflects the uncertainty around a single value.
Confidence Interval (CI)
a confidence interval reflects the uncertainty around the mean prediction values.
PI v.s CI

Fig.1 Prediction interval v.s Confidence interval 
Fig.2 95% confidence interval (grey), 95% prediction interval (red) How to obtain the Confidence Interval
- Get a bootstrap sample from the existing dataset.
- Fit a regression model to the bootstrap sample, and record the estimated coefficients.
- Repeat steps 1-2, say, 1,000 times.
- You now have 1,000 bootstrap values for each coefficient; Fin the appropriate percentiles for each one.
Note that there is a formula approach to obtain the confidence interval instead of the bootstrapping approach.
'Mathematics' 카테고리의 다른 글
Naive Bayes Explained (0) 2021.01.04 Leverage, Influential values, Cook's distance in Regression (0) 2021.01.02 Power and Sample size (0) 2021.01.01