The exact binomial test compares an observed proportion against a hypothesised value π₀.
The exact binomial computes P(X ≥ k) under H₀: π = π₀ from the Binomial(n, π₀) distribution directly, without any normal approximation. For small n or π₀ near 0 or 1, this is the only test whose nominal α you can trust.
The companion CI is Clopper-Pearson (exact). For larger n, normal-approximation CIs like Wilson or Agresti-Coull are tighter and less conservative — but they sit in the `summary_one_prop` test, not here.
One categorical column (a 'success' label is chosen) + π₀ + alternative.
Exact p-value and Clopper-Pearson 95% CI for the observed proportion.
The Clopper-Pearson CI is intentionally conservative — actual coverage often exceeds 95%. For tighter CIs at large n switch to Wilson; for very small n stick with Clopper-Pearson.