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)
| Parameter | Type | Description | Example |
|---|---|---|---|
break_date | str | None | The date (e.g. “2021-06-30”) at which to split the sample for “chow” – all periods ending on or after this date, the period that contains it included, form the “after” sub-sample, everything before it forms the “before” sub-sample. Required for “chow”, not used by “quandt_andrews”. Defaults to None. | "2022-01-03" |
dependent_ticker | str | None | The dependent (predicted) asset. Defaults to None, meaning the Toolkit instance’s first ticker. | "AAPL" |
independent_tickers | str | list[str] | None | The independent (predictor) asset(s). Defaults to None, meaning every other ticker in the Toolkit instance besides dependent_ticker. | ["MSFT", "Benchmark"] |
include_benchmark | bool | Whether to include “Benchmark” in the default independent ticker(s) (has no effect when independent_tickers is given explicitly). Defaults to False. | True |
period | str | The data frequency (daily, weekly, monthly, quarterly, or yearly). Defaults to “daily”. | "weekly" |
column | str | The historical data column to regress on. Defaults to “Return”. | "Return" |
add_constant | bool | Whether to include an intercept in the underlying regression(s). Defaults to True. | False |
method | str | The test. Options are: “chow” (Chow Test, at break_date), “quandt_andrews” (Quandt-Andrews Test, for an unknown break date). Defaults to “chow”. | "chow" |
trim | float | The share of the sample left out of the break search at each end, for “quandt_andrews” only. Defaults to 0.15. | 0.1 |
rounding | int | None | The number of decimals to round the results to. Defaults to None. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
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.