Skip to main content
v2026.11,858 entries · CC-BY 4.0

Binomial Experiment: The Conditions, Examples and How to Check Them

A binomial experiment has a fixed number of independent two-outcome trials with constant p. Conditions, a worked example and Excel, R and Python code.

Written and maintained by CASRAI Editorial Board

Last updated

A binomial experiment is a random process made of a fixed number of independent trials, where each trial has only two possible outcomes, called success and failure, and the probability of success is the same on every trial. When those conditions hold, the number of successes follows a binomial distribution.

Definition: what counts as a binomial experiment

OpenStax Introductory Statistics 2e lists three characteristics: there are a fixed number of trials; each trial has only two possible outcomes, called success and failure; and the n trials are independent and repeated under identical conditions. The random variable X is the number of successes in the n trials. The same textbook writes this as X ~ B(n, p).

Sources split or combine these conditions differently, which is why you will see three, four or five in different places (see the table below). They describe the same experiment. The plural, “binomial experiments”, simply refers to any process that passes the test.

The conditions, and why sources count three to five

Condition OpenStax Introductory Statistics 2e NIST/SEMATECH e-Handbook
Fixed number of trials Stated: “a fixed number of trials” Implicit in the formula, where x runs from 0 to n
Two outcomes per trial Stated: success and failure Stated: exactly two mutually exclusive outcomes
Independent trials, identical conditions Stated Not listed as a separate condition
Constant probability of success Follows from identical conditions: p is the probability of success on one trial Stated: p is fixed for all trials
X counts the successes Stated Stated through the distribution of x

A source that lists three conditions folds constant p into “identical conditions”; one that lists five splits out constant p and the definition of X. In practice, run a four-part check: fixed n, two outcomes, independent trials, constant p.

Binomial experiments versus other models

One trial on its own is a Bernoulli trial; see Bernoulli distribution vs binomial distribution. If you repeat trials until the first success instead of fixing n, the model changes; see binomial vs geometric.

Formula with every symbol explained

P(X = x) = C(n, x) × px × (1 − p)n − x, for x = 0, 1, …, n, where C(n, x) = n! / [x! (n − x)!] (NIST/SEMATECH e-Handbook of Statistical Methods).

  • n: the number of trials, fixed in advance.
  • x: the number of successes you are asking about.
  • p: the probability of success on one trial; q = 1 − p is the probability of failure, so p + q = 1.
  • C(n, x): the number of different orders in which x successes can occur among n trials.
  • Mean = np. Standard deviation = √(np(1 − p)), so the variance is np(1 − p).

For more on the parameters and the mean, see binomial distribution parameters and the expected value of a binomial distribution.

Worked example with real numbers

OpenStax Example 4.13 reports that 41% of adult workers have a high school diploma but no further education. Suppose a random sample of 20 adult workers is drawn and X is the number in the sample with that profile.

  1. Check the conditions: n = 20 trials; each worker either has that profile (success) or not (failure); workers are sampled independently; p = 0.41 for each. So X ~ B(20, 0.41) and q = 0.59.
  2. Probability of exactly 8: P(X = 8) = C(20, 8) × 0.418 × 0.5912.
  3. C(20, 8) = 125,970. Also 0.418 ≈ 0.00079849 and 0.5912 ≈ 0.0017792.
  4. Multiply: 125,970 × 0.00079849 × 0.0017792 ≈ 0.1790.
  5. Mean: μ = np = 20 × 0.41 = 8.2.
  6. Standard deviation: σ = √(20 × 0.41 × 0.59) = √4.838 ≈ 2.20.
  7. Cumulative: P(X ≤ 12) ≈ 0.9738, the value OpenStax reports for this example.

Interpretation: reading the results

Result Value How to read it
P(X = 8) 0.179 About 18 in 100 samples of 20 would contain exactly 8 workers with that profile.
Mean np 8.2 The long-run average number of successes per sample of 20; it need not be a whole number.
Standard deviation 2.20 Typical sample-to-sample spread of the count around 8.2.
P(X ≤ 12) 0.974 Counts of 12 or fewer cover about 97% of samples, so 13 or more would be unusual.

Assumptions and common mistakes

Non-examples

  • Ages of 100 people: many possible outcomes, not two.
  • Rolling a die until a 5 appears: n is not fixed, so the count of trials is not binomial.
  • A success probability that changes between trials: NIST states the binomial distribution assumes p is fixed for all trials.

Sampling without replacement

The independence condition most often fails silently when you sample from a small population without replacement. SciPy’s documentation describes the hypergeometric distribution as counting items in a sample drawn without replacement from a total population. Take 5 cards from a standard 52-card deck and count hearts (13 hearts in the deck):

Hearts in 5 cards Binomial B(5, 0.25) Hypergeometric (52, 13, 5)
Exactly 0 0.2373 0.2215
Exactly 2 0.2637 0.2743

The values differ because each card drawn changes the odds for the next. The hypergeometric values are the correct ones here. For that model, see the hypergeometric distribution formula.

How to report it (APA example)

Example: “Assuming a binomial model with n = 20 and p = 0.41, the probability of observing exactly 8 successes was 0.18 (M = 8.2, SD = 2.20).” State n, p, the event, and why the binomial conditions apply, and follow your style manual’s edition for number formatting.

How to calculate it in Excel, R or Python

Excel (BINOM.DIST: successes, trials, probability, cumulative):

=BINOM.DIST(8, 20, 0.41, FALSE)   returns 0.1790 for P(X = 8)
=BINOM.DIST(12, 20, 0.41, TRUE)   returns 0.9738 for 12 or fewer

R:

dbinom(8, size = 20, prob = 0.41)    # 0.1790
pbinom(12, size = 20, prob = 0.41)   # 0.9738

Python (SciPy takes n and p as shape parameters):

from scipy.stats import binom
binom.pmf(8, 20, 0.41)    # 0.1790
binom.cdf(12, 20, 0.41)   # 0.9738

For a ready-made tool, see the binomial probability calculator guide.

FAQ

What are the conditions of a binomial experiment?

A fixed number of trials, two outcomes per trial (success or failure), independent trials, and the same probability of success on every trial.

What is the difference between a binomial experiment and a binomial distribution?

The experiment is the process that meets the conditions; the distribution describes the probabilities of the number of successes X it produces.

Are binomial experiments always about coins?

No. Any yes/no outcome that meets the conditions qualifies, such as whether a sampled worker has a given education profile.

Does sampling without replacement make it non-binomial?

Draws without replacement from a finite population are hypergeometric, not independent trials, as the card example shows.

Sources

  • OpenStax, Introductory Statistics 2e, 4.3 Binomial Distribution: https://openstax.org/books/introductory-statistics-2e/pages/4-3-binomial-distribution (checked 2026-10-29).
  • NIST/SEMATECH e-Handbook of Statistical Methods, Binomial distribution: https://www.itl.nist.gov/div898/handbook/eda/section3/eda366i.htm (checked 2026-10-29).
  • SciPy documentation, scipy.stats.binom: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binom.html (checked 2026-10-29).
  • SciPy documentation, scipy.stats.hypergeom: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.hypergeom.html (checked 2026-10-29).

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about Binomial Experiment: The Conditions, Examples and How to Check Them

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →

Ask CASRAI · Regulatory Radar

Research-admin question? Get an answer that links its sources.

An AI assistant specialized in research administration. Every answer links its sources to check before you act. 2 questions free, no account. $29/month after.

  • Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.
  • Every answer numbers its sources and links each one, so you can check the source yourself.