NEW
Also known as: Lagged Variable, Historical Value
A variable’s past value used as a predictor in time series modeling, typically denoted x(t−k).
DESCRIPTION
Lag variables capture temporal dependence by referencing previous observations. They are core features in autoregressive models and help explain current outcomes from past behavior. Choosing appropriate lags depends on autocorrelation patterns and domain knowledge. Excessive lags can overfit; too few may miss dependence structure. Lags complement differencing, seasonal effects, and moving averages in forecasting pipelines.
ALTERNATIVE DEFINITIONS
StatLect
The lag operator L is defined by Lx_t = x_{t-1}, and more generally L^k x_t = x_{t-k}.
Formalizes lagging through operator notation and k-step lags.
Penn State Eberly College of Science
A lagged value is simply a previous observation in the series used to help explain the current value.
Pedagogical framing of lags as predictors in time series.
RELATED TERMS
Temporal Data Lag Operator Auto-regression ARIMA Stationarity Autocorrelation Differencing Forecasting Feature Engineering
COMPETING TERMS
Lead Variable
KNOWLEDGE AREAS
TARGET AUDIENCE
EXTERNAL SOURCES
- Wikipedia - Lag (time series)
- Forecasting: Principles and Practice (FPP3) - AR models and lagged predictors
- Statsmodels - API for creating lag matrices
TOP QUESTIONS
How do Lag Variables aid forecasting?
They encode temporal dependence, enabling models to use past values to predict the present or future.
Category: Relevancy
How many lags should be used?
Use autocorrelation/partial autocorrelation plots and cross-validation to select informative lags without overfitting.
Category: Requirements
What is a common mistake with Lag Variables?
Including excessive lags without regularization, which increases variance and complexity.
Category: Mistakes
How do Lag Variables relate to ARIMA?
ARIMA models explicitly include lagged terms for autoregression and moving averages, plus differencing.
Category: Topic
What is the risk of using Lag Variables with missing data?
Misaligned lags can create spurious relationships; imputation or careful indexing is needed.
Category: Risks
What’s the difference between Lag and Lead Variables?
Lags reference past observations; leads reference future observations relative to the current time.
Category: Alternatives
Where to start learning Lag Variable engineering?
Explore time series textbooks and libraries like statsmodels; practice with autocorrelation diagnostics.
Category: Requirements
Can Lag Variables be used in panel data?
Yes, but ensure proper grouping and avoid cross-sectional leakage when constructing lags.
Category: Example
Do Lag Variables help with seasonality?
Seasonal lags (e.g., t−12) can capture periodic patterns in monthly data.
Category: Topic