FISHERS_EXACT_TEST implements Fisher's exact test for the analysis of contincency tables e.g. "Lady tasting tea" experiment [1-6]. Usage: p = fishers_exact_test(H) p = fishers_exact_test(a,b,c,d) with H being a 2x2 matrix representing a contincency table H = [[a,b];[c,d]] and p is the resulting p-value. The implementation provides exact results, when (1) the symbolic toolbox (with vpa) is loaded, or (2) for small sample sizes. In the latter case, the result might be subject to the limited accuracy of floating point numbers for large sample sizes (a warning might be shown); in the case, the symbolic toolbox should be loaded. References: [1] https://en.wikipedia.org/wiki/Fisher%27s_exact_test [2] https://en.wikipedia.org/wiki/Lady_tasting_tea [3] Fisher, R. A. (1922). "On the interpretation of χ2 from contingency tables, and the calculation of P". Journal of the Royal Statistical Society. 85 (1): 87–94. doi:10.2307/2340521. JSTOR 2340521. [4] Fisher, R.A. (1954). Statistical Methods for Research Workers. Oliver and Boyd. ISBN 0-05-002170-2. [5] Agresti, Alan (1992). "A Survey of Exact Inference for Contingency Tables". Statistical Science. 7 (1): 131–153. CiteSeerX 10.1.1.296.874. doi:10.1214/ss/1177011454. JSTOR 2246001. [6] Fisher, Sir Ronald A. (1956) [The Design of Experiments (1935)]. "Mathematics of a Lady Tasting Tea". In James Roy Newman (ed.). The World of Mathematics, volume 3. Courier Dover Publications. ISBN 978-0-486-41151-4.
Package: nan