*** Welcome to piglix ***

Barnard's test


In statistics, Barnard's test is an exact test used in the analysis of contingency tables. It examines the association of two categorical variables and is a more powerful alternative than Fisher's exact test for 2×2 contingency tables. While first published in 1945 by George Alfred Barnard, 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.

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

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

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. A more detailed description of Barnard's test is given by Mehta and Senchaudhuri.


...
Wikipedia

...