Barnard's test

From Wikipedia, the free encyclopedia

In statistics, Barnard's test is an exact test used in the analysis of 2×2 contingency tables with one margin fixed. Barnard's tests are really a class of hypothesis tests, also known as unconditional exact tests for two independent binomials.[1][2][3] These tests examine the association of two categorical variables and are often a more powerful alternative than Fisher's exact test for 2×2 contingency tables. While first published in 1945 by George Alfred Barnard,[4][5] the test did not gain popularity due to the computational difficulty of calculating the p-value and Fisher's disapproval. Nowadays, for small/moderate sample sizes ( n < 1000 ), computers can often implement Barnard's test in a few seconds.

Purpose and scope[]

Barnard's test is used to test the independence of rows and columns in a 2×2 contingency table. The test assumes each response is independent. Under independence, there are three types of study designs that yield a 2×2 table, and Barnard's test applies to the second type.

To distinguish the different types of designs, suppose a researcher is interested in testing whether a treatment quickly heals an infection.

  1. One possible study design would be to sample 100 infected subjects, and for each subject see if they got the treatment or the placebo, and see if the infection is still present after a set time. This type of design is common in cross-sectional studies.
  2. Another possible study design would be to give 50 infected subjects the treatment, 50 infected subjects the placebo, and see if the infection is still present after a set time. This type of design is common in clinical trials.
  3. The final possible study design would be to give 50 infected subjects the treatment, 50 infected subjects the placebo, and stop the experiment once a set number of subjects has healed from the infection. This type of design is uncommon, but has the same structure as the 'lady tasting tea' study that led to R. A. Fisher creating Fisher's Exact test.

The probability of a 2×2 table under the first study design is given by the multinomial distribution; the second study design is given by the product of two independent binomial distributions; the third design is given by the hypergeometric distribution.

The difference between Barnard's exact test and Fisher's exact test is how they handle the nuisance parameter(s) of the common success probability when calculating the p-value. Fisher's test avoids estimating the nuisance parameter(s) by conditioning on the margins, an approximately ancillary statistic. Barnard's test considers all possible values of the nuisance parameter(s) and chooses the value(s) that maximizes the p-value.

Both tests have sizes less than or equal to the type I error rate. However, Barnard's test can be more powerful than Fisher's test because it considers more 'as or more extreme' tables by not conditioning on both margins. In fact, one variant of Barnard's test, called Boschloo's test, is uniformly more powerful than Fisher's exact test.[6] A more detailed description of Barnard's test is given by Mehta and Senchaudhuri.[7] Barnard's test has been used alongside Fisher's Exact test in project management research[8]

Criticisms[]

Under pressure from Fisher, Barnard retracted his test in a published paper,[9] however many researchers prefer using Barnard's exact test over Fisher's exact test for analyzing 2×2 contingency tables. The only exception is when the true sampling distribution of the table is hypergeometric. Barnard's test can be applied to larger tables, but the computation time increases and the power advantage quickly decreases.[10] It remains unclear which test statistic is preferred when implementing Barnard's test; however, most test statistics yield uniformly more powerful tests than Fisher's exact test.[11]

See also[]

References[]

  1. ^ Mehrotra, D.V., Chan, I.S.F., Berger, R.L. (2003). "A Cautionary Note on Exact Unconditional Inference for a Difference between Two Independent Binomial Proportions". Biometrics. 59: 441–450.CS1 maint: multiple names: authors list (link)
  2. ^ Ripamonti, E., Lloyd, C., Quatto, P. (2017). "Contemporary Frequentist Views of the 2x2 Binomial Trial". Statistical Science. 32: 600–615. doi:10.1214/17-STS627.CS1 maint: multiple names: authors list (link)
  3. ^ Fay, M.P., Hunsberger, S.A. (2021). "Practical Valid Inferences for the Two-Sample Binomial Problem". Statistics Surveys. 15. doi:10.1214/21-SS131.CS1 maint: multiple names: authors list (link)
  4. ^ Barnard G.A. (1945). "A New Test for 2 × 2 Tables". Nature. 156 (3954): 177. doi:10.1038/156177a0. S2CID 186244479.
  5. ^ Barnard G.A. (1947). "Significance Tests for 2 X2 Tables". Biometrika. 34 (1/2): 123–138. doi:10.1093/biomet/34.1-2.123. PMID 20287826.
  6. ^ 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.
  7. ^ Mehta C.R., Senchaudhuri P. (2003). "Conditional versus Unconditional Exact Tests for Comparing Two Binomials". Cite journal requires |journal= (help)
  8. ^ Invernizzi, Diletta Colette; Locatelli, Giorgio; Brookes, Naomi J. (1 January 2019). "An exploration of the relationship between nuclear decommissioning projects characteristics and cost performance" (PDF). Progress in Nuclear Energy. 110: 129–141. doi:10.1016/j.pnucene.2018.09.011. ISSN 0149-1970.
  9. ^ Barnard G.A. (1949). "Statistical Inference". Journal of the Royal Statistical Society, Series B. 11 (2/2): 115–149.
  10. ^ Mehta C.R., Hilton J.F. (1993). "Exact Power of Conditional and Unconditional Tests: Going Beyond the 2 &times 2 Contingency Table". The American Statistician. 47 (2): 91–98. doi:10.1080/00031305.1993.10475946.
  11. ^ Berger R.L. (1994). "Power comparison of exact unconditional tests for comparing two binomial proportions". Institute of Statistics Mimeo Series No. 2266: 1–19.

External links[]

Retrieved from ""