Skip to content

Confidence Intervals vs Prediction Intervals in Regression

Contrasts the interval for the mean response with the interval for a new individual's predicted value in linear regression, illustrated with worked examples.

YouTube · MarinStatsLectures-R Programming & Statistics · 1 September 2026 Watch on YouTube

0

Report / takedown request

Your report is sent to our team and reviewed.

Tried this idea? Show how yours turned out.

I made this

#marinstatslectures #IntroductoryStatistics #RVideoTutorials #statistics #rprogramming

How to do it

What you need

  • Statistical software (R)
  • Regression model with predictor and response data
  • Residual standard error (from model output)
  • t critical value
  • Estimate of the mean response or predicted value
  • Formula for standard error of the mean response
  • Formula for standard error of a predicted individual value

Step by step

  1. Fit a linear regression model to the sample data and obtain the residual standard error.
  2. Decide whether you want the mean response of the population at a given x, or a predicted value for one new individual.
  3. Compute the standard error of the estimated mean response at that x.
  4. Build the confidence interval as the estimated mean plus and minus a t critical value times that standard error.
  5. Compute the standard error for a new individual's predicted value, which is larger than the standard error for the mean.
  6. Build the prediction interval as the predicted value plus and minus the t critical value times that larger standard error.
  7. Compare the two intervals to see that the prediction interval is wider.

Tips

  • Both intervals are built around the same estimated value and both use the residual standard error, but the prediction interval's standard error is larger, so it is always wider.
  • Use the confidence interval when the question is about the average response of the population at a given x.
  • Use the prediction interval when the question is about one new individual's value, since a single observation carries extra variability.

Written by Tagrazzi from the original's description and photo.

The title and summary are written by Tagrazzi; the video belongs to its creator and plays from YouTube.

Comments (0)

No comments yet. Be the first to comment.

Sign in to write a comment.