Detrending
Also known as · detrended · trend removal · Frisch-Waugh-Lovell theorem · FWL
Detrending removes a deterministic time trend from a series by regressing it on and keeping the residuals. The residual series — the part of not explained by the trend — is then used for substantive analysis. By the Frisch-Waugh-Lovell theorem, regressing detrended on detrended gives the exact same coefficient as regressing on and together.
When to use
Detrend any time series before correlating it with another trending series — otherwise you risk Spurious Regression. The choice of trend functional form matters: linear , quadratic , exponential (use ), or non-parametric (Hodrick-Prescott filter). PS_3's HNC analysis adds as a regressor in Q5 to detrend log_nox against the secular vehicle-fleet growth — the FWL theorem says this is equivalent to detrending both sides first.