What is a Bernoulli trial? One trial, two outcomes
By Jude Wallis · Published
A Bernoulli trial is one random trial with exactly two outcomes, success and failure, and a success probability that does not change. Count the successes across independent Bernoulli trials that share the same and that count is a binomial random variable.
AP Statistics: Unit 2 (topics 2.8 Introduction to Random Variables and Probability Distributions, 2.10 The Binomial Distribution). A Bernoulli trial is the single-trial case of Unit 2 topic 2.8 and the building block of topic 2.10 in the Fall 2026 AP Statistics course. Unit 2 is 15% to 25% of the multiple-choice section, and the binomial mean and standard deviation are on the formula sheet.
A Bernoulli trial in one sentence
A Bernoulli trial is a single random action that can come out only two ways. Three things have to be true.
- Exactly two outcomes. You label one of them success and the other failure. The labels are bookkeeping, not judgment: "the part is defective" can be the success if that is what you are counting.
- A fixed success probability . Here is the probability of success on this trial. The failure probability is , often written .
- One trial. A Bernoulli trial is the atom. Repeating it is what builds the distributions you actually use.
One free throw, one coin flip, one surveyed voter answering yes or no, one manufactured part that passes or fails inspection: each is a Bernoulli trial. A question with three or more outcomes is not one, though you can force it into shape by collapsing the categories, for example treating "red" as success and "any other color" as failure.
No topic in the Fall 2026 AP Statistics course is titled after the Bernoulli trial. The setting arrives inside Unit 2 topic 2.10, The Binomial Distribution, so learn the three conditions rather than the label. The name is worth knowing anyway, because college courses and textbooks use it constantly.
The mean and standard deviation of one trial
Write the trial as a random variable that takes the value 1 for success and 0 for failure. That 0 or 1 coding is what makes the algebra work, because counting successes then becomes plain addition.
The mean of a discrete random variable is , so
The mean of a single Bernoulli trial is the success probability itself. The variance follows from :
so the standard deviation is . With the mean is 0.7, the variance is , and the standard deviation is .
Notice where peaks. It is largest at , where it equals 0.25, and it shrinks toward 0 as approaches either end. A trial you can barely predict is the most variable one, and that same shows up later inside every standard error for a proportion.
Stacking trials: how the binomial is built
Run independent Bernoulli trials that all share the same , and let be the 0 or 1 result of trial . Define
Each contributes 1 when that trial succeeds and 0 when it fails, so the sum is literally the number of successes. That count is a binomial random variable, written . The binomial distribution is not a separate idea from the Bernoulli trial; it is the answer to "how many of these trials succeeded".
The formula falls out of the same picture. Any one specific sequence with successes and failures has probability , because independent trials multiply. Then you count how many sequences have successes, which is the binomial coefficient :
Make that concrete with and . There are possible success-failure sequences. Exactly 10 of them contain 3 successes, and each of those 10 has probability . So , which is what returns and what the binomial probability calculator returns.
Where np and the binomial standard deviation come from
Because a binomial count is a sum of Bernoulli trials, its mean and standard deviation are the single-trial values scaled up.
Means always add, whether or not the pieces are independent. Each trial contributes a mean of , so
Variances add too, but only when the pieces are independent, which is exactly why independence is one of the binomial conditions. Each trial contributes a variance of , so the total variance is and
Check it on the , example. The mean is successes, and adding the five single-trial variances gives , so . Computing the mean and standard deviation straight from the six probabilities of the distribution returns the same 3.5 and 1.0247.
The standard deviation formula takes a square root, so standard deviations do not add. Five trials do not have five times the standard deviation of one; they have times it. That square-root growth is the same behavior you see in sampling distributions.
What breaks a Bernoulli trial
Three failures come up repeatedly, and each one has a fix or a workaround.
More than two outcomes. Rolling a die has six. Collapse the categories to rescue it: "rolls a 6" versus "does not roll a 6" is a Bernoulli trial with .
A changing . A basketball player who tires over 40 attempts does not have one fixed . Neither does a survey that switches question wording partway through. If moves, the trials are not identical and the binomial formula does not apply.
Dependence. Sampling without replacement is the classic case. Drawing 4 cards from a standard deck and counting hearts is not binomial, because after a heart leaves the deck the next draw has a different probability. The exact chance of exactly 1 heart in 4 cards is 0.4388, while treating it as binomial with gives 0.4219, an error of about 0.017. Here the sample is of the deck, which clears the usual 10% guideline.
That 10% condition is the standard rescue: when you sample less than 10% of the population without replacement, the drift in from draw to draw is small enough to work with. Close enough is not exact, though, and the cards show the size of what you are accepting. Clearing the guideline at 7.7% of a 52-card deck still leaves the binomial answer 0.017 away from the truth, because the condition bounds the drift rather than removing it. The full checklist is in how to tell if a situation is binomial.
Bernoulli, binomial, and geometric
Three distributions grow out of the same trial, and they differ only in what you count.
| Random variable | What it counts | Setting |
|---|---|---|
| Bernoulli | 1 for success, 0 for failure | one trial |
| Binomial | number of successes | trials fixed in advance |
| Geometric | number of trials up to and including the first success | keep going until the first success |
The distinguishing question is what is fixed. In a binomial setting the number of trials is fixed and the number of successes varies. In a geometric setting the number of successes is fixed at one and the number of trials varies. With , the geometric probability that the first success arrives on trial 3 is : two failures, then a success.
One scope note. College Board removed the geometric distribution from the AP exam with the Fall 2026 course, along with several other topics, as listed on the College Board AP Statistics future revisions page. The binomial distribution stayed, as topic 2.10. The geometric distribution is still standard content in a college introductory course, and binomial vs geometric covers the comparison.
One more descendant matters for inference: when is large enough, a binomial count is close to a normal curve, which is the whole content of the normal approximation to the binomial.
One trial: mean and standard deviation
A machine produces parts, and 70% of them pass inspection. One part is selected at random. Define a Bernoulli trial for this situation and find its mean and standard deviation.
Define success. Let success be "the part passes", so and the failure probability is .
Check the conditions. There are exactly two outcomes (pass or fail), is fixed at 0.7, and this is a single trial. It is a Bernoulli trial.
Code the outcomes. Let if the part passes and if it does not, so and .
Mean: .
Variance: .
Confirm against the shortcut . It matches.
Standard deviation: .
is a Bernoulli trial with . Its mean is and its standard deviation is . The mean of a single trial is just the success probability, because the only nonzero value is 1.
Five trials: the binomial as a count of Bernoulli successes
Five parts are selected independently from the same process, where each has probability 0.7 of passing. Let be the number that pass. Show that is binomial, find from first principles, find , and find the mean and standard deviation.
Each part is a Bernoulli trial with . There are of them, they are independent, and is the same each time, so is a binomial count: .
Count the sequences. Each of the 5 trials has 2 possible results, so there are sequences in all, and of them contain exactly 3 passes.
Find the probability of one such sequence. Independence lets you multiply: .
Multiply by the number of sequences: .
For , add the two remaining cases. , and .
. On a calculator this is , which returns the same 0.5282.
Mean: parts, which is also the five single-trial means of 0.7 added up.
Standard deviation: parts, which is the square root of the five single-trial variances of 0.21 added up.
. , , parts and parts. Every one of those numbers traces back to a single Bernoulli trial with , mean 0.7, and variance 0.21.
Frequently asked questions
What is the difference between a Bernoulli trial and a binomial distribution?
A Bernoulli trial is one trial with two outcomes. A binomial random variable is the count of successes across independent Bernoulli trials that share the same . One trial is the building block; the binomial is what you get when you stack of them and count.
What are the mean and standard deviation of a Bernoulli trial?
Coding success as 1 and failure as 0, the mean is and the standard deviation is . For that is a mean of 0.7 and a standard deviation of . Multiply by and by respectively to get the binomial values and .
Does the AP Statistics exam use the term Bernoulli trial?
The topic titles of the Fall 2026 course do not use the name. Topic 2.10, The Binomial Distribution, is where the same setting shows up, so learn the three conditions rather than the vocabulary. Knowing the name still helps, because textbooks and college courses use it constantly.
Is sampling without replacement a set of Bernoulli trials?
Strictly, no, because the success probability changes after each draw and the trials are not independent. It is treated as one when the sample is less than 10% of the population, since the drift in is then small. Clearing that guideline does not make the two agree, though. Drawing 4 cards from a 52-card deck is 7.7% of the population and still shows a gap: the exact probability of exactly 1 heart is 0.4388 against a binomial 0.4219.
Can a Bernoulli trial have an outcome that is not success or failure?
No, it has exactly two. When the underlying situation has more, define success as one category and failure as everything else. Rolling a die is not a Bernoulli trial, but "rolls a 6" versus "does not roll a 6" is one, with .