Calculate the wetted perimeter for various channel shapes including trapezoids, rectangles/squares, and circular pipes. Essential for hydraulic engineering and fluid mechanics applications.
Input the values of the 2 x 2 contingency table
The Fisher's Exact Test is a statistical significance test used to determine if there are nonrandom associations between two categorical variables in small sample sizes. This Fisher's Exact Test calculator provides precise p-values for 2×2 contingency tables when sample sizes are too small for the chi-square test to be reliable.
Unlike approximate statistical tests, Fisher's Exact Test gives you exact probability calculations for categorical data analysis, making it the gold standard for small sample research in medicine, psychology, and quality control.
The Fisher's Exact Test is essential when total sample size is small (typically n < 1000) or when expected frequencies in any cell are less than 5.
The Fisher's Exact Test calculator performs comprehensive validation:
The Fisher's Exact Test uses the hypergeometric distribution to calculate exact probabilities:
Probability for a specific table:
Where:
One-tailed Fisher's Exact Test:
Two-tailed Fisher's Exact Test:
The Fisher's Exact Test calculator implements the following algorithm:
The Fisher's Exact Test provides exact p-values without relying on asymptotic approximations, making it the gold standard for small sample categorical analysis.
Fisher's Exact Test is recommended when:
Fisher's Exact Test applications:
Aspect | Fisher's Exact Test | Chi-Square Test |
---|---|---|
Sample size | Small samples (n < 1000) | Large samples (n ≥ 1000) |
Expected frequencies | Any frequency | All cells ≥ 5 |
P-value type | Exact probability | Approximate |
Computational cost | Higher | Lower |
Accuracy | Exact | Asymptotic approximation |
Choose Fisher's Exact Test when sample size limitations make chi-square assumptions invalid.
Example 1: Medical Treatment Study
Example 2: Quality Control Analysis
1# Python implementation using scipy
2from scipy.stats import fisher_exact
3
4# 2x2 contingency table
5table = [[8, 2],
6 [3, 7]]
7
8# Two-tailed Fisher's Exact Test
9odds_ratio, p_value = fisher_exact(table, alternative='two-sided')
10print(f"Fisher's Exact Test p-value: {p_value:.4f}")
11
1# R implementation
2# Create contingency table
3table <- matrix(c(8, 2, 3, 7), nrow = 2, byrow = TRUE)
4
5# Fisher's Exact Test
6result <- fisher.test(table)
7print(paste("P-value:", result$p.value))
8
1// JavaScript implementation (simplified)
2function fisherExactTest(a, b, c, d, testType) {
3 // Uses hypergeometric distribution
4 // Implementation matches our calculator
5 return calculateFishersExactTest(a, b, c, d, testType);
6}
7
P-value interpretation:
Effect size considerations:
What is Fisher's Exact Test used for? Fisher's Exact Test determines if there's a significant association between two categorical variables in a 2×2 contingency table, especially when sample sizes are small.
When should I use Fisher's Exact Test instead of chi-square? Use Fisher's Exact Test when your total sample size is less than 1000 or when any expected cell frequency is less than 5.
What's the difference between one-tailed and two-tailed Fisher's Exact Test? One-tailed tests for association in a specific direction (predetermined hypothesis), while two-tailed tests for any association without directional prediction.
Can Fisher's Exact Test handle tables larger than 2×2? Standard Fisher's Exact Test is designed for 2×2 tables. For larger contingency tables, use Freeman-Halton extension or other exact tests.
Is Fisher's Exact Test always more accurate than chi-square? Fisher's Exact Test provides exact p-values, making it more accurate for small samples. However, for large samples, chi-square is computationally efficient with negligible accuracy loss.
What assumptions does Fisher's Exact Test make? Fisher's Exact Test assumes fixed marginal totals, independence of observations, and that data follows a hypergeometric distribution.
How do I interpret Fisher's Exact Test confidence intervals? Confidence intervals for the odds ratio provide the range of plausible effect sizes. If the interval excludes 1.0, the association is statistically significant.
Can I use Fisher's Exact Test for paired data? No, Fisher's Exact Test is for independent groups. For paired categorical data, use McNemar's test instead.
What sample size requires Fisher's Exact Test? Use Fisher's Exact Test when your total sample size is under 1000 or when any expected cell frequency is less than 5. This ensures accurate p-values.
How do I calculate Fisher's Exact Test by hand? Manual calculation involves computing hypergeometric probabilities using factorials. Our online calculator handles these complex calculations automatically for accuracy and speed.
Start using our Fisher's Exact Test calculator today for precise statistical analysis of your categorical data. Perfect for researchers, students, and professionals who need exact p-values for small sample studies.
Meta Title: Fisher's Exact Test Calculator - Free Online Statistical Tool Meta Description: Calculate exact p-values for 2×2 contingency tables with our Fisher's Exact Test calculator. Perfect for small sample research, medical studies, and categorical data analysis.
Discover more tools that might be useful for your workflow