- Dynamic harmonic regression combines Fourier features for repeating seasonal shapes with ARIMA errors for remaining temporal dependence.
- It is useful for long or multiple seasonal periods.
| Concept | What it means | Northstar example |
|---|---|---|
| Split the jobs. |
| Fourier and event features explain Northstar's repeating calendar shape; ARIMA errors handle remaining serial dependence after that regression. |
| Choose seasonal complexity. |
| Northstar selects the number of seasonal waves inside validation rather than choosing the order that best fits the held-out Black Friday period. |
| Seasonal coefficients are typically fixed. |
|
|
Waves for seasons. ARIMA for the rest.
Fourier terms describe Northstar's repeating annual shape. A regression alone assumes the remaining errors are unrelated; DHR adds an ARIMA error model for serial dependence. Toggle the AR correction and compare the held-out forecast.
The question it answers: How does dynamic harmonic regression split a seasonal shape from the autocorrelation left behind?
Held-out absolute error by horizon · lower is better
The AR(1) correction uses the last training residual and lets its expected effect decay at rate ρ. It reduces the held-out error and the lag-one residual correlation in this constructed example.
Fine print & method
Constructed daily sales: three Fourier pairs for a smooth annual shape plus an AR(1) error process with ρ = 0.85. Fourier coefficients and the single AR coefficient are estimated only on the first 730 days; the final 90 days are held out. This is a deliberately small DHR demonstration, not a full ARIMA/SARIMAX fit, model-selection procedure, or causal analysis. The displayed ACF after correction is the lag-one correlation of prewhitened residuals. Real data need seasonal-order, stationarity, event, and predictor checks.