Binomial test

Hypothesis tests · Method and input reference

Two-sided tests; z-test uses null variance (pooled for two groups). Binomial test is exact.

Open calculator · Compare methods in the decision matrix

When to consider it

  • Single dichotomous variable compared to an expected proportion.

Assumptions and scope

  • Independent binary trials with a common probability and a prespecified reference proportion.

Required inputs

  • Successes — Enter the method parameter described above.
  • Trials — Enter the method parameter described above.
  • Null proportion — Enter the method parameter described above.

Review missing values and data coding before running. Sample inputs are synthetic teaching examples.

Implementation

Lifescio validates inputs and formats results; listed functions are the principal calculation routines, not an exhaustive transitive dependency list.

  • scipy 1.15.3: scipy.stats.binomtest

These are pinned library versions; saved results record the versions actually used at runtime.

Library references