TriaLab Power Studio · Method

Two proportions, Fisher's exact test

Proportions & binary Validated Free 22 published examples

Compares the response rates of two parallel groups by Fisher’s exact test, with the power enumerated over every possible 2×2 table rather than approximated. The test for small trials and rates near zero or one; the sample size is the first that reaches the target power.

Also known as: Fisher exact, exact test, 2x2 table, hypergeometric, conditional test, small sample, rare events.

Maturity

Validated: 22 published examples from 2 independent publications (Chow, Shao, Wang & Lokhnygina 2017; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: not offered — Fisher’s test conditions on the margins, so the only interval it inverts is the conditional exact interval for the odds ratio, not the risk difference this kernel sizes. The two-proportion z kernel sizes the interval for the difference, with Yates’s correction, which approximates Fisher’s test.
  • Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
  • Duration: not offered — This design has no time axis: each participant’s response is assessed once, so calendar time does not enter the power function.

Size axes:

  • Participants per arm (control arm when allocation is unequal) (participants_per_arm), Count

Inputs

Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.

Common to every method

  • Significance level (alpha) (alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention.
  • Target power (power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.

The method’s own

  • Control-group proportion (p_C) (p_control): a number, above 0 and below 1; default 0.1; entered as proportion (0-1) or percent The anticipated response rate in the control group.
  • Difference to detect (p_T − p_C) (difference): a number, above -1 and below 1; default 0.25; entered as proportion (0-1) or percent The anticipated true difference in response rates, treatment minus control; positive favours treatment and sets the direction of a one-sided test.
  • Treatment-group proportion (p_T) (p_treatment): a number, above 0 and below 1; entered as proportion (0-1) or percent The anticipated response rate in the treatment group.
  • Sidedness of the equality test (tails): a choice; default two_sided Two-sided rejects every table no more probable than the observed one (the ordering of R’s fisher.test and G*Power). One-sided rejects the tail in the direction of the anticipated difference — what Chow’s Table 5.3 tabulates.
    • two_sided Two-sided: Either direction rejects.
    • one_sided One-sided: Only the anticipated direction rejects; alpha is spent on that tail.

Sizes entered when another axis is solved for

  • Participants per arm (control arm when allocation is unequal) (participants_per_arm): a whole number, at least 1 Participants per arm (control arm when allocation is unequal). Required when solving for power or detectable effect; produced by the solver when solving for sample size.

Ways to express an input

Effect size — The difference in response rates the study should be able to detect, as the difference or as the treatment rate.

  • Risk difference, the form’s default: p_T − p_C, in proportion units. (fields difference)
  • Treatment-group proportion: Enter the treatment rate; the difference is derived. (fields p_treatment)

Modifiers admitted

  • allocation: Allocation
  • dropout: Dropout

Published examples it reproduces (22)

Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).

Source Example Solves for Inputs Published
Chow, Shao, Wang & Lokhnygina 2017, §5.3, Table 5.3 (one-sided Fisher’s exact test) p₁ 0.05 against p₂ 0.3, one-sided alpha 0.05, power 0.8 => 34 per arm Sample size alpha = 0.05; difference = 0.25; p_control = 0.05; power_target = 0.8; tails = one_sided participants_per_arm = 34 ± 0
Chow, Shao, Wang & Lokhnygina 2017, §5.3, Table 5.3 (one-sided Fisher’s exact test) p₁ 0.05 against p₂ 0.3, one-sided alpha 0.05, power 0.9 => 42 per arm Sample size alpha = 0.05; difference = 0.25; p_control = 0.05; power_target = 0.9; tails = one_sided participants_per_arm = 42 ± 0
Chow, Shao, Wang & Lokhnygina 2017, §5.3, Table 5.3 (one-sided Fisher’s exact test) p₁ 0.05 against p₂ 0.3, one-sided alpha 0.1, power 0.8 => 25 per arm Sample size alpha = 0.1; difference = 0.25; p_control = 0.05; power_target = 0.8; tails = one_sided participants_per_arm = 25 ± 0
Chow, Shao, Wang & Lokhnygina 2017, §5.3, Table 5.3 (one-sided Fisher’s exact test) p₁ 0.1 against p₂ 0.35, one-sided alpha 0.05, power 0.8 => 39 per arm Sample size alpha = 0.05; difference = 0.25; p_control = 0.1; power_target = 0.8; tails = one_sided participants_per_arm = 39 ± 0
Chow, Shao, Wang & Lokhnygina 2017, §5.3, Table 5.3 (one-sided Fisher’s exact test) p₁ 0.25 against p₂ 0.5, one-sided alpha 0.05, power 0.9 => 71 per arm Sample size alpha = 0.05; difference = 0.25; p_control = 0.25; power_target = 0.9; tails = one_sided participants_per_arm = 71 ± 0
Chow, Shao, Wang & Lokhnygina 2017, §5.3, Table 5.3 (one-sided Fisher’s exact test) p₁ 0.2 against p₂ 0.55, one-sided alpha 0.1, power 0.9 => 29 per arm Sample size alpha = 0.1; difference = 0.35; p_control = 0.2; power_target = 0.9; tails = one_sided participants_per_arm = 29 ± 0
PASS chapter 194, Example 1 (printed p. 194-6) 0.65 against 0.6, 50 a group, two-sided 0.05 => power 0.05398 Power alpha = 0.05; difference = 0.05; p_control = 0.6; participants_per_arm = 50 power = 0.05398 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.65 against 0.6, 150 a group, two-sided 0.05 => power 0.11908 Power alpha = 0.05; difference = 0.05; p_control = 0.6; participants_per_arm = 150 power = 0.11908 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.65 against 0.6, 250 a group, two-sided 0.05 => power 0.18341 Power alpha = 0.05; difference = 0.05; p_control = 0.6; participants_per_arm = 250 power = 0.18341 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.65 against 0.6, 350 a group, two-sided 0.05 => power 0.24952 Power alpha = 0.05; difference = 0.05; p_control = 0.6; participants_per_arm = 350 power = 0.24952 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.65 against 0.6, 450 a group, two-sided 0.05 => power 0.31619 Power alpha = 0.05; difference = 0.05; p_control = 0.6; participants_per_arm = 450 power = 0.31619 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.65 against 0.6, 550 a group, two-sided 0.05 => power 0.37874 Power alpha = 0.05; difference = 0.05; p_control = 0.6; participants_per_arm = 550 power = 0.37874 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.65 against 0.6, 650 a group, two-sided 0.05 => power 0.43689 Power alpha = 0.05; difference = 0.05; p_control = 0.6; participants_per_arm = 650 power = 0.43689 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.7 against 0.6, 50 a group, two-sided 0.05 => power 0.13196 Power alpha = 0.05; difference = 0.1; p_control = 0.6; participants_per_arm = 50 power = 0.13196 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.7 against 0.6, 150 a group, two-sided 0.05 => power 0.39398 Power alpha = 0.05; difference = 0.1; p_control = 0.6; participants_per_arm = 150 power = 0.39398 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.7 against 0.6, 250 a group, two-sided 0.05 => power 0.61766 Power alpha = 0.05; difference = 0.1; p_control = 0.6; participants_per_arm = 250 power = 0.61766 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.7 against 0.6, 350 a group, two-sided 0.05 => power 0.77218 Power alpha = 0.05; difference = 0.1; p_control = 0.6; participants_per_arm = 350 power = 0.77218 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.7 against 0.6, 450 a group, two-sided 0.05 => power 0.86945 Power alpha = 0.05; difference = 0.1; p_control = 0.6; participants_per_arm = 450 power = 0.86945 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.7 against 0.6, 550 a group, two-sided 0.05 => power 0.92824 Power alpha = 0.05; difference = 0.1; p_control = 0.6; participants_per_arm = 550 power = 0.92824 ± 0.000005
PASS chapter 194, Example 1 (printed p. 194-6) 0.7 against 0.6, 650 a group, two-sided 0.05 => power 0.96215 Power alpha = 0.05; difference = 0.1; p_control = 0.6; participants_per_arm = 650 power = 0.96215 ± 0.000005
PASS chapter 194, Example 2 (printed p. 194-10) 0.54 against 0.44, two-sided 0.05, power 0.90 => 546 a group Sample size alpha = 0.05; difference = 0.1; p_control = 0.44; power_target = 0.9 participants_per_arm = 546 ± 0
PASS chapter 194, Example 3 (printed p. 194-11), after Bennett & Hsu 1960 p. 396 0.8 against 0.2, 10 a group, one-sided 0.05 => power 0.80539 Power alpha = 0.05; difference = 0.6; p_control = 0.2; participants_per_arm = 10; tails = one_sided power = 0.80539 ± 0.000005

Sources

  1. Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §5.3, Fisher’s exact test, Table 5.3.
  2. NCSS, LLC. PASS 2026 documentation, chapter 194: Fisher’s Exact Test for Two Proportions. Kaysville, UT: NCSS, LLC; 2026.
  3. Faul F, Erdfelder E, Lang A-G, Buchner A. G*Power 3.1 manual. §6, Exact: Proportions — inequality of two independent groups (Fisher’s exact test).

This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →