Fisher’s exact test
Assess associations in contingency tables using an exact test, including when expected cell counts are small.
Data requirements
Use two distinct categorical columns of individual observations. Each needs at least two observed levels, with at most 30 per dimension.
Upload UTF-8 CSV or TSV with unique column names in the first row. Blank, NA, N/A, NaN and NULL entries are treated as missing. Files support up to 2 MiB, 10,000 rows, 60 columns and 200,000 cells; module-specific limits also apply.
Parameters
Names match the analysis form. Starting values describe a newly loaded form; column selections depend on your uploaded data. Matching example column names may be preselected. Review every selection before running.
“Optional / conditional” fields may be required by a particular mode or method. The explanation states when each field takes effect. Hold Ctrl / Command to select multiple columns.
Confidence level
NumberEnter a proportion strictly between 0 and 1, such as 0.95 for a 95% confidence interval. Used for the conditional odds-ratio interval in 2×2 tables only.
Measurement
ColumnCategorical row variable. Rows are ordered alphabetically, affecting odds-ratio orientation.
Grouping variable
ColumnRequired categorical column variable. Columns are also ordered alphabetically.
Alternative
ChoiceFor 2×2 tables, two-sided, less or greater refers to the odds-ratio direction implied by table ordering. Larger tables require two-sided.
- two sided
-
two-sided - less
-
less - greater
-
greater
Example settings
Load the bundled example in the analysis workspace, or upload the example CSV linked above, then use these settings. These are illustrative choices for the synthetic data.
| Parameter | Setting |
|---|---|
| Confidence level | 0.95 |
| Measurement | binary |
| Grouping variable | group |
| Alternative | two-sided |
Results
2×2 results include a conditional odds ratio, exact interval and Fisher p value. Larger tables report a Monte Carlo p value from 9,999 resamples with seed 42. Additional downloadable analysis-summary and diagnostics tables describe the analysis scope and method checks. Selected-variable missingness is reported where applicable. Diagnostics do not establish external validity or verify untested assumptions.
Review the reported method, observation count and notes alongside the estimates. Result tables can be downloaded as CSV and the figure as PNG.
Notes & limitations
- Check the exported count-table ordering before interpreting the conditional odds ratio. Larger-table results do not include an odds ratio or its interval.