Boschloo's test is a statistical hypothesis test for analysing 2x2 contingency tables. It examines the association of two Bernoulli distributed random variables and is a uniformly more powerful alternative to Fisher's exact test. It was proposed in 1970 by R. D. Boschloo.[1]
A 2 × 2 contingency table visualizes
n
A
B
\begin{array}{c|cc|c} &B=1&B=0&Total\\ \hline A=1&x11&x10&n1\\ A=0&x01&x00&n0\\ \hline Total&s1&s0&n\\ \end{array}
The probability distribution of such tables can be classified into three distinct cases.[2]
n1 ,n0
s1 ,s0
xij
x11~.
A
B
x11
n ,n1 ,s1 :
x11 \sim Hypergeometric( n ,n1 ,s1 )~.
n1 ,n0
s1 ,s0
x11
x01
x11 ,x01
p1 ,p0 :
x11 \sim B( n1 ,p1 )
x01 \sim B( n0 ,p0 )
n
n1 ,n0
s1 ,s0
( x11,x10 ,x01 ,x00 )
(p11 ,p10 ,p01 ,p00 )~.
Fisher's exact test is designed for the first case and therefore an exact conditional test (because it conditions on the column sums). The typical example of such a case is the Lady tasting tea: A lady tastes 8 cups of tea with milk. In cups the milk is poured in before the tea. In the other 4 cups the tea is poured in first.
The lady tries to assign the cups to the two categories. Following our notation, the random variable
A
B
n1=4 ,n0=4~.
s1=4 ,s0=4~.
A
B
x11
Hypergeometric(8,4,4)~.
Boschloo's test is designed for the second case and therefore an exact unconditional test. Examples of such a case are often found in medical research, where a binary endpoint is compared between two patient groups. Following our notation,
A=1
A=0
B
Pearson's chi-squared test (without any "continuity correction") is the correct choice for the third case, where there are no constraints on either the row totals or the column totals. This third scenario describes most observational studies or "field-observations", where data is collected as-available in an uncontrolled environment. For example, if one goes out collecting two types of butterflies of some particular predetermined identifiable color, which can be recognized before capture, however it is not possible to distinguished whether a butterfly is species 1 or species 0; before it is captured and closely examined: One can merely tell by its color that a butterfly being pursued must be either one of the two species of interest. For any one day's session of butterfly collecting, one cannot predetermine how many of each species will be collected, only perhaps the total number of capture, depending on the collector's criterion for stopping. If the species are tallied in separate rows of the table, then the row sums are unconstrained and independently binomially distributed. The second distinction between the captured butterflies will be whether the butterfly is female (type 1) or male (type 0), tallied in the columns. If its sex also requires close examination of the butterfly, that also is independently binomially random. That means that because of the experimental design, the column sums are unconstrained just like the rows are: Neither the count for either of species, nor count of the sex of the captured butterflies in each species is predetermined by the process of observation, and neither total constrains the other.
The only possible constraint is the grand total of all butterflies captured, and even that could itself be unconstrained, depending on how the collector decides to stop. But since one cannot reliably know beforehand for any one particular day in any one particular meadow how successful one's pursuit might be during the time available for collection, even the grand total might be unconstrained: It depends on whether the constraint on data collected is the time available to catch butterflies, or some predetermined total to be collected, perhaps to ensure adequately significant statistics.
This type of 'experiment' (also called a "field observation") is almost entirely uncontrolled, hence some prefer to only call it an 'observation', not an 'experiment'. All the numbers in the table are independently random. Each of the cells of the contingency table is a separate binomial probability and neither Fisher's fully constrained 'exact' test nor Boschloo's partly-constrained test are based on the statistics arising from the experimental design. Pearson's chi-squared test is the appropriate test for an unconstrained observational study, and Pearson's test, in turn, employs the wrong statistical model for the other two types of experiment. (Note in passing that Pearson's chi-squared statistic should never have any "continuity correction" applied, what-so-ever, e.g. no "Yates' correction": The consequence of that "correction" will be to distort its to match Fisher's test, i.e. give the wrong answer.)
The null hypothesis of Boschloo's one-tailed test (high values of
x1
H0:p1\lep0
The null hypothesis of the one-tailed test can also be formulated in the other direction (small values of
x1
H0:p1\gep0
The null hypothesis of the two-tailed test is:
H0:p1=p0
There is no universal definition of the two-tailed version of Fisher's exact test.[3] Since Boschloo's test is based on Fisher's exact test, a universal two-tailed version of Boschloo's test also doesn't exist. In the following we deal with the one-tailed test and
H0:p1\lep0
We denote the desired significance level by
\alpha
s1
p1
p0
max\limits | |
p1\lep0 |
(size(p1,p0))
p=p1=p0
\alpha
\alpha
Boschloo proposed to use Fisher's exact test with a greater nominal level
\alpha*>\alpha
\alpha*
\alpha
max\limitsp(size(p))\le\alpha
\alpha*
\alpha,n1
n0
The decision rule of Boschloo's approach is based on Fisher's exact test. An equivalent way of formulating the test is to use the p-value of Fisher's exact test as test statistic. Fisher's p-value is calculated from the hypergeometric distribution (for ease of notation we write
x1,x0
x11,x01
pF=
1-F | |
Hypergeometric(n,n1,x1+x0) |
(x1-1)
pF
x1
x0
p
\alpha,
pF
\alpha*
max\limitspP(pF\le\alpha*)\le\alpha
\alpha*
Boschloo's test deals with the unknown nuisance parameter
p
[0,1]
P(pF\le\alpha*)
(1-\gamma)
p=p1=p0
\gamma
\gamma
All exact tests hold the specified significance level but can have varying power in different situations. Mehrotra et al. compared the power of some exact tests in different situations.[6] The results regarding Boschloo's test are summarized in the following.
Boschloo's test and the modified Boschloo's test have similar power in all considered scenarios. Boschloo's test has slightly more power in some cases, and vice versa in some other cases.
Boschloo's test is by construction uniformly more powerful than Fisher's exact test. For small sample sizes (e.g. 10 per group) the power difference is large, ranging from 16 to 20 percentage points in the regarded cases. The power difference is smaller for greater sample sizes.
This test is based on the test statistic
ZP(x1,x0)=
\hatp1-\hatp0 | ||||||||
|
\hatpi=
xi | |
ni |
\tildep=
x1+x0 | |
n1+n0 |
The power of this test is similar to that of Boschloo's test in most scenarios. In some cases, the
Z
This test can also be modified by the Berger & Boos procedure. However, the resulting test has very similar power to the unmodified test in all scenarios.
This test is based on the test statistic
ZU(x1,x0)=
\hatp1-\hatp0 | |||||||
|
\hatpi=
xi | |
ni |
The power of this test is similar to that of Boschloo's test in many scenarios. In some cases, the
Z
This test can also be modified by the Berger & Boos procedure. The resulting test has similar power to the unmodified test in most scenarios. In some cases, the power is considerably improved by the modification but the overall power comparison to Boschloo's test remains unchanged.
The calculation of Boschloo's test can be performed in following software: