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

Chi-square approximation by Stein’s method with application to Pearson’s statistic

Robert E. Gaunt, Alastair Pickett, Gesine ReinertThe Annals of Applied Probability 2017 · DOI

TL;DR

This paper provides the first explicit, rigorous error bounds of order $n^{-1}$ for Pearson’s chi-square statistic using Stein’s method. By approximating the statistic directly with a chi-square distribution—rather than the traditional route through a normal distribution—the authors reveal that the convergence is actually twice as fast as previously thought for smooth test functions.

What Problem Does This Paper Address?

In introductory statistics, students are taught Pearson’s chi-square test ($X^2$) to check "goodness-of-fit." We are told that as the sample size $n$ grows, the $X^2$ statistic starts looking like a chi-square distribution. But how large does $n$ need to be? Textbooks often cite the "rule of 5" (expected cell counts should be at least 5), but this is a heuristic based on simulations, not a mathematical guarantee.

Mathematically, the standard way to analyze this is to use a normal approximation (the Central Limit Theorem). However, this approach usually suggests a convergence rate of $n^{-1/2}$. This paper addresses the gap between these heuristics and rigorous theory by providing explicit "error bars" on how far the $X^2$ statistic is from its limiting distribution, proving that the convergence is actually much faster ($n^{-1}$) if we look at the problem through the right lens.

Methods

The authors employ Stein’s Method, a powerful tool in probability theory for bounding the distance between two probability distributions.

The process involves three main steps:

  1. The Stein Equation: They identify a differential operator (the Stein operator) that characterizes the chi-square (or more generally, the gamma) distribution.
  2. Derivative Bounds: To get tight results, they had to solve the Stein equation and find new, sharper bounds for the derivatives of its solution. Specifically, they found bounds that scale as $p^{-1}$ (where $p$ is the degrees of freedom), which is an improvement over previous $p^{-1/2}$ bounds.
  3. Symmetry Arguments: The "secret sauce" for reaching the $n^{-1}$ rate is the use of symmetry. By carefully expanding the expectations of the statistic, the authors show that the $n^{-1/2}$ error terms actually cancel out due to the inherent symmetry of the Pearson statistic, leaving the $n^{-1}$ term as the dominant error.

Datasets

Not discussed in the paper. This is a theoretical probability and statistics paper; results are proven mathematically rather than evaluated on empirical datasets.

Key Insights and Ideas

  • Direct vs. Indirect Approximation: Most researchers approximate the $X^2$ statistic by first approximating the underlying multinomial counts with a normal distribution. This paper shows that approximating the square directly with a chi-square distribution is more natural and yields better rates.
  • The Power of Symmetry: The jump from $n^{-1/2}$ to $n^{-1}$ isn't just a technicality; it reflects the fact that the chi-square distribution captures the "shape" of the statistic better than a normal distribution does. The symmetry of the variables involved effectively "erases" the largest error term.
  • Improved Constants: Beyond just the "order" of the error (the $n^{-1}$), the paper provides explicit constants. This moves the field closer to replacing "rules of thumb" with "rigorous certificates" of accuracy for specific sample sizes.

Key Results

  • New Derivative Bounds: The authors established Theorem 2.1, providing new bounds for the solution of the gamma Stein equation that are optimal in their scaling with the shape parameter.
  • Explicit $n^{-1}$ Bounds: For smooth test functions (functions that are sufficiently differentiable), the authors proved that the distance between Pearson’s statistic and the chi-square distribution is at most $C/n$, where $C$ is an explicit constant depending on the number of classes and cell probabilities.
  • Kolmogorov Distance: They also provided bounds for the Kolmogorov distance (the maximum difference between cumulative distribution functions), though these rates are slightly slower due to the technical difficulty of handling non-smooth "step" functions.

Limitations and Future Work

The primary limitation acknowledged is the "crude" nature of the conversion from smooth test functions to the Kolmogorov distance. While the paper achieves the optimal $n^{-1}$ rate for smooth functions, the Kolmogorov bound (which practitioners often care about most) is suboptimal in its dependence on $n$.

The authors suggest that future research could involve tailoring Stein’s method specifically for non-smooth functions in the chi-square context to achieve that elusive $n^{-1}$ rate across all common distance metrics. Additionally, while the constants are explicit, they are still somewhat large; further refinement could make these bounds even more practical for small-sample statistics.

Summary updated

BibTeX
@article{gaunt2017chi,
  author = {Robert E. Gaunt and Alastair Pickett and Gesine Reinert},
  title = {{Chi-square approximation by Stein’s method with application to Pearson’s statistic}},
  journal = {The Annals of Applied Probability},
  year = {2017},
  doi = {10.1214/16-aap1213},
}
Figure