A regression model for general time series data explains a series using a mix of time-based structure and external predictors: a trend in time, seasonal indicators, explanatory series such as temperature, and sometimes lagged y or lagged x. The same residual discipline as the rest of this unit still applies: fit, check leftovers, then choose OLS, GLS or WLS as the error pattern suggests.
A regression model for general time series data explains a series using a mix of time-based structure and external predictors: a trend in time, seasonal indicators, explanatory series such as temperature, and sometimes lagged y or lagged x. The same residual discipline as the rest of this unit still applies: fit, check leftovers, then choose OLS, GLS or WLS as the error pattern suggests.
Conceptual electricity demand: Demand = trend effect + seasonal effect + temperature effect + error. The trend captures slow growth, the seasonal term captures winter vs summer (or weekday vs weekend), and temperature captures weather beyond the calendar average.
| Issue | Why it matters in regression |
|---|---|
| Autocorrelation | Ordinary SEs and prediction intervals can be wrong; consider GLS-type errors or extra lags |
| Seasonality | A trend-only regression leaves a repeating leftover wave |
| Non-stationarity | A drifting level may need a trend, differencing, or another structure; do not ignore a wandering y |
| Changing variance | Fan-shaped residuals may suggest WLS or a variance transformation |
Ordinary OLS regression is often a first fit, not the last word. If residuals are still autocorrelated, additional treatment is needed before treating t-tests and forecast bands as trustworthy. Multivariate systems of several series together belong to a later unit; this topic stays with one response and its predictors.
| Topic | Short definition / exam point |
|---|---|
| Time series regression | Explain y using predictors, keeping time order; errors may be correlated. |
| Least squares / OLS | Choose coefficients to minimize Σ ei2 with equal weights. |
| Statistical inference | SE, t / p-value, confidence interval; significance ≠ practical importance. |
| Prediction | New ŷ at new x; prediction interval is generally wider than CI for the mean. |
| Residual vs error | e = y − ŷ (sample leftover); ε is the unobservable model shock. |
| Model adequacy | Residual plots, Q-Q (intro), residual ACF; fitting ≠ checking. |
| Variable selection | Forward / backward / stepwise; adjusted R2, AIC, BIC; more x is not always better. |
| GLS | Uses an error covariance structure (correlation and/or unequal variance). |
| WLS | Σ wiei2; higher weight for more precise observations. |
| General TS regression | Trend + season + external x (+ lags); then diagnose and forecast. |
OLS: simple independent equal-variance errors. WLS: independent errors with different variances (weights). GLS: general covariance, including autocorrelation. WLS is a special case of the GLS idea when correlation is ignored and only variances differ.