From 2a980a497c2780aa03822843c981709cb45c9ea4 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 5 Jan 2024 13:50:58 +0100 Subject: [PATCH] Create README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- scipy/scipy.stats.fisher_exact/README.md | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 scipy/scipy.stats.fisher_exact/README.md diff --git a/scipy/scipy.stats.fisher_exact/README.md b/scipy/scipy.stats.fisher_exact/README.md new file mode 100644 index 0000000..89e42d6 --- /dev/null +++ b/scipy/scipy.stats.fisher_exact/README.md @@ -0,0 +1,33 @@ +# Fisher Exact Test +{:.no_toc} + + + +## Top + + +Questions to [David Rotermund](mailto:davrot@uni-bremen.de) + + +## [scipy.stats.fisher_exact](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.fisher_exact.html) + +```python +scipy.stats.fisher_exact(table, alternative='two-sided') +``` + +> Perform a Fisher exact test on a 2x2 contingency table. +> +> The null hypothesis is that the true odds ratio of the populations underlying the observations is one, and the observations were sampled from these populations under a condition: the marginals of the resulting table must equal those of the observed table. The statistic returned is the unconditional maximum likelihood estimate of the odds ratio, and the p-value is the probability under the null hypothesis of obtaining a table at least as extreme as the one that was actually observed. There are other possible choices of statistic and two-sided p-value definition associated with Fisher’s exact test; please see the Notes for more information. + + +> **alternative** : {‘two-sided’, ‘less’, ‘greater’}, optional +> Defines the alternative hypothesis. The following options are available (default is ‘two-sided’): +> +> * ‘two-sided’: the odds ratio of the underlying population is not one +> * ‘less’: the odds ratio of the underlying population is less than one +> * ‘greater’: the odds ratio of the underlying population is greater than one + +See the Notes for more details.