Drug trial [[8, 2], [1, 5]] — a constructed teaching example
A small constructed trial table used throughout this site: 8 of 10 patients improved on treatment, 1 of 6 improved on control. Design: cohort / trial, so all four measures are valid. Enter these counts above to reproduce every figure.
- Cross-product: OR = ad/bc = (8 × 5) / (2 × 1) = 40 / 2 = 20.00 — the sample odds ratio.
- Conditional-MLE odds ratio: 15.47 — the estimate R's fisher.test reports for the same table. Two estimators, one quantity; both are printed, labelled.
- Cornfield exact 95% CI: [1.009, 1059.6] — exact, and honestly wide: N = 16 barely excludes an odds ratio of 1.
- Woolf 95% interval: [1.416, 282.4] — the logit approximation; narrower than the exact interval, which is the usual direction of its error in small samples.
- Risks: 8/10 = 0.800 on treatment, 1/6 = 0.167 on control. Relative risk = 0.800 / 0.167 = 4.80 (log-method 95% CI [0.781, 29.50]).
- Risk difference = 0.800 − 0.167 = 0.6333 (Wald 95% CI [0.246, 1.021]).
- NNT = 1 / 0.6333 = 1.58, rounded up to 2: treat two patients for one extra improvement, on average.
- Companion significance: Fisher's exact two-sided p = 0.0350 by probability ordering — the same figure the homepage calculator gives this table.
OR 20.00 (exact 95% CI [1.009, 1059.6]), RR 4.80, RD 0.6333, NNT 2, Fisher two-sided p = 0.0350. Note how far apart OR and RR sit on the same table — the outcome here is common, which is exactly when the odds ratio exaggerates, as the OR-vs-RR section explains.