Confidence intervals are uncertainty intervals placed around regression coefficients and predictions
Bootstrap algorithm to understand this
Consider each row as a single "ticket" and place n tickets in a box
Draw a ticket at random, record the values, and replace it in the box
Repeat step 2 n times; which is one bootstrap resample
4.Fit a regression to the bootstrap sample, and record the estimated coefficients
Repeat step 2 to 4, say, 1000 times
Which is 1000 bootstrap values for each coefficient; find the appropriate percentiles for each one to get the confidence interval
This can be re-formulated to show the prediction interval
Prediction intervalΒ gives uncertainty around a single value,Β **confidence intervalΒ **pertains to a mean or other statistic calculated from multiple values