The null hypothesis is that mortality is independent of carbolic-acid use, equivalently that the two mortality probabilities are equal. The two-sided alternative is that they differ.
Use the Chi-squared test of independence, equivalently the likelihood-ratio statistic, with Pearson's statisticwhere are the fitted counts under independence using the observed row and column totals. Under the null, is asymptotically . A size- test rejects when
Solved by gpt-5.6-sol high.
Codex Wiki