13. Probability
13.1 Chapter Opener: Introduction and Random Experiments
Chapter 13
Probability
Big idea: probability measures how likely something is. When you learn new information, the chances change. This chapter shows exactly how, and how to turn a "what is the chance of the clue?" into a "what is the chance of the cause?".
A weather report says rain is likely tomorrow. A test paper has four choices for each question. A bag holds coloured balls you cannot see. All three situations ask the same kind of question: out of everything that could happen, how much belongs to the event you care about? This chapter answers that question, and then goes further. It shows what happens to the answer when part of the story is already known.
- 13.1 fixes the basic language: experiment, sample space, event, and the rule .
- 13.2 asks what changes when a clue arrives: conditional probability, the chance of given .
- 13.3 chains chances together: the multiplication rule for " and then ".
- 13.4 studies events that do not affect each other: independent events, and what happens when trials repeat.
Read with a pencil. Every worked example shows each fraction being built and simplified, and every figure is followed by a short walkthrough that tells you how to read it. When a section ends with a quick check, cover the answers and try first.
Imagine a box of small balls, all the same size and well mixed. You close your eyes and pick one. If of the balls are marked with a star, you feel that the chance of picking a starred ball is out of . Probability makes this feeling exact. An experiment is any action whose result is not known in advance, such as rolling dice or drawing a ball. Each possible result is an outcome. The set of all outcomes is the sample space, written . An event is a collection of outcomes, that is, a subset of . When all outcomes are equally likely,
where is the number of outcomes in and the number in . Read it as "favourable over total". The symbol is read "the probability of ".
Roll two dice, one after the other. There are equally likely outcomes, from to . Let be the event "the sum is ". The outcomes are , so and
A grid of 36 dots. The horizontal axis is the number on the first die, from 1 to 6. The vertical axis is the number on the second die, from 1 to 6. Five dots lie on a diagonal line and are drawn in orange: (2, 6), (3, 5), (4, 4), (5, 3) and (6, 2). These are the outcomes with sum 8. The other 31 dots are grey.
Read the figure like a map. The horizontal direction is the first die and the vertical direction is the second die, so each dot is one ordered pair. The five orange dots form a short diagonal because raising the first die by one forces the second die down by one to keep the sum at 8. Five orange dots out of 36 in total give the probability 5/36. Every classical probability is one such fraction: count the coloured dots, count all the dots, divide.
- [Concept] , with and . A probability is never negative and never above . The whole sample space has probability , and the impossible event has probability .
- [Board Standard] Complement: , where means " does not happen". Here . Counting directly, of the outcomes do not sum to , which agrees.
- [HOTS] Addition rule: , where means " or (or both)" and means " and ". The subtraction removes the double counting of outcomes that lie in both events.
Check the addition rule. Let be "the first die shows ". Then , and "both" happens only for , so . So . Counting the outcomes directly gives the same answer, . The table below shows where the subtraction comes from: the single outcome sits in the top-left cell and is counted in both the first row and the first column.
| first die \ outcome | sum is () | sum is not () | row total |
|---|---|---|---|
| shows () | 1 | 5 | |
| does not show () | 4 | 26 | |
| column total |
Read the table by rows and columns. Each row is a statement about the first die, each column a statement about the sum, and each cell counts outcomes satisfying both. Adding the whole first row and the whole first column counts the top-left cell twice, so the addition rule subtracts it once. This kind of two-way table is called a contingency table, and you will meet it again in every section of this chapter.
Suppose someone tells you a clue about the outcome: "at least one die shows a ". The clue rules out many outcomes. Do the chances of other events change? Yes, and in this chapter you will learn how to calculate the new chances. You will meet:
- [Concept] conditional probability: the chance of an event when you already know another event has happened;
- [Board Standard] the multiplication rule: finding the chance that two or more events all happen;
- [Board Standard] independent events: events that do not affect each other;
- [HOTS] the theorem of total probability and Bayes' theorem: combining several possible causes, and working backwards from an effect to its cause.
Try these on your own, then check. Each one is a plain "favourable over total" count.
Probability grew out of questions about games of chance, and it took several centuries to become a full branch of mathematics. Each step below answered a practical question: how to count chances, how to split a prize fairly, how to learn from evidence, and finally how to write the rules down exactly.
- Early traces. Written remarks about the chances in dice games appear as early as the 15th century, for example in a commentary on Dante’s Divine Comedy. Players already suspected that some totals come up more often than others.
- Girolamo Cardano (1501–1576) wrote a book on games of chance in which he counted the favourable cases for the totals of two dice. It was published after his death, in 1663: counting cases, the same skill this chapter practises, was the first method of the subject.
- Galileo Galilei (1564–1642) explained why, with three dice, a total of comes up more often than a total of . We can check his reasoning: out of 216 equally likely outcomes, there are ways to make and only ways to make . Six of the apparent combinations split into different numbers of orders, and counting orders settles it.
- 1654: the birth of the theory. Blaise Pascal (1623–1662) and Pierre de Fermat (1601–1665) exchanged letters about a question on how to divide the stakes of an unfinished game fairly. Pascal used algebra and Fermat used counting of combinations. Their correspondence is generally seen as the true beginning of probability theory: fair division led to expected value.
- Christiaan Huygens (1629–1695) heard about their work and wrote the first printed book on probability, published in 1657. It spread the new ideas across Europe.
- Jacob Bernoulli (1654–1705) wrote Ars Conjectandi ("The Art of Conjecturing"), published after his death in 1713. It contains the first form of the law of large numbers, which says frequencies settle near probabilities in many trials, and the study of what we now call the binomial distribution: the repeated-trials pattern of Section 13.4.
- Thomas Bayes (died 1761) worked out how to reverse a conditional probability: from the chance of the evidence given each cause to the chance of each cause given the evidence. His essay was published after his death, in 1763. The rule you learned in Section 13.5 carries his name, and it now powers medical testing, spam filters and machine learning.
- Andrey Kolmogorov (1903–1987) gave probability a firm logical foundation in 1933. He treated probability as a function on sets, with a few simple rules (axioms) from which all the rest follows: non-negativity, total probability , and addition over disjoint events. Every rule in this chapter descends from those three.
13.2 Conditional Probability and Its Properties
Imagine a quiz where each question has four choices. Before you read the question, every choice looks equally likely. Then the teacher says: "the answer is not choice D." Suddenly three choices remain, and each has a better chance than before. A clue changes what is possible. Here is the same idea with dice. Roll two dice, and suppose you are told: "at least one die shows a ". Call this clue event . Now only the outcomes with a are still possible. There are 11$ of them. The sum is (event ) in only 2$ of these: and . So, given , the chance of is . Before the clue it was .
The same grid of 36 dots as before, now in three colours. Eleven teal dots are the outcomes where at least one die shows 6, which lie in the top row and the right-hand column. Two of these, (2, 6) and (6, 2), are orange: they also have sum 8. The other 25 dots are pale grey and are ruled out by the clue.
Read the figure by colour. Grey dots are ruled out by the clue, so ignore them completely. Teal dots are the new world: eleven outcomes with at least one 6, forming the top row and the right-hand column. Orange dots are the overlap: they satisfy the clue and have sum 8. Two orange dots among eleven coloured dots give 2/11. A conditional probability is an ordinary probability computed inside the coloured region only.
We write this as , read "the probability of given ". The vertical bar means "given that we know". We can calculate it in two equivalent ways:
- [Board Standard] Shrink the sample space. Count only the outcomes in : . Cross out everything outside and count what is left.
- [HOTS] Use probabilities. Divide the chance of "both" by the chance of the clue:
Check: and , so , the same as before. The condition is needed because you cannot be given a clue that can never happen. Why do the two methods agree? Dividing the top and bottom of by turns counts into probabilities, and cancels. So shrinking the sample space and dividing probabilities are the same step written two ways.
Read the schematic as a picture of the shrinking. The big rectangle is the clue F with its 11 outcomes: your new sample space. The orange ellipse inside holds the 2 outcomes also in E; the rest holds the 9 of F that miss E. The conditional probability is the orange part over the whole rectangle: 2/11.
A bag holds red and blue balls. Two balls are drawn one after the other, without putting the first back. Given that the first ball is red, what is the chance that the second is red too? After a red ball is removed, balls are left, and of them are red. So the answer is . The computer listed all ordered draws and agrees: . In words: the first draw changes the bag, and the second draw sees the changed bag.
| first \ second | red second | blue second | row total |
|---|---|---|---|
| red first | 20 | 15 | |
| blue first | 15 | 6 | |
| column total |
Read this contingency table one row at a time. The first row fixes the clue "first ball red": 35 ordered draws, of which 20 have a red second ball. So . The second row gives a bonus result the same way: given a blue first ball, the chance the second is red is , because all red balls are still in the bag. Each row of a contingency table is one conditional probability.
A card is drawn from a standard deck of 52. A face card means a jack, queen or king. There are 12 face cards, 26 red cards and 13 cards of each suit.
- [Concept] Given that it is a face card (jack, queen or king; cards), the chance that it is a king is . The four kings sit inside the twelve face cards.
- [Board Standard] Given that the card is red, the chance that it is a heart is . Half of the red cards are hearts.
- [HOTS] Given that the card is a heart, the chance that it is red is . A heart is always red, so the clue settles the question completely.
Notice the pattern across the three items: the clue selects a smaller group, and the answer counts how much of the event lies inside that group. When the event lies fully inside the clue, as in the third item, the answer is 1.
Pause and test yourself with these. For each one, name the clue, shrink the sample space, and count.
Once the clue is known, acts like a new sample space. So conditional probabilities follow the same rules as ordinary probabilities, with playing the role of . In symbols, obeys every rule that obeys. The examples below use one card drawn from a deck, with the clue : "the card is red" ( cards). Let be "the card is a king" and "the card is a heart". Every value was found by counting.
- [Concept] Property 1. , and . Example: , and . Knowing makes certain.
- [Board Standard] Property 2 (addition rule). . Example: , , and (only the king of hearts). So the right side is . Counting the red cards that are kings or hearts ( out of ) gives .
- [Board Standard] Property 3 (complement). . Example: the chance that a red card is not a king is , and counting ( out of ) gives .
- [HOTS] Property 4 (disjoint events). If and cannot happen together, then . Example: let be "the card is an ace". Kings and aces are disjoint, so . The computer confirms by counting.
| event (given red) | kings () | hearts () | king of hearts () | kings or hearts () |
|---|---|---|---|---|
| share of red cards |
Read the table as one row of shares. Every entry divides by the same 26 red cards, which is exactly the shrinking step of conditional probability. The last column checks Property 2 in numbers: 2/26 + 13/26 - 1/26 = 14/26, because the king of hearts is counted in both middle columns.
One more check before you move on. Both parts use the same clue, so Property 3 connects them.
13.3 Multiplication Theorem on Probability and Independent Events
Sometimes you want the chance that two things both happen: first , then . A quality checker tests an item twice. A card player needs two aces in a row. Rearranging the definition gives the multiplication theorem:
In words: the chance of " and then " is the chance of , times the chance of once has happened. Reversing the roles gives as well. The second factor is where the work lies: you must recompute the chance of the second event inside the changed situation.
A bag has red and blue balls. Two balls are drawn without replacement. Find the chance that both are red. The first is red with chance . Given that, the second is red with chance . So
Listing all ordered draws by computer gives the same . Notice that both fractions are needed: the first describes the full bag, the second the bag after one red ball has left.
Read the tree from left to right. The start dot splits into the two possible first draws, with branch chances and . Each first draw splits again into the two possible second draws, with chances recomputed for the smaller bag: after a red first ball the second is red with chance , but after a blue first ball it is red with chance . at the top leaf is the product along its path. To find the chance of a path, multiply along its branches; to find the chance of an effect, add the paths that lead to it.
The rule extends to more events: . Each new factor conditions on everything before it. A bag has red and blue balls. Three balls are drawn without replacement. Find the chance of "red, then blue, then red". Multiply step by step: for the first, then from the smaller bag, then from the still smaller bag. So . Every time a ball is removed, the numbers in the next fraction change: to to on the bottom, and the reds drop only when a red ball actually leaves. Listing all ordered draws agrees: .
Two cards are drawn from a deck without replacement. The chance that both are aces is . The computer listed all ordered pairs and agrees: .
If the first ball is put back before the second draw, the bag is the same each time. For the bag in Example 1, . This is larger than from Example 1, because a red ball is still available to be drawn again. The table below compares the two situations for the same bag.
| two draws | both red | both blue | mixed (one each) |
|---|---|---|---|
| without replacement | |||
| with replacement |
Read the table across each row. Without replacement the mixed case is , found by subtracting both-red and both-blue from . With replacement it is . Replacement always raises the chance of repeats, because nothing is ever used up. This table also checks that each row adds to , as the three columns form a partition of the two draws.
Practise the multiplication rule on these. Write each factor before you multiply.
Sometimes a clue does not change the chances. Toss a coin and roll a die. Knowing that the coin shows heads tells you nothing about the die, because the two objects do not interact. We say these events are independent. Two events are independent when knowing one has happened does not change the chance of the other:
Putting this into the multiplication theorem gives the working test for independence, which avoids conditional probabilities entirely:
(If and , the two statements are equivalent: each follows from the other by multiplying or dividing by . The non-zero condition matters, because is undefined when .) Events that are not independent are called dependent.
Roll two dice. Let be "the first die is even" and "the sum is ". Then , , and has three outcomes, , so . And . The two are equal, so and are independent, even though both are about the same dice. Whatever the first die shows, there is always exactly one second-die number that makes the sum : if the first die is even, that partner is odd, and there are three such pairs out of eighteen even-first outcomes, which is the same share as out of .
The grid of 36 dice outcomes in four colours. The outcomes where the first die is even (2, 4 or 6) form three columns and are teal, except for three outcomes that are also on the sum-7 diagonal, which are orange: (2, 5), (4, 3) and (6, 1). The remaining outcomes on the sum-7 diagonal, (1, 6), (3, 4) and (5, 2), are purple. All other dots are pale grey.
Read the figure as shares, not counts. The teal columns (E) cover exactly half the grid. The purple-and-orange diagonal (F) has six dots, and exactly half of them, the three orange ones, lie inside the teal columns. So knowing F leaves the share of E at one half, and knowing E leaves the share of F at 6/36 = 1/6. Equal shares in both directions is what independence looks like.
Keep = "the first die is even" but let now be "the sum is ". Then , , and (the outcomes ). But , which is not . So these events are dependent: an even first die makes a sum of more likely ( of the ways to make start with an even number, which is more than half). The same first event can be independent of one sum and dependent on another.
Toss a coin and roll a die ( outcomes). Let be "heads" and "the die is even". Then , , , and . Independent, as expected for two separate objects that cannot influence each other.
In a deck of cards, "the card is a king" and "the card is a heart" are also independent: , , and . Here independence is a numerical fact about the deck, not about physical separation.
Two events are mutually exclusive if they cannot happen together, so . If both have non-zero probability, then , so they cannot be independent. Example: "the card is an ace" and "the card is a face card" are exclusive. The chance of both is 0, but the product ... more exactly is not zero. Knowing the card is an ace tells you for certain it is not a face card, so the events are very dependent. Exclusive events with non-zero probability are always dependent: the occurrence of one rules out the other completely.
If and are independent, so are and (and and , and and ). In Example 1, the event "the sum is not " is also independent of "the first die is even": the computer confirms it. This matches common sense: if a clue about does not help, a clue about "not " does not help either. You will prove this pattern in an exercise.
Three events are mutually independent only if every pair is independent and . Pairwise independence is not enough. Toss two coins. Let = "first is heads", = "second is heads", = "the two coins match". Each pair is independent (each pair has probability ). But , while . So the three events are not mutually independent: knowing and both happened settles for certain.
Toss a fair coin times. The tosses are independent, each with chance of heads. What is the chance of exactly heads? One order, say HHTT, has chance by the multiplication rule. But HHTT is not the only order: the computer counts orders with exactly heads (HHTT, HTHT, HTTH, THHT, THTH, TTHH), and the orders are disjoint. So , and counting all outcomes agrees: . This pattern, a count of orders times the chance of one order, is called the binomial distribution: it describes the number of successes in a fixed number of independent trials.
Bar chart of the number of heads in 4 fair coin tosses. Five bars stand at 0, 1, 2, 3 and 4 heads with heights 1/16, 1/4, 3/8, 1/4 and 1/16. The middle bar at 2 heads is the tallest. The shape is symmetric.
Read the bars from left to right as heads. The heights are , , , and , and they add to . The middle bar is tallest because there are 6 orders with heads but only order each with or heads: with a fair coin every order is equally likely, so the outcome with the most orders wins. The symmetry comes from heads and tails trading places. Section 13.5 will reuse this "orders times one-order chance" idea when trials have unequal chances.
Test the independence test on these. Compute both sides every time; never guess from the story.
13.4 Partition of Sample Space and Theorem of Total Probability
Before Bayes’ theorem can run, the possible causes must be sorted into a clean list. A set of events is a partition of the sample space if:
- [Concept] the events are complete: together they cover all of , that is ; no outcome is left homeless;
- [Board Standard] the events are separate: no two of them can happen together, that is for ; no outcome is double-booked;
- [HOTS] each event is possible: for every ; empty cases are not allowed, because conditioning on them is meaningless.
In other words, every outcome belongs to exactly one of the events. Think of cutting a cake into slices: the slices do not overlap and together they make the whole cake. A partition is the cake-cutting of probability: it turns one big question into several small non-overlapping ones.
Read the bar as the whole sample space of two dice. The left slice holds sums below 6, the thin middle slice holds exactly 6, and the right slice holds sums above 6. The slice widths match the shares 5/18, 5/36 and 7/12, which add to 1. No sum belongs to two slices and no sum is missing: that is what a partition looks like.
- [Concept] Roll two dice. "the sum is less than ", "the sum is ", and "the sum is more than " form a partition. Their probabilities are , and , and they add up to 1.
- [Board Standard] "The first die is even" and "the first die is odd" form a partition: every roll has an even or an odd first die, never both.
- [Board Standard] In a deck of cards, the four suits form a partition. So do "aces" ( of the deck), "face cards" () and "number cards from to " ().
- [HOTS] Any event with , together with its complement , forms a partition. (Checked for = "the sum is ".) This two-case partition is the workhorse of Bayes’ theorem: "the cause happened" versus "it did not".
The probabilities of the events in a partition always add to , because every outcome is counted exactly once. This is why priors in Bayes’ theorem must add to : they are the shares of a partition.
Each failure below breaks exactly one of the three conditions. Naming the broken condition is the skill being tested.
- [Concept] "The first die is less than " and "the second die is less than ". These overlap: is in both. They also do not cover everything: is in neither. Two conditions broken at once.
- [Board Standard] "The sum is " and "the sum is ". They are separate, but they do not cover all outcomes (for example the sum is missing). Completeness fails.
- [HOTS] "The first die is less than " and "the first die is more than ". The second event is impossible, so it is not allowed in a partition. Possibility fails.
Decide each case by testing all three conditions, and say which condition fails when the answer is no.
Let be a partition of , with for each , and let be any event. Because the are complete and separate, the event splits into separate pieces : the part of that came through each cause. Adding their probabilities and using the multiplication theorem on each piece gives the theorem of total probability:
In words: the chance of is a weighted average of its chance in each case. If a cause were missing, its piece would never be added; if two causes overlapped, their shared piece would be counted twice.
There are three bags, each holding balls. Bag has red and blue. Bag has red and blue. Bag has red and blue. One bag is chosen at random and one ball is drawn from it. What is the chance that the ball is red?
The three bags are a partition, each with chance . The chance of red inside each bag is , , . So
Listing all balls (each equally likely to be the one drawn) gives as well: count the red balls directly. The joint table collects the same calculation in the shape you will reuse for every Bayes problem.
| bag | share | red rate | joint |
|---|---|---|---|
| total |
Read the table down the last column: each joint entry is its row share times its row red rate, and the total at the foot is exactly the total-probability sum. The three joint entries 1/5, 1/15 and 4/15 are the three red paths of the tree below.
A tree diagram that starts at a point on the left and splits into three branches, one for each bag: Bag A, Bag B and Bag C, each with probability one third. Each bag splits again into a red branch and a blue branch. The leaf labels give the chance of that colour in the bag and the chance of the whole path. The red paths are: Bag A one fifth, Bag B one fifteenth, Bag C four fifteenths. These three red paths add up to eight fifteenths.
Read the tree as paths. The first fork chooses the bag, each with chance 1/3. The second fork draws the ball, with chances that depend on the bag: bag A gives red with 3/5 while bag B gives red with only 1/5. To find the chance of a path, multiply along its branches: 1/3 times 3/5 is 1/5 for the top red path. To find the chance of red, add the three red paths: 1/5 + 1/15 + 4/15 = 8/15. The tree and the table are the same calculation drawn two ways.
Now we can answer the reverse question. If we know the ball is red, how likely is it that it came from bag ? Start from the definition of conditional probability, and use the multiplication theorem on the top and total probability on the bottom:
This is Bayes’ theorem. The numerator is the chance of the path through to , computed by the multiplication rule. The denominator is the chance of all paths to , computed by total probability. So Bayes’ theorem says: the new chance of a cause is its share of all the paths that lead to the effect. The old chances are called priors; the new chances are called posteriors.
For the bags: . Divide numerator and denominator by their common structure: . In the same way and . These three add up to , as they must, because the ball came from exactly one bag. Direct counting among the red balls out of confirms the value for : . Notice that bag started with chance and, after seeing a red ball, its chance rose to : red balls point at bag because it holds the most red.
A factory has three machines. Machine makes half of all items (), machine makes and machine makes . The fractions of defective items are , and . An item is chosen at random and is found to be defective. Which machine most likely made it? The trap answer is machine , which makes the most items. The correct answer needs Bayes’ theorem, because machine is far more likely to make a defective one.
| Machine | Share | Defective rate | Product | After the check |
|---|---|---|---|---|
Read the products as paths: , and . The products add up to , that is 4.5% of all items are defective. Dividing each product by this total gives the last column: , and . Machine makes the fewest items, but it makes the most defective ones, so it is the most likely source. The denominator is shared: compute the total once, then divide each path by it.
Read this tree the same way as the bags tree. The first fork splits items by machine; each machine forks into a defective branch (D) and a good one (ok). The three D leaves carry 1/100, 3/200 and 1/50, adding to 9/200. Dividing the M3 leaf 1/50 by 9/200 gives 4/9: the tallest teal bar below.
A bar chart with three groups for Machine 1, 2 and 3. In each group the left bar is the prior chance that an item came from that machine, and the right bar is the chance after the item is found to be defective. For Machine 1 the bars go from 0.50 down to 0.22. For Machine 2 they are 0.30 and 0.33. For Machine 3 they go from 0.20 up to 0.44.
Read the bars in pairs. Grey is each machine’s share of all items: machine 1 dominates at 0.50. Teal is its share among defective items: machine 3 now leads at about 0.44 while machine 1 drops to about 0.22. The evidence shifts belief from the biggest producer to the worst one.
Suppose of the components in a batch are faulty. A test flags of faulty components, but it also flags of good ones by mistake. A component is flagged. What is the chance that it is really faulty? Most people guess about . They confuse the test’s hit rate with the answer. Count in a batch of :
- [Concept] Faulty components: . The test flags of them ().
- [Board Standard] Good components: . The test flags of them by mistake ().
- [HOTS] Total flagged: . Only of these are faulty.
So , about 19.3%. Bayes’ theorem gives the same: . Compute the denominator piece by piece: and , and the sum is . The surprise comes from the fact that good components are far more common, so even a small mistake rate flags many of them. A positive result from a rare-condition test is weak evidence on its own.
Work each one through the five steps above: priors, rates, products, total, divide.
13.5 Bayes' Theorem and Multi-Stage Probability Trees
So far you calculated the chance of an effect when the cause was known. For example: "machine makes a part, so what is the chance the part is defective?" Real life often goes the other way. A product is found defective, and you ask: which machine made it? A person tests positive, and you ask: is the person really ill? You find a red ball, and you ask: which bag did it come from?
These are reverse questions. You know , the chance of the clue given the cause, and you want , the chance of the cause given the clue. These are not the same number, and you cannot just swap them. Swapping a conditional probability without recomputing is the most expensive mistake in this chapter. Bayes’ theorem turns one into the other.
To state it we first need two ideas: a partition of the sample space (a way to split all the possible causes into separate cases that cover everything), and the theorem of total probability (a way to add up the chance of the effect across all the causes). The plan for this section is:
- 13.5.1 makes "separate and complete" exact: partitions, with dice and card examples.
- 13.5.2 builds the total from the parts, states Bayes’ theorem, and works through three full examples: bags, machines and a medical-style test.
Bayes' theorem applies only when the causes form a partition: exactly one of them happened, and the list covers every possibility. If two causes can happen together, or some possibility is missing, the theorem does not apply until the cases are fixed. Watch for this condition in every example below.
13.6 Miscellaneous Worked Examples
The examples below mix every tool of the chapter: conditional probability, the multiplication rule, independence and Bayes’ theorem. Each one says which tool it uses and why. Work them in order: the tools pile up.
Two dice are rolled. Given that the sum is at least , find the chance that at least one die shows . The sum is at least in outcomes: (chance ). Five of them contain a . So the answer is . The tool is conditional probability: shrink to the large-sum outcomes, then count.
Two cards are drawn from a deck without replacement. What is the chance that the second card is an ace? Split by the first card, which forms the partition "ace / not ace". If the first is an ace (chance ), the second is an ace with chance . If not (chance ), it is . Total probability gives . This is the same as the chance that the first card is an ace: symmetry, because no position in a shuffled deck is special. (Listing all ordered pairs agrees.) Now reverse the question with Bayes’ theorem: given that the second card is an ace, the chance that the first was an ace is . Counting ordered pairs directly agrees: .
Two independent alarms detect a fault with chances and . Both detect: . Neither detects: . At least one detects: . Exactly one detects: . The three cases (both, exactly one, neither) form a partition: . The tool is independence plus complements: with independent alarms, multiply for "and" and subtract from for "at least one".
Bag has red and blue balls. Bag has red and blue balls. One ball is moved at random from bag to bag , and then a ball is drawn from bag . Find the chance that it is red. If it is red, what is the chance that the moved ball was red?
The moved ball is red with chance . Then bag has red out of , so the chance of red is . The moved ball is blue with chance . Then bag has red out of , so the chance is . So . By Bayes’ theorem, . The tool is total probability for the first question (the moved ball is the partition) and Bayes’ theorem for the reverse.
Suppose , and . Then . Next, . And . Notice that : against . The tools are the multiplication theorem run backwards, then the addition rule, then the definition of conditional probability.
Five parts pass a checking station. Each part is defective with chance , independently. What is the chance that exactly one part is defective? One fixed pattern, say "first defective, rest good", has chance by the multiplication rule. There are choices for which part is the defective one, and the patterns are disjoint, so . The computer listed all equally likely outcome rows and agrees: . The tool is the binomial pattern from Section 13.4, now with an uneven chance.
Grouped bar chart of the number of successes in 5 independent trials for two success rates. Six groups stand at 0 to 5 successes. Grey bars show a fair coin with p = 1/2: symmetric, peaking at 2 and 3 successes. Teal bars show a quality check with p = 1/4: tallest at 1 success and falling away, with 5 successes almost invisible.
Read the grouped bars as two experiments side by side. Grey is a fair coin tossed times (): symmetric, peaking at and heads with each. Teal is the quality check (): tallest at defective part with , then falling, with defectives almost invisible at . Both sets of six bars add to . Changing the per-trial chance slides the whole distribution: rare events per trial make small counts dominate.
13.7 Miscellaneous Exercise on Probability
13.8 Chapter Summary and Probability Decision Matrix
The chapter moves in one direction: from counting, to counting with a clue, to chaining events, to reversing the question.
- Conditional probability: , for . Equivalently, count only the outcomes in . The clue becomes the new sample space.
- Properties: ; ; ; . The clue after the bar never changes inside one calculation.
- Multiplication theorem: . For three events, . Multiply along a tree path.
- Independent events: , which means . Complements of independent events are independent. Mutually exclusive events with non-zero probability are never independent.
- Three events are mutually independent only if every pair is independent and .
- Repeated trials (binomial pattern): for independent trials with success chance , count the orders with successes and multiply by the chance of one order. Fair coins give a symmetric distribution; small pushes the peak towards .
- Partition: events that are separate, complete and possible. Their probabilities add up to .
- Total probability: : a weighted average over the cases.
- Bayes’ theorem: . Numerator and denominator computed separately, then divided.
- Do not confuse with : the hit rate of a test is not the chance that a flagged case is real.