Search

Search papers and lessons

Smooth Transition Autoregression

Level 4 · 10 min read

A smooth transition autoregression lets a time series follow one dynamic rule when it is low and another when it is high, blending the two smoothly with a logistic weight.

On this page

  • Colour = topic mix
  • Discrete math
  • Probability
  • Calculus
  • Linear algebra
  • Losses & regularization
  • Neural network basics
  • Sign in to see your progress

TL;DR

A smooth transition autoregression, or STAR model, is a time-series model whose dynamics change with the state of the series. When the series is in one kind of state, it follows one autoregressive rule. When it is in another, it follows a different rule. The two rules are blended by a smooth S-shaped weight, so the change from one regime to the other is gradual rather than a sudden switch.

Where you'll see it: in macroeconomic studies of business cycles, where growth may recover faster from a boom than from a slump, and in any series whose persistence depends on its own level.

Intuition

Start from a question you already ask

Think of a river that rises and falls. In normal flow, a rise fades quickly because the water spreads out over the banks. In flood, a rise persists for days because the whole valley is saturated. A single fixed rule cannot describe both behaviours well. The fix is to let the rule depend on how high the river is.

A Vector Autoregression of a single series is an Autoregressive Model: today's value is a weighted sum of past values, with one set of weights. A STAR model keeps that structure but allows two sets of weights, and it chooses between them based on the level of the series itself.

Why smooth rather than sharp

A sharp threshold model says: below level cc use rule A, above cc use rule B. That creates a jump, and the jump is hard to estimate. A smooth transition replaces the jump with a continuous weight that moves from 0 to 1 as the series passes cc. The weight is a logistic sigmoid, the same S-shaped curve that turns scores into probabilities. Near cc the two rules are mixed. Far below cc only rule A is in force, and far above only rule B.

−4−3−2−10123400.20.40.60.81transition variable, minus its thresholdweight on the high-state rule
  • gamma = 1
  • gamma = 4
The weight G moves from 0 to 1 around the threshold. A larger gamma makes the switch sharper, approaching the sudden threshold model.

The math

The model

Definition: Logistic STAR(1) model

Let yty_t be the series, ztz_t a transition variable (often zt=yt−1z_t = y_{t-1} or a lag of yy), cc a location parameter and γ>0\gamma \gt 0 a speed parameter. The transition weight is

G(zt)=11+exp⁡ ⁣(−γ(zt−c)),G(z_t) = \frac{1}{1 + \exp\!\big(-\gamma (z_t - c)\big)},

and the model is

yt=(ϕlow+(ϕhigh−ϕlow) G(zt)) yt−1+εt,y_t = \big(\phi_{\text{low}} + (\phi_{\text{high}} - \phi_{\text{low}})\, G(z_t)\big)\, y_{t-1} + \varepsilon_t,

where εt\varepsilon_t is a shock with mean zero. For simplicity there is no intercept, so yty_t is measured as a deviation from its long-run mean and cc is a threshold in those units.

Read it in pieces. ϕlow\phi_{\text{low}} is the autoregressive coefficient used when G≈0G \approx 0, and ϕhigh\phi_{\text{high}} is the one used when G≈1G \approx 1. The current coefficient is a weighted average of the two, with weight GG. The speed γ\gamma controls how quickly the weight moves: large γ\gamma means a sharp switch. The location cc says at what value of zz the two regimes are equally mixed, where G=0.5G = 0.5.

Write ϕ(z)=ϕlow+(ϕhigh−ϕlow)G(z)\phi(z) = \phi_{\text{low}} + (\phi_{\text{high}} - \phi_{\text{low}}) G(z) for the coefficient as a function of the transition variable. The model is then just an AR(1) with a coefficient that moves with zz.

Two limits

When z<<cz \lt\lt c and γ\gamma is moderate, G→0G \to 0 and the model is AR(1) with coefficient ϕlow\phi_{\text{low}}. When z>>cz \gt\gt c, G→1G \to 1 and the coefficient is ϕhigh\phi_{\text{high}}. In between, the coefficient slides smoothly. Setting ϕlow=ϕhigh\phi_{\text{low}} = \phi_{\text{high}} removes the nonlinearity and gives back an ordinary AR(1), so the model nests the linear one.

Stationarity

The coefficient ϕ(z)\phi(z) is always a weighted average of ϕlow\phi_{\text{low}} and ϕhigh\phi_{\text{high}}, because GG lies between 0 and 1. If both endpoints lie inside (−1,1)(-1, 1), then every value of ϕ(z)\phi(z) does too. That is a sufficient condition for the series to be stationary: no regime can push the series off to infinity. If one endpoint is at or beyond ±1\pm 1, the question becomes harder and depends on where the series spends its time, so the check must be done with care.

