Cookies on Macro by Mark.We use essential cookies for sign-in, locale, and security. With your permission, we also use optional cookies for preferences, for analytics, and for advertising measurement with the Meta (Facebook) Pixel. Read our cookie policy.
State-space decomposition that separates a macro series into latent trend, cycle, seasonal, and irregular components.
Follow the same equations and assumptions one section at a time or in a continuous reading.
Hover or focus a symbol defined in this model to find its exact matches. Select it to keep the highlight; Escape clears the selection.
The UCM writes the observed series as a sum of latent components. To estimate these components, we stack their individual transition equations into a single state-space system suitable for the Kalman filter. The derivation gives the state-space matrices for the full model: local linear trend, stochastic cycle, trigonometric seasonal, and irregular.
The key insight is that each component contributes a block to the state vector and a corresponding block to the transition matrix. The measurement equation simply sums the relevant state elements. The resulting system is linear and Gaussian, so the Kalman filter produces the exact conditional mean and covariance of the latent state.
The observation equation. Each component is latent; only is observed.
Local linear trend. The level follows a random walk with drift , and the drift itself follows a random walk.
Stochastic cycle. The rotation matrix generates sinusoidal dynamics at frequency ; the damping factor ensures stationarity. The auxiliary state is needed to produce the rotation.
Trigonometric seasonal. Each harmonic pair rotates at frequency . The seasonal component is .
The stacked state-space form. T is the block-diagonal transition matrix, R selects the disturbance locations, Z picks out the trend level, cycle, and seasonal-sum elements. This is the system the Kalman filter operates on.
The measurement vector selects (first element), (third element), and , etc. (every other seasonal state). Zeros multiply the auxiliary states , and .
UCM-to-ARIMA mapping
Every UCM implies a reduced-form for . The local linear trend + irregular gives ARIMA(0,2,2). Adding a cycle gives ARIMA(2,2,4) under typical parameterizations. This mapping is many-to-one: the UCM imposes structure that the ARIMA does not.
State dimension for quarterly data
With : (trend, cycle, and the seasonal harmonics at ) when full pairs are carried; dropping the redundant Nyquist companion ( for ) gives the minimal seasonal dimension and . For monthly data (): with full pairs, or minimal.
The state is updated at observed dates. A line between dates is a display convention unless the model specifies behavior inside the interval.
Read adjacent points as adjacent sample calculations. Smoothness is a property of the estimator, not of the chart line.
Do not infer within-period behavior from a sampled estimator.
The state updates at sample dates. The visible line is only as smooth as the estimated state sequence.
Observed series can move differently from latent states because measurement noise and loadings matter.
Proof lineage
Typed relationships across models