- Introduced by
- Bruce E. Hansen
- Year
- 2000
- Type
- Nonlinear regime-switching regression
What does it do?
Threshold regression is a regression model in which the coefficients take one set of values when a threshold variable is at or below an estimated threshold, and a different set when it is above.
Bruce E. Hansen's (2000) Econometrica paper developed the sample-splitting and threshold-estimation theory for least squares, covering cross-section and time-series observations. The model suits settings where a relationship may change at a tipping point in a continuous variable.
The intuition behind the method
Imagine a relationship that does not stay the same everywhere: below some tipping point the slope is one thing, above it the slope changes. Threshold regression looks for that tipping point in the data, splits the observations into a low regime and a high regime according to a threshold variable, and fits a separate set of coefficients on each side. The split it keeps is the one that leaves the smallest total squared error.
History
Hansen's 2000 Econometrica paper, 'Sample Splitting and Threshold Estimation', developed a statistical theory for threshold estimation in regression with least squares, for cross-section or time-series observations. Threshold estimates were already known to be super-consistent, but a distribution theory useful for testing and inference had not yet been provided. The paper developed an asymptotic distribution theory for the regression estimates, including the threshold, showed that the threshold estimate has a nonstandard distribution, and constructed confidence regions by inverting the likelihood ratio statistic, which it reports are asymptotically conservative.
When to use it
Use threshold regression when the outcome is continuous and you suspect the relationship changes once an observed threshold variable passes an unknown value, so that a single set of slopes would average over two regimes. The threshold variable must determine the regime for each observation, and it should be predetermined or exogenous with respect to the outcome, so that the outcome does not itself drive the regime assignment. Hansen's (2000) theory covers cross-section and time-series observations. Each regime needs enough data to estimate its own coefficients. As a rough practical guide, about 100 observations is often used, but this is a rule of thumb and not a result derived in Hansen (2000); what matters is the number of observations falling in each regime and the range over which the threshold is searched. Do not use it when there is no reason to expect a regime change, when the relationship appears smooth (a smooth-transition or linear model may then be preferable), or when the sample is too small to support two sets of coefficients. The standard inference is derived under a particular error structure; if residual variances may differ across regimes, check which inference method your software applies and whether a heteroskedasticity-robust version is available.
Limitations and considerations
- Needs a reasonably large sample so that each regime contains enough data for stable coefficients. About 100 observations is a rough rule of thumb, not a result from Hansen (2000).
- Inference is derived under a specific error structure; if residual variances differ across regimes, the standard errors and threshold inference may be unreliable, so the error structure should be checked.
- The threshold's distribution is nonstandard, so ordinary t-based intervals do not apply to it; the confidence region is instead obtained by inverting the likelihood ratio statistic.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Lets the slopes differ between regimes defined by a threshold variable, where one linear slope would average over both.
- Estimates the threshold from the data by least squares, and Hansen's (2000) theory gives its nonstandard distribution and a confidence region built by likelihood-ratio inversion.
- Within each regime the coefficients are read like those of a regression fitted to the observations in that regime.
Applications
- Empirical sample splitting on a continuously distributed variable, such as firm size, where the split point is estimated rather than fixed in advance.
- Models of separating and multiple equilibria; the source illustrates its theory with the multiple-equilibria growth model of Durlauf and Johnson (1995).
- Nonlinear time-series analysis, where threshold autoregressive (TAR) models are a popular special case.
- A preliminary step toward more complex switching structures, such as Markov switching and smooth transition threshold models, whose statistical properties are studied first in the threshold case.
- Panel extensions, in which the threshold model is estimated on panel data. For example, a chapter in the Handbook of Financial Econometrics, Mathematics, Statistics, and Machine Learning uses a panel threshold regression to find whether audit quality is impaired once nonaudit services exceed a threshold value (Chapter 22, p. 44).
How it works
How it works
The outcome y is modelled with two sets of slope coefficients, selected by an indicator on the threshold variable q: when q is at or below the threshold γ the coefficients β₁ apply, and when q exceeds γ the coefficients β₂ apply, plus an error term ε. Because the slopes switch at γ, the fitted relationship is piecewise linear in the regressors, so the same predictors can act differently in the two regimes.
Formula
y_i = \beta_1' x_i \, \mathbf{1}(q_i \le \gamma) + \beta_2' x_i \, \mathbf{1}(q_i > \gamma) + \varepsilon_iThe threshold γ is estimated by conditional least squares. For each candidate value the model is fitted, the residual sum of squares S(γ) is recorded, and the value that minimises it is chosen. Because the indicator makes the objective jump as γ changes, the search is over candidate values rather than a standard calculus solution. Hansen (2000) builds the confidence region for γ by inverting the likelihood ratio statistic, which the source reports gives asymptotically conservative regions. An estimated threshold alone does not establish that a regime change exists. The presence of a threshold effect should be tested before the split is interpreted, and because the distribution of the threshold estimate is nonstandard, that test cannot rely on ordinary tables.
Formula
\hat{\gamma} = \arg\min_{\gamma} \; S_n(\gamma) = \sum_i \hat{\varepsilon}_i(\gamma)^2Common pitfalls
- Reporting the estimated threshold as a precise point value and ignoring its confidence region, which exists because the threshold's distribution is nonstandard.
- Splitting the sample so finely that one regime is left with too few observations to estimate its coefficients reliably.
- Relying on conventional standard errors without checking whether residual variances differ across regimes; if they do, use an inference method suited to heteroskedasticity, where the software allows it.
- Fitting a threshold model to a relationship that is actually smooth, where a smooth-transition or linear model would be the more suitable choice.
- Interpreting the estimated split without first testing whether a threshold effect is statistically supported. Because the threshold estimate has a nonstandard distribution, ordinary tables do not give valid p-values for that test.
- Using a threshold variable that the outcome itself influences, which can make the regime assignment and the estimated threshold unreliable.
Frequently asked questions
What is the threshold variable?
It is the observed variable that decides which regime each observation falls into. Observations at or below the estimated threshold use one set of coefficients, and those above it use another. It should be predetermined or exogenous with respect to the outcome.
How is the threshold itself estimated?
By conditional least squares: the model is fitted for each candidate threshold, the residual sum of squares is recorded, and the threshold that minimises that sum is selected. Hansen's (2000) paper then builds a confidence region for it by inverting the likelihood ratio statistic.
How large a sample do I need?
The sample is split into two regimes, and each needs enough observations to estimate its coefficients stably. About 100 observations is a rough rule of thumb, not a result derived in Hansen (2000), so what matters most is the number of observations in each regime and the range over which the threshold is searched.
What if the residuals are not homogeneous across regimes?
The standard inference assumes a particular error structure. If the residual variance may differ between regimes, check which inference method your software uses and whether a heteroskedasticity-robust version is available, rather than assuming that robust standard errors alone resolve the issue.
Related methods
Sources
Hansen, B. E. (2000). Sample Splitting and Threshold Estimation. Econometrica, 68(3), 575-603.
Open DOI referenceHandbook of Financial Econometrics, Mathematics, Statistics, and Machine Learning (4 volumes) (2020), Chapter 22, p. 44