Skip to content
Categorical data

Binomial test

Compare a binary outcome proportion against a specified reference proportion.

All methods

Requirements

  • binary outcome
  • reference proportion

Avoid when

  • non-binary outcome
  • dependent/repeated binary responses

Formula

P(X = k) = C(n,k) pᵏ(1 − p)ⁿ⁻ᵏ

Interpretation

Reports exact binomial p-value and an exact confidence interval for the proportion.

Example use case

Test whether the observed response rate differs from a prespecified 50% benchmark.

Open example datasets