QUICK REVIEW
[Paper Review] The Two-Way Likelihood Ratio (G) Test and Comparison to Two-Way Chi Squared Test
Jesse Hoey|arXiv (Cornell University)|Jun 21, 2012
TL;DR
This paper presents the two-way likelihood ratio (G) test as a superior alternative to the chi-squared test for comparing two multinomial distributions. It derives the G-statistic as twice the log-likelihood ratio, showing it approximates chi-squared under large samples but maintains better accuracy with sparse data, and emphasizes that G-values must be corrected for model complexity to avoid overfitting.
ABSTRACT
This paper presents a derivation of the Two-Way Likelihood Ratio (G) Test and Comparison to the Two-Way Chi Squared Test
Motivation & Objective
- To compare the two-way likelihood ratio (G) test with the traditional chi-squared test for assessing differences between two multinomial distributions.
- To demonstrate that the G-test is more reliable than the chi-squared test in small or sparse datasets due to superior asymptotic properties.
- To clarify the relationship between the G-statistic and the Kullback-Leibler divergence, framing it as a symmetrized relative entropy measure.
- To highlight the importance of adjusting for model complexity when interpreting G-values, as point estimates of parameters can lead to overfitting.
- To provide a principled framework for significance testing using the G-statistic, grounded in likelihood ratio theory rather than chi-squared approximation.
Proposed method
- Derives the two-way G-test statistic as $ G = 2 imes ext{sum over bins of } O_i imes \log(O_i / E_i) $, where $ O_i $ is observed and $ E_i $ is expected count.
- Expresses the likelihood ratio as $ L = R \cdot D_{KL}(r_i \| p_i) + S \cdot D_{KL}(s_i \| p_i) $, with $ p_i = (R_i + S_i)/(R + S) $, linking it to Kullback-Leibler divergence.
- Uses Taylor expansion to show $ G \approx \chi^2 $ when observed and expected counts are close, but G is more accurate when deviations are large or data are sparse.
- Applies the G-statistic to dynamic models like hidden Markov models by computing likelihoods via forward algorithms and using Equation (3) for the ratio.
- Recommends comparing $ G $ to $ 2\nu $, where $ \nu $ is degrees of freedom, to assess significance (e.g., $ G > 2\nu $ implies $ p < 0.05 $).
- Warns that using maximum-likelihood parameter estimates instead of full Bayesian integration can lead to overfitting, necessitating model complexity correction.
Experimental results
Research questions
- RQ1How does the two-way G-test compare to the chi-squared test in terms of accuracy under small or sparse data conditions?
- RQ2What is the mathematical relationship between the G-statistic and the Kullback-Leibler divergence in the context of two multinomial distributions?
- RQ3Why is the G-test preferred over the chi-squared test in cases with low expected counts or high variability?
- RQ4How should model complexity (e.g., number of bins) be accounted for when interpreting the G-statistic to avoid overfitting?
- RQ5Can the G-statistic be meaningfully used in dynamic models such as hidden Markov models, and how should likelihoods be computed in such cases?
Key findings
- The G-test is mathematically equivalent to twice the sum of Kullback-Leibler divergences between each dataset and the pooled distribution, making it a symmetrized measure of distributional difference.
- The G-statistic approximates the chi-squared statistic when observed and expected counts are close, but the approximation breaks down under sparse data or large deviations.
- The G-test is more robust than the chi-squared test in small samples because it avoids the bias introduced by the chi-squared approximation’s reliance on normality.
- When using maximum-likelihood parameter estimates, the G-value depends on model complexity, and thus must be corrected via degrees of freedom to avoid false positives.
- A significance threshold of $ G > 2\nu $ corresponds roughly to a $ p $-value of 0.05, providing a direct and interpretable criterion for rejecting the null hypothesis.
- For dynamic models like hidden Markov models, the likelihoods required for the G-test can be computed using standard forward algorithms, extending the method beyond i.i.d. data.
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.