Skip to content
Prev 30980 / 398506 Next

fisher exact vs. simulated chi-square

On Tue, 22 Apr 2003, Dirk Janssen wrote:

            
Both are exact. I beleive the difference is just the test statistic.

Imagine listing all the possible 3x3 tables with the same margins as
yours.  A test has to sort them into some ordering of distance from the
null and then add up the probabilities for all possible tables further
from the null than yours.

There's more than one way to do this.  Even in the 2x2 case this leads to
ambiguity about how define the two-sided test.  In the 3x3 case it is
worse since there are so many more ways for tables to differ.

chisq.test orders tables according to the chisquare statistic and I think
fisher.test orders them according to their probability under the null
hypothesis.


	-thomas

"An hypothesis that may be true is rejected because it has failed to
predict observable results that have not occurred." Jeffreys (1939)