Probability trees and the Bernoulli scheme
A multi-stage experiment draws as a tree: probabilities multiply along the branches and add across the paths. That one picture holds the formula for the union of two events, the difference between disjoint and independent events, and the whole Bernoulli scheme — including where its binomial coefficient comes from.
Before you start
This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:
- Conditional probabilityInformation changes the odds. Once you know that B happened, the space of possibilities shrinks to B alone — and every probability has to be recomputed inside it. This lesson shows how, how to reverse the condition with Bayes’ theorem, and why a positive screening result almost never means what it looks like.
- CombinatoricsThe art of counting without listing. The rule of product, factorials, permutations, arrangements and combinations all answer one question — in how many ways can this be done — and the whole difficulty comes down to two decisions: does order matter, and may items repeat.
Where this is used
Real situations where you count exactly the way this lesson teaches:
- Inspecting a batch of goodsFrom a batch in which 5 per cent of units are faulty, a storekeeper pulls 10 for inspection. The probability that none of them turns out faulty is 0.95 to the tenth power, that is 0.599 — so almost 40 per cent of such inspections catch at least one defect. Had 20 per cent been faulty, a sample of ten would pass the batch only 11 per cent of the time, and that is the whole mathematics behind choosing a sample size.
- Guessing a multiple-choice testA test has 10 questions, each with four options and one correct answer. Guessing is a Bernoulli scheme with p equal to 1/4, so the probability of not a single hit is 0.75 to the tenth power, about 5.6 per cent. The probability of passing with a threshold of 6 correct answers, on the other hand, is only 0.0197 — fewer than 2 cases in 100.
- Redundancy in a server roomThree independent servers, each of which fails in a given month with probability 0.02, all go down together with probability 0.02 cubed, that is 0.000008. The service therefore runs 99.9992 per cent of the time, while a single server manages 98 per cent. Two extra machines cut annual downtime from about 175 hours to under 5 minutes.
- Overlapping groups in a surveyOf 200 respondents, 90 read the newsletter and 60 follow the social media profile, and 25 people do both. At least one channel therefore reaches 90 + 60 − 25 = 125 people, that is 62.5 per cent of the group — not the 75 per cent a plain addition would give. Those 25 people are exactly the term the union formula subtracts.
All formulas
Multiplying along a branch
the probability of one path of the tree
Adding across paths
an event is a set of paths, so they add
Union of events
the overlap is counted twice, so subtracted once
Disjoint events
nothing to subtract
Bernoulli scheme
k successes in n independent trials
At least one success
through the complement, with no summing
The previous lesson drew trees to show total probability and Bayes’ theorem. The picture did the work, but its rules were never named. We name them now — and then find that one particular tree recurs so often that it has earned a formula of its own.
The two rules of a tree
A multi-stage experiment is recorded as a probability tree: a level is a stage, a branch is a possible outcome of that stage, and the number on a branch is the probability of that outcome given what has already happened.
Two rules govern it, and it is worth knowing where each comes from:
- multiply along a branch — this is the multiplication rule of the previous lesson;
- add across paths — legitimate because different paths exclude one another, so the sum counts nothing twice.
Disjoint is not independent
This is the pair of ideas confused most often, and the difference is not subtle — they actually rule each other out.
| disjoint | independent | |
|---|---|---|
| meaning | cannot happen together | one does not affect the other |
| formula | ||
| in a union | subtract |
Take a die roll, with — an even number — and — an odd one. The events are disjoint, since . Are they independent? Check:
They are not. Nor is this an accident of this die: two disjoint events of non-zero probability are never independent — because learning that occurred drops the chance of to zero, and that is the largest change there is.
Independence does turn up between different experiments or different stages: two coin tosses, two draws with replacement, the failures of two separate servers.
The union of two events
The event occurs when occurs, when occurs, or when both do. Plain addition counts the overlap twice, so it has to be subtracted once:
For disjoint events the last term vanishes and only the addition is left — exactly what the rule about adding across paths rests on.
The Bernoulli scheme
The tree drawn most often is the one whose levels all look the same. We speak of a Bernoulli scheme when three conditions hold at once:
- every trial has exactly two outcomes — success and failure;
- the probability of success is the same in every trial;
- the trials are independent.
Coin tosses, draws with replacement and successive units from a very large batch fit that description. Drawing without replacement from a small set — as in the urn tree above — does not, because changes after every step.
The drawing contains the whole formula. Every path with successes multiplies exactly times and exactly times, so it carries probability — whatever the order. There are as many such paths as there are ways of choosing positions out of , that is , the combinations of the counting lesson. Hence
At least one success
The question “will it happen even once” comes up so often in this scheme that a shortcut is worth having. Summing from to is the wrong method here, not merely the slow one: the complement is a single term.
Exercises
The set asks three things, in the order of the lesson. The prompt gives , and — the union formula has to be assembled, subtraction included. The prompt gives and , that is two branches of one path, and asks for their product. The prompt gives the number of trials and the success probability , so it asks for the Bernoulli formula directly.
In every case the answer is a fraction in lowest terms.
Practice
Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.
The generator does not ask for a “disjoint or independent” verdict — the answer would be a word rather than a number. That distinction is in the table and in the die counterexample above, and it is worth returning to, because it recurs in every problem about a union of events.
Common mistakes
- Confusing disjointness with independence — the first says “not together”, the second “no influence”. Disjoint events of non-zero probability are never independent.
- Adding for events that can happen together — the overlap gets counted twice. A result larger than one is the commonest symptom.
- Multiplying the probabilities of stages that are not independent — on a tree the second number is conditional; when drawing without replacement it differs at every node.
- Dropping the binomial coefficient from the Bernoulli formula — is the probability of one path, and there are of them.
- Applying the Bernoulli scheme to drawing without replacement — there is not constant and the trials are not independent, so the formula simply does not hold.
- Computing “at least one” by summing every — one calculation on the complement gives the same answer and has nothing in it to lose.
Formula card
Topic: Trees and the Bernoulli scheme
Multiplying along a branch
the probability of one path of the tree
Adding across paths
an event is a set of paths, so they add
Union of events
the overlap is counted twice, so subtracted once
Disjoint events
nothing to subtract
Bernoulli scheme
k successes in n independent trials
At least one success
through the complement, with no summing
