ArticleslgStudy

mathematics

Bernoulli trial

Bernoulli trial is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bernoulli trial rather than just read about it. In short: In the theory of probability and statistics, a Bernoulli trial (or binomial trial) is a random experiment with exactly two possible outcomes, "success" and "failure". It is named after Jacob Bernoulli, a 17th-century Swiss mathematician, who analyzed them in his Ars Conjectandi (1713).

Bernoulli trial — main illustration
Bernoulli trial — illustration

Key takeaways

  • Bernoulli trial belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bernoulli trial to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bernoulli trial from memory before moving on to harder problems.

Reference excerpt

In the theory of probability and statistics, a Bernoulli trial (or binomial trial) is a random experiment with exactly two possible outcomes, "success" and "failure". It is named after Jacob Bernoulli, a 17th-century Swiss mathematician, who analyzed them in his Ars Conjectandi (1713). The mathematical formalization and advanced formulation of the Bernoulli trial is known as the Bernoulli process. Since a Bernoulli trial has only two possible outcomes, it can be framed as a "yes or no" question. For example:

Is the top card of a shuffled deck an ace? Was the newborn child female? (See human sex ratio.) Success and failure are in this context labels for the two outcomes, and should not be construed literally or as value judgments. More generally, given any probability space, for any event (set of outcomes), one can define a Bernoulli trial according to whether the event occurred or not (event or complementary event). Examples of Bernoulli trials include:

Flipping a coin. In this context, obverse ("heads") conventionally denotes success and reverse ("tails") denotes failure. A fair coin has the probability of success 0.5 by definition. In this case, there are exactly two possible outcomes. Rolling a die, where a six is "success" and everything else a "failure". In this case, there are six possible outcomes, and the event is a six; the complementary event "not a six" corresponds to the other five possible outcomes. In conducting a political opinion poll, choosing a voter at random to ascertain whether that voter will vote "yes" in an upcoming referendum.

Definition Independent repeated trials of an experiment with exactly two possible outcomes are called Bernoulli trials. Call one of the outcomes "success" and the other outcome "failure". Let p be the probability of success in a Bernoulli trial, and q be the probability of failure. Then the probability of success and the probability of failure sum to one, since these are complementary events: "success" and "failure" are mutually exclusive and exhaustive. Thus, one has the following relations:

p=1−q,q=1−p,p+q=1. Alternatively, these can be stated in terms of odds: given probability p of success and q of failure, the odds for are p:q and the odds against are q:p. These can also be expressed as numbers, by dividing, yielding the odds for, of, and the odds against, oa:

of=p/q=p/(1−p)=(1−q)/qoa=q/p=(1−p)/p=q/(1−q). These are multiplicative inverses, so they multiply to 1, with the following relations:

of=1/oa,oa=1/of,of⋅oa=1. In the case that a Bernoulli trial is representing an event from finitely many equally likely outcomes, where S of the outcomes are success and F of the outcomes are failure, the odds for are S:F and the odds against are F:S. This yields the following formulas for probability and odds:

p=S/(S+F)q=F/(S+F)of=S/Foa=F/S. Here the odds are computed by dividing the number of outcomes, not the probabilities, but the proportion is the same, since these ratios only differ by multiplying both terms by the same constant factor. Random variables describing Bernoulli trials are often encoded using the convention that 1 = "success", 0 = "failure". Closely related to a Bernoulli trial is a binomial experiment, which consists of a fixed number n of statistically independent Bernoulli trials, each with a probability of success p, and counts the number of successes. A random variable corresponding to a binomial experiment is denoted by B(n,p), and is said to have a binomial distribution. The probability of exactly k successes in the experiment B(n,p) is given by:

P(k)=(nk)pkqn−k where (nk) is a binomial coefficient. Bernoulli trials may also lead to negative binomial distributions (which count the number of successes in a series of repeated Bernoulli trials until a specified number of failures are seen), as well as various other distributions. When multiple Bernoulli trials are performed, each with its own probability of success, these are sometimes referred to as Poisson trials.

Examples

Tossing coins

Consider the simple experiment where a fair coin is tossed four times. Find the probability that exactly two of the tosses result in heads.

Solution

For this experiment, let a heads be defined as a success and a tails as a failure. Because the coin is assumed to be fair, the probability of success is p=12. Thus, the probability of failure, q, is given by

