Table of Links
-
Hypothesis testing
2.5 Optional Stopping and Peeking
-
Safe Tests
-
Safe Testing Simulations
4.1 Introduction and 4.2 Python Implementation
-
Mixture sequential probability ratio test
3.4 χ2-test
The χ2 test is a classical statistical test that is used to assess the distribution of contingency table cells. A contingency table contains the frequencies of the multinomial data, allowing one to assess the similarities of the two distributions’ parameters. In the case of binomial data, the contingency table is 2x2, which will be the focus of this section.
The χ2 statistic in converted to a p-value using the χ2 distribution with (r − 1)(c − 1) degrees of freedom, where r and c are the number of rows and columns in the table. As with the classical t-test, the χ2 is not safe under optional stopping, and thus peeking can inflate their false positive rate [Xu+22]. For this reason, safe alternatives that allow anytime-valid inference have been developed, which we will explore now.
Author:
(1) Daniel Beasley
This paper is