Mostly Harmless StatisticsXYZ Homework Edition

⇩ Download ▾

12.8 Prediction

We can now use the least squares regression equation for prediction.

Prediction Interval

We can find a special type of confidence interval to estimate the true value of yy called the prediction interval.

The prediction interval is the confidence interval for the actual value of yy:

y^±tα/2·s(1+1n+(xx¯)2SSxx)\hat{y} \pm t_{\alpha / 2} \cdot s \sqrt{\left( 1 + \frac{1}{n} + \frac{(x - \bar{x})^{2}}{SS_{xx}}\right)} \nonumber

where y^\hat{y} is the predicted value of yy for the given value of xx.

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University, https://mostlyharmlessstat.wixsite.com/webpage), © Rachel Webb, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.