Fit OLS, inspect residual autocorrelation, then fit GLS with an AR(1)-like error covariance. Compare coefficients and explain what GLS is trying to do.
Fit OLS, inspect residual autocorrelation, then fit GLS with an AR(1)-like error covariance. Compare coefficients and explain what GLS is trying to do.
Generalised least squares allows a non-scalar error covariance. For time series, a common teaching case is AR(1) errors: the residual at t depends on the residual at tâ1. GLS (or feasible GLS) aims for efficient estimates and more honest SEs under that covariance. It still assumes the mean model and the error model are roughly right. It is not a multivariate VAR, and it is not automatic proof that autocorrelation is gone.
Constructed 40 observations: linear trend plus AR(1) errors. Teaching data, not a public download.
OLS slope and SE, a residual ACF that should show lag-1 dependence for this construction, then a GLSAR coefficient table. GLS SEs often differ from OLS SEs. Do not memorise a single 'correct' slope.
OLS described the trend but treated errors as independent. GLS adjusts for AR(1)-like dependence. Students should still plot GLS residuals. Regression with time-series errors is a modelling strategy, not a claim that OLS was 'wrong' as a trend sketch.
GLS can account for correlated errors. Ordinary regression does not automatically solve autocorrelation.