Prediction Intervals and Out-of-Sample Forecasting

Graduate Depth 96 in the knowledge graph I know this Set as goal
forecasting prediction uncertainty

Core Idea

Prediction intervals account for both uncertainty in parameter estimates and irreducible error variance, making them wider than confidence intervals for mean predictions. Choosing between prediction and confidence intervals depends on the task: use confidence intervals to estimate mean effects, prediction intervals to forecast individual outcomes.

Explainer

From your work on confidence intervals in regression, you know how to quantify uncertainty about estimated coefficients and about the expected value of Y at a given X. A confidence interval for the mean of Y at X = x* answers the question: "What is the average outcome for all units with this value of X?" But there is a different and often more practically relevant question: "What outcome should I expect for this specific new unit?" That is the question a prediction interval answers — and the distinction matters enormously for applied work.

Here is why a prediction interval must be wider than a confidence interval for the mean. When you ask about the mean of Y at a given X, uncertainty comes only from imprecision in your estimated regression line — you have estimated β with some error. As sample size grows, this uncertainty shrinks toward zero. But when you ask about a *specific new observation*, there is an additional, irreducible source of uncertainty: the error term ε for that new unit. That new unit will not fall exactly on the regression line even if you knew the line perfectly. The variance of a new prediction is therefore Var(ŷ_new) = σ²[1 + X_new′(X′X)⁻¹X_new], the "1" representing the irreducible error variance that never disappears no matter how large your sample. The confidence interval omits the "1" term. This structural difference means prediction intervals do not shrink to zero as n → ∞ — they converge to ±1.96σ around the true mean, where σ is the residual standard error.

A practical implication is that prediction intervals widen as X_new moves away from the center of your data. This follows from the (X_new′(X′X)⁻¹X_new) term, which is smallest near the mean of X and grows as you extrapolate. Predicting the salary of someone with 20 years of experience when most of your data covers 0–10 years yields an interval so wide it may be useless. This is the statistical signature of extrapolation risk: even if your model is correctly specified within the observed range, predictions far outside it carry large formal uncertainty — and unknown model misspecification risk on top of that.

Out-of-sample forecasting brings a further complication: model selection bias. When you fit a model on training data and evaluate its predictive accuracy on a held-out test set, the test error is an honest estimate of future prediction error; in-sample R² and residual variance estimates are not. Overfitted models look precise in-sample but produce wide prediction intervals out-of-sample — or, worse, generate point forecasts that perform poorly in ways the in-sample fit masked. The discipline of holding out a test set, or using cross-validation, forces you to confront prediction interval width honestly. A model that minimizes in-sample residual variance is not the same as a model that minimizes out-of-sample forecast error, and understanding this gap is the foundation of modern forecasting methodology.

Practice Questions 5 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsCombining Like TermsOne-Step EquationsTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesNormal DistributionCentral Limit TheoremConfidence Intervals for MeansZ-Tests and T-Tests for MeansOne-Sample Z-Test for MeansOne-Sample and Two-Sample T-TestsOne-Way ANOVAF-Test and Joint SignificanceR-Squared and Model FitOmitted Variable BiasCausal Inference and the Identification ProblemPotential Outcomes and the Rubin Causal ModelSelection BiasInstrumental VariablesDynamic Panel Models and Arellano-Bond/Blundell-Bond EstimationDynamic Panel Models: Arellano-Bond EstimatorFirst-Difference Estimator for Panel DataWithin Estimator (Fixed Effects) for Panel DataBetween and Random Effects Estimators for Panel DataHausman Test: Fixed Effects Versus Random EffectsDynamic Panel Models and System GMM EstimationVector Autoregression (VAR) Models and Impulse ResponsesARIMA Models and Time Series ForecastingPrediction Intervals and Out-of-Sample Forecasting

Longest path: 97 steps · 678 total prerequisite topics

Prerequisites (4)

Leads To (0)

No topics depend on this one yet.