Skip to main content

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.

Macro by MarkMacro by Mark
  • Home
Loading…
Loading…
← Models
MacroConceptsPolicyModels

HP filter and Beveridge-Nelson decomposition Model

Trend-cycle decomposition for a single macro series, comparing smooth HP trend extraction with Beveridge-Nelson permanent-transitory decomposition.

OverviewGraphMathReferences

Graph workspace

Original series with HP trend and BN trend overlay (2-panel)

Graph workspace

The defining comparison is how differently the HP and BN methods decompose the same series. The top panel shows the original data with both trends overlaid. The bottom panel shows the two implied cyclical components. This layout makes the smooth-HP-trend vs. volatile-BN-trend contrast immediately visible.

Chart axis metadata
xTime (quarters)quarters · 1 to TySeries level (top) / Cycle amplitude (bottom)index level · data-dependent
Observed series with the HP and BN
trends static chart preview showing Observed series, HP trend, BN permanent component
Cycles: what each decomposition calls
transitory static chart preview showing HP cycle, BN transitory component, Zero
xTime (quarters)quarters · 1 to TySeries level (top) / Cycle amplitude (bottom)index level · data-dependent

Current results

HP cycle variance share

Explain: HP cycle variance share
Var(ctHP)  /  Var(yt)\text{Var}(c_t^{HP}) \;/\; \text{Var}(y_t)Var(ctHP​)/Var(yt​)

Fraction of total series variance captured by the HP cyclical component. Larger values indicate more variation is attributed to the business cycle rather than the trend.

0.0064

proportion

BN cycle variance share

Explain: BN cycle variance share
Var(ctBN)  /  Var(yt)\text{Var}(c_t^{BN}) \;/\; \text{Var}(y_t)Var(ctBN​)/Var(yt​)

Variance of the BN transitory component over the variance of the series. Much smaller than the HP cycle share when growth is only moderately persistent, reflecting the BN tendency to attribute variation to the permanent component; as ϕ\phiϕ nears 1 the BN trend overshoots the series, the offsetting transitory component becomes the larger of the two, and the ratio can exceed 1. The BN trend and transitory component are driven by the same shocks, so they can also move against each other: with θ\thetaθ within a few hundredths of its -0.99 end (-0.99 to -0.97) and no drift, where the BN trend is almost flat, the ratio can edge just above 1 (by up to about 4 percent) whatever ϕ\phiϕ is below about 0.9.

0.0006

ratio of variances (can exceed 1)

BN long-run multiplier

Explain: BN long-run multiplier
ψ(1)=(1+θ)/(1−ϕ)\psi(1) = (1 + \theta) / (1 - \phi)ψ(1)=(1+θ)/(1−ϕ)

The cumulative impulse response of yty_tyt​ to a unit innovation. When ψ(1)\psi(1)ψ(1) is large, permanent shocks dominate and the BN trend is volatile. When ψ(1)\psi(1)ψ(1) is near zero, transitory shocks dominate.

1.40

multiplier

Trend correlation (HP vs BN)

Explain: Trend correlation (HP vs BN)
Corr(τtHP,  τtBN)\text{Corr}(\tau_t^{HP},\; \tau_t^{BN})Corr(τtHP​,τtBN​)

Correlation between the two trend estimates. High correlation means the methods agree on the broad trend shape despite different smoothness. Low correlation signals a major disagreement about what constitutes the trend.

0.9958

correlation

Controls

1600
Explain: How smooth the trend is

Penalty on a bumpy trend line: higher settings force a smoother trend.

Increasing λ\lambdaλ makes the blue HP trend smoother and pushes more variation into the blue HP cycle in the bottom panel.

0.5
Explain: Momentum in growth rates

Higher settings make swings in the growth rate carry over for longer.

Increasing ϕ\phiϕ makes the red BN trend more volatile and, beyond about 0.7, the red BN transitory component much larger: the BN trend overshoots the data and the transitory component offsets it.

-0.3
Explain: MA(1) coefficient

Moving-average coefficient in Δyt\Delta y_tΔyt​. Negative θ\thetaθ reduces the long-run multiplier; θ\thetaθ near -1 makes the BN transitory component large.

Moving θ\thetaθ toward -1 shrinks the red BN trend's volatility until the trend is almost a straight line, and the red BN cycle carries the series' wiggles instead. Moving θ\thetaθ toward +1 makes the BN trend more volatile, and the BN cycle grows with it rather than shrinking, since the BN cycle carries −θεt/(1−ϕ)-\theta \varepsilon_t / (1 - \phi)−θεt​/(1−ϕ): at the other defaults its standard deviation is about 2.9 at θ=0.99\theta = 0.99θ=0.99, against about 1.0 at θ=−0.99\theta = -0.99θ=−0.99.

0.8
Explain: Size of random shocks

Sets the size of the random shocks, scaling all variation in the generated data.

Higher σ\sigmaσ increases the scatter of gray dots and the amplitude of both trends and cycles.

0.5
Explain: Drift (trend growth)

Sets the average growth rate of the series.

Higher drift tilts both trends upward. The cycles are unaffected in amplitude but the level of the top panel changes.

Keep going

Read next

Continue with a related concept, model, or example.

Theory model

IS-LM Model

a well-connected theoretical model two steps from here

New angle: theoretical model →
Macro by Mark
Help
Privacy PolicyTerms of UseEthics and Compliance

© 2026 Mark Jayson Nation LLC