- Learn
- Business & Economics
- Economics
- Econometrics 1
- Regression with Time Series Data
Regression with Time Series Data
IntermediateLesson 6 of 8 in Econometrics 1 Course
What you will learn
- Work with data ordered in time and estimate and interpret regressions in which an explanatory variable affects the outcome in the same period or over several periods.
- Work with lags, differences, growth rates and autocorrelationDescribe what makes time-series data different from cross-sectional data and build the lagged, differenced and growth-rate variables that time-series regressions use.
- Estimate and interpret static time-series modelsSpecify regressions that relate variables in the same period, interpret their coefficients, logs and event dummies, and recognize what a static model leaves out.
- Measure delayed effects with finite distributed lag modelsUse finite distributed lag models to estimate how an effect unfolds over time, distinguish temporary from permanent changes, and estimate and test the long-run propensity.
- Work with lags, differences, growth rates and autocorrelation
- State the assumptions under which OLS on time series is unbiased or consistent, recognize stationary and weakly dependent processes, and know what changes when a lagged dependent variable is a regressor.
- State the finite-sample assumptions and strict exogeneityUse the classical assumptions for time-series regression to decide when OLS is unbiased and when its usual inference is exact, and recognize the situations that break strict exogeneity.
- Recognize stationary and weakly dependent processesDefine stationarity and weak dependence, compute the moments of moving-average and autoregressive processes, and tell trend-stationary series from series whose dependence does not die out.
- Use large-sample OLS with lagged dependent variablesApply the weaker large-sample assumptions that make OLS consistent and its usual inference approximately valid, including in autoregressive and dynamically complete models.
- State the finite-sample assumptions and strict exogeneity
- Account for trends and seasonal patterns in time-series regressions and recognize when highly persistent data produce relationships that are not real.
- Model and remove time trendsModel linear and exponential trends, include a time trend to avoid spurious relationships between trending series, and measure goodness of fit correctly when the dependent variable trends.
- Account for seasonal patternsModel regular within-year patterns with seasonal dummy variables, test whether seasonality matters, and work with seasonally adjusted data.
- Spot highly persistent series and spurious regressionsRecognize random walks and other highly persistent series, explain why regressions between them can be spurious, and choose transformations that make inference valid.
- Model and remove time trends
- Explain how serially correlated errors affect OLS, test for serial correlation, and correct for it with feasible GLS, differencing or serial-correlation-robust standard errors.
- Explain what serial correlation does to OLSDescribe serially correlated errors and their consequences for unbiasedness, consistency, efficiency and the usual standard errors, including the special danger in models with a lagged dependent variable.
- Test for serial correlationTest regression residuals for first-order and higher-order serial correlation with the AR(1) t test, the Durbin–Watson statistic and the Breusch–Godfrey test, and choose the test that suits the regressors.
- Correct for AR(1) errors with feasible GLS or differencingTransform a regression with AR(1) errors by quasi-differencing, estimate it by Cochrane–Orcutt or Prais–Winsten feasible GLS, and know when first-differencing is the better response.
- Use serial-correlation-robust (HAC) standard errorsCompute and interpret Newey–West standard errors that remain valid under serial correlation and heteroskedasticity, choose their lag length, and decide between robust OLS inference and FGLS.
- Explain what serial correlation does to OLS
- Use autoregressive and distributed-lag regressions to forecast future values, choose the number of lags, and measure and compare forecast uncertainty.
- Forecast with autoregressive and distributed-lag modelsProduce one-step and multi-step forecasts from autoregressive, autoregressive distributed lag and trend-seasonal models, and choose the number of lags with information criteria.
- Measure forecast uncertainty and compare forecastsQuantify forecast errors with the root mean squared forecast error, build forecast intervals, and compare competing forecasts on data held back from estimation.
- Forecast with autoregressive and distributed-lag models
Regression with Time Series Data study guide
1Set up regressions with time-series data
Time order lets you ask when an effect arrives. Start by building variables that compare one period with another, keeping their units clear. Then use static regressions for same-period relationships and finite distributed lag models for delayed responses. The same estimated lag coefficients tell different stories when a change lasts one period and when it stays in place; keeping those two experiments separate is central to interpreting the results.
1.1 Work with lags, differences, growth rates and autocorrelation
A time series records a variable in date order. Its observed values are one realization of a stochastic process, a sequence of random variables. The order carries information: shuffling quarterly observations destroys the meaning of changes and lags. Nearby observations often move together, so the independent-draw reasoning used for a random cross-section must change.
Build comparisons across dates
The first lag of is ; lag is . With 80 quarterly observations and two lags, usable dates run from 3 through 80, leaving 78 observations. Align every regressor and the outcome to the same date before estimating.
The first difference, , measures a change in the original units. A rate falling from 6.1% to 5.8% changes by −0.3 percentage points. Its percentage change is about percent. For quarterly data, is a seasonal difference: it compares the same quarter in successive years.
A growth rate divides the change by the starting value:
For positive values, approximates percent growth. An index rising from 500 to 506 grows by 1.2%, while its log growth is about 1.19. The approximation gets weaker for large changes: a rise from 100 to 150 is 50%, while .
To annualize 1.2% quarterly growth, compound it: , or 4.9%. Multiplying the quarterly percentage by four gives the approximation 4.8%. Annualized quarterly log growth is exactly four times quarterly log growth because logarithms turn products into sums.
Measure persistence and choose units
Autocorrelation at lag measures the correlation between values periods apart. One common sample definition is
For 2, 4, 3, 5, 6, the mean is 4 and the deviations are −2, 0, −1, 1, 2. Neighboring products total 1 and squared deviations total 10, giving . A correlogram displays these correlations across lags. Price or output levels often have much higher autocorrelation than their growth rates.
An index sets a base-period value to 100. Moving from 120 to 126 adds 6 index points but means 5% growth. To express a nominal quantity in base-year prices, divide by its price index and multiply by 100. A nominal earnings index of 240 with a price index of 120 becomes a real index of 200. Using nominal variables can make a regression pick up a common inflation trend.
Create variables in software
Sort dates and check for gaps first. In Stata, after tsset quarter, use L.y, L2.y, D.y and S4.y. In Python pandas, use df['y'].shift(1), df['y'].diff() and df['y'].diff(4). In R, use dplyr::lag(y) and diff(y); diff() returns a shorter vector. Row shifts in R or Python require a regular time grid: the previous row must really be the previous period.
Key Takeaways
- A lag refers to an earlier date; align all variables on the regression date.
- Differences retain the original units; percent growth divides by the starting value.
- Log differences approximate small percentage changes; annualized log growth scales exactly with frequency.
- Autocorrelation measures dependence across dates.
- Real values remove price changes; index points and percent changes differ.
- Sort dates, check gaps and account for observations lost to lags.
1.2 Estimate and interpret static time-series models
A static model relates the outcome to regressors measured in the same period:
The model represents a contemporaneous effect. It gives no separate coefficient for a response that arrives later. Multiple regression still holds other included regressors fixed, and OLS still chooses coefficients to minimize the sum of squared residuals.
Read a same-period slope
Suppose an annual inflation regression is
with both rates recorded as numbers in percent. One percentage point higher unemployment is associated with 0.45 percentage points lower inflation that year. At unemployment of 6%, the fitted inflation rate is percent. The intercept is the fitted inflation rate at zero unemployment; whether that value is useful depends on whether zero lies in a meaningful range of the data.
A fitted association becomes a causal effect only with a credible exogeneity argument. For example, omitted demand shocks might affect both inflation and unemployment. The coefficient would then mix their influence with the relationship of interest. Computing OLS successfully says nothing by itself about whether those influences have been separated.
Interpret logarithms and event dummies
In a log-log electricity model,
a price slope of −0.20 is a contemporaneous elasticity. Holding real income fixed, a 10% higher real price is associated with about 2% lower use in the same period. If users adjust gradually and the model omits those delayed responses, this static coefficient generally isolates neither the short-run nor the long-run response. If there are truly no delayed effects, those responses coincide.
A dummy variable marks an event or regime. A dummy equal to 1 after a policy begins estimates an average shift relative to the earlier periods, holding other regressors fixed. A dummy equal to 1 for one date captures a one-period event, such as a strike.
In a log road-deaths model, a policy coefficient of −0.08 corresponds to approximately 8% fewer deaths. The exact percentage is . A dummy's coefficient also absorbs coinciding changes that the regression leaves uncontrolled. If a recession starts with the policy, a causal interpretation needs a way to separate their effects.
Recognize missing dynamics
Households, firms and institutions often take time to respond. If current and past prices are correlated, omitting past prices can load some delayed effects onto the current-price slope. Persistent omitted effects may also appear as serial correlation in the residuals. Adding relevant lags makes the timing explicit.
Feedback creates another problem: today's outcome can affect tomorrow's regressor. That breaks strict exogeneity even when the current regressor is unrelated to the current shock. Trending series also need attention because two unrelated upward paths can fit closely. Model interpretation therefore starts with timing, economic controls and time patterns, before the size of a reported t statistic.
Key Takeaways
- A static coefficient describes a same-period relationship.
- Apply the usual level, log and dummy interpretation rules with the correct units.
- A policy dummy can absorb uncontrolled changes that occur at the same time.
- Omitted lagged effects can contaminate the current slope and leave persistent residuals.
1.3 Measure delayed effects with finite distributed lag models
A change can reach an outcome over several periods. A finite distributed lag model, or FDL, puts those responses into separate coefficients:
The order is the last included lag. Each is a dynamic multiplier. Plotting the multipliers against the lag gives the lag distribution, which shows when the response is strongest.
Follow a temporary change
Consider quarterly housing starts, in thousands, and an interest rate recorded in percent:
Compare two otherwise identical paths where the rate differs by one percentage point in one quarter only. Starts fall by 4 thousand immediately, 6 thousand in the next quarter and 3 thousand in the following quarter. After that, the changed rate has passed beyond the model's last lag, so its effect is zero. The impact propensity is −4; the largest individual response occurs one quarter later.
Follow a permanent change
Now let the rate stay one point higher. In the first quarter only the current rate differs, giving −4 thousand. In the next quarter both the current and first-lag rates differ, giving thousand. From the third quarter onward all three rate terms differ, giving thousand each quarter.
| Change in the rate | Initial quarter | Next quarter | Third quarter | Later quarters |
|---|---|---|---|---|
| One-quarter rise | −4 | −6 | −3 | 0 |
| Permanent rise | −4 | −10 | −13 | −13 |
The long-run propensity is . For a permanent one-unit increase it is the eventual change in the level of the outcome. For a temporary increase, the same sum is the cumulative response across dates. A lag coefficient alone gives the response at that lag to a temporary change, not the accumulated response to a permanent one.
Estimate uncertainty for the sum
Lagged values often move together. This multicollinearity can make individual slopes imprecise even when the lags matter jointly. Test whether all included lag coefficients are zero with a joint F test. Their individual t statistics cannot be added to test the LRP; the variance of a sum also depends on covariances.
For two lags, define . Substitute to obtain
OLS on these regressors reports the LRP and its standard error directly. An LRP of −13.0 with standard error 4.2 gives against zero. Software can also test a linear combination: Stata uses lincom r + L.r + L2.r; in R or Python, form the sum and its variance from the coefficient covariance matrix.
Choose lag length using the economics and data frequency, supported by tests of final lags or information criteria. Too few lags omit responses correlated with included regressors. Too many consume observations and precision. A causal interpretation needs exogeneity; the finite-sample unbiasedness result needs strict exogeneity, including future regressors.
Key Takeaways
- The impact propensity is the current-regressor coefficient.
- A temporary change traces the individual lag coefficients.
- A permanent change traces cumulative sums and eventually reaches the LRP.
- Test lag coefficients jointly when individual estimates are imprecise.
- Test the LRP with its covariance-based standard error or a reparameterized regression.
- Lag length trades omitted dynamics against lost precision.
2Judge when OLS works with time-series data
OLS uses the same calculations on time-series data as on a cross-section, but its justification changes. Observations arrive in order, and nearby values often share information. Separate the assumptions that deliver unbiased estimates in finite samples from those that deliver consistency in long samples. Stationarity, fading dependence and the timing of feedback determine whether a regression with lagged outcomes can support reliable inference.
2.1 State the finite-sample assumptions and strict exogeneity
The OLS calculation does not require independent observations. Its statistical guarantees do require assumptions about the process generating those observations. For finite-sample results, the strongest timing condition is strict exogeneity.
Separate the guarantees
TS.1 specifies a model linear in its parameters:
Regressors can include transformations, trends, dummies and explanatory-variable lags. TS.2 rules out perfect collinearity. For example, four quarterly dummies together with an intercept fail because the dummies add to the intercept column.
TS.3 requires at every date, where contains regressors from the whole sample. A shock must be unrelated to regressors in past, present and future periods. Under TS.1–TS.3, OLS is unbiased: across repeated realizations, its mean equals the true parameter. Serially uncorrelated errors are not needed for this result.
The remaining assumptions add stronger guarantees:
| Assumptions added | Meaning | Result |
|---|---|---|
| TS.4 and TS.5 | Constant conditional error variance and no conditional serial correlation | OLS is BLUE; usual variance formulas apply |
| TS.6 | Normal errors, independent across time and of all regressors | Exact finite-sample t and F distributions |
BLUE means best linear unbiased estimator: smallest variance among linear unbiased estimators under these assumptions. It does not mean that the model has a causal interpretation without the zero-conditional-mean condition.
Why future regressors matter
Suppose a policy interest rate responds to earlier inflation. An unexpected inflation shock today can lead to a higher rate next period. That future regressor then contains information about today's error, violating strict exogeneity. The current rate may still be unrelated to today's shock; this weaker restriction is contemporaneous exogeneity.
A lagged dependent variable also breaks strict exogeneity. In , next period's regressor is today's , which contains . This violates TS.3 even when the errors themselves are independent over time. Omitted variables and regressor measurement error can break exogeneity as they do in cross-sectional models.
Match inference to assumptions
TS.4 says . TS.5 says errors at distinct dates have zero conditional correlation. Together with TS.1–TS.3 they give
Here comes from regressing the chosen regressor on the others; it measures how much its independent variation is reduced. Normality under TS.6 supplies exact small-sample inference, not unbiasedness itself. Economic series often violate strict exogeneity or no serial correlation, so large-sample analysis and robust inference are essential extensions.
Key Takeaways
- TS.1–TS.3 deliver finite-sample unbiasedness.
- Strict exogeneity restricts relationships with past, current and future regressors.
- Feedback and lagged dependent variables violate strict exogeneity.
- Homoskedasticity and no serial correlation support usual variances and the BLUE result.
- Normality adds exact finite-sample t and F inference.
2.2 Recognize stationary and weakly dependent processes
A process can fluctuate while remaining statistically stable. Stationarity describes stability across dates; weak dependence describes how quickly information from distant dates fades. These properties make a long time series informative about the process behind it.
Distinguish two stability ideas
Strict stationarity means that shifting every date in any finite collection leaves its joint distribution unchanged. Covariance stationarity requires a constant mean, a finite constant variance, and covariance determined only by the gap between dates. Strict stationarity with finite variance implies covariance stationarity. A rising mean violates both forms of stationarity.
Weak dependence requires distant observations to become nearly uncorrelated quickly enough for large-sample averaging results. Stationarity alone does not guarantee that dependence fades. Under suitable weak dependence, the law of large numbers and central limit theorem replace the independent-sampling tools used for cross-sections.
Compare short-memory processes
An MA(1) process is , where innovations are independent with mean zero and variance . Neighboring values share one innovation. Values at least two dates apart share none:
All higher autocorrelations are zero. With , first autocorrelation is . This process is stationary and weakly dependent for every finite value of .
An AR(1) process is . With it is stable and weakly dependent; starting it in its long-run distribution makes it stationary. Its variance and lag-h correlation are
With and innovation variance 1, the variance is about 2.78. Correlations are 0.8 at one lag, 0.64 at two, about 0.41 at four and 0.11 at ten. The shock half-life is periods. A high first autocorrelation can therefore coexist with stationarity.
Adding an intercept gives with mean . For and , the mean is 5. Departures from that mean are pulled back over time.
Recognize persistence that does not fade
At , the process becomes a random walk. Starting from zero, and . Each shock permanently changes the level. Its correlation at dates and is ; for and this is about 0.95. Its growing spread and lasting shocks violate the conditions needed for ordinary stationary large-sample regression.
A trend-stationary process, , has a changing mean but stationary, weakly dependent deviations. Subtracting its deterministic trend exposes those deviations. A straight line cannot remove the accumulated shocks of a random walk. These are properties of the generating process, so a short plot alone cannot settle which process produced it.
Key Takeaways
- Stationarity concerns stability over dates; weak dependence concerns fading relationships across dates.
- An MA(1) has no autocorrelation beyond lag one.
- A stable AR(1) has autocorrelation that decays as powers of its coefficient.
- A random walk accumulates shocks and has variance that grows with time.
- A trend-stationary series becomes stationary after removing its deterministic trend.
- A high first autocorrelation alone does not identify a random walk.
2.3 Use large-sample OLS with lagged dependent variables
Many useful time-series regressions contain past outcomes. They cannot satisfy strict exogeneity, but OLS can still approach the correct coefficients as the sample grows. The key is to distinguish consistency from finite-sample unbiasedness.
Use the large-sample assumptions
TS.1′ requires a linear model with stationary, weakly dependent observations. TS.2′ rules out perfect collinearity. TS.3′ requires contemporaneous exogeneity:
Under these assumptions, OLS is consistent. The current error must have zero conditional mean given the current regressor vector, which may itself contain lagged outcomes. The condition does not require today's shock to be unrelated to tomorrow's regressors.
Adding TS.4′, contemporaneous homoskedasticity, and TS.5′, no serial correlation in the relevant conditional error products, supports asymptotic normality and usual large-sample standard errors and tests. Errors need not be normally distributed. These are approximate long-sample results, unlike exact classical finite-sample t and F distributions.
Estimate an autoregressive model
A fitted quarterly inflation model based on 120 observations is
The slope standard error is 0.08, so its t statistic against zero is . The stable coefficient implies a mean of percent. If the current innovation has mean zero conditional on past inflation, the lagged inflation regressor is exogenous in the current equation. OLS can be consistent even though tomorrow's regressor contains today's shock.
Autoregressive OLS is generally biased in finite samples. In an AR(1) with an intercept, the persistence estimate tends to be too low, especially in short samples and near a coefficient of one. A long sample reduces this problem; calling the estimator consistent does not erase its small-sample bias.
Include enough history
A model is dynamically complete when further lags add no predictive information once the included regressors are known. For example,
is dynamically complete if more distant outcomes and predictors do not help explain the conditional mean. Its unpredictable errors are serially uncorrelated. Missing relevant lags can leave correlated errors, so checking residuals is part of assessing the model's dynamics.
The danger is a lagged outcome together with serially correlated errors. The regressor contains . If that past error is correlated with , contemporaneous exogeneity fails and OLS is inconsistent. Changing only its standard errors cannot repair that failure.
Sequential exogeneity sits between strict and contemporaneous exogeneity: . It allows feedback into future regressors and is sufficient for consistency under the other large-sample conditions. Highly persistent levels such as random walks fail the weak-dependence framework; differences or growth rates are often needed before using these results.
Key Takeaways
- Contemporaneous exogeneity and stable, weakly dependent data support OLS consistency.
- Consistency allows finite-sample bias.
- A dynamically complete model leaves no predictable pattern in its errors.
- Lagged outcomes with serially correlated errors can make OLS inconsistent.
- Sequential exogeneity allows feedback to future regressors.
3Model trends and seasonality and avoid spurious regressions
A strong fit can come from a shared time pattern instead of an economic relationship. Learn how a deterministic trend and regular seasonal shifts enter a regression, and interpret slopes using movements left after those patterns are removed. Then distinguish temporary deviations around a trend from shocks that keep changing the level of a series. That distinction tells you whether a trend control or a change of variables addresses the problem.
3.1 Model and remove time trends
A time trend represents slow change shared across many dates. Leaving it out can make another trending variable appear important merely because both series rise together. Adding a suitable trend lets the regression compare movements around those paths.
Choose a trend form
A linear trend is . Its slope is a constant expected change per period in the units of the outcome. A linear trend in logs,
represents exponential growth. The approximate growth rate is percent per period; the exact rate is . An annual coefficient of 0.021 means about 2.1% growth, with an exact value near 2.12%. Adding allows curvature but makes distant extrapolation especially sensitive to the fitted shape.
Estimate relationships beyond the trend
Suppose log housing investment per person is regressed on log house prices using 45 annual observations. Without a trend, the price slope is 0.95 with standard error 0.30, giving a t statistic near 3.2. Adding time gives a slope of 0.10 with standard error 0.45, so . Once the shared upward path is accounted for, the remaining movements show no clear association.
The Frisch–Waugh–Lovell interpretation explains why. Regress each variable separately on an intercept and time, then retain the residuals. These are detrended variables. Regressing detrended outcomes on detrended predictors gives the same predictor slopes as the original regression including time. Detrending only the dependent variable does not perform this comparison correctly.
A trend need not reduce a slope or its significance. It can reveal a stronger relationship between deviations that was hidden by different trend movements. Include a trend when the outcome or a predictor trends, and compare the results using the economic question and the properties of the series. The coefficient on time summarizes changing influences left unmodeled; time itself is not an intervention with a causal effect.
Judge fit around the relevant baseline
Ordinary R-squared compares residual variation with variation around a constant mean. A strong trend can explain most of that variation even when other predictors add little. To assess fit beyond the trend, use
where is the residual from regressing the outcome on an intercept and the trend. The numerator comes from the full regression including that trend. A usual R-squared of 0.92 can accompany a detrended R-squared of 0.18: most of the apparent fit came from time.
A deterministic trend control addresses deterministic co-movement. A random walk with drift also has a rising expected path, but its shocks keep changing its level. Residuals from subtracting a straight line still contain that stochastic persistence. The remedy must match the kind of trend; adding time to every regression is not a general solution for persistent levels.
Key Takeaways
- A trend in levels means a constant change; a trend in logs means constant growth.
- Including time estimates predictor slopes from detrended movements.
- Detrend all relevant variables when applying the residual-regression interpretation.
- Use detrended R-squared to assess fit beyond the trend.
- A deterministic trend does not remove random-walk persistence.
3.2 Account for seasonal patterns
Seasonality is a repeating within-year pattern. A quarterly sales index may rise in a particular quarter even without a change in its underlying trend. Patterns depend on local calendars, holidays and climate, so the data determine which seasons are high or low.
Represent seasons without forcing a shape
With an intercept, quarterly data need three seasonal dummies. Leave one quarter as the base. Monthly data need eleven. Including every seasonal dummy with an intercept creates perfect collinearity because the dummy columns sum to one.
For a quarterly retail index, consider
The first quarter is the base. Holding the trend fixed, the fourth quarter is 15 points above the first and points above the third. At date 20, a fourth quarter, the fitted index is . The trend continues across year boundaries; it does not restart at one each January.
Coding the quarter as the single number 1, 2, 3 or 4 would impose equal increases between successive quarters. Dummies allow any set of seasonal shifts. A seasonal coefficient compares its own season with the omitted season, not with the immediately preceding quarter.
Test the seasonal pattern jointly
The null of no seasonality sets all seasonal dummy coefficients to zero. Use a joint F test. With 80 observations, one trend and three dummies, an unrestricted R-squared of 0.62 and a restricted R-squared of 0.55 give
There are 3 numerator and 75 denominator degrees of freedom. The 5% critical value is about 2.73, so the seasonal dummies matter jointly; the p-value is about 0.005. This usual F test requires the error assumptions supporting ordinary inference. If errors are serially correlated, use an appropriate robust joint test.
Adjust the variables consistently
Statistical agencies often publish seasonally adjusted data using procedures such as X-13ARIMA-SEATS. Seasonal dummies usually add little to already adjusted series. With unadjusted variables, include seasonal dummies. Use a consistent approach across outcome and predictors; mixing an adjusted outcome with unadjusted seasonal predictors can leave their movements poorly aligned.
For the regression interpretation, deseasonalize each variable by taking residuals from its regression on an intercept and seasonal dummies. Regressing these residuals gives the same predictor slopes as a regression including the dummies. Trends and seasonal controls can be used together; a deseasonalized fit measure asks what is explained beyond the repeating pattern.
The quarterly seasonal difference removes a stable additive seasonal component and measures a year-over-year change. Monthly data use lag 12. Seasonal dependence can remain in errors even after mean seasonality is controlled: quarterly residuals might still correlate four periods apart. Check that lag when diagnosing serial correlation.
Key Takeaways
- Omit one seasonal dummy when the regression includes an intercept.
- Read each seasonal coefficient against the omitted season.
- Test all seasonal dummies jointly to assess seasonality.
- Treat outcomes and predictors consistently when adjusting seasonality.
- Seasonal differences compare the same season in successive years.
- Seasonal patterns in the mean and seasonal correlation in errors are separate issues.
3.3 Spot highly persistent series and spurious regressions
A highly persistent series carries shocks far into the future. Persistence matters because the standard large-sample regression results rely on distant observations becoming sufficiently weakly related. A long sample of accumulating shocks does not behave like a long sample of stable fluctuations.
Distinguish lasting shocks from slow decay
A random walk follows . Substituting backward gives : every innovation remains in all later levels. Its conditional variance grows as , and without drift its best forecast at every horizon is the current value.
With drift, has expected path . The rising path may resemble a deterministic trend, but deviations from a straight line do not fade. A stable AR(1) with coefficient 0.95 is different: shocks decay, although their half-life is about 13.5 periods. A short plot can make these processes hard to distinguish.
A random walk has a unit root. A series with a stochastic trend in levels that becomes stationary and weakly dependent after first-differencing is I(1). A series already stationary and weakly dependent in levels is I(0). High estimated first autocorrelation is a warning sign of I(1), not a definitive classification.
Recognize spurious regression
Two independent random walks can produce an apparently significant slope. In a simulation of ten thousand pairs with independent standard normal shocks, usual 5% tests rejected a zero slope in about 66% of samples of length 50, 77% of length 100 and 83% of length 200. The rejection rate should be near 5%. More observations amplify this failure instead of repairing it. Regressions of first differences rejected in about 5% of samples.
Large t statistics, an R-squared that does not shrink as the sample grows, persistent residuals and a very low Durbin–Watson statistic are warning signs. The rule of thumb that R-squared exceeds Durbin–Watson is a signal to investigate, not a formal test.
For example, logs of a price index and an unrelated car count can give R-squared 0.95 over 40 years. With one regressor, , so the slope t statistic is about 27. Their growth-rate regression can instead give R-squared 0.01 and t near 0.6. The levels fit followed their drifting paths.
Transform the source of persistence
For unrelated I(1) series, first differences or growth rates remove the accumulating level component. Adding a deterministic trend does not remove random-walk shocks. Extra outcome and predictor lags can address omitted dynamics but do not by themselves restore usual levels t and F inference for I(1) variables.
Cointegration is the exception in which I(1) series share a stochastic trend and a levels relationship can describe a genuine long-run link. A high R-squared alone cannot establish that exception.
Differencing also changes the question from levels to changes. It can discard useful level information and induce serial correlation: if is serially uncorrelated with constant variance, has first autocorrelation −0.5. Transform persistent series for a reason, then check the transformed errors.
Key Takeaways
- Random-walk shocks permanently change the level.
- A stable but persistent AR(1) still loses the effect of a shock over time.
- Independent I(1) levels can produce misleadingly significant regressions.
- Differences or growth rates address stochastic trends; time controls address deterministic trends.
- Adding lags alone does not restore ordinary inference for I(1) levels.
- Cointegration is a genuine shared-trend exception, not something established by fit alone.
- Differencing white noise induces negative first-order autocorrelation.
4Detect and deal with serial correlation
Persistent errors can make a regression look much more precise than it is. Begin by separating damage to standard errors from damage to the coefficients themselves. Use residual-based tests suited to the regressors, then choose a response: improve the dynamics, transform an AR error model, or keep consistent OLS coefficients and use HAC inference. Each choice rests on a different claim about the model and the timing of the regressors.
4.1 Explain what serial correlation does to OLS
Serial correlation means errors at different dates are correlated. Persistent omitted influences, repeated measurement errors and missing dynamics can all create it. Distinguish its effect on the estimator from its effect on inference: these are different questions.
Separate coefficients from standard errors
A common error process is with and serially uncorrelated innovations. Positive makes a positive error tend to be followed by another positive error.
Under strict exogeneity and the other TS.1–TS.3 conditions, OLS remains unbiased despite serial correlation. Under the corresponding stationary, weakly dependent large-sample conditions and contemporaneous exogeneity, it remains consistent. Serial correlation alone does not introduce a relationship between regressors and the current error.
The ordinary variance formula does fail. OLS loses its BLUE guarantee, and usual t tests, F tests and confidence intervals are invalid when they ignore the cross-date error covariances. White heteroskedasticity-robust standard errors do not include those covariances. HAC standard errors address both forms of dependence in the sampling variance.
See why precision can be overstated
If both the regressor and the error have positive persistence, neighboring observations partly repeat the same information. The sample contributes less independent information than its raw number of dates suggests. Ordinary standard errors are then typically too small, making significance look too strong.
For an AR(1) regressor with coefficient and an AR(1) error with coefficient , the large-sample slope variance is approximately inflated by
With and , their product is 0.48. The factor is for variance, so the standard error is about times the ordinary one. A reported t statistic of 3.0 would become about , changing a 5% conclusion. Variance and standard error scale differently because one is the square of the other.
The direction is not universal: the relationship between regressor and error persistence matters. R-squared and adjusted R-squared still describe fit for stationary, weakly dependent data; they do not measure whether the reported standard errors are valid.
Check lagged outcomes carefully
In , the lagged outcome contains . When errors are serially correlated, that past error is correlated with today's error. The regressor is then endogenous in the current equation and OLS is inconsistent. A robust standard error cannot fix the coefficient.
Residual serial correlation may therefore reveal missing lags, an omitted trend or a wrong functional form. Review those features before choosing an inference correction. In a static model with exogenous regressors, the main problem may be precision; in a dynamic model, the same residual pattern can threaten the estimated relationship itself.
Key Takeaways
- Serial correlation alone leaves strictly exogenous OLS unbiased.
- Ordinary and White standard errors ignore cross-date error covariances.
- Positive error and regressor persistence typically overstates ordinary precision.
- A variance inflation factor must be square-rooted to scale a standard error.
- A lagged outcome with serially correlated errors can make OLS inconsistent.
4.2 Test for serial correlation
Plot OLS residuals before testing them. Runs of the same sign suggest positive persistence; repeated alternation suggests negative persistence. A formal test then asks whether the evidence is strong enough to reject no serial correlation, using a method suited to the regression's timing.
Test first-order correlation
With strictly exogenous regressors, regress on and test the lag coefficient against zero. A coefficient of 0.42 with standard error 0.11 gives . Use a heteroskedasticity-robust version if the innovation variance may change. This simple residual regression relies on strict exogeneity.
The Durbin–Watson statistic compares successive residual changes with their squared levels:
Values near zero suggest positive correlation, near two little first-order correlation and near four negative correlation. For residuals 0.5, 0.8, 0.3, −0.2, −0.6, −0.4, squared changes total 0.79 and squared levels total 1.54. Thus ; the approximation to an estimated correlation is rough in this short series.
For the classical positive-correlation test, use lower and upper bounds. Reject below , do not reject above , and report an inconclusive result between them. At 5% with 50 observations and one regressor plus an intercept, the bounds are about 1.50 and 1.59. A DW of 1.16 rejects. The exact bounds need classical assumptions, including normal errors, an intercept and strict exogeneity. A lagged dependent variable invalidates this test and tends to pull DW toward two. DW near two also leaves higher-order or seasonal correlation unchecked.
Test several lags with Breusch–Godfrey
The Breusch–Godfrey test accommodates lagged dependent variables under the null. Estimate OLS, save residuals, then regress those residuals on all original regressors and residual lags. Test the lagged residual coefficients jointly. The original regressors are essential; leaving them out loses the adjustment that makes the test work without strict exogeneity.
If the first dates are dropped, use and compare it with a chi-squared distribution with degrees of freedom. With 100 observations, four lags and auxiliary R-squared 0.12, . This exceeds the 5% critical value 9.49, with p about 0.021. Usual LM and F versions assume homoskedasticity; use a heteroskedasticity-robust joint test when needed.
Choose lags to reflect the frequency and question: four for quarterly seasonal dependence or twelve for monthly dependence are common starting points. To test only a quarterly seasonal lag, include the original regressors and residual lag four alone.
Match software conventions
Stata uses estat bgodfrey, lags(4); R uses lmtest::bgtest(model, order = 4); Python uses acorr_breusch_godfrey(results, nlags=4). Stata and R default to zero-filling initial residual lags, keeping all dates and using . That differs slightly from the dropped-date calculation. A large p-value means insufficient evidence to reject the tested lags, not certainty that every error correlation is zero.
Key Takeaways
- Choose a residual test that allows the regressors in the model.
- Durbin–Watson tests first-order correlation and has an inconclusive region.
- Do not use classical Durbin–Watson inference with lagged outcomes.
- Breusch–Godfrey includes original regressors and tests residual lags jointly.
- Match the LM sample size to dropped-date or zero-filled residual conventions.
- Use a robust joint test when heteroskedasticity threatens the usual BG test.
4.3 Correct for AR(1) errors with feasible GLS or differencing
When errors follow an AR(1) and regressors are strictly exogenous, a transformation can remove the serial correlation. Generalized least squares uses that error structure to estimate slopes more efficiently. In practice the persistence parameter must also be estimated, giving feasible GLS.
Transform the whole equation
Start from and . Subtract times the previous equation:
This is quasi-differencing. The slope retains its original interpretation, while the intercept's regressor changes from one to . Transform every explanatory variable, not just the dependent variable.
For , current and previous outcomes 10 and 8 become . Predictor values 4 and 3 become . The intercept column becomes 0.4. If an ordinary constant is used in the transformed regression instead, its coefficient represents , not the original intercept.
Handle the initial observation
Cochrane–Orcutt drops the first observation, which has no previous value. Prais–Winsten keeps it using the stationary AR(1) transformation: multiply its outcome, regressors and constant by . With , the factor is 0.8. Retaining this information can matter in a small sample.
Estimate the unknown persistence
First estimate the original model by OLS. Regress its residuals on their first lag to estimate . Use that estimate to quasi-difference and refit the model. For iterated FGLS, compute fresh residuals in the original equation using the latest coefficients, reestimate persistence from those residuals and transform again. Repeating the initial OLS fit would simply restart the calculation.
FGLS is consistent under its assumptions but generally not unbiased. With strictly exogenous regressors, a correct AR error model and homoskedastic transformed innovations, its usual inference is approximately valid and its asymptotic efficiency improves on OLS. If transformed innovations are heteroskedastic, standard errors need an appropriate robust correction.
Strict exogeneity matters because the transformed error contains past errors as well as the current error. Feedback can correlate those past errors with transformed regressors even when current-regressor OLS was consistent. A lagged outcome presents the same concern. A large OLS–FGLS discrepancy is a reason to inspect exogeneity and specification, not an automatic reason to trust the more elaborate estimate.
Consider first differences
Setting the quasi-difference coefficient to one gives . First-differencing can suit nearly unit-root errors or highly persistent series. It removes the levels intercept; an intercept in the differenced equation represents a linear trend in levels. If original errors were white noise, their differences become negatively correlated, so differencing still needs diagnosis.
Stata offers prais y x and prais y x, corc. R has the prais and orcutt packages. Python's GLSAR(y, X, rho=1).iterative_fit() fits an AR error model; here rho=1 requests order one, not a fixed coefficient equal to one.
Key Takeaways
- Quasi-difference the outcome, every regressor and the intercept column.
- Prais–Winsten retains a transformed first observation; Cochrane–Orcutt drops it.
- FGLS estimates persistence and can update it from original-equation residuals.
- FGLS needs strict exogeneity and a suitable error model.
- First-differencing is the coefficient-one transformation and changes how intercepts are interpreted.
- Differencing white-noise errors induces negative serial correlation.
4.4 Use serial-correlation-robust (HAC) standard errors
HAC means heteroskedasticity and autocorrelation consistent. HAC standard errors retain the OLS coefficients and replace their estimated sampling covariance matrix. Newey–West is a common HAC estimator. It is useful when OLS is consistent but the error correlation pattern is not known precisely.
Include cross-date covariance
A slope's variance depends on the error multiplied by the regressor variation that identifies that slope. Let be the residual from regressing the chosen predictor on the other regressors, including the intercept, and let . Newey–West forms a variance component
The first term captures within-date variation; the remaining terms capture relationships across dates. Bartlett weights decline with distance. With bandwidth they are 0.8, 0.6, 0.4 and 0.2. This weighting gives a nonnegative variance estimate. At there are no cross-date terms, giving the White heteroskedasticity-robust case.
Choose and report a bandwidth
The bandwidth should grow slowly with sample size. One starting rule takes the integer part of , giving 3 at 50 observations, 4 at 100 and 5 at 400. Frequency-based choices often use 1 or 2 annual lags, 4 or 8 quarterly lags, and 12 or 24 monthly lags. The point is to include relevant persistence without making distant covariance estimates too noisy. Report the choice and check nearby choices; selecting it to obtain significance distorts inference.
For 100 quarterly observations, a slope of 0.30 with usual standard error 0.10 has t statistic 3.0. A Newey–West standard error of 0.16 with four lags gives . Compared with a conventional two-sided 5% reference near 1.98 at 98 degrees of freedom, the HAC result is no longer significant. HAC inference remains a large-sample approximation, even if software reports a t reference distribution.
Match the remedy to the problem
HAC works under suitable weak dependence and contemporaneous exogeneity; strict exogeneity is unnecessary. It allows feedback into future regressors. It cannot repair omitted-variable bias, spurious levels regressions or a lagged outcome correlated with the current error. In a dynamic model, add the relevant lags and test the remaining errors before treating an inference correction as sufficient.
If strict exogeneity is credible and an AR error specification fits, FGLS can gain efficiency. OLS with HAC is less dependent on a specific error model. HAC standard errors often rise when errors and regressors both persist positively, but they can fall and can be unreliable in small samples with strong dependence.
Stata uses newey y x, lag(4) after declaring time. In R, use lmtest::coeftest(model, vcov = sandwich::NeweyWest(model, lag = 4, prewhite = FALSE)). Python statsmodels can use smf.ols('y ~ x', data=df).fit(cov_type='HAC', cov_kwds={'maxlags': 4}). R otherwise prewhitens by default. Match bandwidths, prewhitening and finite-sample corrections before comparing software results.
Key Takeaways
- HAC changes standard errors and tests while retaining OLS coefficients.
- Newey–West adds weighted covariance terms across dates.
- Bandwidth zero gives heteroskedasticity-robust inference without serial-correlation terms.
- HAC needs consistent coefficients and suitable weak dependence.
- Report bandwidth and check sensitivity without choosing it for significance.
5Make and judge basic forecasts
A forecast uses the information available at one date to predict what comes next. Build forecasts from lagged outcomes and other predictors, then carry the calculation forward when future outcomes are unknown. Model choice balances fit against extra parameters, while honest evaluation uses later observations withheld from estimation. Forecast uncertainty includes future shocks as well as estimation error, so a useful prediction needs an interval and a benchmark.
5.1 Forecast with autoregressive and distributed-lag models
A forecast predicts using information available at date , the forecast origin. The number of periods ahead, , is the horizon. Writing makes the information cutoff explicit. A predictor observed later cannot enter an honest forecast made at .
Forecast from observed lags
An AR(p) uses the outcome's own history:
For the quarterly inflation equation and latest inflation 3.2%, the one-step forecast is percent. The next innovation is unpredictable, so its forecast is zero.
For two steps, the needed future outcome is unknown. Substitute the first forecast: . The three-step forecast is about 2.74. Stable AR forecasts move toward the fitted mean, here about 2.57%. A driftless random walk instead forecasts the last observed level at every horizon.
An autoregressive distributed lag model, or ADL, adds lags of another predictor. If , with and , the next forecast is . Every input is observed at the origin. Further horizons may need forecasts of future predictor values.
A static equation with current needs to predict next period's outcome. If that input is supplied as a scenario, the forecast is conditional on it. If it must be predicted, its uncertainty adds to the outcome forecast's uncertainty.
Choose lag length on a common sample
Additional lags reduce in-sample SSR but cost parameters and observations. For an AR(p) with an intercept, compare
Choose the smallest criterion value, using the same dates for every candidate. Otherwise a difference could reflect the observations used instead of the model. With 100 observations and SSR values 120, 110, 107 and 106.5 for lag orders one through four, BIC values are about 0.274, 0.233, 0.252 and 0.293. BIC chooses two lags. AIC values are about 0.222, 0.155, 0.148 and 0.163, choosing three. BIC penalizes each extra parameter more heavily at this sample size.
Extend known calendar patterns
A trend-seasonal model forecasts by advancing time and setting the appropriate dummies. For estimated through date 80, date 81 is a first quarter. Its forecast is .
Prediction does not require every coefficient to measure a causal effect. It does require the predictive relationship to remain useful after the origin. Changes in policy or behavior can break an old pattern. A strong in-sample fit or a causal-sounding interpretation does not establish future accuracy; later observations provide the test.
Key Takeaways
- Use only information available at the forecast origin.
- Iterate multi-step forecasts by replacing unknown future outcomes with forecasts.
- Future explanatory variables may need their own forecasts or explicit scenarios.
- Choose the minimum AIC or BIC on a common estimation sample.
- Stable predictive patterns matter even when coefficients are not causal.
5.2 Measure forecast uncertainty and compare forecasts
A point forecast gives one predicted value. Its usefulness also depends on how far the realized value can fall from it. Define the forecast error as actual minus predicted:
A positive error means underprediction. For a correctly specified one-step model with known predictors, uncertainty comes from the future innovation and estimated coefficients. Forecasted future predictors add another source of error.
Express error in the outcome's units
The mean squared forecast error is . Its square root, RMSFE, is in the same units as the outcome. For a long estimation sample, the standard error of the regression can approximate one-step RMSFE because coefficient-estimation uncertainty is relatively small. It still leaves future innovations unpredictable.
For approximately normal forecast errors, a 95% forecast interval is
With a forecast of 2.98% and RMSFE of 0.8 percentage points, the margin is 1.568 points, giving about 1.41% to 4.55%. A confidence interval for the conditional mean omits the future innovation and is narrower. Using it as an interval for the realized outcome understates uncertainty. The forecast interval relies on a stable model and an appropriate error distribution; 95% coverage is not a guarantee for one date.
Increase the horizon
Even with known AR(1) coefficients, a two-step error contains two innovations. Its variance is . At innovation standard deviation 0.8 and persistence 0.65, two-step RMSFE is . For a stable AR(1), longer-horizon uncertainty approaches the unconditional standard deviation, here , ignoring estimation error. Long-horizon forecasts can approach a fixed mean while their intervals remain wide.
Evaluate forecasts on unseen dates
Hold back the final observations. Estimate each candidate using earlier data and compare forecasts over the same held-back dates. In pseudo out-of-sample evaluation, repeatedly estimate up to an origin, forecast the next date and move the origin forward. This reproduces the information cutoff a real forecaster faces.
For eight forecast errors 0.3, −0.5, 0.2, 0.6, −0.1, −0.4, 0.5 and −0.2, squared errors total 1.2. RMSE is , mean absolute error is 0.35 and mean error is 0.05. A competing RMSE of 0.69 on the same dates is worse. Small mean error alone is insufficient because positive and negative misses cancel.
Compare against a no-change forecast or sample-mean benchmark. Adding regressors always improves or preserves in-sample SSR, but it can worsen held-back RMSFE through overfitting. Information criteria and out-of-sample comparison answer different parts of this problem: one penalizes model size, while the other measures actual predictive performance at later dates.
Key Takeaways
- Forecast error is actual minus predicted; RMSFE measures its typical scale.
- Forecast intervals include future innovations as well as estimation uncertainty.
- AR forecast uncertainty grows with the horizon even as point forecasts approach the mean.
- Evaluate models and benchmarks on the same held-back dates.
- A small average error can hide large misses of opposite signs.
- In-sample fit can improve while forecast accuracy deteriorates.
Regression with Time Series Data examples
1From dated observations to delayed effects
14 steps
- 1IntroductionRead the timing before the slope
A monthly or quarterly regression connects observations in a particular order. You will first align dates and choose a change measure, then interpret a same-period relationship and follow a response through its lags. Keep the units beside each calculation: an index-point change, a percentage change and a percentage-point change answer different questions.
- 2ExampleAlign current and earlier values
Imagine a quarterly production index recorded for 80 consecutive dates. The first lag at date three is the value at date two; the second lag is the value at date one.
A regression using two lags starts at date three and has 78 usable observations. A missing calendar quarter needs attention before making row-based lags: the previous row must represent the previous quarter.
- 3ExplanationChoose the change you want
A first difference subtracts the previous value and keeps the original units. If an index moves from 500 to 506, the difference is 6 points; percentage growth is percent.
Log growth is . It closely approximates the percentage here because the change is small. The approximation becomes less accurate for a large proportional jump.
- 4ChallengeName the unit of a rate change
A reported rate falls from 8% to 7.2%. What is its change in percentage points, and what is its percentage change?
---reveal---
The change is −0.8 percentage points. Relative to the starting rate it is percent. Subtracting the displayed rates gives a percentage-point change; dividing that change by the starting rate answers the percentage-change question.
- 5ConnectionLook for repeated information
Autocorrelation asks how strongly a series is correlated with its own earlier values. A correlogram displays this relationship at several lags.
An output level can remain close to last quarter’s level while its growth rate changes sharply. Levels and changes therefore carry different persistence patterns. This is why transforming a series can affect the assumptions behind the regression, as well as its units.
- 6ExampleRead a static equation
Consider , where both rates are recorded in percent. At unemployment of 6%, fitted inflation is percent.
The slope associates a one-percentage-point higher unemployment rate with inflation 0.45 points lower in the same year. The word “same” matters: this equation contains no separate delayed response.
- 7Key InsightSeparate the dummy from its causal story
A post-policy dummy marks a shift between earlier and later periods, holding the included controls fixed. It also captures uncontrolled changes that start at the same time.
If a supply improvement coincides with the policy, the dummy can reflect both. Calling its coefficient a causal policy effect requires an argument that separates those coinciding influences. A small standard error alone cannot provide that separation.
- 8ChallengeInterpret a contemporaneous elasticity
A static log-log model estimates a price coefficient of −0.25. What approximate same-period change in demand accompanies an 8% higher price, holding other predictors fixed?
---reveal---
Demand is about 2% lower because . This is a contemporaneous elasticity. If relevant delayed responses are omitted, the static slope generally isolates neither the impact nor the long-run response.
- 9ExplanationGive each delay its own coefficient
An FDL(2) contains current price and two price lags. Let their coefficients be 2, 5 and −1. For a temporary one-unit rise, the outcome changes by 2 immediately, 5 next period and −1 two periods later.
After that, the changed price has moved beyond the final included lag and its effect is zero. The lag distribution shows when the response arrives; here the largest response is delayed one period.
- 10ExampleKeep the change in place
Now keep that price one unit higher permanently. In the first period only current price differs, so the response is 2. Next period both current price and its first lag differ, giving .
From the third period onward all three terms differ, giving each period. This eventual response is the long-run propensity. It is a level difference that persists, not another increase of 6 every period.
- 11ChallengeTrack a temporary change
Using current and lag coefficients 2, 5 and −1, price rises by 3 units for one period only. What are the responses in the next two periods after the rise?
---reveal---
They are and . Multiply the temporary change by the coefficient for each requested lag. Adding coefficients would instead describe the accumulated response while a permanent change remains in place.
- 12TipFind uncertainty for the total
The LRP adds coefficient estimates, so its standard error must include their covariances. Adding the individual standard errors or t statistics is invalid.
You can ask software for the linear combination, or rewrite the model so its current-predictor coefficient is the LRP. With two lags, the other regressors become and . This changes the parameterization, not the fitted relationship.
- 13ChallengeCombine units, timing and the total
A quarterly FDL of an output index on an input index has coefficients 0.5, 1 and 0.25. What is the eventual response to an input index that stays 4 points higher? Would a static regression show this timing?
---reveal---
The eventual response is output-index points, reached after two quarters. A static model has no separate lag terms, so it cannot display this adjustment path.
- 14RecapRead a fitted effect as a path
For a fitted time-series effect, identify the variable’s units, the date of the change and whether the change persists. Trace individual coefficients for a temporary change and cumulative coefficients for a permanent one. Use the covariance of the estimated coefficients when testing their total. These choices determine which economic response the regression answers.
2Decide when time-series OLS works
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAsk what makes OLS reliable
- 2ExplanationStart with the unbiasedness conditions
- 3ExampleFollow a shock into the future
- 4ChallengeFind the failure with a lagged outcome
- 5ConnectionAdd the inference assumptions
- 6ExplanationSeparate stability from fading memory
- 7ExampleCompare an MA and an AR
- 8ChallengeCalculate stable-process moments
- 9Key InsightSee what changes at persistence one
- 10ExplanationReplace strict with current-date exogeneity
- 11ExampleCheck what history is missing
- 12ChallengeJudge a dynamic OLS estimate
- 13ChallengeCombine the timing and process checks
- 14RecapChoose the guarantee you can defend
3Separate economic relationships from time patterns
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionRemove the right time pattern
- 2ExplanationDistinguish change from growth
- 3ExampleCompare movements around trends
- 4ChallengeJudge fit beyond time
- 5ExplanationGive seasons a base
- 6ExampleRead two seasonal comparisons
- 7ChallengeCheck the seasonal specification
- 8TipSeparate seasonal means from error dependence
- 9ExplanationWatch shocks accumulate
- 10Key InsightTreat strong significance as a warning
- 11ChallengeChoose a persistence remedy
- 12ConnectionKeep the cost of differencing visible
- 13ChallengeDistinguish two rising paths
- 14RecapMatch the adjustment to the process
4From residual patterns to a defensible correction
19 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionLet the error pattern guide the response
- 2ExplanationProtect the right OLS claim
- 3ExampleScale variance and standard error differently
- 4ChallengeDecide whether coefficients are threatened
- 5ExplanationUse DW for its intended question
- 6ExampleBuild the BG regression
- 7ExampleCalculate a dropped-date LM statistic
- 8ChallengeChoose the test for a dynamic model
- 9ExplanationRemove a specified AR error pattern
- 10ExampleTransform one pair of observations
- 11ConnectionRecover the first observation
- 12ChallengeUpdate FGLS without restarting it
- 13TipDifference with a purpose
- 14ExplanationKeep slopes and correct their uncertainty
- 15ExampleChoose which lag covariances enter
- 16ChallengeRead a HAC significance change
- 17ConnectionCompare HAC with FGLS
- 18ChallengeChoose a complete response
- 19RecapResolve specification before precision
5Forecast forward and test accuracy
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMake a forecast that could have been made
- 2ExampleForecast one quarter ahead
- 3ExampleIterate into an unknown future
- 4ConnectionName future-predictor assumptions
- 5ChallengeUse an ADL without future leakage
- 6TipPenalize extra lags on the same dates
- 7ExplanationInclude uncertainty from future shocks
- 8ExampleBuild an interval for the realized value
- 9ChallengeTrace uncertainty across horizons
- 10ExplanationKeep later dates out of estimation
- 11ChallengeCompare error size with error direction
- 12ChallengeJudge a strong-fitting model
- 13RecapReport the forecast as a dated prediction
Regression with Time Series Data practice questions
Set 1: Prepare variables and trace delayed effects10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Check assumptions, trends and seasonal patterns10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Diagnose persistence and choose residual tests10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Correct inference and build forecasts10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Reason through complete time-series decisions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
ADL model
AR(1) errors
Asymptotic normality
Autocorrelation
Auxiliary regression
B
Bandwidth
Bartlett weights
Base season
Benchmark forecast
Breusch–Godfrey test
C
Cochrane–Orcutt method
Cointegration
Conditional forecast
Consistency
Contemporaneous effect
Contemporaneous exogeneity
Covariance stationarity
D
Detrended R-squared
Detrending
Drift
Durbin–Watson bounds
Durbin–Watson statistic
Dynamic completeness
Dynamic multiplier
E
Efficiency
Elasticity
Endogeneity
Event dummy
Exponential trend
F
Feasible GLS
Feedback
Finite distributed lag model
First difference
Forecast error
Forecast horizon
Forecast interval
Forecast origin
H
HAC standard errors
Half-life
Homoskedasticity
I
I(1) series
Impact propensity
Information criterion
Innovation
Iterated FGLS
L
Lag
Lag distribution
Linear trend
Log difference
Long-run propensity
M
MA(1) process
N
Newey–West estimator
O
Overfitting
P
Perfect collinearity
Prais–Winsten method
Prewhitening
Pseudo out-of-sample evaluation
Q
Quasi-differencing
R
Random walk
Real value
Reparameterization
Residual correlogram
RMSFE
S
Seasonal adjustment
Seasonal difference
Seasonal dummy
Seasonality
Sequential exogeneity
Serial correlation
Spurious regression
Stable AR(1) process
Static model
Stochastic process
Strict exogeneity
Strict stationarity
T
Time series
Trend-stationary process
U
Unbiasedness
W
Weak dependence
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.