View on GitHub

memo

Barnard Test

Barnard Test

Barnard exact model

the number of YES condition in treatment group and the number of YES condition in control group are

xt:=i=1ntxitxc:=i=1ncxic.
Condition treatment group control group total
YES xt xc xt+xc
NO nxt Nnxc Nxtxc
total n=ct Nn=cc N

We assume {Xic} and {Xit} are independent. The probability of r.v.s are given by

f(xc,xt;pc,pt):=f(x1c,,xncc,x1t,,xntt;pc,pt):=P((i{Xic=xic})(i{Xit=xit}))=Bi(x1c,,xncc;pc)Bi(x1t,,xntt;pt)(1)=(ncxc)pcxc(1pc)ncxc(ntxt)ptxt(1pt)ntxt

In Barnard’s exact model, the null hypothesis is H0:={(p,p)Θp[0,1]}. Under the null hypothesis, the p.d.f is given by

(2)f(xc,xt;p,p)=(ncxc)(ntxt)pxc+xt(1p)Nxcxt

If we give the value of p, we can calculate the value of p.d.f. Let Y be some measurable function to determine decision area.

p^(p):=(x^c,x^t):Y(x^c,x^t)Y(xc,xt)f(x^c,x^t)

p-values is defined by

pBarnard:=sup{p^(p)p(0,1)}.

Possible Ys are

π¯:=xc+xtNπ¯t:=xtn(3)π¯c:=xcNn(4)ct:=ncc:=Nn

Wald statiscs

Y(xc,xt):=π¯cπ¯tπ¯t(1π¯t)ct+π¯c(1π¯c)cc

Score statistics

Y(xc,xt):=π¯cπ¯tπ¯(1π¯)(1ct+1cc)

Let α[0,1] be significance level. If

supp(0,1)p^(p)α,

the null hypothesis is rejected.

Difference between Fisher’s exact test and Barnard test

See Fisher’s exact test.

Fisher’s exact test considers a set of experiments is single random variable. For instance, the number of Treatment Groups with YES condition is a random varaible with hypergeometric distribution. The each experiment in Treatment Groups is not considered as a random variable. In this model, adding another result of experiment is a bit off because the each experiment is not modeled as a random variable. Intuitively, the set of experiments should be conducted at the (almost) same time.

On the other hand, in Barnard test, each experiment is a random variable with bernoulli distribution and the experiments are independent. Each experiment could be conducted at the same situation to ensure independence of each experiment. Note that this does not mean we can add another result of experiment after observation of experiments. Modyfing the results of experiments are not allowed.

Intuitively, the Fisher’s exact test seems less flexible than Barnard test.

Example

Infection status Vacctine Placebo Total
Yes = 1 7 = xt (47%) 12 = xc (80%) 19
No = 0 8 (53%) 3 (20%) 11
Totals 15 15 30

Barnard exact model

Score statistics of this contingency table is

(5)Y(xc,xt)1.8943380760602064

One-side test

(6)p^(p)=(x^c,x^t):Y(x^c,x^t)Y(xc,xt))f(x^c,x^t)

Let α[0,1] be significance level. If

supp(0,1)p^(p)α,

the null hypothesis is rejected.

Reference