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

Direct comparison

Bernoulli vs Binomial: Formulas & Worked Example

Bernoulli is one yes/no trial; binomial counts successes in n trials. Compare formulas, mean, variance and a worked n = 10 example side by side.

Written and maintained by CASRAI Editorial Board

Last updated

Ask CASRAI · free to tryQuestion about this comparison? Ask CASRAI answers with linked sources. 2 free questions a day, no account.

Ask your first question freeSubscribe

How do Bernoulli distribution and Binomial distribution compare side by side?

The table below compares Bernoulli distribution and Binomial distribution across 10 dimensions, from what it models to when to pick it.

Side-by-side comparison

DimensionBernoulli distributionBinomial distribution
What it modelsThe outcome of one trial with two possible resultsThe number of successes in n trials, each with two possible results
Parametersp, the probability of a single successn, the number of trials, and p, the probability of success on each trial
Possible valuesk = 0 or k = 1 onlyk = 0, 1, ..., n
Probability mass functionf(k) = 1 - p for k = 0; f(k) = p for k = 1f(k) = C(n,k) p^k (1 - p)^(n - k) for k = 0, 1, ..., n
Meanp (computed as 0 x (1 - p) + 1 x p)np
Variancep(1 - p) (computed from E[X^2] - E[X]^2 = p - p^2)np(1 - p), the square of the NIST standard deviation sqrt(np(1 - p))
RelationshipThe n = 1 case of the binomial: C(1,k) p^k (1 - p)^(1 - k) equals 1 - p at k = 0 and p at k = 1The distribution of the sum of n independent Bernoulli(p) variables (Bertsekas and Tsitsiklis, 2002)
Key assumptionA single trial with exactly two mutually exclusive outcomesExactly two mutually exclusive outcomes per trial, and a success probability p that is fixed for all trials (NIST)
Software parametersSciPy scipy.stats.bernoulli takes pSciPy scipy.stats.binom takes n and p; R binomial functions take size = n and prob = p
When to pick itEach record is one yes/no outcome, for example one participant responding or notYou have a count of successes out of a known number of trials, for example 3 of 10

Sources

  • SciPy documentation, scipy.stats.bernoulli (read 2026-10-29)
  • NIST/SEMATECH e-Handbook, binomial distribution
  • SciPy scipy.stats.binom
  • R stats manual, Binomial (read 2026-10-29)

Ask CASRAI · free to try

Ask about Bernoulli vs Binomial: Formulas & Worked Example

2 free questions a day, no account.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

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 open 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 →