1001Ferramentas
🔬 Calculators

Fisher's Exact Test (2×2)

Computes Fisher's exact test for a 2×2 contingency table, the right choice when the counts are small and the chi-square approximation no longer holds. Instead of approximating, it computes the exact probability of observing the current table — and tables even more extreme — holding the margin totals fixed, via the hypergeometric distribution. The tool returns the one-sided and two-sided p-values (the latter by summing the probabilities of tables as likely or less likely than the observed one). Enter the four cells a, b, c and d.

Resultado

Fisher's Exact Test (2×2)

Computes Fisher's exact test for a 2×2 contingency table, the right choice when the counts are small and the chi-square approximation no longer holds. Instead of approximating, it computes the exact probability of observing the current table — and tables even more extreme — holding the margin totals fixed, via the hypergeometric distribution. The tool returns the one-sided and two-sided p-values (the latter by summing the probabilities of tables as likely or less likely than the observed one). Enter the four cells a, b, c and d.

The exact probability, no approximation, for small tables

The chi-square test of independence is the standard tool for contingency tables, but it relies on an approximation that only works well with reasonably large counts. When some cell has few cases, the approximation misleads. Fisher's exact test solves this by computing the real probability, with no shortcuts, which is why it's reliable even with tiny samples.

The reasoning fixes the row and column totals and asks: given those margins, what is the probability of landing on exactly the observed table? The answer comes from the hypergeometric distribution. Summing the probability of the observed table with that of the more extreme tables in the same direction gives the one-sided p-value; summing all tables as likely or less likely than the observed one gives the two-sided p-value.

Enter the four cells of the 2×2 table: a and b in the first row, c and d in the second. The tool returns the one-sided and two-sided p-values. The latter follows the sum-of-probabilities convention, the same one adopted by R, which is the most accepted definition of two-sidedness in an exact test without an obvious symmetric tail.

Related Tools

📊

F-Test for Equality of Variances

Computes the F-test for comparing the variances of two independent groups, checking whether they have the same spread. It's a common step before choosing between the classic t-test (which assumes equal variances) and Welch's (which doesn't). The statistic is the ratio of the two sample variances, and the F distribution, with its two degrees of freedom, provides the p-value. The tool takes the two samples and computes F, the degrees of freedom and the two-sided p-value. Enter the two groups of values.

🪙

Exact Binomial Test

Computes the exact binomial test, which checks whether the observed proportion of successes is compatible with a hypothesized probability, without resorting to the normal approximation. For small samples, where the z-test fails, this is the correct test: it sums the exact probabilities, given by the binomial distribution, of all outcomes as likely or less likely than the observed one. For example: are 8 heads in 10 tosses compatible with a fair coin? Enter the successes, the total and the hypothesized probability.

🔲

Chi-Square Test of Independence

Computes the chi-square test of independence for a contingency table, checking whether two categorical variables are associated or independent. For example: does preference for a product depend on age group? The test compares the observed frequencies with those that would be expected if there were no relationship at all, and the chi-square statistic measures the size of that mismatch. The tool returns the statistic, the degrees of freedom and the p-value. Enter the table: columns by comma, rows by semicolon.

📈

Exact CI for a Poisson Mean

Computes the exact confidence interval for the mean of a Poisson distribution, from an observed event count. It's the right tool for count data: number of defects per batch, accidents per month, particles detected per interval. The calculation uses the exact relationship between the Poisson and the chi-square distribution (Garwood's method), giving reliable bounds even when very few events were observed. Enter the number of events and the confidence level.

📏

CI for Difference of Two Means (t)

Computes the confidence interval for the difference between the means of two independent groups, using the t distribution with pooled variances. It's the natural companion to the two-sample t-test: instead of only saying whether the difference is significant, it shows the plausible range for the real size of that difference. If the interval doesn't contain zero, there's a significant difference at the chosen level. Enter the two samples of values and the confidence level.

🔔

Anderson-Darling Test (Normality)

Computes the Anderson-Darling test, one of the most powerful normality tests available. It measures how far the empirical distribution of your data departs from the normal curve, giving extra weight to the tails — precisely where other tests often miss departures. The tool returns the A² statistic, the adjusted A²* version (corrected for sample size) and an approximate p-value. The smaller the A², the more compatible with normality. Enter at least 8 values.

The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.