Quandt-Andrews Test

The Quandt-Andrews Test is the Chow Test for a break at an unknown date. Quandt (1960) proposed taking the largest Chow statistic over all candidate dates; Andrews (1993) derived the distribution of that maximum, which lies well above the F-distribution, because the date was searched for.

The formula for the Quandt-Andrews Test computes the Chow F-statistic for a break at every candidate date tau and takes the largest, whose date estimates the break:

\[\text{Sup F} = \max\left(F(\tau)\right)\]

The p-value approximates the tail of the supremum of a squared Bessel process of order k (Andrews, 1993), from the sup-Wald statistic c and the trimming fraction \(\pi_{0}\):

\[c = k \cdot \text{Sup F}\] \[\lambda = \frac{(1 - \pi_{0})^{2}}{\pi_{0}^{2}}\] \[\text{P Value} = \min\left(1, \frac{c^{k/2} \cdot \exp\left(-\frac{c}{2}\right)}{2^{k/2} \cdot \Gamma\left(\frac{k}{2}\right)} \cdot \left(\left(1 - \frac{k}{c}\right) \cdot \ln\left(\lambda\right) + \frac{2}{c}\right)\right)\]

Where F(tau) is the Chow F-statistic with the break at date tau, searched over every date outside the first and last \(\pi_{0}\) of the sample (0.15 by default), k the number of parameters and Gamma the gamma function. No break is rejected when the p-value is below the significance level (0.05 for the 5% level), or Sup F above the critical values of Andrews (1993), which depend on k and \(\pi_{0}\). The test cannot find a break close to the ends of the sample, and with several breaks it points to one of them only.

A test for a structural break asks whether the coefficients of a regression stayed the same throughout the sample, the null hypothesis, or changed at some date, the alternative: an asset’s beta shifting after a merger, a regulatory change or a market regime change. A single regression over a sample with a break is misspecified, as its coefficients average two different relations.

Also known as: sup-F test, Quandt likelihood ratio test, QLR test, Andrews test, unknown break date test.

In the Finance Toolkit this is get_chow_test with method="quandt_andrews", the same function as Chow Test.

Example · NVDA · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_chow_test:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["NVDA"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

# NVDA is dependent and the Benchmark independent; the break date is estimated
toolkit.econometrics.get_chow_test(method="quandt_andrews", include_benchmark=True)

Which returns:

Item 0
Sup-F Statistic 8.776
P-Value 0.0043
Reject No Structural Break (5%) True
Break Date 2025-03-04

Using Your Own Data

get_chow_test runs on any data, not only prices: ratios, economic indicators, yield curves or your own dataset. Pass a DataFrame, a Series or a dictionary of them to Econometrics as data, with the dates in the rows or the columns, and set changes to how its changes are calculated: "percentage", "log", "difference" for rates and ratios, or None when the data are changes already. For example, for the monthly unemployment rates of the United States and Germany:

from financetoolkit import Economics, Econometrics

economics = Economics(start_date="2000-01-01")

unemployment = economics.get_unemployment_rate(
    countries=["United States", "Germany"], period="monthly"
)

econometrics = Econometrics(data=unemployment, changes="difference")

econometrics.get_chow_test()

References

  • Paper Quandt, R.E. (1960). “Tests of the Hypothesis that a Linear Regression System Obeys Two Separate Regimes.” Journal of the American Statistical Association, 55(290), 324-330.
  • Paper Andrews, D.W.K. (1993). “Tests for Parameter Instability and Structural Change with Unknown Change Point.” Econometrica, 61(4), 821-856.
Share