[Paper Review] Chi-square and classical exact tests often wildly misreport significance; the remedy lies in computers
This paper demonstrates that classical chi-square and exact tests often produce wildly inaccurate p-values when model probabilities are near zero, due to division by nearly zero. It proposes replacing these tests with computer-optimized root-mean-square and log-likelihood-ratio statistics, which are more powerful and reliable, especially with modern computational resources.
If a discrete probability distribution in a model being tested for goodness-of-fit is not close to uniform, then forming the Pearson chi-square statistic can involve division by nearly zero. This often leads to serious trouble in practice -- even in the absence of round-off errors -- as the present article illustrates via numerous examples. Fortunately, with the now widespread availability of computers, avoiding all the trouble is simple and easy: without the problematic division by nearly zero, the actual values taken by goodness-of-fit statistics are not humanly interpretable, but black-box computer programs can rapidly calculate their precise significance.
Motivation & Objective
- To expose the fundamental flaw in classical chi-square and exact tests when model probabilities are very small, leading to division by nearly zero.
- To demonstrate that this flaw severely undermines statistical power, even without numerical round-off errors.
- To advocate for replacing traditional chi-square tests with computationally feasible alternatives like root-mean-square and G² statistics.
- To show that modern computers enable precise calculation of exact significance levels for these improved statistics.
- To establish that root-mean-square and G² statistics converge faster and are more powerful than chi-square in discrete goodness-of-fit testing with small probabilities.
Proposed method
- Use the root-mean-square (RMS) statistic to measure the difference between empirical and model probability distributions over discrete bins.
- Apply the log-likelihood-ratio statistic (G²) as a complementary alternative, which mitigates division-by-near-zero issues via logarithmic transformation.
- Employ maximum-likelihood estimation (MLE) to estimate model parameters when the model is parameterized.
- Use Monte Carlo simulation (800,000 simulations per case) to estimate exact significance levels for each test statistic.
- Compare convergence rates of RMS, χ², G², and Freeman-Tukey statistics across multiple discrete distributions (Zipf, geometric, Poisson, Hardy-Weinberg, etc.).
- Use parametric bootstrap-like procedures to compute confidence levels that are asymptotically uniform under the null hypothesis, ensuring valid inference.
Experimental results
Research questions
- RQ1How does division by nearly zero in the classical chi-square statistic affect the accuracy and power of goodness-of-fit tests?
- RQ2How do the convergence rates of root-mean-square, χ², G², and Freeman-Tukey statistics compare under large-sample asymptotics?
- RQ3Can computer-optimized significance levels for RMS and G² statistics outperform classical chi-square in terms of statistical power and accuracy?
- RQ4What is the behavior of confidence levels derived from MLE-estimated models when the true distribution is within the model family?
- RQ5How do different test statistics perform under various discrete distributions, especially those with heavy-tailed or highly skewed probabilities?
Key findings
- The classical chi-square statistic suffers from severe power loss when model probabilities are near zero, due to division by nearly zero, even in the absence of numerical errors.
- The root-mean-square statistic converges to its asymptotic significance level faster than χ², G², and Freeman-Tukey statistics across all tested distributions.
- For the Zipf distribution with 100 bins and θ = 5/2, the root-mean-square statistic showed the fastest convergence to the true significance level as sample size increased.
- In the two-parameter model with 20 bins, root-mean-square and χ² statistics converged faster than G² and Freeman-Tukey, with root-mean-square being most efficient.
- The confidence levels computed via the proposed method (using MLE and simulation) converge in distribution to a uniform distribution over (0,1) under the null, ensuring valid inference.
- The root-mean-square and G² statistics are more robust and powerful than χ² in discrete models with sparse bins, especially when probabilities vary widely across categories.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.