G-test
(重定向自G test)
In statistics, G-tests are likelihood-ratio or maximum likelihood statistical significance tests that are increasingly being used in situations where chi-squared tests were previously recommended.
The general formula for G is
where Oi is the observed count in a cell, Ei is the expected count under the null hypothesis, ln denotes the natural logarithm, and the sum is taken over all non-empty cells.