categorical
Binomial test
Compare a binary outcome proportion against a specified reference proportion.
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.
Worked example
Test whether the observed response rate differs from a prespecified 50% benchmark.
Open example datasets