Statis

Pick a test, enter your numbers, and get the statistic, p-value, and the assumption check that tells you which result to trust.

Concept, Direction & Testing: Dr G Narenthiran FRCS(SN)

Step 1

Contingency table

Total
100
100
Total 45 155 200

Chi-squared test

Independence, df = 1

χ²—
p-value—

Yates' continuity correction

Fisher's exact test

Two-tailed

MethodHypergeometric
p-value—

Effect size

Odds ratio & relative risk

Odds ratio
—
Relative risk
—
How it's computed — χ² uses the standard 2×2 formula n(ad−bc)²⁄[(a+b)(c+d)(a+c)(b+d)], optionally with Yates' correction; its p-value comes from the exact df = 1 relation to the normal distribution. Fisher's exact p-value sums hypergeometric probabilities of every table at least as extreme as the observed one, given the fixed margins — no large-sample assumption needed. Odds ratio and relative risk use 95% Wald confidence intervals on the log scale. Rule of thumb: prefer Fisher's exact test whenever any expected cell count falls below 5.