Pearson Chi-Square test statistic
Definition 1
Consider a multinomial experiment where categories are drawn each with a probability of , and we obtain categorical data from independent trials. The frequency of data belonging to the -th category is termed the observed cell count, while the expected value under the null hypothesis of hypothesis testing is called the expected cell count. The test statistic is referred to as the Pearson Chi-square test statistic.
Explanation
Hypothesis Testing
is a representative test statistic that freshmen encounter, often striking fear and awe in those who are only familiar with normal distribution or binomial distribution. For inexperienced individuals, understanding the chi-square distribution is challenging unless they have developed an intuition about data and statistical analysis. Therefore, a simplified explanation based on the formula is provided.
- In most cases, a large indicates a discrepancy between actual data and theoretical expectations. Observing the numerator of the formula, is minimized when exactly , i.e., when the observed data precisely matches the known theoretical probability . The greater the discrepancy in these values, the larger the numerator can grow indefinitely.
- Consequently, as the data increasingly deviates from the null hypothesis , the value of increases, typically leading to the rejection of the null hypothesis when exceeds , in a right-tailed statistical test.
- In simple terms, a large signifies “something is very wrong.” The chi-square distribution is used to determine the extent of the deviation or dispersion.
The Pearson Chi-square test statistic for categorical data is typically used for the following purposes:
Theoretical Basis
If you’re reading further, you’re likely beyond the freshman level.
It is known via Student’s theorem that the square of a residual assumed to follow a normal distribution proportionally follows a chi-square distribution. However, even for undergraduates familiar with mathematical statistics, the structure of might seem quite awkward. At first glance, it seems plausible, but the absence of an assumption that deviations follow a normal distribution makes it seem like an empirical statistic. Of course, statistics do not work in a haphazard way, and the properly proven Pearson’s theorem ensures the chi-square nature of .
Pearson’s Theorem: Given a sample size of and categories, let the random vector follow the multinomial distribution . Then, when , the following statistic converges in distribution to a chi-square distribution .
The multinomial experiment introduced in the definition assumes that our data adheres to a multinomial distribution. According to Pearson’s theorem, if the sample is sufficiently large, it approximates a chi-square distribution with degrees of freedom derived from subtracting from the number of categories . Although the proof of Pearson’s theorem is not straightforward, undergraduates can effectively utilize even without comprehensive theoretical knowledge. However, those who decide to pursue graduate studies are encouraged to dedicate time to understand and prove it independently.
Mendenhall. (2012). Introduction to Probability and Statistics (13th Edition): p596. ↩︎