NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bounds for the chi-square approximation of Friedman’s statistic by Stein’s method

Robert E. Gaunt, Gesine ReinertBernoulli 2021

TL;DR

This paper provides the first explicit and optimal error bounds for the chi-square approximation of Friedman’s statistic, a cornerstone of non-parametric statistics. Using Stein’s method, the authors prove that the approximation error scales at a rate of $n^{-1}$ and remains valid as long as the ratio of treatments to trials ($r/n$) vanishes.

What Problem Does This Paper Address?

In statistics, the Friedman test is the non-parametric equivalent of a repeated-measures ANOVA. It’s used to determine if there are significant differences between $r$ treatments across $n$ trials (or "blocks") based on rankings.

Standard practice relies on the fact that as the number of trials $n$ grows, the distribution of Friedman’s statistic ($F_r$) converges to a chi-square distribution with $r-1$ degrees of freedom. However, practitioners often use this approximation without knowing exactly how large $n$ needs to be for the results to be reliable—especially if the number of treatments $r$ is also large.

Before this paper, existing bounds on this approximation were either non-explicit (containing unknown constants) or had poor dependence on the number of treatments $r$. This paper fills that gap by providing explicit, "ready-to-use" mathematical bounds that account for both $n$ and $r$.

Methods

The authors employ Stein’s method, a sophisticated technique in probability theory for bounding the distance between two probability distributions.

Key technical components include:

  • Exchangeable Pair Coupling: The authors construct a "twin" version of the Friedman statistic by slightly perturbing the underlying rankings. By analyzing how the statistic changes under this perturbation, they can bound the distance to the target chi-square distribution.
  • Multivariate Normal Connection: Because Friedman’s statistic is essentially a sum of squares of rank-sums, the authors first relate it to a multivariate normal distribution before applying the chi-square Stein equation.
  • Local Couplings: To achieve the optimal $n^{-1}$ rate, the authors had to go beyond standard exchangeable pair techniques, using "local approach" couplings to exploit the fact that certain third-order moments of the rankings vanish under the null hypothesis.

Datasets

As a theoretical probability paper, no empirical datasets were used. The results are derived through rigorous mathematical proof. The "evaluation" consists of comparing the newly derived bounds against previous theoretical results to demonstrate improved rates and explicit constants.

Key Insights and Ideas

  • Optimal Convergence Rate: The authors achieve a convergence rate of $O(n^{-1})$ for smooth test functions. This is the "gold standard" for chi-square approximations and matches the best known results for simpler statistics like Pearson’s chi-square.
  • The $r/n$ Threshold: The paper establishes that for smooth test functions, the approximation is valid if and only if $r/n \to 0$. This provides a clear theoretical guideline for high-dimensional settings where the number of treatments might grow alongside the number of trials.
  • Kolmogorov Distance vs. Smooth Functions: Interestingly, the authors show that for the Kolmogorov distance (the metric most relevant for calculating p-values), the approximation remains valid under a much weaker condition: $r^{1/2}/n \to 0$.
  • Explicit Constants: Unlike many theoretical papers that hide complexity behind a generic constant $C$, this paper provides specific numerical values (e.g., see Theorem 1.1), allowing for a more concrete understanding of the error.

Key Results

  • Smooth Function Bound: For a smooth test function $h$, the error is bounded by an expression dominated by terms of order $r/n$. Specifically, the bound tends to zero as $n \to \infty$ provided $r$ does not grow faster than $n$.
  • Kolmogorov Bound: The authors deduce a bound for the Kolmogorov distance (the maximum difference between cumulative distribution functions). For $r=2$, they achieve the optimal $O(n^{-1/2})$ rate. For $r \geq 3$, the rate is $O(n^{-1/4})$, which is the first of its kind with explicit $r$-dependence.
  • Optimality Proof: Using a specific cosine-based test function, the authors demonstrate that the $r/n$ dependence in their bound is indeed optimal—it cannot be improved further.

Limitations and Future Work

  • Kolmogorov Rate for $r \geq 3$: While the $n^{-1}$ rate was achieved for smooth functions, the conversion to the Kolmogorov distance (using a "smoothing" lemma) resulted in a slower $n^{-1/4}$ rate. The authors suggest that achieving a $O(n^{-1})$ Kolmogorov bound for all $r$ remains a challenging open problem.
  • High-Dimensional Optimality: While the $r/n \to 0$ condition is proven optimal for smooth functions, the authors note it is not yet certain if the $r^{1/2}/n \to 0$ condition for Kolmogorov distance is the absolute best possible, though it is the best currently available in the literature.

Summary updated

BibTeX
@inproceedings{gaunt2021bounds,
  author = {Robert E. Gaunt and Gesine Reinert},
  title = {{Bounds for the chi-square approximation of Friedman’s statistic by Stein’s method}},
  booktitle = {Bernoulli},
  year = {2021},
}
Figure