Jump to content

Boschloo's test: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Muelsak (talk | contribs)
No edit summary
Muelsak (talk | contribs)
No edit summary
Line 52: Line 52:


== Test statistic ==
== Test statistic ==
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 [[Cumulative distribution function|distribution]]:
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 [[Cumulative distribution function|distribution]] (for ease of notation we write <math>x_1, x_0</math> instead of <math>x_{11}, x_{01}</math>:
:<math>
:<math>
p_F = 1-F_{\mbox{Hypergeometric}(n, n_1, x_1+x_0)}(x_1-1)
p_F = 1-F_{\mbox{Hypergeometric}(n, n_1, x_1+x_0)}(x_1-1)

Revision as of 10:53, 17 April 2020


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 than Fisher's exact test. It was published in 1970 by R. D. Boschloo.[1]

Setting

A 2x2 contingency table visualizes independent observations of two binary variables and :

The probability distribution of such tables can be classified in three distinct cases.[2]

  1. The row sums and column sums are fixed in advance and not random.
    Then all are determined by . If and are independent, follows a hypergeometric distribution with parameters :
    .
  2. The row sums are fixed in advance but the column sums are not.
    Then all random parameters are determined by and and follow a binomial distribution with probabilities :

  3. Only the total number is fixed but the row sums and the column sums are not.
    Then the random vector follows a multinomial distribution with probability vector .

Fisher's exact test is designed for the first case and therefore an exact conditional test (because it conditions on the column sums). The classical example of such a case is the Lady tasting tea: A lady tastes 8 cups of tea with milk. In 4 of those 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 represents the used method (1 = milk first, 0 = milk last) and represents the lady's guesses (1 = milk first guessed, 0 = milk last guessed). Then the row sums are the fixed numbers of cups prepared with each method: . The lady will assign 4 cups to each method, so also the column sums are fixed in advance: . If she is not able to tell the difference, and are independent and the number of correctly classified cups with milk first follows the hypergeometric distribution .

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, represents the first group that receives some medication of interest. represents the second group that receives a placebo. indicates the cure of a patient (1 = cure, 0 = no cure). Then the row sums equal the group sizes and usually are fixed in advance. The column sums are the total number of cures respectively disease continuations and not fixed in advance.

An example for the third case can be constructed as follows: Simultaneously flip two distinguishable coins and and do this times. If we count the number of results in our 2x2 table (1 = head, 0 = tail), we neither know in advance how often coin shows head or tail (row sums random), nor do we know how often coin shows head or tail (column sums random).

Test hypothesis

The null hypothesis of Boschloo's one-tailed test is (high values of favor the alternative hypothesis):

The null hypothesis of the one-tailed test can also be formulated in the other direction (small values of favor the alternative hypothesis):

The null hypothesis of the two-tailed test is:

There is no unique definition of the two-tailed version of Fisher's exact test.[3] This is also true for Boschloo's test as it is based on Fisher's exact test. In the following we deal with the one-tailed test and .

Boschloo's Idea

We denote the desired significance level by . Fisher's exact test is a conditional test and appropriate for the first above mentioned case. But if one pretends that the observed column sum would have been fixed in advance, Fisher's exact test can also be applied to the second case. The true size of the test then depends on the nuisance parameters . It can be shown that the size maximum is taken for equal proportions [4] and is still controlled by [1]. However, Boschloo stated that for small sample sizes, the maximal size is often considerably smaller than . This leads to an undesirable loss of power.

Boschloo's Idea was to use Fisher's exact test with a greater nominal level . Thereby, should be chosen maximal such that the maximal size is still controlled by : . This method was especially advantageous at that time because could be looked up for common values of and . This made performing Boschloo's test computationally easy.

Test statistic

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 instead of :

The distribution of is determined by the binomial distributions of and and depends on the unknown nuisance parameters . For a specified significance level , the critical value of is the maximal value that fulfilles . The critical value equals the nominal level of Boschloo's original approach.

Modification

Boschloo's test deals with the unknown nuisance parameter by taking the maximum over the whole parameter space . The Berger & Boos procedure takes a different approach by maximizing over a confidence interval and adding .[5] is usually a small value such as 0.001 or 0.0001. This results in a modified Boschloo's test which is also exact.[6]

Comparison to other exact tests

All exact tests adhere to 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. The results regarding Boschloo's test are summarized in the following.

Modified Boschloo's test

Boschloo's test und the modified Boschloo's test have similar power in all considered scenarios. In some cases Boschloo's test had slightly more power and in some cases vice versa.

= Fisher's exact test

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 significant, ranging from 16 to 20 percentage points in the regarded cases. This difference is smaller for greater sample sizes.

-Pooled test

This test is based on the test statistic

where are the group event rates and is the pooled event rate.

The power of this test is similar to that of Boschloo's test in most scenarios. In some cases, the -Pooled test has greater power, with differences mostly ranging from 1 to 5 percentage points. In very few cases, the difference goes up to 9 percentage points.

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.

-Unpooled test

This test is based on the test statistic

where are the group event rates.

The power of this test is similar to that of Boschloo's test in many scenarios. In some cases, the -Unpooled test has greater power, with differences ranging from 1 to 5 percentage points. However, in some other cases, Boschloo's test has significantly more power, with differences up to 68 percentage points.

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.

See also

References

  1. ^ a b Boschloo R.D. (1970). "Raised Conditional Level of Significance for the 2x2-table when Testing the Equality of Two Probabilities". Statistica Neerlandica. 24: 1–35. doi:10.1111/j.1467-9574.1970.tb00104.x.
  2. ^ Lydersen, S., Fagerland, M.W. and Laake, P. (2009). "Recommended tests for association in 2×2 tables". Statist. Med. 28: 1159–1175. doi:10.1002/sim.3531.{{cite journal}}: CS1 maint: multiple names: authors list (link)
  3. ^ Martín Andrés, A, and I. Herranz Tejedor (1995). "Is Fisher's exact test very conservative?". Computational Statistics and Data Analysis. 19: 579–591. doi:10.1016/0167-9473(94)00013-9.{{cite journal}}: CS1 maint: multiple names: authors list (link)
  4. ^ Finner, H, and Strassburger, K (2002). "Structural properties of UMPU-tests for 2x2 tables and some applications". Journal of Statistical Planning and Inference. 104: 103–120. doi:10.1016/S0378-3758(01)00122-7.{{cite journal}}: CS1 maint: multiple names: authors list (link)
  5. ^ Berger, R L, and Boos, D D (1994). "P Values Maximized Over a Confidence Set for the Nuisance Parameter". Journal of the American Statistical Association. 89: 1012–1016. doi:10.2307/2290928.{{cite journal}}: CS1 maint: multiple names: authors list (link)
  6. ^ Mehrotra, D V, Chan, I S F, and Berger, R L (2003). "A cautionary note on exact unconditional inference for a difference between two independent binomial proportions". Biometrics. 59: 441–450. doi:10.1111/1541-0420.00051.{{cite journal}}: CS1 maint: multiple names: authors list (link)