Chow-Denning Test

The Chow-Denning Test (Chow and Denning, 1993) tests the variance ratios of several horizons at once. Running the Lo-MacKinlay Variance Ratio Test at many horizons and keeping the most significant one overstates the evidence, as one of many tests rejects by chance. The Chow-Denning Test controls for that search: its null hypothesis is that the variance ratio is 1 at every horizon, its alternative that it differs from 1 at one or more of them.

The formula for the Chow-Denning Test takes the heteroskedasticity-robust Lo-MacKinlay statistic \(z_{\text{het}} (q)\) at the horizons q of 2, 4, 8 and 16 periods, where \(z_{\text{het}} (q)\) is the distance from 1 of the ratio of the variance of q-period returns to q times the variance of single-period returns, divided by its heteroskedasticity-robust standard deviation. The statistic CD is the largest in absolute value:

\[\text{CD} = \max\left(\left\lvert z_{\text{het}}(2)\right\rvert, \left\lvert z_{\text{het}}(4)\right\rvert, \left\lvert z_{\text{het}}(8)\right\rvert, \left\lvert z_{\text{het}}(16)\right\rvert\right)\]

Its p-value is the bound of the studentized maximum modulus distribution with four horizons and infinite degrees of freedom, with Phi the standard normal distribution function:

\[\text{P Value} = 1 - (2 \cdot \Phi(\text{CD}) - 1)^{4}\]

A p-value below the significance level rejects the random walk at one or more of the horizons; the horizon with the largest statistic shows where, and the sign of its variance ratio whether it is momentum or mean reversion. The bound treats the four statistics as independent, which they are not, so the test is conservative: it rejects less often than the significance level says.

A variance ratio test asks whether prices follow a random walk: if returns are uncorrelated, the variance of returns over q periods is q times the variance of single-period returns, and their ratio is 1. The null hypothesis is that random walk, the alternative that returns are autocorrelated over the horizon. A ratio above 1 means that moves tend to continue (momentum, trending), a ratio below 1 that they tend to reverse (mean reversion). The ratio sums up the autocorrelations of all lags up to q in one number, which makes it more powerful against slow, persistent patterns than a test of a single autocorrelation. A p-value below the chosen significance level (such as 0.05) rejects the random walk; a higher p-value means the returns are consistent with it at that horizon.

Also known as: Chow-Denning multiple variance ratio test, multiple variance ratio test, CD test.

In the Finance Toolkit this is get_variance_ratio_test with method="chow_denning", the same function as Variance Ratio Test.

Example · XLE, XLF, XLK · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.econometrics.get_variance_ratio_test(method="chow_denning")

Which returns:

Using Your Own Data

get_variance_ratio_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_variance_ratio_test()

References

  • Paper Lo, A.W., & MacKinlay, A.C. (1988). “Stock Market Prices Do Not Follow Random Walks: Evidence from a Simple Specification Test.” Review of Financial Studies, 1(1), 41-66.
  • Paper Chow, K.V. and Denning, K.C. (1993). “A Simple Multiple Variance Ratio Test.” Journal of Econometrics, 58(3), 385-401.
Share