मंथिकाManthika
Menu
IN REVIEW

Free while we finish the books. A book in review is free to read and use, and so is its PDF. Once the book is finished, its PDF is ₹299.

From certainty to likelihood

The card lies face down, one of the 52.

Your cousin shuffles a pack of 52 cards. She draws one and lays it face down on the table. “Is it a king?” she asks. Four of the 52 cards are kings, so the chance is $4/52 = 1/13$. Then she lifts one corner, looks, and says only: “It is a picture card.” A picture card is a jack, a queen or a king (also called a face card). What is the chance of a king now?

One dot for each card in the pack. Four of the 52 are kings, so the chance of a king is 1 in 13.
before
a picture card
What you learn changes the number. Before: 1/13. Once you hear it is a picture card: 1/3.

It is not 1 in 13 any more. The card has not changed. What has changed is what you know. Only the 12 picture cards are still possible, and 4 of them are kings. So the chance is now $4/12 = 1/3$.

Probability counts the cases. A die has six faces, three of them even: 3 in 6.

In Class 10 and Class 11 you asked how likely an event is when nothing else is known. You counted the outcomes and divided. But most real questions come after you learn something. A test result comes back. Your cousin says the card is a picture card. A team scores first.

The 52 cards split twice: picture card or not, then king or not. Of the 12 picture cards, how many are kings?

Here is the question to carry to the last page. How does a chance change when you learn something? And how do you work back from what you saw to what most likely caused it?

Brahmagupta
A SCHOLAR INDIA REMEMBERS

Brahmagupta wrote the Brahmasphutasiddhanta at Bhillamala, now Bhinmal in Rajasthan, around 628 CE, a work on astronomy and mathematics. Think of the card the way an astronomer thinks of a forecast: 1 in 13 is the forecast. “It is a picture card” is what you were told. Keep what you are told, and change the chance.

Check yourself
  1. Every earlier chapter in this book asked what is true, given fixed rules. What new question does this closing chapter ask instead?
    1. how many outcomes a sample space can contain
    2. what is true, given a larger and more complete rule set
    3. what is likely, given only part of the picture
    4. whether a given event is possible at all
    Check your answer
    1. how many outcomes a sample space can contain — Counting outcomes is a tool from earlier chapters. This chapter’s new question is about likelihood given partial information, not about how many outcomes exist.
    2. what is true, given a larger and more complete rule set — This chapter is not a harder version of the old true/false question. It asks a different kind of question entirely: what is likely, given only partial information.
    3. ✓ what is likely, given only part of the picture — (C) This chapter shifts from certainty to degree: given only part of the picture, what is likely? Conditional probability, Bayes’ theorem, and random variables are three ways of answering that one question.
    4. whether a given event is possible at all — A plain possible-or-not check is a yes/no question. This chapter asks for a DEGREE of likelihood, given only part of the picture, not a bare possibility verdict.
  2. Here is a card drawn face down: $4$ of the $52$ cards are kings, so the chance of a king is $1/13$. Then your cousin says it is a picture card, and the chance is not $1/13$ any more. What has changed?
    1. what you know: you have heard it is a picture card, so the chance goes up
    2. the count must start again from scratch, without the $4$ kings already known
    3. nothing yet: the chance cannot change until it is certain whether it is a king
    4. a picture card rules out every number card, so a king is now certain
    Check your answer
    1. ✓ what you know: you have heard it is a picture card, so the chance goes up — (A) The card has not changed. What has changed is what you know: you have heard it is a picture card, and the chance of a king goes up from $1/13$ to $1/3$.
    2. the count must start again from scratch, without the $4$ kings already known — Nothing is thrown away. The picture card narrows the $52$ cards to the $12$ picture ones, $4$ kings and $8$ others, so the old count of kings is still used.
    3. nothing yet: the chance cannot change until it is certain whether it is a king — The chance moves before anything is certain. It goes from $1/13$ to $1/3$, and $1/3$ is still a chance, not a certainty.
    4. a picture card rules out every number card, so a king is now certain — A picture card does not rule out a jack or queen: $8$ of the $12$ picture cards are not kings. Of the $12$ picture cards, $4$ are kings, so the chance is $1/3$, not $1$.
  3. In Class 10 and Class 11 you found how likely an event is when nothing else is known. What does this chapter say about most real questions?
    1. they come after you learn something, like a test result
    2. they have too many outcomes to count one by one
    3. they need numbers too large for counting and dividing
    4. they ask whether an event can happen at all, not how likely it is
    Check your answer
    1. ✓ they come after you learn something, like a test result — (A) This chapter says most real questions come after you learn something: a test result comes back, a friend tells you the card is red, a team scores first.
    2. they have too many outcomes to count one by one — This chapter does not say the outcomes are too many. It says the question changes: it comes after you learn something, like a test result.
    3. they need numbers too large for counting and dividing — Size is not the point. This chapter says most real questions come after you learn something, and then the chance has to change.
    4. they ask whether an event can happen at all, not how likely it is — Real questions still ask how likely something is. What is new is that they ask it after you learn something, such as a team scoring first.

↑ Back to top

Reading the notation

▲CONCEPT

You have a card still lying face down. Its chance of being a king changed from 1 in 13 to 1 in 3 when you heard one fact. This section gives you the symbols to write that change. Each symbol is a short way to say a sentence you can already say. One picture carries all of them: the 36 outcomes of two dice.

One grid, two events

Throw two dice, a first and a second. Each outcome is a pair, such as $(4, 4)$. There are $6 \times 6 = 36$ pairs, all equally likely, and together they make the sample space $S$. Read $S$ as “every outcome”. Now name two events. $A$ is “the total is 8”. $B$ is “the first die shows 4”.

Two dice, 36 cells. A, a total of 8, is 5 cells. B, a first die of 4, is the 6 cells of row 4.

*Read $P(A)$ as* “the probability of $A$”. To find it, count the outcomes of $A$ and divide by all 36. $A$ holds $(2, 6)$, $(3, 5)$, $(4, 4)$, $(5, 3)$ and $(6, 2)$, so $P(A) = 5/36$. $B$ is the whole of row 4, six outcomes, so $P(B) = 6/36 = 1/6$.

Left: A ∩ B is the one cell (4, 4). Right: A ∪ B is 5 + 6 − 1 = 10 cells.

*Read $A \cap B$ as* “$A$ and $B$”: both happen at once. Only one cell is in both, $(4, 4)$, so $P(A \cap B) = 1/36$.

*Read $A \cup B$ as* “$A$ or $B$, or both”. Count the five cells of $A$ and the six of $B$, but count the shared cell $(4, 4)$ once. That gives $5 + 6 - 1 = 10$ cells, so $P(A \cup B) = 10/36$. This is the addition rule of Class 11: $P(A \cup B) = P(A) + P(B) - P(A \cap B)$.

A′, not A, is every cell outside the five: 31 of 36. A and A′ fill the grid, so 5/36 + 31/36 = 1.

*Read $A'$ as* “not $A$”. It holds every outcome that is not in $A$: the 31 cells outside the five. So $P(A') = 31/36$. You can also get it from $P(A)$, since $A$ and $A'$ together fill $S$: $P(A') = 1 - 5/36 = 31/36$.

The bar is a wall

Now suppose you are told that the first die shows 4. You do not know the second die yet. Write the new question as $P(A|B)$, and read it as “the probability of $A$, given $B$”. The bar is a wall: whatever stands to its right is known, and the sample space reduces to it.

Given B, only row 4 is left, six cells. One of them, (4, 4), adds to 8, so P(A|B) is 1 in 6.

Count only the outcomes in B. Only row 4 is left, six equally likely outcomes. Of those, one adds to 8: the cell $(4, 4)$. So $P(A|B) = 1/6$. Before you knew $B$, the chance of a total of 8 was $5/36$. Knowing $B$ has changed it, as the picture card changed the chance of a king.

It is a share. $P(A|B)$ is never “$A$ divided by $B$”. It is never $P(A \cap B)$ either: it is $A$’s share of $B$. Here $P(A \cap B) = 1/36$, the shared cell’s share of all 36 cells. But $P(A|B) = 1/6$, the same cell’s share of row 4 alone. The cell is the same. What you divide by is not.

Swap the two sides of the bar and the question changes. Given B: 1 cell of 6. Given A: 1 cell of 5.

Now turn it round. Suppose you are told only that the total is 8. Then the sample space reduces to the five cells of $A$. One of them, $(4, 4)$, has a first die of 4, so $P(B|A) = 1/5$. $P(A|B)$ and $P(B|A)$ are different questions with different answers: 1 in 6 against 1 in 5. The two grids side by side are the proof.

Here is every symbol of this section in one table. Cover the last two columns and fill them in from the grid.

SymbolRead it asThe cellsCountValue
$S$the sample space, every outcomethe whole grid$36$
$P(A)$the probability of $A$the five cells that add to 8$5$$5/36$
$P(B)$the probability of $B$the six cells of row 4$6$$6/36 = 1/6$
$P(A \cap B)$both $A$ and $B$the one cell $(4, 4)$$1$$1/36$
$P(A \cup B)$$A$ or $B$, or boththe five and the six, the shared cell once$10$$10/36$
$P(A')$not $A$every cell outside the five$31$$31/36 = 1 - 5/36$
$P(A|B)$the probability of $A$, given $B$only row 4 is left; in it, $(4, 4)$1 of 6$1/6$
$P(B|A)$the probability of $B$, given $A$only the five cells are left; in them, $(4, 4)$1 of 5$1/5$

The card in symbols

Go back to the card. Let $K$ be “the card is a king”, and let $F$ be “the card is a picture card”. Then $P(K) = 4/52$ and $P(F) = 12/52$. Every king is a picture card, so $K \cap F$ is just the four kings, and $P(K \cap F) = 4/52$. Given $F$, only the 12 picture cards are left, and 4 of them are kings. So $P(K|F) = 4/12 = 1/3$. That is the change from 1 in 13 to 1 in 3, written in symbols.

Counting works here because every outcome is equally likely and you can list them all. The next section makes “given” exact for any two events, with one formula.

↑ Back to top

Probability, once you know something

▲CONCEPT
A die lies hidden under the cup. Once you hear that it is even, only 2, 4 and 6 are left.
Six faces, one of them a 6. Before anyone peeks, the chance of a 6 is 1 in 6.

A friend throws a die and hides it under a cup. What is the chance that it shows a 6? The six faces are equally likely, so it is 1 in 6.

Told the face is even, cross out 1, 3 and 5. One of the three faces left is a 6.

Now your friend peeks and says, “It is even.” Three faces are left: 2, 4 and 6. They are still equally likely. So the chance of a 6 is now 1 in 3. The new fact reduced the sample space from six outcomes to three: this narrower set is the REDUCED SAMPLE SPACE, the board’s term for it.

A is a 6, B is even. Inside B only the 6 is in A, so P(A|B) is 1 in 3.

Let us write that with events, in the symbols of the last section. Let $B$ be the event you are told has happened. Let $A$ be the event you ask about. Once $B$ is known, only the outcomes in $B$ count. Of those, the ones that also lie in $A$ make up $A \cap B$.

Two dice, told the total is 9. Four pairs remain, one with a 6 first: 1 in 4, against 1 in 6 before.

A ratio of chances

The CONDITIONAL PROBABILITY of $A$ given $B$ is $P(A|B) = P(A \cap B)/P(B)$, provided $P(B) \neq 0$.

Given something that cannot happen, nothing is left to count. P(A|B) needs P(B) above 0.

You read $P(A|B)$ as “the probability of $A$, given $B$”. The bar is not a division. If $P(B) = 0$, there is nothing to divide by. Then $P(A|B)$ is not defined.

Counting inside B and dividing the shares agree: 1/6 divided by 3/6 is 1/3.

Check it on the die. Here $A$ is “a 6” and $B$ is “an even number”. So $A \cap B = \{6\}$, with $P(A \cap B) = 1/6$ and $P(B) = 3/6$. Then $P(A|B) = (1/6)/(3/6) = 1/3$, as you counted.

Left: P(A) is A’s share of the whole space. Right: given B, P(A|B) is the overlap’s share of B.

The figure draws the same idea. On the left, $P(A)$ is the share of $A$ in the whole space. On the right, you are given $B$, so the part of $A$ outside $B$ is greyed out. Now $P(A|B)$ is the share of $B$ that the overlap takes up.

Reduce the sample space

Your turn: a die shows a number greater than 3. What is the chance that it is even?

Check yourself
  1. For events $A$ and $B$ with $P(B) > 0$, how is $P(A|B)$ defined?
    1. $P(A \cap B)/P(B)$
    2. $P(A) \cdot P(B)$
    3. $P(A \cup B)/P(B)$
    4. $P(B \cap A)/P(A)$
    Check your answer
    1. ✓ $P(A \cap B)/P(B)$ — (A) $P(A|B) = P(A \cap B)/P(B)$ is the fraction of $B$’s own probability that also lies in $A$, restricting the sample space to $B$ and re-measuring $A$ inside it.
    2. $P(A) \cdot P(B)$ — $P(A) \cdot P(B)$ is the independence test, and it only equals $P(A \cap B)$ when the events happen to be independent. The definition of $P(A|B)$ holds for any two events, independent or not.
    3. $P(A \cup B)/P(B)$ — Union counts every outcome in $A$ or $B$. Conditioning on $B$ restricts attention to $B$’s own outcomes, then asks what fraction also lies in $A$, which is the intersection over $P(B)$, not the union.
    4. $P(B \cap A)/P(A)$ — Dividing by $P(A)$ instead of $P(B)$ computes $P(B|A)$, the reverse conditional. $P(A|B)$ divides the shared outcomes by $B$’s own probability, since $B$ is the event being conditioned on.
  2. Why does the definition of $P(A|B)$ require $P(B) > 0$?
    1. because $A$ and $B$ must be independent for the ratio to make sense
    2. because probabilities below $0.5$ make the formula unstable near that value
    3. because $A$ must be a subset of $B$ for the fraction to be meaningful
    4. dividing by $P(B) = 0$ is undefined, since given B needs B to be achievable
    Check your answer
    1. because $A$ and $B$ must be independent for the ratio to make sense — Independence is never required. $P(A|B)$ is defined for any two events with $P(B) > 0$, related or not. Confusing the two conditions is a common mix-up.
    2. because probabilities below $0.5$ make the formula unstable near that value — The formula is exact for any $P(B)$ in $(0, 1]$, however small. There is no instability near $0.5$; the one genuine barrier is $P(B) = 0$, where division is undefined.
    3. because $A$ must be a subset of $B$ for the fraction to be meaningful — No subset relationship is needed. $A$ and $B$ can overlap partially, fully, or not at all; the formula measures whatever fraction of $B$ also lies in $A$.
    4. ✓ dividing by $P(B) = 0$ is undefined, since given B needs B to be achievable — (D) The one genuine barrier is $P(B) = 0$: given B presumes B can actually happen, and dividing by zero has no value at all.
  3. A courier tracks whether it rains ($R$) and whether a delivery is late ($L$). What does $P(L|R)$ restrict attention to, according to the definition?
    1. every day in the data set, weighted by how likely rain was that day
    2. the days it did not rain, since those form the baseline to compare against
    3. just the rainy days, with late deliveries re-measured inside that smaller set
    4. the days both it rained and the delivery was late, with no further comparison
    Check your answer
    1. every day in the data set, weighted by how likely rain was that day — That describes a weighted average over every day. Conditioning on $R$ throws away the non-rainy days entirely and re-measures only inside the rainy ones.
    2. the days it did not rain, since those form the baseline to compare against — Conditioning on $R$ keeps the days $R$ happened, not its complement. The days it did not rain are exactly what gets set aside.
    3. ✓ just the rainy days, with late deliveries re-measured inside that smaller set — (C) $P(L|R)$ restricts attention to the days $R$ happened, then re-measures $L$ inside that narrower space, exactly as $P(A|B) = P(A \cap B)/P(B)$ prescribes.
    4. the days both it rained and the delivery was late, with no further comparison — The intersection is only the numerator. $P(L|R)$ also divides by $P(R)$, turning the raw intersection into a fraction of the narrowed sample space.
  4. Two events $A$, $B$ satisfy $P(A \cap B) = 0$ but $P(B) > 0$. What is $P(A|B)$?
    1. $P(B)$
    2. $1$
    3. $0$
    4. undefined
    Check your answer
    1. $P(B)$ — $P(A|B) = P(A \cap B)/P(B)$, and here the intersection is $0$, so the ratio is $0$ regardless of $P(B)$, not $P(B)$ itself.
    2. $1$ — Conditioning does not force certainty. If $A$ and $B$ never overlap, none of $B$’s outcomes are ever in $A$, so $P(A|B) = 0$, the lowest possible value.
    3. ✓ $0$ — (C) $P(A|B) = P(A \cap B)/P(B)$, and here the intersection is $0$, so the ratio is $0$, the lowest possible value.
    4. undefined — Only a zero denominator makes $P(A|B)$ undefined. Here $P(B) > 0$ and the numerator is $0$, giving a perfectly defined answer of $0$.
  5. A weather app states $P(R) = 0$ for tomorrow, where $R$ is rain. Someone asks for $P(U|R)$, where $U$ is a sales spike in umbrellas. What does the definition say about this conditional probability?
    1. it equals $0$, since an impossible condition forces every conditional probability to vanish
    2. it is undefined, because dividing by $P(R) = 0$ has no numerical value
    3. it equals $1$, since anything follows once the premise is impossible
    4. it still equals $P(U)$, since rain cannot influence sales if it never happens
    Check your answer
    1. it equals $0$, since an impossible condition forces every conditional probability to vanish — Undefined and zero are not the same thing. Dividing by $P(R) = 0$ has no value at all; it is not that the answer happens to be $0$.
    2. ✓ it is undefined, because dividing by $P(R) = 0$ has no numerical value — (B) $P(U|R) = P(U \cap R)/P(R)$, and with $P(R) = 0$ the division has no value at all, not zero.
    3. it equals $1$, since anything follows once the premise is impossible — Anything follows from a false premise is a rule from formal logic, not from the probability ratio $P(U \cap R)/P(R)$, which simply has no value when $P(R) = 0$.
    4. it still equals $P(U)$, since rain cannot influence sales if it never happens — The formula still divides by $P(R)$; it is never skipped just because $R$ is unlikely or impossible. With $P(R) = 0$ the division itself has no answer.
▲CONCEPT
Once B is known, B is the whole. Its three faces share the chance equally, 1/3 each.

A conditional probability is still a probability. It uses $B$ as its new whole. Take any event $B$ with $P(B) \neq 0$. Three facts follow from the definition.

Given B, something in the sample space still happens for sure: P(S|B) is 3 out of 3, which is 1.

First, $P(S|B) = P(B|B) = 1$. Once you know that $B$ happened, $B$ is certain. So the whole space $S$ is certain too.

Given even: odd is impossible, 0. A 6 is 1/3. Not a 3 is certain, 1. Every answer stays between 0 and 1.

Second, $0 \leq P(A|B) \leq 1$ for every event $A$. The part $A \cap B$ lies inside $B$. So its chance can never be more than the chance of $B$.

Inside B, an event and its opposite still add to 1: 1/3 for a 6, 2/3 for not a 6.

Third, the complement rule still works. Here $A'$ is the event “not $A$”. Then $P(A'|B) = 1 - P(A|B)$. On the die, given “even”, a 6 has chance $1/3$. So “not a 6” has chance $2/3$. Those are the faces 2 and 4.