Persistence and half-life

For a single AR(1) with coefficient ϕ\phi in (−1,1)(-1, 1), a shock halves after hh periods where ϕh=0.5\phi^h = 0.5, so

h=log⁡0.5log⁡ϕ.h = \frac{\log 0.5}{\log \phi}.

This is the half-life of a shock. Each regime has its own half-life, and a STAR model lets the half-life depend on the state of the series.

Estimation

The parameters ϕlow\phi_{\text{low}}, ϕhigh\phi_{\text{high}}, γ\gamma and cc enter nonlinearly, because γ\gamma and cc sit inside the sigmoid. Estimation is therefore nonlinear least squares, found by a numerical search. The model is usually fitted by first choosing the transition variable and then searching over γ\gamma and cc. Given γ\gamma and cc, the two ϕ\phi values can be solved by linear least squares, because they enter linearly once GG is fixed.

Worked examples

Example
1. One step, the weight at two values (tiny)

Set ϕlow=0.2\phi_{\text{low}} = 0.2, ϕhigh=0.9\phi_{\text{high}} = 0.9, c=0c = 0 and γ=1\gamma = 1, so the coefficient is ϕ(z)=0.2+0.7 G(z)\phi(z) = 0.2 + 0.7\, G(z) with G(z)=σ(z)G(z) = \sigma(z).

  1. At z=0z = 0: G=σ(0)=0.5G = \sigma(0) = 0.5, so ϕ(0)=0.2+0.7×0.5=0.55\phi(0) = 0.2 + 0.7 \times 0.5 = 0.55.
  2. At z=2z = 2: G=1/(1+e−2)≈1/1.1353≈0.8808G = 1 / (1 + e^{-2}) \approx 1 / 1.1353 \approx 0.8808, so ϕ(2)=0.2+0.7×0.8808≈0.8166\phi(2) = 0.2 + 0.7 \times 0.8808 \approx 0.8166.
  3. Take yt−1=2y_{t-1} = 2, so zt=2z_t = 2 and yt=0.8166×2≈1.6331y_t = 0.8166 \times 2 \approx 1.6331, ignoring the shock.

Interpretation: at a high value of the series the coefficient is close to the high-regime value, so the series keeps most of its level. The model did not need a separate rule for "high" written in advance. The weight did the switching.

Example
2. Two steps from a low value (the standard case)

Use the same parameters, ϕ(z)=0.2+0.7 σ(z)\phi(z) = 0.2 + 0.7\,\sigma(z), with the transition variable equal to the lagged value. Start at y0=−2y_0 = -2 and set the shocks to zero.

  1. Step 1: z1=−2z_1 = -2. G=σ(−2)=1/(1+e2)≈1/8.3891≈0.1192G = \sigma(-2) = 1 / (1 + e^{2}) \approx 1 / 8.3891 \approx 0.1192. So ϕ=0.2+0.7×0.1192≈0.2834\phi = 0.2 + 0.7 \times 0.1192 \approx 0.2834, and y1=0.2834×(−2)≈−0.5669y_1 = 0.2834 \times (-2) \approx -0.5669.
  2. Step 2: z2=−0.5669z_2 = -0.5669. G=σ(−0.5669)=1/(1+e0.5669)≈1/2.7628≈0.3620G = \sigma(-0.5669) = 1 / (1 + e^{0.5669}) \approx 1 / 2.7628 \approx 0.3620. So ϕ≈0.2+0.7×0.3620≈0.4534\phi \approx 0.2 + 0.7 \times 0.3620 \approx 0.4534, and y2≈0.4534×(−0.5669)≈−0.2570y_2 \approx 0.4534 \times (-0.5669) \approx -0.2570.
  3. Check the direction: the series moved from −2-2 to −0.57-0.57 to −0.26-0.26. It is closing in on zero, as a stationary series does.

Interpretation: in the low state the series returns toward its mean quickly, because the coefficient is small. As the series rises, the coefficient rises too, so the pull back weakens. This is the behaviour the model is built to capture.

Example
3. Business-cycle persistence (realistic in structure)

