Skip to main content
. 2008 Jul 23;100(4):1949–1966. doi: 10.1152/jn.90526.2008

TABLE 2.

Two × two contingency tables used to show the calculation of the G statistic

A1 A0 Total
A. Observed frequency (Oi) table
    B1 a b a+b
    B0 c d c+d
    Total a+c b+d n
B. Expected frequency (Ei) table
    B1 (a+b)(a+c)/n (a+b)(b+d)/n a+b
    B0 (c+d)(a+c)/n (c+d)(b+d)/n c+d
    Total a+c b+d n
C. Probability of A given B [p(A|B)] table
    B1 a/(a+b) b/(a+b) 1
    B0 c/(c+d) d/(c+d) 1