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.
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
| Dimension | Bernoulli distribution | Binomial distribution |
|---|---|---|
| What it models | The outcome of one trial with two possible results | The number of successes in n trials, each with two possible results |
| Parameters | p, the probability of a single success | n, the number of trials, and p, the probability of success on each trial |
| Possible values | k = 0 or k = 1 only | k = 0, 1, ..., n |
| Probability mass function | f(k) = 1 - p for k = 0; f(k) = p for k = 1 | f(k) = C(n,k) p^k (1 - p)^(n - k) for k = 0, 1, ..., n |
| Mean | p (computed as 0 x (1 - p) + 1 x p) | np |
| Variance | p(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)) |
| Relationship | The 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 = 1 | The distribution of the sum of n independent Bernoulli(p) variables (Bertsekas and Tsitsiklis, 2002) |
| Key assumption | A single trial with exactly two mutually exclusive outcomes | Exactly two mutually exclusive outcomes per trial, and a success probability p that is fixed for all trials (NIST) |
| Software parameters | SciPy scipy.stats.bernoulli takes p | SciPy scipy.stats.binom takes n and p; R binomial functions take size = n and prob = p |
| When to pick it | Each record is one yes/no outcome, for example one participant responding or not | You 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.