Suppose a monthly growth series has ϕlow=0.28\phi_{\text{low}} = 0.28 in slump-like states and ϕhigh=0.90\phi_{\text{high}} = 0.90 in expansion-like states. The numbers are illustrative and are not estimated from any real data.

  1. Half-life in the low regime: h=log⁡0.5/log⁡0.28≈−0.6931/−1.2730≈0.55h = \log 0.5 / \log 0.28 \approx -0.6931 / -1.2730 \approx 0.55 months.
  2. Half-life in the high regime: h=log⁡0.5/log⁡0.90≈−0.6931/−0.1054≈6.6h = \log 0.5 / \log 0.90 \approx -0.6931 / -0.1054 \approx 6.6 months.
  3. Both coefficients are in (−1,1)(-1, 1), so the series is stationary by the sufficient check above.
  4. A one-point shock during a slump is almost gone within a month. The same shock during an expansion takes most of a half-year to decay by half.

Interpretation: the model says a shock matters much more for longer when the economy is doing well. A forecaster who uses one average coefficient would get both regimes wrong. A STAR model gets the persistence right in each state, and the transition weight tells the forecaster how much of each regime is in force at the current level.

Tradeoffs and failure modes

SituationWhat goes wrongBetter choice
The series is actually linearThe nonlinear model overfits noise and forecasts worseTest for linearity before fitting, and use an AR or [[arma-model
γ\gamma is very largeThe weight is almost a sudden switch, and the likelihood is flat in γ\gamma, so estimates are unstableUse a sharp threshold model, or check the estimate's sensitivity to starting values
The transition variable is wrongThe regimes do not separate the data, so the fit is poorTry other lags or other variables, and compare fits
Short samplesTwo regimes and four parameters need many observationsUse longer series, or fewer lags
Regime changes are driven by a hidden stateSmooth weights based on the series' own level miss the switchesA Markov-switching model, which treats the regime as a hidden state that follows a Markov Chain

A STAR model is a description of how persistence varies with the level of the series. It is not a theory of why the regime changes, and the estimated threshold should be checked against the economic story rather than taken as a fact.

History

Smooth transition models were developed in the 1990s by Timo Teräsvirta and Clive Granger, who built on the earlier threshold autoregressive models of Howell Tong. Tong's threshold models, from the late 1970s and early 1980s, used a sharp switch between regimes. Teräsvirta and Granger argued that a smooth weight is often more realistic and easier to test for, because a sharp cut point is rarely visible in economic data. Their work gave a systematic way to test for nonlinearity and to choose the transition variable, and it made STAR models a standard tool in applied time-series econometrics.

Recap

A STAR model is an autoregression whose coefficient depends on the level of a transition variable. A logistic weight, the sigmoid, blends two regime coefficients smoothly. The result is a series that is more persistent in one state than in the other, and within each regime the model is an ordinary linear autoregression. Estimation is nonlinear because the speed and location of the switch sit inside the sigmoid. Each regime's half-life follows from its coefficient.

Check yourself

QuestionIn the logistic STAR model, what happens to the coefficient when the transition weight G is 0 and when it is 1?Show answer

When G=0G = 0 the coefficient is ϕlow\phi_{\text{low}}, and when G=1G = 1 it is ϕhigh\phi_{\text{high}}. In between, the coefficient is the weighted average ϕlow+(ϕhigh−ϕlow)G\phi_{\text{low}} + (\phi_{\text{high}} - \phi_{\text{low}})G.

QuestionWith phi_low = 0.2, phi_high = 0.9, c = 0 and gamma = 1, compute the coefficient at z = 0 and the sign of the change at z = -2.Show answer

At z=0z = 0, G=0.5G = 0.5, so the coefficient is 0.2+0.7×0.5=0.550.2 + 0.7 \times 0.5 = 0.55. At z=−2z = -2, G≈0.119G \approx 0.119, so the coefficient is 0.2+0.7×0.119≈0.2830.2 + 0.7 \times 0.119 \approx 0.283. The coefficient falls as zz moves below the threshold, because GG falls and the coefficient moves toward ϕlow\phi_{\text{low}}.

QuestionWhy does choosing gamma large make estimation harder, not easier?Show answer

A large gamma turns the smooth weight into an almost sudden switch. Once gamma is large, small changes in gamma and c barely change the fitted curve, so the likelihood is flat across a wide range of them. The estimates become unstable and depend on starting values, even though the model looks sharper.

QuestionA coefficient of 0.9 implies a half-life of about 6.6 periods. Explain what a coefficient of 0.28 implies and why the difference matters for forecasting.Show answer

A coefficient of 0.28 gives a half-life of about 0.55 periods, so a shock fades within a fraction of a period. The difference matters because a forecaster who ignores the regime would predict the same fading speed everywhere. In an expansion the model predicts that a shock lingers for months, and in a slump it predicts a quick return, so the forecasts for the two states must differ.

Sources