Confidence band vs. prediction band in regression: what each covers and why the prediction band is wider

Quick Overview

Asks how a confidence band around a fitted regression mean differs from a prediction band for a new observation, and why one is wider. Tests the variance behind each band, how the widths change with sample size and distance from the center of the data, and when each band is the right tool.

Confidence band vs. prediction band in regression: what each covers and why the prediction band is wider

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

After fitting a linear regression, you can draw two bands around the fitted line: a confidence band for the mean response and a prediction band for new observations. What is the difference between a confidence band around the fitted regression mean and a prediction band, and why is the prediction band wider? ```hint Name the target For each band, ask what quantity it is trying to cover, then write the variance of the gap between the fitted value and that quantity. ``` ```hint Push the sample size Think about what happens to each band's width as the number of training points grows without bound. ``` ### What a Strong Answer Covers - The target of each band: the mean response at a given x versus one new observation at that x. - The variance behind each width, including the coefficient (leverage) term and the extra term that only the prediction band carries. - How each width changes with distance from the center of the x data and with sample size, including the large-n limit. - The assumptions each band depends on and when the prediction band gives the wrong coverage. ### Follow-up Questions - A stakeholder wants a range that will contain next month's sales for one store. Which band do you give them, and why? - How would you build a prediction interval when the residuals are clearly heteroscedastic or skewed? - What is the difference between a band of pointwise confidence intervals and a simultaneous confidence band such as Working-Hotelling? - With a very large sample, the confidence band is almost a line. Why does a 95% prediction band from the same fit still miss about 5% of new points?

Overview: Asks how a confidence band around a fitted regression mean differs from a prediction band for a new observation, and why one is wider. Tests the variance behind each band, how the widths change with sample size and distance from the center of the data, and when each band is the right tool.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

After fitting a linear regression, you can draw two bands around the fitted line: a confidence band for the mean response and a prediction band for new observations. What is the difference between a confidence band around the fitted regression mean and a prediction band, and why is the prediction band wider?

What a Strong Answer Covers Guidance

  • The target of each band: the mean response at a given x versus one new observation at that x.
  • The variance behind each width, including the coefficient (leverage) term and the extra term that only the prediction band carries.
  • How each width changes with distance from the center of the x data and with sample size, including the large-n limit.
  • The assumptions each band depends on and when the prediction band gives the wrong coverage.

Follow-up Questions Guidance

  • A stakeholder wants a range that will contain next month's sales for one store. Which band do you give them, and why?
  • How would you build a prediction interval when the residuals are clearly heteroscedastic or skewed?
  • What is the difference between a band of pointwise confidence intervals and a simultaneous confidence band such as Working-Hotelling?
  • With a very large sample, the confidence band is almost a line. Why does a 95% prediction band from the same fit still miss about 5% of new points?