The addition rule works inside B too. Less than 5 or prime, given even: 2/3 + 1/3 − 1/3 = 2/3.

The addition rule carries over as well. For any events $A$ and $C$, $P((A \cup C)|B) = P(A|B) + P(C|B) - P((A \cap C)|B)$. If $A$ and $C$ cannot both happen, the last term is 0.

Left: given B, all of B counts, so P(S|B) = 1. Right: A cuts B in two, and the two shares add to 1.

The figure shows the first and third facts. On the left, $B$ is the whole, and its share is 1. On the right, $A$ cuts $B$ in two. The two shares, $P(A|B)$ and $P(A'|B)$, add to 1.

Swap the condition and the answer changes: a 6 given even is 1/3, but even given a 6 is certain.

In each fact, $B$ stays fixed. If you change the event after the bar, you change the question.

Check yourself
  1. Given that event $B$ has happened, with $P(B) > 0$, what is $P(S|B)$, where $S$ is the whole sample space?
    1. $1$
    2. undefined
    3. $P(B)$
    4. $0$
    Check your answer
    1. ✓ $1$ — (A) Once $B$ is known to have happened, the entire sample space $S$ is certain given $B$, so $P(S|B) = 1$ always.
    2. undefined — $P(B) > 0$ is given, so $P(S|B) = P(S \cap B)/P(B) = P(B)/P(B) = 1$ is a well-defined ratio, not an undefined one.
    3. $P(B)$ — Once $B$ is known to have happened, the entire sample space $S$ is certain given $B$, not just $B$’s own probability. $P(S|B) = 1$ always.
    4. $0$ — $P(S|B) = 0$ would mean the whole sample space is impossible given $B$, the opposite of what conditioning on a fixed event guarantees.
  2. Why can $P(A \cap B)$ never exceed $P(B)$, the fact behind $0 \leq P(A|B) \leq 1$?
    1. because $A$ and $B$ must be independent, which caps their overlap automatically
    2. because every probability is capped at $1$ by definition
    3. because $A$ must be larger than $B$ for the ratio to be meaningful
    4. $A \cap B$ is a subset of $B$, so it cannot exceed $P(B)$
    Check your answer
    1. because $A$ and $B$ must be independent, which caps their overlap automatically — No independence is assumed. $A \cap B$ is a subset of $B$ for any two events; the subset relationship alone forces the bound, with no independence condition needed.
    2. because every probability is capped at $1$ by definition — Every probability is at most $1$, but that generic fact does not explain why $P(A \cap B)$ is capped by $P(B)$ specifically. That tighter bound comes from the subset relationship.
    3. because $A$ must be larger than $B$ for the ratio to be meaningful — No size comparison between $A$ and $B$ is required. The bound follows purely from $A \cap B$ being a subset of $B$, regardless of which event is larger.
    4. ✓ $A \cap B$ is a subset of $B$, so it cannot exceed $P(B)$ — (D) $A \cap B$ is a subset of $B$ for any two events, so its probability can never exceed $P(B)$, giving $0 \leq P(A|B) \leq 1$.
  3. The complement rule states $P(A'|B) = 1 - P(A|B)$. What does $A'$ mean here?
    1. the complement of $A$ inside the whole sample space $S$
    2. the complement of $A$ inside $B$ alone, not the whole sample space
    3. the event that $B$ does not happen
    4. the event that neither $A$ nor $B$ happens
    Check your answer
    1. ✓ the complement of $A$ inside the whole sample space $S$ — (A) $A'$ is the ordinary complement of $A$ inside all of $S$; conditioning on $B$ changes the measure being used, not what $A'$ itself means.
    2. the complement of $A$ inside $B$ alone, not the whole sample space — $A'$ is the ordinary complement of $A$ inside all of $S$, the same as everywhere else in probability. Conditioning on $B$ changes the measure being used, not what $A'$ means.
    3. the event that $B$ does not happen — That describes $B'$, the complement of $B$. The rule complements $A$, the event whose probability is being conditioned, not the event being conditioned on.
    4. the event that neither $A$ nor $B$ happens — Neither $A$ nor $B$ describes $(A \cup B)'$, a smaller event. $A'$ alone is everything outside $A$, whether or not $B$ happens there.
A is even, B is 3 or 6. Given B, one face in two is even: a half, the same as 3 in 6 before.
Given 3 or 6, even and odd each take one face: 1/2 + 1/2 = 1.
Worked example

Find $P(A|B)$ directly and by the formula, for a fair die

  1. $A = \{2, 4, 6\}$ (“the number is even”), $B = \{3, 6\}$ (“the number is a multiple of 3”)
    A fair die is thrown once. Find $P(A|B)$ in two ways.
  2. Keep only $B$’s two outcomes, $\{3, 6\}$
    Given $B$, only the outcomes in $B$ are left. They are still equally likely.
  3. Exactly one of $B$’s two outcomes, $6$, is also in $A$
    Count the outcomes of $B$ that are also in $A$.
  4. $P(A|B) = 1/2$ by counting alone
    One outcome out of two. That is the first way.
  5. $P(B) = 2/6 = 1/3$, $A \cap B = \{6\}$ so $P(A \cap B) = 1/6$
    Now work in the full sample space of six outcomes.
  6. *$P(A|B) = P(A \cap B)/P(B) = (1/6)/(1/3) = 1/2$*
    The formula gives the same answer. Dividing by $P(B)$ is the same as reducing the sample space to $B$.
  7. Check: $P(A'|B) = 1/2$, from the face $3$, and $1/2 + 1/2 = 1$
    Given $B$, either $A$ happens or it does not. The two chances add to 1, and each lies between 0 and 1.
Check yourself
  1. A fair die is rolled once. $A$ is the number is even, $B$ is the number is a multiple of $3$. Counting directly within $B = \{3, 6\}$, what is $P(A|B)$?
    1. $1/3$
    2. $1/2$
    3. $2/3$
    4. $1/6$
    Check your answer
    1. $1/3$ — $1/3$ is $P(B)$, the chance of landing in $B$ in the first place. $P(A|B)$ asks a different question: once inside $B$, what fraction also lies in $A$.
    2. ✓ $1/2$ — (B) Within $B = \{3, 6\}$, only $6$ is also in $A$, one outcome out of two, giving $P(A|B) = 1/2$ by counting alone.
    3. $2/3$ — $2/3$ is $P(A \cup B)$: the union is $\{2, 3, 4, 6\}$, which is $4$ of the $6$ faces. $P(A|B)$ counts only inside $B = \{3, 6\}$, where $1$ outcome of $2$ is in $A$.
    4. $1/6$ — $1/6$ treats the die as still having six equally likely faces. Conditioning on $B$ restricts attention to just its two outcomes, $\{3, 6\}$, before counting.
  2. Checking the same example against the formula, $P(B) = 1/3$ and $P(A \cap B) = 1/6$. What does $P(A \cap B)/P(B)$ evaluate to?
    1. $2$
    2. $1/18$
    3. $1/2$
    4. $1/6$
    Check your answer
    1. $2$ — Inverting the ratio gives $(1/3)/(1/6) = 2$, which cannot even be a probability. The formula divides the intersection by $P(B)$, not the other way around.
    2. $1/18$ — The formula divides, it does not multiply: $(1/6)/(1/3) = 1/2$. Multiplying instead gives $1/18$, an unrelated number.
    3. ✓ $1/2$ — (C) $(1/6)/(1/3) = 1/2$, matching the direct count exactly.
    4. $1/6$ — $1/6$ is $P(A \cap B)$ alone. The formula still requires dividing by $P(B) = 1/3$ to get the conditional probability, $1/2$.
  3. The worked example notes that counting directly and applying the formula give the same answer, $1/2$. What does this agreement illustrate about conditioning on $B$?
    1. that the formula only works when the sample space has six equally likely outcomes
    2. conditioning on $B$ is the shrink-the-space-then-count move, carried out algebraically
    3. that direct counting is always faster and the formula is never needed
    4. that $P(A|B)$ and $P(B|A)$ must always agree, since this example gives the same number either way
    Check your answer
    1. that the formula only works when the sample space has six equally likely outcomes — The formula holds for any sample space, equally likely outcomes or not. The die example is chosen because it is easy to double-check by direct counting, not because the formula needs it.
    2. ✓ conditioning on $B$ is the shrink-the-space-then-count move, carried out algebraically — (B) The formula and the direct count agree because conditioning on $B$ IS the shrink-the-sample-space-then-count move, whether it is done by hand or algebraically.
    3. that direct counting is always faster and the formula is never needed — Direct counting is convenient here because the outcomes are few and equally likely. The formula is exactly what is needed once a problem gets too complex to count by hand.
    4. that $P(A|B)$ and $P(B|A)$ must always agree, since this example gives the same number either way — This example never computes $P(B|A)$; it checks two different methods, direct counting and the formula, for the same quantity, $P(A|B)$. The two conditionals $P(A|B)$ and $P(B|A)$ can differ in general.

↑ Back to top

Turning the definition around

▲CONCEPT
A box of 6 sweets, 4 in red wrappers and 2 in blue. The first pick is red 4 times in 6.
First pick: 4 of the 6 sweets are red, so the chance of red is 4/6.

A box of sweets has 4 in red wrappers and 2 in blue. You take one without looking and eat it. Then you take a second. What is the chance that both are red?

After a red one is eaten, 5 sweets are left and 3 are red. The second chance depends on the first.

The first pick is easy. Four of the six are red, so the chance is 4 in 6, or 2 in 3. The second pick depends on the first. If the first was red, the box now holds 3 red and 2 blue. So the chance of a second red is 3 in 5.

The red column is 4/6 wide; red again takes 3/5 of it. The shaded piece is 4/6 × 3/5 = 2/5.

How do the two chances combine? A red comes first in 2 of every 3 tries. Of those, a second red follows 3 times in 5. So both are red in 3/5 of 2/3 of all tries.

Count the pairs instead: 30 ordered ways to take two sweets, 12 of them both red. 12/30 is 2/5 again.

Let us write that with events. Let $R_1$ be “the first is red” and $R_2$ be “the second is red”. Then $P(R_1 \cap R_2) = P(R_1) \cdot P(R_2|R_1) = 2/3 \cdot 3/5 = 2/5$.

Multiply along each path. The four ends, 6/15, 4/15, 4/15 and 1/15, add to 1.

This is the definition of conditional probability, turned around. Multiply both sides of $P(A|B) = P(A \cap B)/P(B)$ by $P(B)$.

Read the tree from the second sweet back. Red second: 2/3. Given that, red first: 3/5.

The rule for two events

The MULTIPLICATION THEOREM says that for events $A$ and $B$ with $P(A) \neq 0$ and $P(B) \neq 0$, $P(A \cap B) = P(A) \cdot P(B|A) = P(B) \cdot P(A|B)$. Either event can go first in the formula. The answer is the same.

The rule chains. Three reds in a row: 4/6 × 3/5 × 2/4 = 1/5.

For three events, each new event is taken as given all the ones before it: $P(A \cap B \cap C) = P(A) \cdot P(B|A) \cdot P(C|(A \cap B))$, provided $P(A \cap B) > 0$.

Four red and 2 blue, none put back. Red first: 2/3. Left: 3 red, 2 blue. Red again: 3/5. Both red: 6/15.

The figure draws the same thing as a bag of 4 red balls and 2 blue. The first strip shows red as 2 parts in 3. The second shows red as 3 parts in 5, since no ball goes back. Together, both red is 6 parts in 15.

Put the sweet back and the second pick forgets the first: both red becomes 4/9 instead of 2/5.

Now say the first sweet went back into the box. The second pick would see 4 red in 6 again. Then the first pick would change nothing at all. Such events are called independent, the next idea.

Check yourself
  1. Multiplying both sides of $P(A|B) = P(A \cap B)/P(B)$ by $P(B)$ gives which rearrangement?
    1. $P(A \cap B) = P(B) + P(A|B)$
    2. $P(A \cap B) = P(A) \cdot P(B)$
    3. $P(A \cap B) = P(A)/P(A|B)$
    4. $P(A \cap B) = P(B)P(A|B)$
    Check your answer
    1. $P(A \cap B) = P(B) + P(A|B)$ — Clearing a denominator by multiplying both sides preserves multiplication, not addition. $P(A \cap B) = P(B) \cdot P(A|B)$, never a sum.
    2. $P(A \cap B) = P(A) \cdot P(B)$ — $P(A) \cdot P(B)$ is the independence test, true only for independent events. The general rearrangement of the conditional-probability definition is $P(B) \cdot P(A|B)$, valid for any two events.
    3. $P(A \cap B) = P(A)/P(A|B)$ — The correct move multiplies both sides by $P(B)$, the quantity being cleared from the denominator, not dividing by $P(A|B)$.
    4. ✓ $P(A \cap B) = P(B)P(A|B)$ — (D) Clearing the denominator by multiplying both sides by $P(B)$ gives the multiplication theorem, $P(A \cap B) = P(B) \cdot P(A|B)$.
  2. The multiplication theorem gives two equivalent forms, $P(B) \cdot P(A|B)$ and $P(A) \cdot P(B|A)$. Why are both valid?
    1. because $P(A|B)$ and $P(B|A)$ are always equal to each other
    2. because one of the two forms is only an approximation of the other
    3. either event can be taken as given first, and both forms hold
    4. because $A$ and $B$ must be independent for both forms to hold
    Check your answer
    1. because $P(A|B)$ and $P(B|A)$ are always equal to each other — $P(A|B)$ and $P(B|A)$ are generally different numbers. The two products are equal to each other, not the two conditional probabilities inside them.
    2. because one of the two forms is only an approximation of the other — Both forms are exact, derived the same way from the conditional-probability definition. Neither is an approximation of the other.
    3. ✓ either event can be taken as given first, and both forms hold — (C) Both forms follow directly from the same definition of conditional probability, whichever event is treated as already known, so both are exact.
    4. because $A$ and $B$ must be independent for both forms to hold — No independence is needed. Both forms follow directly from the definition of conditional probability and hold for any two events with $P(A), P(B) > 0$.
  3. Extended to three events, the multiplication theorem gives $P(A \cap B \cap C) = P(A) \cdot P(B|A) \cdot P(C|(A \cap B))$. What does the last factor, $P(C|(A \cap B))$, condition on?
    1. none of the earlier events, since $C$ is independent of them
    2. only $B$ having already happened, not $A$
    3. only $C$ having already happened
    4. both $A$ and $B$ having already happened
    Check your answer
    1. none of the earlier events, since $C$ is independent of them — Independence is never assumed here. The three-event theorem conditions each new event on everything already assumed, whether or not the events happen to be independent.
    2. only $B$ having already happened, not $A$ — The chain conditions on everything already assumed, not just the most recent event. By the third factor, both $A$ and $B$ are already in the condition.
    3. only $C$ having already happened — $C$ is the event whose probability is being found, not the condition. The condition is everything already assumed to have happened before it, here both $A$ and $B$.
    4. ✓ both $A$ and $B$ having already happened — (D) The chain conditions each new event on everything already assumed to have happened, so by the third factor both $A$ and $B$ are already in the condition.

↑ Back to top

Independent events

▲CONCEPT
One plain silver coin with a star on it, beside one white die showing a 6 on top.
A coin and a die, thrown together. The coin has no way to push the die.

Throw a coin and a die at the same time. Does the coin change the die’s chances? No: tossing the coin has no effect on the die.

Told the coin fell heads, six outcomes remain. One has a 6: still 1 in 6.

So say the coin shows heads. The chance of a 6 is still 1 in 6. Learning about the coin told you nothing about the die.

12 outcomes: 6 heads, 2 sixes, 1 both. P(B|A) = (1/12)/(1/2) = 1/6, the same as P(B).

Let us check that with the formula. Let $A$ be “heads” and $B$ be “a 6”. There are 12 equally likely outcomes, from H1 to T6. Only H6 is in both, so $P(A \cap B) = 1/12$. Then $P(B|A) = (1/12)/(1/2) = 1/6$. That is $P(B)$ again.

The 6 takes the same height in both columns, so the cut runs straight. Independent: 1/2 × 1/6 = 1/12.

The product test

Two events $A$ and $B$ are INDEPENDENT EVENTS if $P(A \cap B) = P(A) \cdot P(B)$. When $P(A) \neq 0$, this is the same as $P(B|A) = P(B)$. When $P(B) \neq 0$, it is the same as $P(A|B) = P(A)$. Learning one event leaves the chance of the other as it was.

On a tree, independence looks like this: the same split under every branch.

For the coin and the die, $P(A) \cdot P(B) = 1/2 \cdot 1/6 = 1/12$. That equals $P(A \cap B)$, so they are independent.

Two dice. First a 3 and total 7: 1/36, equal to 1/6 × 1/6. Total 8 instead: 1/36, not 5/216.

You decide independence from the numbers, not from the story. Events can sound linked and still pass the test. The worked example below has a pair like that.

P(A) = 0.6 and P(B) = 0.35. Left, a straight cut: both 0.21, the product, so independent. Right, a jogged cut: both 0.30, dependent.

The figure draws independence in a square. $A$ is a column of width 0.6, and $P(B) = 0.35$. On the left, $B$ is cut straight across both columns. Then $P(A \cap B) = 0.6 \cdot 0.35 = 0.21$, so the events are independent. On the right, the cut jogs. Now $P(A \cap B)$ is 0.30, not 0.21, so they are dependent.

All four cells of the coin and die: 1/12, 5/12, 1/12, 5/12. Each is its row share times its column share.

One more fact. If $A$ and $B$ are independent, so are $A$ and $B'$. Here is why.

  1. $A$ splits into $A \cap B$ and $A \cap B'$, and the two cannot both happen.
  2. $P(A \cap B') = P(A) - P(A \cap B)$, because the two pieces add up to $P(A)$.
  3. $P(A \cap B) = P(A) \cdot P(B)$, because $A$ and $B$ are independent.
  4. $P(A \cap B') = P(A) \cdot (1 - P(B)) = P(A) \cdot P(B')$, factoring out $P(A)$ and using $P(B') = 1 - P(B)$.

*Swap $A$ and $B$ in the same argument,* and $A'$ and $B$ are independent too:

  1. $B$ splits into $B \cap A$ and $B \cap A'$, and the two cannot both happen.
  2. $P(B \cap A') = P(B) - P(B \cap A) = P(B) - P(A) \cdot P(B) = P(B) \cdot (1 - P(A)) = P(B) \cdot P(A')$.

*Apply the same result to $A'$ and $B$,* splitting by $B'$ this time, and $A'$ and $B'$ are independent too:

  1. $A'$ splits into $A' \cap B$ and $A' \cap B'$, and the two cannot both happen.
  2. $P(A' \cap B') = P(A') - P(A' \cap B) = P(A') - P(A') \cdot P(B) = P(A') \cdot (1 - P(B)) = P(A') \cdot P(B')$.
Brahmagupta
A SCHOLAR INDIA REMEMBERS

Has nothing happened, or has it told you something? Ask it of the coin. You learn that it fell heads. Six outcomes are left, and one of them is a $6$. So $P(B|A) = 1/6$, the same as before. That news told you nothing about the die. Now the sweets. Learn that the first one was red, and the box holds $3$ red in $5$, not $4$ in $6$. That news told you something.

Check yourself
  1. What is the defining test for two events $A$ and $B$ to be called independent?
    1. $A \cap B = \emptyset$
    2. $P(A \cap B) = P(A)P(B)$
    3. $P(A \cap B) = P(A) + P(B)$
    4. $P(A|B) = P(B|A)$
    Check your answer
    1. $A \cap B = \emptyset$ — $A \cap B = \emptyset$ defines mutually exclusive, not independent. Events with positive probability that are mutually exclusive can never be independent.
    2. ✓ $P(A \cap B) = P(A)P(B)$ — (B) Independence is checked from probabilities, not assumed from context: $P(A \cap B) = P(A) \cdot P(B)$ is the defining test.
    3. $P(A \cap B) = P(A) + P(B)$ — Addition of probabilities is a different rule, used for mutually exclusive events. Independence is tested by multiplying, not adding, the two probabilities.
    4. $P(A|B) = P(B|A)$ — Setting $P(A|B) = P(B|A)$ is not the independence test and can hold for dependent events too. The defining test is $P(A \cap B) = P(A) \cdot P(B)$.
  2. When $P(A) > 0$ and $P(B) > 0$, the product test $P(A \cap B) = P(A) \cdot P(B)$ is equivalent to which pair of statements?
    1. $P(A \cap B) = 0$ and $P(A \cup B) = P(A) + P(B)$
    2. $P(A|B) = P(A)$ and $P(B|A) = P(B)$
    3. $P(A|B) = P(B)$ and $P(B|A) = P(A)$
    4. $P(A|B) = 1$ and $P(B|A) = 1$
    Check your answer
    1. $P(A \cap B) = 0$ and $P(A \cup B) = P(A) + P(B)$ — A zero intersection describes mutually exclusive events, not independent ones. Independent events with positive probabilities generally have $P(A \cap B) > 0$.
    2. ✓ $P(A|B) = P(A)$ and $P(B|A) = P(B)$ — (B) Independence says conditioning on one event leaves the other’s own probability unchanged: $P(A|B) = P(A)$ and $P(B|A) = P(B)$.
    3. $P(A|B) = P(B)$ and $P(B|A) = P(A)$ — Independence says conditioning on one event leaves the OTHER’s own probability unchanged, $P(A|B) = P(A)$, not $P(A|B) = P(B)$.
    4. $P(A|B) = 1$ and $P(B|A) = 1$ — $P(A|B) = 1$ would mean $B$ guarantees $A$, a strong dependence, not independence. Independence keeps each event’s probability unchanged by the other, not forced to $1$.
▲CONCEPT
Odd and even share no face. They are mutually exclusive: both at once is impossible.

Mutually exclusive

Two events are MUTUALLY EXCLUSIVE if they cannot both happen. Then $A \cap B = \emptyset$, so $P(A \cap B) = 0$.

First thought
?
Joint chance
P(odd and even)
0
Product
1/2 × 1/2
1/4
not 0
It sounds as if events that never meet must be independent. The product test says no: 0 is not 1/4.

Independent is a different idea. It says that knowing one event does not change the chance of the other. The two words can sound alike. They mean different things.

Mutually exclusive, so the joint chance is 0. The product is 1/4. Dependent.

Take two events with $P(A) \neq 0$ and $P(B) \neq 0$. Say they are mutually exclusive. Then $P(A \cap B) = 0$. But $P(A) \cdot P(B)$ is more than 0. The product test fails, so they are not independent.

Learn the face is odd and even drops from 1/2 to 0. Knowing one changed the other.

If $A$ happens, you know for sure that $B$ did not.

Left: A and B never meet, so both together is 0, below the product. Never independent. Right: overlapping, independent only if equal to the product.

The figure puts the two cases side by side. On the left, the circles $A$ and $B$ do not meet. So $P(A \cap B) = 0$, while $P(A) \cdot P(B)$ is more than 0. They are never independent. On the right, the circles overlap. They are independent only if the overlap equals the product.

Events can overlap and still be independent. Odd and 1 or 2 share one face: 1/6 = 1/2 × 1/3.

Here is a pair that can happen together. Throw a die. Let $A$ be “an odd number” and $B$ be “a number less than 3”. Then $A \cap B = \{1\}$, so $P(A \cap B) = 1/6$. And $P(A) \cdot P(B) = 1/2 \cdot 1/3 = 1/6$. So these two are independent.

Test two faces

Your turn: throw a die. Let $A$ be “a 1” and $B$ be “a 2”. Find $P(A \cap B)$ and $P(A) \cdot P(B)$. Are $A$ and $B$ independent?

Check yourself
  1. For events with $P(A) > 0$ and $P(B) > 0$, why can mutually exclusive events never be independent?
    1. because mutually exclusive events always have unequal probabilities
    2. because mutually exclusive events cannot both have positive probability
    3. a zero intersection can never equal a positive product
    4. because the two definitions were never meant to be compared
    Check your answer
    1. because mutually exclusive events always have unequal probabilities — Mutual exclusivity is silent on whether $P(A)$ and $P(B)$ are equal. The real reason is that $P(A \cap B) = 0$ can never match a positive product $P(A) \cdot P(B)$.
    2. because mutually exclusive events cannot both have positive probability — Mutually exclusive events can both have positive probability. A $1$ and a $2$ on one roll of a die never happen together, yet each has chance $1/6$.
    3. ✓ a zero intersection can never equal a positive product — (C) Mutual exclusivity forces $P(A \cap B) = 0$, and a positive product $P(A) \cdot P(B)$ can never equal zero, so the two conditions cannot both hold.
    4. because the two definitions were never meant to be compared — The two conditions are directly comparable, and for events with positive probability they are provably incompatible, not simply two unrelated ideas.
  2. If event $A$ happens, and $A$, $B$ are mutually exclusive, what does that tell you about $B$?
    1. $B$ must happen next, since the two events take turns
    2. $B$ is now impossible, since the two cannot both occur
    3. $B$ becomes more likely, since one of the two events already occurred
    4. $B$’s probability is unaffected, exactly as with independent events
    Check your answer
    1. $B$ must happen next, since the two events take turns — Mutual exclusivity describes a single trial, not a sequence of turns. It says $A$ and $B$ cannot both happen at once, and says nothing about what happens next.
    2. ✓ $B$ is now impossible, since the two cannot both occur — (B) Mutually exclusive events crowd each other out: once $A$ has happened, $B$, which could never happen alongside $A$, is now impossible.
    3. $B$ becomes more likely, since one of the two events already occurred — Mutually exclusive events crowd each other out, not support each other. If $A$ has happened, $B$, which could never happen alongside $A$, is now ruled out.
    4. $B$’s probability is unaffected, exactly as with independent events — That describes independence, the opposite case. Mutual exclusivity means knowing $A$ happened is the most informative thing possible about $B$: it rules $B$ out entirely.
  3. A teacher says two events with $P(A) = 0.3$, $P(B) = 0.4$, and $P(A \cap B) = 0.12$ are mutually exclusive. Is this consistent with the definitions?
    1. yes; since $P(A) + P(B) = 0.7$, which is less than $1$, the events can be mutually exclusive
    2. no; the events are neither independent nor mutually exclusive, since $0.12$ matches neither test exactly
    3. yes; since $0.12$ is small, the events barely overlap, which is close enough to mutually exclusive
    4. no; $0.12 = P(A) \cdot P(B) = 0.3 \cdot 0.4$, so they are independent; disjoint events would need $0$
    Check your answer
    1. yes; since $P(A) + P(B) = 0.7$, which is less than $1$, the events can be mutually exclusive — $P(A) + P(B) \leq 1$ is necessary for mutual exclusivity but not sufficient; it never guarantees $P(A \cap B) = 0$. Here the actual intersection is $0.12$, not $0$.
    2. no; the events are neither independent nor mutually exclusive, since $0.12$ matches neither test exactly — $0.3 \cdot 0.4 = 0.12$ exactly, matching the independence test precisely. Skipping the arithmetic check misses that the numbers do match one of the two definitions.
    3. yes; since $0.12$ is small, the events barely overlap, which is close enough to mutually exclusive — Mutual exclusivity is exact, not a matter of degree: it requires $P(A \cap B) = 0$ precisely. A small but nonzero overlap like $0.12$ already rules it out.
    4. ✓ no; $0.12 = P(A) \cdot P(B) = 0.3 \cdot 0.4$, so they are independent; disjoint events would need $0$ — (D) $0.3 \cdot 0.4 = 0.12$ matches the given intersection exactly, so the product test shows these events are independent, not mutually exclusive.
▲CONCEPT
Three tosses, eight equal ends. Each pair of tosses multiplies, and so do all three together: 1/8.

Three events $A$, $B$ and $C$ are mutually independent if all four of these hold. - $P(A \cap B) = P(A) \cdot P(B)$. - $P(A \cap C) = P(A) \cdot P(C)$. - $P(B \cap C) = P(B) \cdot P(C)$. - $P(A \cap B \cap C) = P(A) \cdot P(B) \cdot P(C)$. If even one of them fails, you cannot call the three independent.

Two tosses and three events: heads first, heads second, and the two the same.

Why check the last one? The three pairs can pass while the triple fails. Toss a coin twice. Let $A$ be “a head on the first toss” and $B$ be “a head on the second”. Let $C$ be “the two tosses match”. The four outcomes HH, HT, TH and TT are equally likely.

Every pair passes the product test. All three together fail: 1/4, not 1/8. Pairs are not enough.

Each event has chance $1/2$. Each pair meets only in HH, with chance $1/4 = 1/2 \cdot 1/2$. So every pair passes the test. But all three also meet only in HH. So $P(A \cap B \cap C) = 1/4$, while the product is $1/8$. The three events are not independent.

Independent repeats multiply, and the chain shrinks: one 6 is 1/6, three in a row 1/216.

For independent events $A_1, A_2, \ldots, A_n$, the chances multiply: $P(A_1 \cap A_2 \cap \ldots \cap A_n) = P(A_1) \cdot P(A_2) \cdot \ldots \cdot P(A_n)$. Here independent means the product rule holds for every group of the events, not only for the pairs.

Each step works with chance 0.8. Two steps give 0.64 and three give 0.512. Four give 0.4096, below the even-odds line at 0.5.

The figure shows how fast such a product shrinks. Each step works with chance 0.8. Two steps give 0.64, and three give 0.512. Four steps give 0.4096, which is below an even chance of 0.5. Five give 0.32768.

Check yourself
  1. For independent events $A_1, A_2, \ldots, A_n$, what is $P(A_1 \cap A_2 \cap \ldots \cap A_n)$?
    1. $P(A_1) \cdot P(A_2)$, extended no further for $n > 2$
    2. $P(A_1) + P(A_2) + \ldots + P(A_n)$
    3. $P(A_1|A_2) \cdot P(A_2|A_3) \cdot \ldots \cdot P(A_{n-1}|A_n)$
    4. $P(A_1) \cdot P(A_2) \cdot \ldots \cdot P(A_n)$
    Check your answer
    1. $P(A_1) \cdot P(A_2)$, extended no further for $n > 2$ — The chain rule extends to all $n$ events, not just the first two. Every probability in the list gets multiplied in, however many events there are.
    2. $P(A_1) + P(A_2) + \ldots + P(A_n)$ — Independent events chain by multiplying their probabilities directly, not adding them. A sum is the rule for combining mutually exclusive probabilities, a different situation.
    3. $P(A_1|A_2) \cdot P(A_2|A_3) \cdot \ldots \cdot P(A_{n-1}|A_n)$ — Independence removes the need for conditioning entirely. Each trial’s probability is unaffected by the others, so the plain unconditional probabilities multiply directly.
    4. ✓ $P(A_1) \cdot P(A_2) \cdot \ldots \cdot P(A_n)$ — (D) Independent events chain by multiplying their probabilities directly, with no conditioning needed, giving $P(A_1) \cdot P(A_2) \cdot \ldots \cdot P(A_n)$.
  2. What does it mean for events to satisfy pairwise independence but not the full chain rule?
    1. the events must have unequal probabilities
    2. every pair passes the test, but not all events at once
    3. the events are mutually exclusive instead of independent
    4. no two of the events can ever be independent of each other
    Check your answer
    1. the events must have unequal probabilities — Whether the probabilities are equal or unequal plays no role here. The gap between pairwise and full independence is about how many events are checked together, not their sizes.
    2. ✓ every pair passes the test, but not all events at once — (B) Pairwise independence means every pair passes the product test, but full independence, needed for the chain rule, requires all events at once to satisfy it too.
    3. the events are mutually exclusive instead of independent — Pairwise independence and mutual exclusivity are unrelated ideas. Pairwise independence is a weaker form of independence, not a swap for a different condition entirely.
    4. no two of the events can ever be independent of each other — Pairwise independence means every pair DOES pass the product test, the opposite of what this option claims. The gap only appears once all events are considered together.
  3. A machine has three independent components, each working with probability $0.9$. What is the probability all three work?
    1. $0.9^3$
    2. $1 - 0.9^3$
    3. $0.9$
    4. $3 \cdot 0.9$
    Check your answer
    1. ✓ $0.9^3$ — (A) All three components must work at once, so their probabilities chain by direct multiplication: $0.9 \cdot 0.9 \cdot 0.9 = 0.9^3$.
    2. $1 - 0.9^3$ — $1 - 0.9^3$ is the chance at least one component fails, the complement of the question asked. All three working is $0.9^3$ directly, with no subtraction from $1$.
    3. $0.9$ — Using one component’s probability ignores the other two. All three must work at once, so their probabilities multiply: $0.9 \cdot 0.9 \cdot 0.9$, not $0.9$ alone.
    4. $3 \cdot 0.9$ — Scaling by count and adding gives $2.7$, which is not even a valid probability. Independent components chain by multiplying their probabilities: $0.9 \cdot 0.9 \cdot 0.9$.
Two dice, 36 cases. First die even: 18. Total 7: 6. Both: 3, and 18/36 times 6/36 is 3/36, so independent.
Each even first row holds exactly one 7. So 3 of 18, which is 1/6, the same as P(B).
Worked example

Test two dice events for independence

  1. $A$ = “first die shows an even number”, $B$ = “the sum of the two dice is 7”
    Two fair dice are thrown. Test the product rule on these two events.
  2. $P(A) = 18/36 = 1/2$
    Half of the 36 outcomes have an even first die.
  3. $P(B) = 6/36 = 1/6$
    Six of the 36 pairs add up to 7.
  4. $A \cap B = \{(2,5), (4,3), (6,1)\}$, $P(A \cap B) = 3/36 = 1/12$
    Count the pairs that are in both events.
  5. $P(A) \cdot P(B) = (1/2)(1/6) = 1/12$
    Multiply the two chances.
  6. *$P(A) \cdot P(B) = 1/12 = P(A \cap B)$, so the product rule holds: $A$ and $B$ are independent*
    For each first number, exactly one second number makes 7. So an even first die does not change the chance of a 7.
  7. Check: $P(A \cap B) + P(A' \cap B) = 3/36 + 3/36 = 6/36 = P(B)$
    $A$ and $A'$ split the space into two parts. The six pairs that make 7 are shared between them, 3 and 3.
Check yourself
  1. Two fair dice are rolled. $A$ is the first die shows an even number, $B$ is the sum is $7$. Direct counts give $P(A) = 1/2$, $P(B) = 1/6$, $P(A \cap B) = 1/12$. Does the product test show independence?
    1. no; the sum being $7$ should depend on the first die’s value, so they cannot be independent
    2. yes; $P(A) \cdot P(B) = 1/2 \cdot 1/6 = 1/12$, matching $P(A \cap B)$ exactly
    3. yes; but only approximately, since $1/12$ is close to but not exactly $P(A) \cdot P(B)$
    4. no; $1/2$ and $1/6$ are too different in size for the events to be independent
    Check your answer
    1. no; the sum being $7$ should depend on the first die’s value, so they cannot be independent — This chapter flags exactly this surprise: intuition suggests dependence, but the arithmetic check, $P(A) \cdot P(B) = P(A \cap B)$, is what actually decides it, and here the numbers match exactly.
    2. ✓ yes; $P(A) \cdot P(B) = 1/2 \cdot 1/6 = 1/12$, matching $P(A \cap B)$ exactly — (B) $1/2 \cdot 1/6 = 1/12$ matches the given $P(A \cap B)$ exactly, so the product test confirms independence.
    3. yes; but only approximately, since $1/12$ is close to but not exactly $P(A) \cdot P(B)$ — $1/2 \cdot 1/6 = 1/12$ exactly, no rounding involved. The product test is satisfied precisely, not merely approximately.
    4. no; $1/2$ and $1/6$ are too different in size for the events to be independent — Independence is decided by the exact equation $P(A \cap B) = P(A) \cdot P(B)$, never by comparing how similar in size the two probabilities look.
  2. The worked example notes every first-die value pairs with exactly one second-die value making the sum $7$. What does this fact explain?
    1. why $P(B)$ must always equal $1/6$ for any two dice
    2. why the two dice must be physically linked to always sum to $7$
    3. why $A$ and $B$ must be mutually exclusive
    4. why the count stays proportional, matching the product rule
    Check your answer
    1. why $P(B)$ must always equal $1/6$ for any two dice — $P(B) = 1/6$ is specific to this particular event, sum-equals-$7$, not a universal value for any $B$. The pairing fact explains why the count stays proportional, not why every $B$ has this probability.
    2. why the two dice must be physically linked to always sum to $7$ — No physical link between the dice is implied; this is a counting fact about outcomes, not a claim about how the dice behave. Each die is rolled independently of the mechanism.
    3. why $A$ and $B$ must be mutually exclusive — $A$ and $B$ overlap in three outcomes, $P(A \cap B) = 1/12 \neq 0$, the opposite of mutually exclusive. The pairing fact instead explains why the product rule holds exactly.
    4. ✓ why the count stays proportional, matching the product rule — (D) Because every first-die value pairs with exactly one second-die value giving sum $7$, the count of qualifying outcomes stays proportional, which is exactly what makes the product rule hold.
  3. Why does this worked example count outcomes among all $36$ equally likely pairs, rather than reasoning about the two dice in words alone?
    1. because counting outcomes is required before the multiplication theorem can be used
    2. because $36$ is the only sample space size the product test can be applied to
    3. exact probabilities need counting from the full set of equally likely dice outcomes
    4. because word reasoning about dice is never reliable for any probability problem
    Check your answer
    1. because counting outcomes is required before the multiplication theorem can be used — This example checks independence via the product rule directly, not the multiplication theorem. Counting supplies the exact probabilities the product test needs to be checked precisely.
    2. because $36$ is the only sample space size the product test can be applied to — The product test works for any sample space size. $36$ is simply the count of equally likely outcomes for two dice in this particular example, not a requirement of the test itself.
    3. ✓ exact probabilities need counting from the full set of equally likely dice outcomes — (C) The independence test needs exact probabilities, and counting from all $36$ equally likely pairs is what supplies that exactness.
    4. because word reasoning about dice is never reliable for any probability problem — The point is not that word reasoning is never reliable; it is that the independence test needs an exact equation checked. Counting from equally likely outcomes is what supplies the needed exactness here.

↑ Back to top

Splitting the sample space into cases

▲CONCEPT
A coin picks the bag: heads for bag A, 2 red and 1 white, tails for bag B, 1 red and 2 white.
Two cases, bag A and bag B, and every draw comes from exactly one of them.

Two bags sit on a table. Bag A holds 2 red balls and 1 white. Bag B holds 1 red ball and 2 white. You toss a coin. Heads, you draw a ball from bag A. Tails, you draw from bag B. What is the chance that the ball is red?

Each case gets its own branch. Red can happen in two ways: 1/3 through bag A, 1/6 through bag B.

Think about how a red ball can come. The coin can pick bag A, and the ball can be red. Or the coin can pick bag B, and the ball can be red. These two ways cannot both happen. And there is no third way, since the coin picks one bag every time.

Three pieces that do not overlap and cover the die: a partition. Their shares add to 1.
Two splits that fail. In one, the 3 is in two pieces. In the other, the 3 is in none.

Splitting into cases like this is a PARTITION. Events $E_1, E_2, \ldots, E_n$ form a partition of the sample space $S$ if three things hold. - They are pairwise disjoint: $E_i \cap E_j = \emptyset$ for $i \neq j$. - Together they make up $S$: $E_1 \cup E_2 \cup \ldots \cup E_n = S$. - Each one has $P(E_i) > 0$. Then every outcome falls in exactly one of them.

Coin and ball together give six equal chips. Each is 1/6, and each sits in one bag.

For the bags, $E_1$ is “the coin picks bag A” and $E_2$ is “the coin picks bag B”. Each has chance $1/2$. They cannot both happen, and one of them always does. So they form a partition.

Three cases split one bar into 0.5, 0.3 and 0.2, which add to 1. Below, an overlap and a gap: not partitions.

The figure shows a partition as one strip. It is cut into $E_1$, $E_2$ and $E_3$, of widths 5/10, 3/10 and 2/10. They add to 1. Below it are two splits that fail. In one, two pieces overlap. In the other, a gap is left.

A split to check

Your turn: throw a die. Let $E_1$ be “an even number” and $E_2$ be “a multiple of 3”. Do $E_1$ and $E_2$ form a partition?

Check yourself
  1. What three conditions must events $E_1, E_2, \ldots, E_n$ satisfy to form a partition of $S$?
    1. pairwise disjoint, at least one $E_i$ covering most of $S$, and each with $P(E_i) > 0$
    2. pairwise disjoint, union equal to all of $S$, and equal probabilities for every $E_i$
    3. pairwise disjoint, union equal to all of $S$, and each $E_i$ with positive probability
    4. pairwise independent, union equal to all of $S$, and each with $P(E_i) > 0$
    Check your answer
    1. pairwise disjoint, at least one $E_i$ covering most of $S$, and each with $P(E_i) > 0$ — A partition must cover all of $S$ exactly, with nothing left over, not merely most of it covered by one large piece.
    2. pairwise disjoint, union equal to all of $S$, and equal probabilities for every $E_i$ — A partition places no requirement on the sizes of the pieces, only that they are disjoint, cover $S$, and each have positive probability. Equal probabilities are never required.
    3. ✓ pairwise disjoint, union equal to all of $S$, and each $E_i$ with positive probability — (C) A partition requires the pieces to be pairwise disjoint, to union up to all of $S$, and each to carry positive probability.
    4. pairwise independent, union equal to all of $S$, and each with $P(E_i) > 0$ — Partition pieces are disjoint, not independent. Knowing one $E_i$ happened rules out every other one completely, the opposite of independence.
  2. In a valid partition $E_1, E_2, \ldots, E_n$ of $S$, how many of the $E_i$ does a single outcome in $S$ belong to?
    1. exactly one, since the $E_i$ are disjoint and together cover $S$
    2. exactly one, unless $n$ is large, in which case it may belong to two
    3. at least one, possibly more
    4. zero or one, depending on the outcome
    Check your answer
    1. ✓ exactly one, since the $E_i$ are disjoint and together cover $S$ — (A) Pairwise disjointness and the union covering all of $S$ together guarantee every outcome belongs to exactly one $E_i$.
    2. exactly one, unless $n$ is large, in which case it may belong to two — The count of pieces, $n$, plays no role in disjointness. However many pieces a partition has, each outcome still belongs to exactly one of them.
    3. at least one, possibly more — Pairwise disjointness rules out overlap entirely. An outcome cannot sit in two pieces at once; it belongs to exactly one, never two or more.
    4. zero or one, depending on the outcome — The union-equals-$S$ condition guarantees every outcome IS covered by some $E_i$. Zero pieces is never possible for a genuine partition.
  3. A factory’s output comes from three machines that between them make every unit exactly once, with no unit from two machines. What property of the machines lets the theorem of total probability be applied to find the overall defect rate?
    1. the machines partition the units, so each rate can be weighted and summed
    2. the machines produce units at the same rate, which the theorem requires
    3. the machines are independent of each other, which the theorem requires
    4. the machines each have the same defect rate, which lets the rates be averaged directly
    Check your answer
    1. ✓ the machines partition the units, so each rate can be weighted and summed — (A) Every unit made exactly once, by no more than one machine, is precisely the partition condition, which is what lets the theorem of total probability weight and sum each machine’s defect rate.
    2. the machines produce units at the same rate, which the theorem requires — The theorem places no requirement on equal output shares. The machines’ $P(E_i)$ values can differ freely; what matters is that together they partition every unit exactly once.
    3. the machines are independent of each other, which the theorem requires — The theorem needs a partition, not independence between the machines. Every unit exactly once, no overlap, is precisely the disjoint-and-exhaustive partition condition, not an independence claim.
    4. the machines each have the same defect rate, which lets the rates be averaged directly — The theorem is built to handle different defect rates per machine: each $P(A|E_i)$ is weighted by that machine’s own share $P(E_i)$ before summing, not simply averaged as if the rates matched.
▲CONCEPT
Red fills 2/3 of bag A’s column and 1/3 of bag B’s. The cut jogs; the red area is 1/2.

Back to the two bags. How likely is a red ball?

Add the red ends of the tree: 1/3 + 1/6 = 1/2. That is the total probability of red.

Split by the bag. The coin picks bag A half the time, and then red comes 2 times in 3. It picks bag B half the time, and then red comes 1 time in 3. Add the two ways. Let $R$ be “the ball is red”. Then $P(R) = 1/2 \cdot 2/3 + 1/2 \cdot 1/3 = 1/3 + 1/6 = 1/2$.

Laid end to end in sixths, the red pieces come to 3 of 6.

Each term is the multiplication theorem for one case. The cases cannot overlap, so their shares just add.

Three cases this time. Each branch gives a piece of 1/6, and the three pieces make P(A) = 1/2.

Adding over every case

Here is the THEOREM OF TOTAL PROBABILITY. Let $E_1, E_2, \ldots, E_n$ be a partition of $S$, with each $P(E_i) > 0$. Then for any event $A$, $P(A) = P(E_1) \cdot P(A|E_1) + P(E_2) \cdot P(A|E_2) + \ldots + P(E_n) \cdot P(A|E_n)$.

Counting chips gives the same answer: two red chips from bag A, one from bag B, 3 of 6.

Why is it true? The event $A$ splits into the pieces $A \cap E_1$ to $A \cap E_n$. No two pieces overlap, and together they make up $A$. So $P(A)$ is the total of their chances. By the multiplication theorem, each piece has chance $P(E_i) \cdot P(A|E_i)$.

Two cases, a quarter and three quarters. A takes 2 in 3 of the first, 1 in 3 of the second. P(A) = 5/12.

The figure works one more case. $E_1$ has chance $1/4$ and $E_2$ has $3/4$. Inside $E_1$, $A$ happens 2 times in 3. Inside $E_2$, it happens 1 time in 3. So $P(A) = 2/12 + 3/12 = 5/12$.

The ball is red. Which bag did it come from? The next section turns the tree around to answer.

You will use this total again in a moment. It is the denominator of Bayes’ theorem.

Check yourself
  1. If $E_1, \ldots, E_n$ partition $S$, what does the theorem of total probability say $P(A)$ equals?
    1. $P(E_1) \cdot P(A|E_1)$, using only the first partition element
    2. $\sum_i P(A|E_i)$, with no weighting by $P(E_i)$
    3. $\sum_i P(E_i) \cdot P(A|E_i)$
    4. $\text{max}_i [P(E_i) \cdot P(A|E_i)]$
    Check your answer
    1. $P(E_1) \cdot P(A|E_1)$, using only the first partition element — Using only $E_1$ ignores every other case in the partition. $P(A)$ needs the contribution from every $E_i$, summed together, not just the first one.
    2. $\sum_i P(A|E_i)$, with no weighting by $P(E_i)$ — Each case must be weighted by how likely that case is, $P(E_i)$, before summing. Adding the bare conditionals with no weight ignores how common each case is.
    3. ✓ $\sum_i P(E_i) \cdot P(A|E_i)$ — (C) Each case is weighted by how likely it is and by how likely $A$ is given that case, then summed over every case: $P(A) = \sum_i P(E_i) \cdot P(A|E_i)$.
    4. $\text{max}_i [P(E_i) \cdot P(A|E_i)]$ — Every case contributes, not just the largest one. The theorem sums the contribution from every $E_i$, since the cases are disjoint and their probabilities of leading to $A$ simply add.
  2. The theorem of total probability follows from applying the multiplication theorem to each case, then adding. Why is adding the case-by-case terms valid here?
    1. the disjoint cases never overlap, so their contributions add
    2. because $P(A)$ is always less than $1$, leaving room for the sum
    3. because every case has the same probability of leading to $A$
    4. because $A$ is independent of every $E_i$
    Check your answer
    1. ✓ the disjoint cases never overlap, so their contributions add — (A) Because the partition’s cases are disjoint, their contributions to $P(A)$ never double-count, so the case-by-case terms simply add.
    2. because $P(A)$ is always less than $1$, leaving room for the sum — The size of $P(A)$ plays no role in why the terms add. Adding is valid because the partition’s cases are disjoint, so their contributions to $A$ never double-count.
    3. because every case has the same probability of leading to $A$ — Nothing requires the conditional probabilities $P(A|E_i)$ to be equal across cases; each can differ freely. Adding is valid because the cases themselves are disjoint, not because their outcomes match.
    4. because $A$ is independent of every $E_i$ — If $A$ were independent of every $E_i$, each $P(A|E_i)$ would just equal $P(A)$, and the theorem would say nothing new. Its value comes from $P(A|E_i)$ varying across cases.
  3. Bayes’ theorem’s denominator, $\sum_j P(E_j) \cdot P(A|E_j)$, is identical to the right-hand side of which other result in this chapter?
    1. the multiplication theorem’s two-event form
    2. the independence test, $P(A \cap B) = P(A) \cdot P(B)$
    3. the theorem of total probability’s formula for $P(A)$
    4. the definition of conditional probability, $P(A \cap B)/P(B)$
    Check your answer
    1. the multiplication theorem’s two-event form — The multiplication theorem produces a single product for one pair of events, not a sum over a whole partition. The sum $\sum_j P(E_j) \cdot P(A|E_j)$ is exactly the total-probability formula for $P(A)$.
    2. the independence test, $P(A \cap B) = P(A) \cdot P(B)$ — The independence test is a single product for two events, with no sum over cases. Bayes’ denominator sums a product over every element of a partition, the total-probability formula, not the independence test.
    3. ✓ the theorem of total probability’s formula for $P(A)$ — (C) The sum $\sum_j P(E_j) \cdot P(A|E_j)$ is exactly the theorem-of-total-probability formula for $P(A)$, reused as Bayes’ theorem’s denominator.
    4. the definition of conditional probability, $P(A \cap B)/P(B)$ — The conditional-probability definition is a single ratio for two events, with no sum over cases at all. Bayes’ denominator sums over an entire partition, matching the total-probability formula instead.

↑ Back to top

Bayes’ theorem

▲CONCEPT
A test that is right 90% of the time, for the ill and for the well. What does a positive mean?

In 2020 and 2021, many people took a test for Covid. Say your test comes back positive. Does that mean you are ill? Not always. Let us work it out with small numbers.

1000 people, 10 of them ill. The test flags 9 of the ill and 99 of the well.

Say 10 people in 1000 have an illness. A test for it is right 90% of the time, for the ill and for the well. Of the 10 ill people, 9 test positive. Of the 990 well people, 10% test positive by mistake. That is 99 people. So 108 people test positive, and only 9 of them are ill. Given a positive test, the chance of the illness is 9 in 108, or 1 in 12.

108 people test positive: 9 ill, 99 well. Laid 12 to a row, each row has one ill person: 1 in 12.

Most of the positives come from the well. There are so many more well people that their few mistakes outnumber the ill.

The same 1000, read the other way. Positive given ill is 9/10. Ill given positive is only 1/12.

You just worked backwards. You knew the chance of a positive test, given the illness. You found the chance of the illness, given a positive test. These are different numbers: 9 in 10 and 1 in 12.

Keep only the positive branches. The prior was 1/100; the posterior, after a positive test, is 1/12.

Now in symbols

BAYES’ THEOREM does this for any partition. Let $E_1, E_2, \ldots, E_n$ be a partition of $S$, with each $P(E_i) > 0$. Let $A$ be any event with $P(A) \neq 0$. Then $P(E_i|A) = (P(E_i) \cdot P(A|E_i))/(\sum_{j=1}^n P(E_j) \cdot P(A|E_j))$.

before the test
after a positive
The evidence changed the chance a long way, from 1/100 to 1/12, and still not near 9/10.
PRIORPOSTERIOR
The posterior depends on the prior. Rarer illness, smaller answer: 1/12 at 1 in 100, 1/2 at 1 in 10.

The top of Bayes’ fraction, $P(E_i) \cdot P(A|E_i)$, is the chance that case $E_i$ and $A$ both happen. The bottom is $P(A)$, found by total probability over every case. Each $P(E_i)$ is a PRIOR: the chance before you learn $A$. Each $P(E_i|A)$ is a POSTERIOR: the chance after you learn it.

In thousandths: 9 true positives, 99 false ones. The answer is 9 out of 9 + 99.

Check it on the test. Let $E_1$ be “ill” and $E_2$ be “well”, with $P(E_1) = 1/100$ and $P(E_2) = 99/100$. Let $A$ be “tests positive”. Then $P(A|E_1) = 9/10$ and $P(A|E_2) = 1/10$. So $P(E_1|A) = (1/100 \cdot 9/10)/(1/100 \cdot 9/10 + 99/100 \cdot 1/10) = 9/108 = 1/12$.

Change the prior

Your turn: say 20 people in 1000 are ill, and the test is still right 90% of the time. How many test positive? What is the chance that a person who tests positive is ill?

Brahmagupta
A SCHOLAR INDIA REMEMBERS

The test is right $9$ times in $10$. Check that number against a fixed crowd, as an astronomer checks a model against the sky. Take $1000$ people, $10$ of them ill. The test flags $9$ of the ill and $99$ of the well. So $108$ test positive, and $9$ of them are ill. That is $1$ in $12$. The $9$ in $10$ answers another question. It is the chance of a positive, given ill.

Check yourself
  1. Bayes’ theorem writes $P(E_i|A)$ as a fraction. Written out over the partition, what is its denominator?
    1. $\sum_j P(A|E_j)$, summed over every partition element
    2. $1 - P(E_i) \cdot P(A|E_i)$
    3. $\sum_j P(E_j) \cdot P(A|E_j)$, over the whole partition
    4. $P(E_i) \cdot P(A|E_i)$, the same term as the numerator
    Check your answer
    1. $\sum_j P(A|E_j)$, summed over every partition element — Each likelihood $P(A|E_j)$ must be weighted by its prior $P(E_j)$ before adding. The bare sum $\sum_j P(A|E_j)$ is not $P(A)$, and it can be more than $1$.
    2. $1 - P(E_i) \cdot P(A|E_i)$ — Nothing in the theorem’s derivation subtracts a term from $1$. The denominator is the theorem-of-total-probability sum, $\sum_j P(E_j) \cdot P(A|E_j)$, not a complement.
    3. ✓ $\sum_j P(E_j) \cdot P(A|E_j)$, over the whole partition — (C) The denominator sums the prior-times-likelihood term over every partition element, $\sum_j P(E_j) \cdot P(A|E_j)$, not just the one matching the numerator.
    4. $P(E_i) \cdot P(A|E_i)$, the same term as the numerator — If the denominator matched the numerator, every posterior would equal $1$, clearly wrong. The denominator sums over every case, not just case $i$.
  2. In Bayes’ theorem, what role does $P(E_i)$, appearing alone before the evidence $A$ is folded in, play?
    1. the posterior probability of case $E_i$
    2. the final answer the theorem is solving for
    3. the prior probability of each case $E_i$
    4. the chance of the evidence in case $E_i$
    Check your answer
    1. the posterior probability of case $E_i$ — $P(E_i|A)$, the theorem’s output after folding in evidence $A$, is the posterior. $P(E_i)$ alone, before any evidence, is the prior, the two are opposite ends of the update.
    2. the final answer the theorem is solving for — The theorem’s output is the posterior $P(E_i|A)$. $P(E_i)$ is an input value the formula starts from, supplied before any computation begins.
    3. ✓ the prior probability of each case $E_i$ — (C) $P(E_i)$ alone, before any evidence, is the prior belief in case $E_i$, the starting point Bayes’ theorem updates.
    4. the chance of the evidence in case $E_i$ — $P(A|E_i)$ is the likelihood, describing how well case $E_i$ explains the evidence. $P(E_i)$ alone is the prior, the belief in that case before the evidence is seen.
  3. A box has two coins: one fair, one two-headed, chosen at random with $P(F) = 1/2$ and $P(T) = 1/2$. The chosen coin is tossed once and shows heads, $H$. Using Bayes’ theorem, what is $P(F|H)$, the posterior probability the fair coin was chosen?
    1. $2/3$
    2. $1/3$
    3. $1/4$
    4. $1/2$
    Check your answer
    1. $2/3$ — $2/3$ is the posterior for the two-headed coin, $P(T|H) = 1 - 1/3$. The question asks for the fair coin’s posterior, $P(F|H) = 1/3$.
    2. ✓ $1/3$ — (B) $P(F|H) = (P(F) \cdot P(H|F))/(P(F) \cdot P(H|F) + P(T) \cdot P(H|T)) = (1/2 \cdot 1/2)/(1/2 \cdot 1/2 + 1/2 \cdot 1) = (1/4)/(3/4) = 1/3$.
    3. $1/4$ — $1/4$ is only the numerator, $P(F) \cdot P(H|F)$. Bayes’ theorem still divides that by the full denominator, $1/4 + 1/2 = 3/4$, giving $1/3$.
    4. $1/2$ — Seeing heads is twice as likely under the two-headed coin as the fair one, so it should pull the posterior for the fair coin below the $1/2$ prior, not leave it unchanged.
  4. A student’s Bayes’-theorem solution shows a denominator equal to the numerator, and concludes $P(E_i|A) = 1$. What single check would have caught this error before it shipped?
    1. check the denominator sums every partition element, none repeated
    2. checking that the numerator used the multiplication theorem correctly
    3. checking that $P(A) > 0$ was stated in the problem
    4. checking that the partition has at least three elements
    Check your answer
    1. ✓ check the denominator sums every partition element, none repeated — (A) The error is entirely in the denominator, so the one check that catches it is confirming the denominator sums over every partition element rather than repeating the numerator.
    2. checking that the numerator used the multiplication theorem correctly — The numerator here is correctly built from the multiplication theorem; the mistake is entirely in the denominator. Checking the numerator again would not catch it.
    3. checking that $P(A) > 0$ was stated in the problem — $P(A) > 0$ is a real precondition, but confirming it does not check whether the denominator actually summed over every partition element, the specific error here.
    4. checking that the partition has at least three elements — The number of elements is irrelevant here; even a two-element partition, like the two-urn example, shows the exact same drop-term error. The fix is checking every term is present, not counting how many there are.
✕MISCONCEPTION
First try
(1/3)/(1/3)
1
Both terms
(1/3)/(1/3 + 1/6)
(1/3)/(1/2)
Answer
2/3
The first try keeps only bag A’s term and gets 1. Put both terms in the denominator and the answer is 2/3.

A common slip is to leave a case out of the denominator of Bayes’ theorem. Let us see what that does.

Given red, three chips are left. Two came from bag A: 2/3.

Go back to the two bags. Let $A$ be “the coin picks bag A” and $B$ be “the coin picks bag B”. Each has chance $1/2$. Let $R$ be “the ball is red”. Then $P(R|A) = 2/3$ and $P(R|B) = 1/3$. You draw a red ball. How likely is it that it came from bag A?

Read backwards, the tree gives bag A 2/3 and bag B 1/3. The two answers add to 1.

The top of Bayes’ theorem is $1/2 \cdot 2/3 = 1/3$. The bottom must be all of $P(R)$, from both bags: $P(A|R) = (1/2 \cdot 2/3)/(1/2 \cdot 2/3 + 1/2 \cdot 1/3) = (1/3)/(1/2) = 2/3$.

Strike bag B’s red end and bag A gets everything: an answer of 1, though bag B can give red.

Now drop bag B’s term from the bottom. You get $(1/3)/(1/3) = 1$. That says the red ball surely came from bag A. But bag B holds a red ball too, so that answer is wrong.

Four cases, urn A or B with red or white. Both red cases give urn A 2/3. Dropping urn B’s gives 1.

The figure draws the bags as urns. Its strip shows four cases. They are urn A red, urn A white, urn B red and urn B white. Their widths are $1/3$, $1/6$, $1/6$ and $1/3$. The two red cases add to $1/2$. With both terms, $P(A|R) = 2/3$. With urn B dropped, it jumps to 1.

With three cases, dropping one still gives a wrong answer: 1/2 instead of 1/3. Every case belongs below.

The denominator of Bayes’ theorem sums over every case of the partition. That includes the cases you are not asking about.

Check yourself
  1. Two urns are chosen with $P = 1/2$ each. Let $R$ be a red ball drawn, with $P(R|A) = 2/3$ and $P(R|B) = 1/3$. A student computes $P(A|R)$ by dividing urn A’s term, $P(A) \cdot P(R|A)$, by itself. What posterior does this error produce, and why is it wrong?
    1. $1/2$, the original prior, since the error cancels out and leaves the starting belief unchanged
    2. $1/3$, $P(R|B)$, mistakenly reported instead of a posterior
    3. $1$, certainty, since urn B’s term was dropped from the denominator
    4. $2/3$, the correct value, because the numerator alone already carries the right information
    Check your answer
    1. $1/2$, the original prior, since the error cancels out and leaves the starting belief unchanged — Dividing a term by itself always gives $1$, not the original prior of $1/2$. The error does not cancel back to the starting belief; it inflates the posterior to false certainty.
    2. $1/3$, $P(R|B)$, mistakenly reported instead of a posterior — $1/3$ is $P(R|B)$, a likelihood value, not the result of dividing urn A’s term by itself. That division gives exactly $1$, the false certainty the trap produces.
    3. ✓ $1$, certainty, since urn B’s term was dropped from the denominator — (C) Dividing urn A’s term by itself always gives $1$, false certainty, because urn B’s term was dropped even though urn B could plainly have produced a red ball too.
    4. $2/3$, the correct value, because the numerator alone already carries the right information — $2/3$ is indeed correct, but only when the numerator is divided by the full denominator, $(1/2 \cdot 2/3) + (1/2 \cdot 1/3) = 1/2$. Dividing the numerator by itself instead gives $1$, not $2/3$.
  2. In a two-case partition, why does dropping the other case’s term (the one not in the numerator) from Bayes’ denominator produce more than a small rounding error?
    1. it only shifts the answer by the size of the dropped term, leaving the rest of the computation intact
    2. it collapses the ratio to exactly $1$, a false certainty in place of a real posterior
    3. it only matters when there are more than two partition elements
    4. it makes the posterior undefined, since a term is missing from the sum
    Check your answer
    1. it only shifts the answer by the size of the dropped term, leaving the rest of the computation intact — The damage is not proportional to the dropped term’s size. Reusing the numerator as its own denominator always collapses the ratio to exactly $1$, whatever the dropped term’s size was.
    2. ✓ it collapses the ratio to exactly $1$, a false certainty in place of a real posterior — (B) Dropping the other case’s term makes the ratio a term divided by itself, which collapses to exactly $1$, silently promoting one hypothesis to definite certainty rather than shifting the answer slightly.
    3. it only matters when there are more than two partition elements — The urn example has only two cases, $A$ and $B$, and dropping $B$’s term forces certainty: the ratio is exactly $1$. With three or more cases, dropping another case’s term makes the ratio too large. The error matters either way.
    4. it makes the posterior undefined, since a term is missing from the sum — The computation still runs and produces a number, exactly $1$, not an undefined result. The damage is a wrong, overconfident answer, not a broken one.
  3. What is the correct rule for Bayes’ theorem’s denominator, according to this chapter?
    1. use only the two largest prior-times-likelihood terms, since the rest contribute negligibly
    2. sum the prior-times-likelihood term over every partition element
    3. reuse the numerator’s own value directly as the denominator
    4. sum the prior-times-likelihood term over every element except the one matching the numerator
    Check your answer
    1. use only the two largest prior-times-likelihood terms, since the rest contribute negligibly — The theorem requires every partition element’s term, with none dropped as negligible. It computes $P(A)$ exactly, not an approximation from the largest contributors.
    2. ✓ sum the prior-times-likelihood term over every partition element — (B) The denominator sums the prior-times-likelihood term over every partition element, matching the theorem of total probability, never just the numerator’s own case.
    3. reuse the numerator’s own value directly as the denominator — Reusing the numerator as the denominator is exactly the trap this chapter warns against. It forces every posterior to $1$, no matter what the evidence actually shows.
    4. sum the prior-times-likelihood term over every element except the one matching the numerator — That excludes exactly the wrong term. The numerator’s case IS included in the denominator’s sum too; every partition element contributes, with none left out.
Prior: 1 in 6. A six is reported in 3 of 24 cases with a six, 5 without. Posterior: 3/8.
Keep the branches where he says six: 3/24 and 5/24. Divided by their total, a real six is 3/8.
24 equal cells. He says six in 8 of them, and only 3 of those are real sixes.
Worked example

Did the die actually show a six?

  1. A man speaks the truth $3$ out of $4$ times; he rolls a die once and reports a six
    Split the cases by what the die really showed. He reports either “six” or “not a six”. His honesty comes in later, through the chances of his report.
  2. $E_1$ = “a six actually occurs”, $P(E_1) = 1/6$; $E_2$ = “a six does not occur”, $P(E_2) = 5/6$
    These two cases form a partition. A die shows a six 1 time in 6.
  3. $A$ = “he reports a six”; $P(A|E_1) = 3/4$
    If a six came up, he reports it when he tells the truth. That happens 3 times in 4.
  4. $P(A|E_2) = 1/4$
    If no six came up, he reports a six only when he lies. That happens 1 time in 4.
  5. $P(E_1|A) = (P(E_1) \cdot P(A|E_1)) / (P(E_1) \cdot P(A|E_1) + P(E_2) \cdot P(A|E_2))$
    This is Bayes’ theorem. The denominator adds both cases of the partition.
  6. $= ((1/6)(3/4)) / ((1/6)(3/4) + (5/6)(1/4)) = (3/24)/(3/24 + 5/24) = 3/8$
    Put in the four numbers and simplify.
  7. *Even though he is truthful three times out of four, the probability a six was actually rolled is only $3/8$*
    A six is rare to start with, 1 time in 6. That low prior pulls the answer far below his truth rate of $3/4$.
  8. Check: $P(E_2|A) = (5/24)/(8/24) = 5/8$, and $3/8 + 5/8 = 1$
    The two posteriors cover both cases of the partition. So they add to 1.
Check yourself
  1. A man speaks the truth $3$ out of $4$ times. He rolls a die and reports a six. If $E_2$ is the event that a six does not occur, why is $P(A|E_2) = 1/4$, not $3/4$?
    1. because the die has six faces, and $1/4$ comes from a face-counting argument
    2. reporting a six under $E_2$ means lying, which he does $1/4$ of the time
    3. because he always tells the truth about what actually happened
    4. because $P(E_2) = 5/6$, and $1 - 5/6$ is close to $1/4$ by coincidence
    Check your answer
    1. because the die has six faces, and $1/4$ comes from a face-counting argument — $1/4$ is the man’s own lying rate, $1 - 3/4$, unrelated to the die having six faces. The die’s faces determine $P(E_1)$ and $P(E_2)$, a separate part of the setup.
    2. ✓ reporting a six under $E_2$ means lying, which he does $1/4$ of the time — (B) Under $E_2$, reporting a six he did not see means he is lying, and lying is exactly his $1/4$ rate.
    3. because he always tells the truth about what actually happened — He is truthful only $3/4$ of the time. Under $E_2$, reporting a six he did not see means he is lying, and lying is exactly his $1/4$ rate.
    4. because $P(E_2) = 5/6$, and $1 - 5/6$ is close to $1/4$ by coincidence — $P(E_2) = 5/6$ comes from the die’s faces; $P(A|E_2) = 1/4$ comes from the man’s truthfulness rate. The two are unrelated facts that happen to both appear in the problem, not linked by arithmetic.
  2. Bayes’ theorem gives $P(E_1|A) = 3/8$ in this problem, well below the man’s $3/4$ truthfulness rate. What explains the drop?
    1. the calculation contains an arithmetic error, since a truthful witness should give a posterior above $1/2$
    2. the low prior $P(E_1) = 1/6$ pulls the posterior down despite his truthfulness
    3. the drop happens because $E_1$ and $E_2$ are independent of $A$
    4. the man’s truthfulness rate was misapplied and should have been used directly as the answer
    Check your answer
    1. the calculation contains an arithmetic error, since a truthful witness should give a posterior above $1/2$ — The arithmetic is correct. A truthful witness’s report does not automatically clear $1/2$ when the reported event was rare beforehand; the low prior $P(E_1) = 1/6$ is exactly what pulls the posterior down.
    2. ✓ the low prior $P(E_1) = 1/6$ pulls the posterior down despite his truthfulness — (B) The low prior $P(E_1) = 1/6$ pulls the posterior down to $3/8$, even though his $3/4$ truthfulness rate alone might suggest a higher number.
    3. the drop happens because $E_1$ and $E_2$ are independent of $A$ — If $E_1$ and $E_2$ were independent of $A$, the posterior would just equal the prior, $1/6$, not $3/8$. The report does carry information; that is exactly why Bayes’ theorem moves the probability at all.
    4. the man’s truthfulness rate was misapplied and should have been used directly as the answer — $3/4$ is $P(A|E_1)$, the likelihood, one input to the theorem, not its output. The posterior, $P(E_1|A) = 3/8$, combines that likelihood with the low prior $P(E_1) = 1/6$.
  3. What role does the partition $\{E_1, E_2\}$ play in setting up this problem?
    1. it splits the sample space by the man’s possible reports, six or not-six
    2. two disjoint, exhaustive cases: either a six came up, or a six did not occur
    3. it splits the man’s answers into truthful and untruthful reports
    4. it is optional bookkeeping that could be skipped without changing the answer
    Check your answer
    1. it splits the sample space by the man’s possible reports, six or not-six — The report, $A$, is the evidence folded into the theorem; it is not what gets partitioned. $E_1$ and $E_2$ partition what actually happened on the roll, before any report is made.
    2. ✓ two disjoint, exhaustive cases: either a six came up, or a six did not occur — (B) $E_1$ and $E_2$ split every possibility into two disjoint, exhaustive cases about what actually happened on the roll, exactly what total probability and Bayes’ theorem require.
    3. it splits the man’s answers into truthful and untruthful reports — The partition splits what actually happened on the die, six or not, not the man’s truthfulness. Truthfulness enters separately, as the likelihood $P(A|E_i)$ for each case.
    4. it is optional bookkeeping that could be skipped without changing the answer — Without a partition, there is nothing for total probability or Bayes’ theorem to sum over. Naming $E_1$ and $E_2$ is required for either theorem to apply, not optional bookkeeping.

↑ Back to top

Turning outcomes into numbers

▲CONCEPT
At the fair stall, a total of 12 wins Rs 50 and a total of 7 wins Rs 10. Any other total wins nothing.

A stall at the school fair has a game. You throw two dice. If the total is 12, you win Rs 50. If the total is 7, you win Rs 10. Any other total wins nothing. How much does one throw win?

Every throw lands on a cell. One cell pays Rs 50, six pay Rs 10, and the other 29 pay nothing.

It depends on the throw. But each throw gives one amount. The 36 outcomes of the two dice turn into just three amounts: Rs 50, Rs 10 and Rs 0.

X is a function: each outcome goes to one number. Many outcomes can share a number.

A RANDOM VARIABLE is a function that gives a real number to each outcome of a random experiment. Here $X$ is the amount you win. For the outcome $(6, 6)$, $X = 50$. For $(3, 4)$, $X = 10$. For $(2, 2)$, $X = 0$.

The distribution of X: three bars, each between 0 and 1. Stacked, they reach exactly 1.

The PROBABILITY DISTRIBUTION of $X$ lists each value $x_i$ with its chance $p_i$. Only $(6, 6)$ gives a total of 12, so $P(X = 50) = 1/36$. Six pairs make 7, so $P(X = 10) = 6/36$. The other 29 outcomes give $P(X = 0) = 29/36$.

A list like this is a probability distribution only if two things hold. - Each $p_i$ is between 0 and 1. - The $p_i$ add up to 1. Here $1/36 + 6/36 + 29/36 = 36/36 = 1$.

Values 1 to 4 with chances 0.1, 0.3, 0.4 and 0.2. Each bar stays under the line at 1. Stacked, they reach exactly 1.

The figure checks both on four values. $X$ takes the values 1 to 4. Their chances are $1/10$, $3/10$, $4/10$ and $2/10$. On the left, each bar stays under the line at 1. On the right, the four are stacked, and they reach 1 exactly.

A list of chances

Your turn: a list gives the chances 0.5, 0.3 and 0.3. Is it a probability distribution?

Check yourself
  1. What is a random variable $X$, as defined in this chapter?
    1. a function assigning a real number to each outcome
    2. the list of every outcome a random experiment can produce
    3. a fixed real number chosen before the experiment is run
    4. the probability that a random experiment succeeds
    Check your answer
    1. ✓ a function assigning a real number to each outcome — (A) A random variable is a function assigning a real number to every outcome of a random experiment.
    2. the list of every outcome a random experiment can produce — The list of outcomes is the sample space. A random variable is a separate function that maps each of those outcomes to a real number.
    3. a fixed real number chosen before the experiment is run — A random variable’s value depends on which outcome occurs; it is not fixed in advance. It is a function, assigning a number to each possible outcome.
    4. the probability that a random experiment succeeds — A probability is a number between $0$ and $1$ describing likelihood. A random variable is a different kind of object, a function from outcomes to real numbers, which may take values far outside $[0, 1]$.
  2. What two conditions make a listed probability distribution $p_1, p_2, \ldots, p_n$, for values $x_1, \ldots, x_n$, valid?
    1. every $p_i$ satisfies $0 \leq p_i \leq 1$, and every $x_i$ must be a positive number
    2. every $p_i$ equals $1/n$, and the values $x_i$ are listed in increasing order
    3. the largest $p_i$ must exceed $0.5$, and the rest sum to less than that
    4. every $p_i$ satisfies $0 \leq p_i \leq 1$, and the complete set of $p_i$ sums to $1$
    Check your answer
    1. every $p_i$ satisfies $0 \leq p_i \leq 1$, and every $x_i$ must be a positive number — A random variable’s values $x_i$ can be negative, zero, or positive; validity never restricts their sign. It restricts the probabilities: each in $[0, 1]$, summing to $1$.
    2. every $p_i$ equals $1/n$, and the values $x_i$ are listed in increasing order — Nothing requires equal probabilities. The $p_i$ can differ freely across outcomes; validity only needs each one in $[0, 1]$, summing to $1$ overall.
    3. the largest $p_i$ must exceed $0.5$, and the rest sum to less than that — No single $p_i$ is required to dominate. A valid distribution can spread probability broadly across many values; the only requirements are $0 \leq p_i \leq 1$ for each, summing to $1$.
    4. ✓ every $p_i$ satisfies $0 \leq p_i \leq 1$, and the complete set of $p_i$ sums to $1$ — (D) A valid distribution requires each $p_i$ in $[0, 1]$ and the full list summing to exactly $1$.
  3. A proposed distribution lists $p_1 = 0.3$, $p_2 = 0.5$, $p_3 = 0.3$ for three values of $X$. Is this a valid probability distribution?
    1. yes; the values sum to more than $1$, but that is acceptable as long as no single $p_i$ exceeds $1$
    2. no; $p_2 = 0.5$ is too large compared to the other two
    3. no; the probabilities sum to $1.1$, not $1$, though each lies in $[0, 1]$
    4. yes; every $p_i$ is between $0$ and $1$, which is all that is required
    Check your answer
    1. yes; the values sum to more than $1$, but that is acceptable as long as no single $p_i$ exceeds $1$ — The sum must equal exactly $1$; there is no allowance for exceeding it. Here the total is $1.1$, so the distribution fails validity regardless of any single $p_i$’s size.
    2. no; $p_2 = 0.5$ is too large compared to the other two — No individual $p_i$ being large is a problem by itself; each just needs to fall in $[0, 1]$. The actual defect is that the three probabilities sum to $1.1$, exceeding $1$.
    3. ✓ no; the probabilities sum to $1.1$, not $1$, though each lies in $[0, 1]$ — (C) $0.3 + 0.5 + 0.3 = 1.1$, exceeding $1$, so the listed probabilities fail validity.
    4. yes; every $p_i$ is between $0$ and $1$, which is all that is required — Each $p_i$ being in $[0, 1]$ is only one of the two conditions. The sum must also equal exactly $1$; here it totals $1.1$, so the distribution is not valid.
▲CONCEPT
Values 1 to 5 with chances 8, 6, 3, 2 and 1 twentieths. The bars balance at the mean, 2.1, between 2 and 3.
Both have 20 cases and mean 3. Left: 10 of 20 sit at 3, variance 0.8. Right: 12 sit at 1 or 5, variance 2.6.
Over 36 throws, one of each cell, the stall pays Rs 110: about Rs 3.06 a throw.
The mean, E(X) = 55/18, about 3.06, is where the three bars balance.
paid out
kept
Of each Rs 5, the stall pays out about Rs 3.06 on average and keeps about Rs 1.94.

Many people play the stall’s game. What does one throw pay, on average? Out of 36 throws, about 1 pays Rs 50 and about 6 pay Rs 10. That is Rs 110 over 36 throws, or about Rs 3.06 a throw.

That average is the MEAN of $X$, also called its EXPECTATION. It is $E(X) = \sum_{i=1}^n x_i p_i$. It is also written $\mu$, so $E(X)$ and $\mu$ are two names for one number. For the stall, $E(X) = 50 \cdot 1/36 + 10 \cdot 6/36 + 0 \cdot 29/36 = 110/36$.

No single throw pays Rs 3.06. The mean is an average over many throws. If the stall charges Rs 5 a throw, it keeps about Rs 1.94 a throw over a long day.

Balancing five values

The five-bar figure shows the mean as a balance point. $X$ runs from 1 to 5. Its chances are 8, 6, 3, 2 and 1 twentieths. The bars balance at $E(X) = 2.1$, between 2 and 3.

Variance averages the squared distance from the mean: 16/20 = 0.8. E(X²) − 9 gives the same 0.8.
SD about 0.89
3
SD about 1.61
3
The standard deviation is in the units of X. The tight table spreads about 0.89, the wide one 1.61.

The mean does not tell you how far the values spread. The VARIANCE does. It is $\operatorname{Var}(X) = \sum_{i=1}^n (x_i - \mu)^2 p_i$.

  1. $(x_i - \mu)^2 = x_i^2 - 2 \mu x_i + \mu^2$, by opening the square.
  2. $\operatorname{Var}(X) = \sum x_i^2 p_i - 2 \mu \sum x_i p_i + \mu^2 \sum p_i$, adding that term by term.
  3. $\sum x_i p_i = \mu$ and $\sum p_i = 1$, because those are exactly $E(X)$ and the total probability.
  4. $\operatorname{Var}(X) = E(X^2) - 2 \mu^2 + \mu^2 = E(X^2) - \mu^2$, substituting both facts in.

So $\operatorname{Var}(X) = E(X^2) - \mu^2$, where $E(X^2) = \sum_{i=1}^n x_i^2 p_i$. The STANDARD DEVIATION is the positive square root, $\sqrt{\operatorname{Var}(X)}$.

Same mean, different spread

The two bar charts you compared earlier, both with mean 3, show why the spread matters. On the left, half the values sit at 3, and the variance is 0.8. On the right, most sit at the ends, and the variance is 2.6.

Brahmagupta
A SCHOLAR INDIA REMEMBERS

Can a number here be negative? Take what one throw wins, less the Rs $5$ it costs. On $29$ throws in $36$ that is Rs $-5$, a loss. Here a negative number makes sense. The mean is $110/36 - 5 = -70/36$, about Rs $-1.94$ a throw. A chance is another matter. A share of the outcomes cannot be negative. So each $p_i$ lies between $0$ and $1$.

Check yourself
  1. How is the mean $E(X)$ of a discrete random variable $X$ defined?
    1. $\sum_i x_i$, ignoring the probabilities entirely
    2. $(\sum_i x_i)/n$, the plain average of the values
    3. $\sum_i x_i \cdot p_i$
    4. $\text{max}_i (x_i \cdot p_i)$, the largest weighted value
    Check your answer
    1. $\sum_i x_i$, ignoring the probabilities entirely — Dropping the probabilities treats every value as equally likely, which is rarely true. Each value must be weighted by its own probability, $x_i \cdot p_i$, before summing.
    2. $(\sum_i x_i)/n$, the plain average of the values — A plain average assumes every value is equally likely. $E(X)$ weights each value by its own probability $p_i$, which need not be $1/n$ at all.
    3. ✓ $\sum_i x_i \cdot p_i$ — (C) Each value is weighted by its own probability, then added up: $E(X) = \sum_i x_i \cdot p_i$.
    4. $\text{max}_i (x_i \cdot p_i)$, the largest weighted value — The mean sums the weighted contribution from every value $X$ can take, not just the single largest term. $E(X) = \sum_i x_i \cdot p_i$.
  2. The variance is defined as $\text{Var}(X) = E(X^2) - [E(X)]^2$. What does a small variance indicate about $X$’s outcomes?
    1. outcomes cluster near the mean $E(X)$
    2. the outcomes are mostly negative numbers
    3. $X$ can only take two distinct values
    4. $E(X)$ itself must be a small number
    Check your answer
    1. ✓ outcomes cluster near the mean $E(X)$ — (A) A small variance means $X$’s outcomes cluster near $E(X)$, whatever that mean happens to be.
    2. the outcomes are mostly negative numbers — Variance measures spread, not sign; $X$’s outcomes could be all positive, all negative, or mixed, whatever the variance. A small variance only says the outcomes sit close to $E(X)$.
    3. $X$ can only take two distinct values — Variance says nothing about how many distinct values $X$ can take; it measures how tightly whatever values occur cluster around the mean, however many values there are.
    4. $E(X)$ itself must be a small number — The size of $E(X)$ and the size of the variance are unrelated. $X$ can have a large mean and still cluster tightly around it, a small variance, regardless of how big the mean itself is.
  3. Computing $\text{Var}(X)$ requires $E(X^2) = \sum_i x_i^2 \cdot p_i$ as an intermediate step. What is $E(X^2)$, in words?
    1. the mean of the squared values of $X$
    2. the largest value $X$ can take, squared
    3. the variance itself, computed a second way
    4. the square of the mean, $[E(X)]^2$
    Check your answer
    1. ✓ the mean of the squared values of $X$ — (A) $E(X^2)$ is the mean of the squared values $x_i^2$, each weighted by its own probability $p_i$, an intermediate step on the way to the variance.
    2. the largest value $X$ can take, squared — $E(X^2)$ sums the weighted contribution from every value $X$ can take, not just the largest one squared. Every $x_i^2 \cdot p_i$ term contributes.
    3. the variance itself, computed a second way — $E(X^2)$ is one input to the variance formula, not the variance itself. The variance still requires the subtraction $E(X^2) - [E(X)]^2$.
    4. the square of the mean, $[E(X)]^2$ — $[E(X)]^2$ is the square of the mean, a separate quantity subtracted from $E(X^2)$ in the variance formula. Squaring the mean and averaging the squares are not the same operation.
Two tosses give 0, 1 or 2 heads with chances 0.25, 0.5 and 0.25. Mean 1, dashed. Mean of squares 1.5. Variance 0.5.
Worked example

Compute mean and variance for the number of heads in two coin tosses

  1. $X$ = number of heads in two tosses of a fair coin, so $X \in \{0, 1, 2\}$
    A fair coin is tossed twice. Find the distribution of $X$, then its mean and variance.
  2. Outcomes HH, HT, TH, TT, each equally likely
    Two tosses have four outcomes. Each has chance $1/4$.
  3. $P(X=0) = 1/4$, $P(X=1) = 1/2$, $P(X=2) = 1/4$
    TT gives no head. HT and TH give one head. HH gives two.
  4. $E(X) = 0 \cdot 1/4 + 1 \cdot 1/2 + 2 \cdot 1/4 = 1$
    Weight each value by its chance, and add.
  5. $E(X^2) = 0^2 \cdot 1/4 + 1^2 \cdot 1/2 + 2^2 \cdot 1/4 = 3/2$
    Do the same with the squared values.
  6. *$\operatorname{Var}(X) = E(X^2) - [E(X)]^2 = 3/2 - 1^2 = 1/2$*
    Take the square of the mean from the mean of the squares. On average one head shows, and the variance is $1/2$.
  7. Check: $1/4 + 1/2 + 1/4 = 1$, and each $p_i$ lies between $0$ and $1$
    The chances form a probability distribution. So the mean and variance come from a valid list.
Check yourself
  1. A fair coin is tossed twice; $X$ is the number of heads. Counting HH, HT, TH, TT, what is $P(X = 1)$?
    1. $2/3$
    2. $3/4$
    3. $1/4$
    4. $1/2$
    Check your answer
    1. $2/3$ — The four outcomes HH, HT, TH, TT are equally likely, not the three values $X$ can take. Two of the four outcomes give $X = 1$, so $P(X=1) = 2/4 = 1/2$.
    2. $3/4$ — HH has two heads and TT has zero; neither belongs with $X = 1$. Only HT and TH qualify, giving $2/4 = 1/2$.
    3. $1/4$ — Both HT and TH give exactly one head, two outcomes out of four, $2/4 = 1/2$, not just one of them counted alone.
    4. ✓ $1/2$ — (D) Both HT and TH give exactly one head, two outcomes out of four, so $P(X=1) = 2/4 = 1/2$.
  2. With $P(X=0) = 1/4$, $P(X=1) = 1/2$, $P(X=2) = 1/4$, what is $E(X)$?
    1. $1$
    2. $3/2$
    3. $1/2$
    4. $2$
    Check your answer
    1. ✓ $1$ — (A) $E(X) = 0 \cdot 1/4 + 1 \cdot 1/2 + 2 \cdot 1/4 = 0 + 1/2 + 1/2 = 1$.
    2. $3/2$ — $3/2$ is $E(X^2) = 0 \cdot 1/4 + 1 \cdot 1/2 + 4 \cdot 1/4$. The mean weights the values themselves, not their squares: $0 + 1/2 + 1/2 = 1$.
    3. $1/2$ — $1/2$ is $P(X=1)$, a probability. $E(X)$ is the weighted sum $0 \cdot 1/4 + 1 \cdot 1/2 + 2 \cdot 1/4 = 1$, a different kind of quantity entirely.
    4. $2$ — $2$ is the largest value $X$ can take, not its mean. $E(X)$ weights every value by its probability and adds: $0 \cdot 1/4 + 1 \cdot 1/2 + 2 \cdot 1/4 = 1$.
  3. Continuing the same example, $E(X^2) = 3/2$ and $E(X) = 1$. What is $\text{Var}(X)$?
    1. $3/2$
    2. $5/2$
    3. $1$
    4. $1/2$
    Check your answer
    1. $3/2$ — $3/2$ is $E(X^2)$ alone. Variance still requires subtracting $[E(X)]^2 = 1$, giving $3/2 - 1 = 1/2$.
    2. $5/2$ — The variance formula subtracts, $E(X^2) - [E(X)]^2$, giving $3/2 - 1 = 1/2$. Adding instead gives $5/2$, not a variance.
    3. $1$ — $1$ is $E(X)$, the mean, a different quantity from the variance. $\text{Var}(X) = E(X^2) - [E(X)]^2 = 3/2 - 1 = 1/2$.
    4. ✓ $1/2$ — (D) $\text{Var}(X) = E(X^2) - [E(X)]^2 = 3/2 - 1 = 1/2$.

↑ Back to top

Updating belief with evidence

■RECAP
Probability Reading the notation A B Probability, once you know something Turning the definition around Independent events E1 E2 E3 Splitting the sample space into cases A Bayes’ theorem Turning outcomes into numbers
Seven idea cards. Eight arrows join six of them, each from an idea to one that uses it. Turning outcomes into numbers stands alone.

The first page asked a question. How does a chance change when you learn something? And how do you work back from what you saw to what most likely caused it? Here is the answer, step by step.

The face-down card

Back to the card on the table. A king was 1 chance in 13. Then you heard “It is a picture card”, and the chance became 1 in 3. The card was never turned over. You still do not know what it is; you only know more. Your new chance is the chance of a king, given a picture card. That is a conditional probability. Working back from a positive test to the illness is the same idea, turned round by Bayes’ theorem.

Looking back on the book

This is also the last chapter of the book. Across thirteen chapters you learned to measure how fast a thing changes. You learned to add up a whole from its small parts. You solved equations with matrices and measured lines in space. You found the best plan within fixed limits. And now you can reason when the answer is not certain. Each of these will come back in the next course you take.

A low wooden table on a white sheet at the end of the game, with no one at it: one pack with blue backs squared up, the one card still face down a little apart from it, an empty steel tumbler, a bowl of murmura, a lamp at the left and a dark window behind.
The pack is stacked, and the one card still lies face down beside it.
Check yourself
  1. The closing section goes back to the card on the table. A king was $1$ in $13$, and then you heard it is a picture card. What does the closing section call your new chance of a king?
    1. a chance counted over all $52$ cards, picture or number
    2. a certainty: once you hear it is a picture card, a king is sure
    3. a conditional probability: a king, given a picture card
    4. the same $1$ in $13$, since the card has not changed
    Check your answer
    1. a chance counted over all $52$ cards, picture or number — Counting over all $52$ cards gives the prior, $1$ in $13$. The new chance counts only the $12$ picture cards: a king, given a picture card.
    2. a certainty: once you hear it is a picture card, a king is sure — Hearing it is a picture card does not make a king certain. The new chance is still a chance: $4$ in $12$, a king, given a picture card.
    3. ✓ a conditional probability: a king, given a picture card — (C) The closing section says it directly: your new chance is the chance of a king, given a picture card. That is a conditional probability.
    4. the same $1$ in $13$, since the card has not changed — The card has not changed, but what you know has. The closing section calls the new chance a conditional probability: a king, given a picture card.
  2. The closing section ends with ‘Looking back on the book’, which runs through the book’s thirteen chapters. What does it say this last chapter lets you do?
    1. treat chapters 1 to 12 as background you will not need again
    2. do arithmetic instead of algebra
    3. reason when the answer is not certain
    4. work with harder mathematics than any earlier chapter
    Check your answer
    1. treat chapters 1 to 12 as background you will not need again — The closing section says the opposite: each of these will come back in the next course you take.
    2. do arithmetic instead of algebra — The closing section draws no line between arithmetic and algebra. What it adds last is reasoning when the answer is not certain.
    3. ✓ reason when the answer is not certain — (C) The closing section runs through what the book taught, chapter by chapter, and ends: ‘And now you can reason when the answer is not certain.’
    4. work with harder mathematics than any earlier chapter — The closing section does not rank the chapters by difficulty. What it adds last is reasoning when the answer is not certain.
  3. After the face-down card question, the closing section turns to a positive test. What does it say about working back from a positive test to the illness?
    1. it is a different idea from the chance of a king, given a picture card
    2. it is the same idea, turned round by Bayes’ theorem
    3. it uses the same numbers as the $1$ in $13$ chance of a king
    4. it needs a random variable and its variance
    Check your answer
    1. it is a different idea from the chance of a king, given a picture card — The closing section calls it the same idea: a chance given what you know, here turned round by Bayes’ theorem.
    2. ✓ it is the same idea, turned round by Bayes’ theorem — (B) The closing section says that working back from a positive test to the illness is the same idea, turned round by Bayes’ theorem.
    3. it uses the same numbers as the $1$ in $13$ chance of a king — The numbers differ. The test in the closing section has $10$ ill in $1000$ and gives $9/108 = 1/12$; the card gave $1$ in $13$.
    4. it needs a random variable and its variance — No random variable is needed. Working back from the test is Bayes’ theorem: a conditional probability, turned round.
Check yourself: the whole chapter
  1. A disease affects 1 in 1000 people. A test for it is 99% accurate: it correctly flags 99% of people who truly have the disease, and correctly clears 99% of people who do not. A person selected at random tests positive. What does this most likely mean?
    1. They almost certainly have the disease: a 99% accurate test settles that directly.
    2. There is no way to judge this without knowing the exact number of people tested.
    3. They probably do not have the disease: false positives still outnumber true cases.
    4. The test result changes nothing, since the disease was already known to be this rare.
    Check your answer
    1. They almost certainly have the disease: a 99% accurate test settles that directly. — A 99% accurate test on a disease this rare still produces far more false positives than true ones: out of 100,000 people, about 999 healthy people test positive by mistake, against only 99 true cases.
    2. There is no way to judge this without knowing the exact number of people tested. — Rates are exactly what is needed here; no raw headcount is required. Out of any 100,000 people, about 100 have the disease and about 999 without it still test positive.
    3. ✓ They probably do not have the disease: false positives still outnumber true cases. — (C) Out of 100,000 people, about 100 truly have the disease and 99 of them test positive correctly. Of the 99,900 without it, about 999 still test positive by mistake. Positives outnumber true cases roughly ten to one.
    4. The test result changes nothing, since the disease was already known to be this rare. — A positive test is new evidence, and it does raise the chance of having the disease above 1 in 1000. It just does not raise it as far as 99% would suggest.
  2. Events $A$ and $B$ satisfy $P(A) = 0.3$, $P(B) = 0.4$ and $P(A \cap B) = 0.2$. What is $P(A|B)$?
    1. $P(B|A) = 0.2/0.3 = 2/3$
    2. $P(A)/P(B) = 0.3/0.4 = 3/4$
    3. $P(A \cap B) \times P(B) = 0.08$
    4. $P(A|B) = 0.2/0.4 = 1/2$
    Check your answer
    1. $P(B|A) = 0.2/0.3 = 2/3$ — This computes $P(B|A)$, the other direction. $P(A|B)$ divides by $P(B)$, since $B$ is the event already known to have happened.
    2. $P(A)/P(B) = 0.3/0.4 = 3/4$ — The intersection cannot be skipped. $P(A|B)$ is $P(A \cap B)$ divided by $P(B)$, not $P(A)$ divided by $P(B)$.
    3. $P(A \cap B) \times P(B) = 0.08$ — The definition divides, it does not multiply. Multiplying here reverses the multiplication theorem instead of applying the definition directly.
    4. ✓ $P(A|B) = 0.2/0.4 = 1/2$ — (D) $P(A|B) = P(A \cap B)/P(B) = 0.2/0.4 = 1/2$, applying the definition directly.
  3. Two events $A$ and $B$ satisfy $P(A) = 0.5$, $P(B) = 0.4$ and $P(A \cap B) = 0.2$. Are $A$ and $B$ independent?
    1. Yes: $P(A) \cdot P(B) = 0.5 \times 0.4 = 0.2$, exactly matching $P(A \cap B)$ here.
    2. No: independent events must also be mutually exclusive, and here $A \cap B$ is not empty.
    3. Cannot say: independence depends on how the events are described, not on the probabilities.
    4. No: independence needs $P(A) = P(B)$, and here $0.5$ is not equal to $0.4$.
    Check your answer
    1. ✓ Yes: $P(A) \cdot P(B) = 0.5 \times 0.4 = 0.2$, exactly matching $P(A \cap B)$ here. — (A) $P(A) \cdot P(B) = 0.5 \times 0.4 = 0.2$, exactly $P(A \cap B)$. The product rule holds, so $A$ and $B$ are independent.
    2. No: independent events must also be mutually exclusive, and here $A \cap B$ is not empty. — Mutually exclusive and independent are opposite ideas here. If $A$ and $B$ could never both happen, learning $A$ occurred would rule $B$ out completely: the strongest possible dependence, not independence.
    3. Cannot say: independence depends on how the events are described, not on the probabilities. — Independence is a property of the numbers, checked with $P(A \cap B) = P(A) \cdot P(B)$. It cannot be read off from how the events sound.
    4. No: independence needs $P(A) = P(B)$, and here $0.5$ is not equal to $0.4$. — The definition never compares $P(A)$ with $P(B)$. It compares $P(A \cap B)$ with the product $P(A) \cdot P(B)$, which match here.
  4. $E_1$ and $E_2$ partition the sample space, and event $A$ is known to have happened. Bayes’ theorem is used to find $P(E_1|A)$. What does this quantity represent?
    1. The same value as $P(A|E_1)$, since conditioning can be read in either direction.
    2. The updated, posterior probability that $E_1$ holds, given $A$ has happened.
    3. The joint probability $P(E_1 \cap A)$, that both $E_1$ and $A$ occur.
    4. A value that only makes sense if $E_1$ and $A$ are independent events.
    Check your answer
    1. The same value as $P(A|E_1)$, since conditioning can be read in either direction. — $P(E_1|A)$ and $P(A|E_1)$ are usually different numbers. Bayes’ theorem is precisely the formula that converts one into the other.
    2. ✓ The updated, posterior probability that $E_1$ holds, given $A$ has happened. — (B) $P(E_1|A)$ is the posterior: the revised probability that case $E_1$ holds, once $A$ has been observed to happen.
    3. The joint probability $P(E_1 \cap A)$, that both $E_1$ and $A$ occur. — The bar in $P(E_1|A)$ restricts attention to the world where $A$ already happened. Dropping it turns a conditional probability into a plain joint one, a different quantity.
    4. A value that only makes sense if $E_1$ and $A$ are independent events. — Bayes’ theorem is most useful exactly when $E_1$ and $A$ are NOT independent. That dependence is what lets observing $A$ shift belief about $E_1$.
  5. A discrete random variable $X$ takes the values $0, 1, 2$ with probabilities $0.3, 0.5, 0.3$. Is this a valid probability distribution?
    1. Yes: every listed probability lies between $0$ and $1$, which is all that is required.
    2. Yes: three values of $X$ are listed against three probabilities, so the table is complete.
    3. No: the probabilities add to $1.1$, not $1$, so this cannot be a valid distribution.
    4. No, but only because $0.5$ is largest; every value must share the same probability.
    Check your answer
    1. Yes: every listed probability lies between $0$ and $1$, which is all that is required. — Range is only half the requirement. The probabilities must also add up to exactly $1$, and $0.3 + 0.5 + 0.3 = 1.1$ does not.
    2. Yes: three values of $X$ are listed against three probabilities, so the table is complete. — Matching counts says nothing about the actual sum. Add the three probabilities directly: $0.3 + 0.5 + 0.3 = 1.1$, already past $1$.
    3. ✓ No: the probabilities add to $1.1$, not $1$, so this cannot be a valid distribution. — (C) $0.3 + 0.5 + 0.3 = 1.1$, exceeding $1$. A valid distribution must have its probabilities sum to exactly $1$, so this one fails.
    4. No, but only because $0.5$ is largest; every value must share the same probability. — A random variable is never required to be equally likely across its values. The sum condition is what actually fails here, regardless of whether the probabilities are equal.

↑ Back to top

Practice set: Exercise 13.1

Exercise 13.1 practises conditional probability. You count inside the event you are told about, or you divide by its chance. Some items use the complement rule, some draw without putting back, and one asks about $P(B) = 0$.

Conditional probability
  1. practice Events $A$ and $B$ satisfy $P(A) = 0.5$, $P(B) = 0.4$ and $P(A \cap B) = 0.2$. Find $P(A|B)$.
  2. practice Events $E$ and $F$ satisfy $P(E) = 0.7$ and $P(E \cap F) = 0.35$. Find $P(F|E)$.
  3. practice Events $A$ and $B$ satisfy $P(A) = 0.6$, $P(B) = 0.5$ and $P(A \cap B) = 0.3$. Find $P(B|A)$.
  4. practice Events $E$ and $F$ satisfy $P(E) = 0.4$ and $P(E \cap F) = 0.15$. Find $P(F|E)$.
  5. practice A fair die is rolled once. Let $A$ = the number is greater than $4$, and $B$ = the number is even. Find $P(A|B)$ by direct counting.
  6. practice Two fair coins are tossed once. Let $E$ = at least one head appears, and $F$ = both coins show the same face. Find $P(E|F)$ by direct counting.
  7. practice If $P(A|B) = 0.4$, find $P(A'|B)$.
  8. practice If $P(A|B) = 5/8$, find $P(A'|B)$.
  9. practice Which of these is always true for an event $B$ with $P(B) > 0$?
    1. $P(S|B) = 0$
    2. $P(S|B) = 1$
    3. $P(S|B) = P(B)$
    4. $P(S|B)$ is not defined
  10. practice A card is drawn from a well-shuffled deck of $52$ playing cards. Let $A$ = the card is a king, and $B$ = the card is a face card. Find $P(A|B)$.
  11. practice In a class of $60$ students, $25$ study Sanskrit and $20$ study French, with $10$ studying both. A student is picked at random and is known to study Sanskrit. Let $S$ = studies Sanskrit and $F$ = studies French. Find $P(F|S)$.
  12. practice Events $A$ and $B$ satisfy $P(A) = 0.8$ and $P(B|A) = 0.4$. Find $P(A \cap B)$.
  13. practice A family has two children, each equally likely to be a boy or a girl. Let $G$ = the older child is a girl, and $B$ = both children are girls. Find $P(B|G)$.
  14. practice If $P(A) = 1/3$ and $P(B) = 0$, then $P(A|B)$ is
    1. $0$
    2. $1/3$
    3. not defined
    4. $1$
  15. practice A box has $4$ red and $6$ black balls. Two balls are drawn one after another without replacement. Let $R_1$ = the first ball drawn is red, and $R_2$ = the second ball drawn is red. Find $P(R_2|R_1)$.
  16. practice A box has $3$ red, $4$ white and $5$ blue balls. A ball is drawn at random. Let $R$ = the ball is red, and $N$ = the ball is not blue. Find $P(R|N)$.
  17. practice A pair of fair dice is rolled. Let $A$ = the sum is $8$, and $B$ = the first die shows a number greater than $4$. Find $P(A|B)$.
  18. practice Events $A$ and $B$ satisfy $P(A) = 0.5$, $P(B) = 0.65$ and $P(A \cup B) = 0.85$. Find $P(A|B)$.
Answers
  1. $0.5$
  2. $0.5$
  3. $0.5$
  4. $3/8$
  5. $1/3$
  6. $1/2$
  7. $0.6$
  8. $3/8$
  9. (b) $P(S|B) = 1$.
  10. $1/3$
  11. $2/5$
  12. $0.32$
  13. $1/2$
  14. (c) Not defined.
  15. $1/3$
  16. $3/7$
  17. $1/6$
  18. $6/13$

↑ Back to top

Practice set: Exercise 13.2

Exercise 13.2 practises the multiplication theorem and independent events. Some draws put the first ball back, and some do not. You test pairs with the product rule, and you tell independent events from mutually exclusive ones. Some items have three independent events, or ask for “at least one”.

Multiplication theorem and independent events
  1. practice Events $A$ and $B$ satisfy $P(A) = 0.5$ and $P(B|A) = 0.6$. Find $P(A \cap B)$.
  2. practice Events $A$ and $B$ satisfy $P(B) = 0.4$ and $P(A|B) = 0.75$. Find $P(A \cap B)$.
  3. practice A box has $6$ red and $4$ blue balls. Two balls are drawn one after another without replacement. Let $R_1$ = first ball red, and $B_2$ = second ball blue. Find $P(R_1 \cap B_2)$.
  4. practice Let $A_1$ = the first card drawn is an ace, and $A_2$ = the second card drawn is an ace. Two cards are drawn one after another without replacement from a well-shuffled pack of $52$ cards. Find $P(A_1 \cap A_2)$.
  5. practice If $P(A) = 0.4$, $P(B) = 0.5$ and $P(A \cap B) = 0.2$, determine whether $A$ and $B$ are independent.
  6. practice If $P(E) = 0.3$, $P(F) = 0.4$ and $P(E \cap F) = 0.2$, determine whether $E$ and $F$ are independent.
  7. practice A fair coin is tossed and a fair die is rolled together. Let $A$ = the coin shows heads, and $B$ = the die shows a number greater than $4$. Determine whether $A$ and $B$ are independent.
  8. practice If $A$ and $B$ are mutually exclusive events with $P(A) > 0$ and $P(B) > 0$, then $A$ and $B$ are
    1. always independent
    2. never independent
    3. independent only if $P(A) = P(B)$
    4. independent only if $A = B$
  9. practice Three independent switches close with probabilities $0.9$, $0.8$ and $0.95$ respectively. Find the probability that all three switches close.
  10. practice Two independent events $A$ and $B$ have $P(A) = 0.3$ and $P(B) = 0.5$. Find the probability that at least one of $A$, $B$ occurs.
  11. practice If $A$ and $B$ are independent events with $P(A) = 0.4$ and $P(B) = 0.5$, can $A$ and $B$ also be mutually exclusive? Justify your answer.
  12. practice Let $S_1$, $S_2$, $S_3$ be the events that the first, second and third cards drawn are spades. Three cards are drawn one by one without replacement from a well-shuffled pack of $52$ cards. Find $P(S_1 \cap S_2 \cap S_3)$.
  13. practice The probability that student $A$ solves a problem is $2/3$, and the probability that student $B$ solves the same problem independently is $3/5$. If both attempt it, find the probability that at least one of them solves the problem.
  14. practice A shop’s three delivery trucks operate independently, with breakdown probabilities $0.05$, $0.1$ and $0.08$ on a given day. Find the probability that none of the three trucks breaks down.
  15. practice Two cards are drawn with replacement from a well-shuffled pack of $52$ cards. Find the probability that both cards are red.
  16. practice A bag has $5$ red and $3$ green balls. Two balls are drawn one after another without replacement. Let $G_1$ = first ball green, and $R_2$ = second ball red. Find $P(G_1 \cap R_2)$.
  17. practice For events $E$ and $F$ with $P(F) > 0$, the multiplication theorem states that $P(E \cap F)$ equals
    1. $P(E) + P(F|E)$
    2. $P(F) \cdot P(E|F)$
    3. $P(E) - P(F|E)$
    4. $P(E)/P(F|E)$
  18. practice In a class, three independent students $A$, $B$ and $C$ pass an exam with probabilities $0.9$, $0.85$ and $0.8$ respectively. Find the probability that at least one of them fails.
Answers
  1. $0.3$
  2. $0.3$
  3. $4/15$
  4. $1/221$
  5. Yes. $0.4 \cdot 0.5 = 0.2$, which equals $P(A \cap B)$.
  6. No. $0.3 \cdot 0.4 = 0.12$, which is not equal to $P(E \cap F) = 0.2$.
  7. Yes. $1/2 \cdot 1/3 = 1/6$, which equals $P(A \cap B)$ found by direct counting.
  8. (b) Never independent.
  9. $0.684$
  10. $0.65$
  11. No. Mutually exclusive would force $P(A \cap B) = 0$, but independence gives $P(A \cap B) = 0.4 \cdot 0.5 = 0.2$, which is not $0$.
  12. $11/850$
  13. $13/15$
  14. $0.7866$
  15. $1/4$
  16. $15/56$
  17. (b) $P(F) \cdot P(E|F)$.
  18. $0.388$

↑ Back to top

Practice set: Exercise 13.3

Exercise 13.3 practises total probability and Bayes’ theorem. The cases come from bags, factories, a clinic test, a cricket toss and a bank. First you add over every case to find a chance. Then Bayes’ theorem gives the chance of one case, once you know the outcome.

Total probability and Bayes’ theorem
  1. practice A factory has two machines, $A$ and $B$. Machine $A$ produces 60% of the items and machine $B$ produces 40%. Among machine $A$'s items, 2% are defective; among machine $B$'s items, 3% are defective. Find the probability that a randomly chosen item is defective.
  2. practice Bag I has $4$ red and $6$ black balls; Bag II has $5$ red and $5$ black balls. Let $E_1$ = Bag I is chosen, and $E_2$ = Bag II is chosen. A bag is chosen at random and a ball is drawn from it. Find $P(R)$, the probability that the ball drawn is red.
  3. practice In the same situation as the previous item (Bag I: $4$ red, $6$ black; Bag II: $5$ red, $5$ black; a bag chosen at random, with $E_1$, $E_2$, $R$ as before), the ball drawn is red. Find $P(E_1|R)$.
  4. practice A box of bulbs is supplied by three machines $X$, $Y$, $Z$ in the ratio $3 : 3 : 4$. The defective rates are $1\%$ for $X$, $2\%$ for $Y$ and $3\%$ for $Z$. Find the probability that a bulb chosen at random from the box is defective.
  5. practice In the same bulb factory as the previous item, a bulb chosen at random is found defective. Find the probability that it was manufactured by machine $Z$.
  6. practice An urn contains $3$ white and $2$ black balls. One ball is drawn and, without noting its colour, is placed into a second urn that already holds $4$ white and $3$ black balls. A ball is then drawn from the second urn. Let $W_1$ = the ball transferred from the first urn is white, and $W_2$ = the ball drawn from the second urn is white. Find $P(W_2)$.
  7. practice A village clinic’s rapid test for a certain infection correctly identifies $95\%$ of infected patients as positive, and correctly identifies $90\%$ of healthy patients as negative. In the local population, $2\%$ of people are infected. Let $E_1$ = infected, $E_2$ = healthy, and $T$ = tests positive. Find $P(T)$.
  8. practice In the same village clinic as the previous item, a person tests positive. Find the probability that the person is actually infected.
  9. practice A cricket team’s probability of winning the toss is $1/2$. If it wins the toss, it wins the match with probability $0.7$; if it loses the toss, it wins the match with probability $0.4$. Let $E_1$ = wins the toss, $E_2$ = loses the toss, and $W$ = wins the match. Find $P(W)$.
  10. practice In the same tournament as the previous item, the team won the match. Find the probability that it had won the toss.
  11. practice Three bags contain balls as follows: Bag $1$ has $2$ red and $3$ black; Bag $2$ has $4$ red and $1$ black; Bag $3$ has $3$ red and $2$ black. Let $E_1$, $E_2$, $E_3$ be the events that Bag $1$, $2$, $3$ is selected, and $R$ = the ball drawn is red. A bag is selected at random and a ball is drawn from it. Find $P(R)$.
  12. practice In the same three-bag situation as the previous item, the ball drawn is red. Find the probability that it came from Bag $2$.
  13. practice A bank classifies loan applicants as low-risk, with probability $0.6$, or high-risk, with probability $0.4$. $5\%$ of low-risk applicants default and $20\%$ of high-risk applicants default. Let $E_1$ = low-risk, $E_2$ = high-risk, and $D$ = defaults. Find $P(D)$.
  14. practice In the same bank as the previous item, an applicant defaults. Find the probability that the applicant was low-risk.
  15. practice Two urns, $A$ and $B$, are equally likely to be chosen. Urn $A$ yields a red ball with probability $2/3$, and Urn $B$ yields a red ball with probability $1/3$. An urn is chosen and a red ball is drawn; let $R$ = a red ball is drawn. Find $P(A|R)$.
Answers
  1. $0.024$
  2. $9/20$
  3. $4/9$
  4. $0.021$
  5. $4/7$
  6. $23/40$
  7. $0.117$
  8. $19/117$
  9. $0.55$
  10. $7/11$
  11. $3/5$
  12. $4/9$
  13. $0.11$
  14. $3/11$
  15. $2/3$

↑ Back to top

Practice set: random variables

This set on random variables practises probability distributions. You check that a list of chances adds to 1, and you find an unknown $k$. You build the distribution of the red balls in a draw, and of the difference on two spinners. Then you find $E(X)$ and, for some, $\operatorname{Var}(X)$.

Random variables
  1. practice A random variable $X$ takes the values $0$, $1$, $2$ with probabilities $0.3$, $0.5$, $0.2$. Determine whether this is a valid probability distribution.
  2. practice A random variable $X$ has $P(X=0) = k$, $P(X=1) = 2 k$, $P(X=2) = 3 k$. Find $k$.
  3. practice A random variable $X$ takes the values $1$, $2$, $3$ with probabilities $0.2$, $0.5$, $0.3$. Find $E(X)$.
  4. practice For the random variable in the previous item ($X = 1, 2, 3$ with probabilities $0.2$, $0.5$, $0.3$), find $\operatorname{Var}(X)$.
  5. practice A bag has $3$ red and $2$ white balls. Two balls are drawn together at random. Let $X$ be the number of red balls drawn. Find the probability distribution of $X$, and $E(X)$.
  6. practice For the random variable in the previous item ($X$ = number of red balls when $2$ balls are drawn from a bag of $3$ red and $2$ white), find $\operatorname{Var}(X)$.
  7. practice A random variable $X$ has $P(X=-1) = k$, $P(X=0) = 2 k$, $P(X=1) = 3 k$, $P(X=2) = 4 k$. Find $k$, and hence find $E(X)$.
  8. practice A game show has two fair spinners, each numbered $1$ to $3$, spun independently. Let $Y$ be the larger number minus the smaller number. Find the probability distribution of $Y$, and $E(Y)$.
  9. practice Two fair dice are thrown. Let $X$ be the larger of the two numbers, or that number if both are the same. Find the probability distribution of $X$, and $E(X)$.
  10. practice A random variable $X$ takes the values $0, 1, 2, \ldots, 7$ with probabilities $0$, $k$, $2 k$, $2 k$, $3 k$, $k^2$, $2 k^2$ and $7 k^2 + k$. Find $k$.
Answers
  1. Yes. $0.3 + 0.5 + 0.2 = 1$, and every probability lies between $0$ and $1$.
  2. $1/6$
  3. $2.1$
  4. $0.49$
  5. $P(X=0) = 1/10$, $P(X=1) = 6/10$, $P(X=2) = 3/10$; $E(X) = 6/5$
  6. $9/25$
  7. $k = 1/10$, $E(X) = 1$
  8. $P(Y=0) = 3/9$, $P(Y=1) = 4/9$, $P(Y=2) = 2/9$; $E(Y) = 8/9$
  9. $P(X = k) = (2 k - 1)/36$ for $k = 1, 2, \ldots, 6$; $E(X) = 161/36$
  10. $k = 1/10$

↑ Back to top

Practice set: miscellaneous

The miscellaneous set mixes the ideas, and no item says which one it needs. You test events for independence, two and three at a time, and you combine two independent tests. You find a missing chance from independence. You prove that complements of independent events are independent, and you tell mutually exclusive events from independent ones. You find conditional chances with cards, with complements and for a device of two parts. Bayes’ theorem comes up for a factory, a cricket match and a reported coin toss. One item, for the JEE tier, finds a variance.

Miscellaneous exercise
  1. practice A pair of fair dice is thrown. Let $A$ = the sum is even, and $B$ = the sum is a multiple of $3$. Determine whether $A$ and $B$ are independent.
  2. practice A student appears for two independent scholarship tests, $U$ and $V$. The probability of qualifying test $U$ is $0.4$ and of qualifying test $V$ is $0.5$. Find the probability that the student qualifies exactly one of the two tests.
  3. practice A card is drawn from a well-shuffled pack of $52$ cards. Given that the card drawn is not a heart, find the probability that it is a face card.
  4. practice A factory has two production lines, $M$ and $N$. Line $M$ produces $70\%$ of the output and Line $N$ produces $30\%$. Among Line $M$’s items, $4\%$ are defective; among Line $N$’s items, $8\%$ are defective. Let $E_1$ = from Line $M$, $E_2$ = from Line $N$, and $D$ = the item is defective. An item is chosen at random and found defective. Find the probability that it came from Line $N$.
  5. practice A random variable $X$ has the distribution $P(X=1) = 0.3$, $P(X=2) = 0.4$, $P(X=3) = 0.3$. Find $\operatorname{Var}(X)$. (JEE tier)
  6. practice A cricket team wins a match with probability $0.6$ if it bats first, and with probability $0.45$ if it bowls first. The toss is fair, so each option is equally likely. Let $E_1$ = bats first, $E_2$ = bowls first, and $W$ = wins the match. Given that the team won the match, find the probability that it batted first.
  7. practice An electronic item is assembled from two independent components, $A$ and $B$. The probability that component $A$ works is $0.9$ and that component $B$ works is $0.8$; the item functions only if both components work. Let $N$ = the item does not function, and $F$ = exactly one component fails. Given that the item is found not functioning, find $P(F|N)$.
  8. practice A person tells the truth $4$ times out of $5$. They toss a fair coin and report that it shows a head. Find the probability that it really is a head.
  9. practice $A$ and $B$ are independent events with $P(A) = 0.3$ and $P(A \cup B) = 0.6$. Find $P(B)$.
  10. practice A coin is tossed twice. Let $A$ be “a head on the first toss”, $B$ be “a head on the second toss” and $C$ be “the two tosses match”. Show that each pair of these events is independent, but the three are not mutually independent.
  11. practice Prove that if $E$ and $F$ are independent events, then $E$ and $F'$ are also independent.
  12. practice $A$ and $B$ are mutually exclusive events with $P(A) = 1/2$ and $P(B) = 1/3$. Are $A$ and $B$ independent?
  13. practice $P(A) = 7/13$, $P(B) = 9/13$ and $P(A \cap B) = 4/13$. Find $P(A'|B)$.
Answers
  1. Yes. $1/2 \cdot 1/3 = 1/6$, which equals $P(A \cap B)$. Only the totals $6$ and $12$ are both even and a multiple of $3$.
  2. $0.5$
  3. $3/13$
  4. $6/13$
  5. $0.6$
  6. $4/7$
  7. $13/14$
  8. $4/5$
  9. $P(B) = 3/7$
  10. Each pair meets with chance $1/4 = 1/2 \cdot 1/2$, so each pair is independent. But $P(A \cap B \cap C) = 1/4 \neq 1/8$, so the three are not mutually independent.
  11. $P(E \cap F') = P(E) - P(E) \cdot P(F) = P(E) \cdot P(F')$, so $E$ and $F'$ are independent.
  12. No. $P(A \cap B) = 0$, but $P(A) \cdot P(B) = 1/6$.
  13. $5/9$
Board paper practice
  1. practice If $P(A) = 0.6$, $P(B) = 0.3$ and $P(A \cup B) = 0.72$, then the events $A$ and $B$ are ______. (1 mark)
    1. mutually exclusive
    2. independent
    3. both mutually exclusive and independent
    4. neither mutually exclusive nor independent
  2. practice Assertion (A). If $A$ and $B$ are independent events with $P(A) = 0.4$ and $P(B) = 0.5$, then $P(A \cup B) = 0.7$. Reason (R). For independent events $A$ and $B$, $P(A \cap B) = P(A) \cdot P(B)$. (1 mark)
    1. Both A and R are true and R is the correct explanation of A.
    2. Both A and R are true but R is not the correct explanation of A.
    3. A is true but R is false.
    4. A is false but R is true.
  3. practice A family has two children, each equally likely to be a boy or a girl. Given that at least one of the children is a girl, find the probability that both children are girls. (2 marks)
  4. practice Bag I contains $3$ white and $2$ black balls, and Bag II contains $4$ white and $5$ black balls. One ball is drawn at random from Bag I and put into Bag II without its colour being seen. A ball is then drawn at random from Bag II, and it is white. Find the probability that the ball moved was white. (3 marks)
  5. practice A shop gets its bulbs from three suppliers. Supplier I supplies $50\%$ of them, Supplier II $30\%$ and Supplier III $20\%$. Of their bulbs, $2\%$, $3\%$ and $4\%$ respectively are defective. A bulb is chosen at random from the shop. (i) Find the probability that it is defective. (ii) The bulb is found to be defective. Find the probability that it came from Supplier I. (5 marks)
  6. practice In a class, $60\%$ of the students go to the revision classes before the board exam. Of those who go, $80\%$ pass; of those who do not go, $50\%$ pass. A student is picked at random. Let $E_1$ be “goes to the revision classes”, $E_2$ be “does not go” and $A$ be “passes”. (i) Find $P(E_1 \cap A)$. (1 mark) (ii) Find $P(A)$. (1 mark) (iii) The student passed. Find the probability that the student went to the revision classes. (2 marks)
Answers
  1. (B) independent.
  2. (A) Both A and R are true and R is the correct explanation of A.
  3. $1/3$
  4. $15/23$
  5. (i) $0.027$ (ii) $10/27$
  6. (i) $0.48$ (ii) $0.68$ (iii) $12/17$

↑ Back to top