q=1−p=1−12=12. Using the equation above, the probability of exactly two tosses out of four total tosses resulting in a heads is given by:

P(2)=(42)p2q4−2=6×(12)2×(12)2=38.

Rolling dice What is probability that when three independent fair six-sided dice are rolled, exactly two yield sixes?

Solution

On one die, the probability of rolling a six, p=16. Thus, the probability of not rolling a six, q=1−p=56. As above, the probability of exactly two sixes out of three,

P(2)=(32)p2q3−2=3×(16)2×(56)1=572≈0.069.

See also Bernoulli scheme Bernoulli sampling Bernoulli distribution Binomial distribution Binomial coefficient Binomial proportion confidence interval Poisson sampling Sampling design Coin flipping Jacob Bernoulli Fisher's exact test Boschloo's test

References

External links

"Bernoulli trials", Encyclopedia of Mathematics, EMS Press, 2001 [1994] "Simulation of n Bernoulli trials". math.uah.edu. Retrieved 2025-03-16.

Illustrations

Bernoulli trial illustration
Bernoulli trial: Graphs of probability P of not observing independent events each of probability p after n Bernoulli trials vs np for various p. Three examples are shown:
Blue curve: Throwing a 6-sided die 6 times gives a 33.5% chance that 6 (or any other given number) never turns up; it can be observed that as n increases, the probability of a 1/n-chance event never appearing after n tries rapidly converges to 1/e.
Grey curve: To get 50-50 chance of throwing a Yahtzee (5 cubic dice all showing the same number) requires 0.69 × 1296 ~ 898 throws.
Green curve: Drawing a card from a deck of playing cards without jokers 100 (1.92 × 52) times with replacement gives 85.7% chance of drawing the ace of spades at least once.
Graphs of probability P of not observing independent events each of probability p after n Bernoulli trials vs np for various p. Three examples are shown: Blue curve: Throwing a 6-sided die 6 times gives a 33.5% chance that 6 (or any other given number) never turns up; it can be observed that as n increases, the probability of a 1/n-chance event never appearing after n tries rapidly converges to 1/e. Grey curve: To get 50-50 chance of throwing a Yahtzee (5 cubic dice all showing the same number) requires 0.69 × 1296 ~ 898 throws. Green curve: Drawing a card from a deck of playing cards without jokers 100 (1.92 × 52) times with replacement gives 85.7% chance of drawing the ace of spades at least once.
Bernoulli trial: Three fair coin flips tree diagram
Three fair coin flips tree diagram
Bernoulli trial: A representation of the possible outcomes of flipping a fair coin four times in terms of the number of heads. As can be seen, the probability of getting exactly two heads in four flips is 6/16 = 3/8, which matches the calculations.
A representation of the possible outcomes of flipping a fair coin four times in terms of the number of heads. As can be seen, the probability of getting exactly two heads in four flips is 6/16 = 3/8, which matches the calculations.
Bernoulli trial: Probabilities of rolling k sixes from n independent fair dice, with crossed out dice denoting non-six rolls – 2 sixes out of 3 dice is circled
Probabilities of rolling k sixes from n independent fair dice, with crossed out dice denoting non-six rolls – 2 sixes out of 3 dice is circled

Worked examples

Example 1 — a first encounter with Bernoulli trial

Start with the simplest possible case. Write down what Bernoulli trial claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bernoulli trial before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bernoulli trial ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bernoulli trial

In research
Bernoulli trial appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bernoulli trial in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bernoulli trial is common in secondary-school and first-year university syllabi. It links to neighbouring topics Coin flipping, Discrete distributions, Experiment (probability theory), so understanding it makes those chapters shorter.
In everyday life
Look for Bernoulli trial outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bernoulli trial” →

How to study Bernoulli trial in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bernoulli trial means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bernoulli trial out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bernoulli trial in simple terms?

In the theory of probability and statistics, a Bernoulli trial (or binomial trial) is a random experiment with exactly two possible outcomes, "success" and "failure". It is named after Jacob Bernoulli, a 17th-century Swiss mathematician, who analyzed them in his Ars Conjectandi (1713).

Why does Bernoulli trial matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bernoulli trial?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bernoulli trial.

Tags

  • Coin flipping
  • Discrete distributions
  • Experiment (probability theory)

Keep exploring