A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Prediction Intervals and Out-of-Sample Forecasting

Graduate Depth 128 in the knowledge graph I know this Set as goal
1,031prerequisites beneath it
See this on the map →
Confidence Intervals and Hypothesis Tests in RegressionInference in Linear Regression+3 more
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

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication 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 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-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 IntroductionSine, Cosine, and Tangent RatiosTrigonometric 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 VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityIndependence of EventsSampling DistributionsStandard Error of EstimatorsHypothesis Testing: Framework and LogicP-values and Statistical SignificanceEffect Size and Practical SignificanceHypothesis Testing: Framework and LogicZ-Tests and T-Tests for MeansOne-Sample Z-Test for MeansOne-Sample and Two-Sample T-TestsInference in Linear RegressionPrediction Intervals in RegressionLinear Regression BasicsResiduals and Goodness of Fit (R²)Simple (Bivariate) OLS RegressionClassical OLS Assumptions (Gauss-Markov)Multiple RegressionInterpreting Regression CoefficientsHypothesis Testing in RegressionF-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: 129 steps · 1031 total prerequisite topics

Prerequisites (5)

Leads To (0)

No topics depend on this one yet.