Class 12 MathsAll 13 chaptersQuick lessonWorked solutionsPast papersPast papersGet updates
Class 12 Mathematics · Chapter 13

Probability.
How new information changes the odds.

Roll two dice: a 4 appears with probability 11/36. Now someone tells you the sum was 6. The chance of a 4 jumps to 2/5. This chapter is about exactly that: conditional probability (what changes when we learn something), the multiplication rule for things that happen one after another, independence (when learning something changes nothing), and Bayes' theorem, which runs the reasoning backwards: from what we see to its likely cause.

Information shrinks the sample space. Of the 36 outcomes, only the 5 with sum 6 remain possible; 2 of those contain a 4. So P(a 4 | sum is 6) = 2/5.
Part 1 · Sections 13.1–13.2

Conditional probability: shrink the world.

News shrinks the world. Once we know F happened, only the outcomes inside F are still possible: F becomes the new sample space.

The definition
P(E|F) = P(E ∩ F)P(F)

Read P(E|F) as “the probability of E given F”: the share of F where E also happens. It needs P(F) ≠ 0, and it works even when outcomes are not equally likely (Example 7).

Just count
P(E|F) = n(E ∩ F)n(F)

When the outcomes are equally likely: count the outcomes in both E and F, and divide by the outcomes in F.

Three coins
P(E|F) = 14

Toss three fair coins. E: at least two heads (P(E) = ½). F: the first coin shows tail. Given F, only THH, THT, TTH, TTT remain, and only THH is in E.

Properties, given F

P(S|F) = P(F|F) = 1
P(E′|F) = 1 − P(E|F)
P((A ∪ B)|F)
= P(A|F) + P(B|F) − P((A ∩ B)|F)

The usual rules of probability still hold inside the new world F. For disjoint A and B the last term is 0, so just add.

Two-dice labChoose the information (the sum) and the event. The orange squares are the new world; the green ones are where the event also happens.
conditional probability
Example 1

P(A|B) from P(A ∩ B) and P(B).

  1. (4/13)/(9/13).
4/9.
Example 2

Both boys given at least one boy.

  1. 1 of 3 families.
1/3.
Example 3

Even card given more than 3.

  1. 4 of 7.
4/7.
Example 4

Class XII given a girl.

  1. 0.043/0.43.
0.1.
Example 5

4 on the third throw given 6, 5.

  1. 1 of 6.
1/6.
Example 6

A 4 given sum 6.

  1. 2 of 5.
2/5.
Example 7

Die > 4 given at least one tail.

  1. (1/6)/(3/4).
2/9.
Part 2 · Section 13.3

The multiplication rule: multiply along the branches.

For two things to both happen, the first must happen and then the second. So multiply their chances, one step at a time.

The rule
P(E ∩ F) = P(E) P(F|E)
= P(F) P(E|F)

This is the definition of conditional probability turned around. E ∩ F (also written EF) means both E and F happen.

Three events
P(E ∩ F ∩ G)
= P(E) P(F|E) P(G|E ∩ F)

Each new factor is conditioned on everything that came before it. Four or more events work the same way.

Watch the draw
1015 × 914 = 37

Two black balls from 10 black and 5 white (Example 8). Drawing without replacement changes the second branch; with replacement it does not.

On a tree diagram

  1. Draw the first branch and label it P(E).
  2. From the end of that branch, draw the second one and label it P(F|E): the chance of F once E has happened.
  3. Multiply along the path. The product is the probability of the whole path, P(E ∩ F).
Two balls from an urnSet the number of black and white balls, and choose with or without replacement. The red path is black then black.
both black
Example 8

Two black balls, without replacement.

  1. 10/15 × 9/14.
3/7.
Example 9

King, king, ace.

  1. 4/52 × 3/51 × 4/50.
2/5525.
Part 3 · Section 13.4

Independent events: knowing one tells you nothing about the other.

Two events are independent when learning that one happened does not change the chance of the other.

The test
P(E ∩ F) = P(E) P(F)

This says the same as P(E|F) = P(E) (and P(F|E) = P(F)): E and F are independent. If it fails, they are dependent.

A card
P(spade) = 14
P(spade | ace) = 14

Draw a card. A spade has probability ¼, and a spade given an ace is also ¼. Learning it is an ace did not change anything.

Not the same as disjoint
P(E ∩ F) = 0 ≠ P(E) P(F)

Independent is not mutually exclusive. Disjoint events with non-zero probabilities are never independent: if one happens, the other certainly did not.

Good to know

If E and F are independent, so are E and F′, E′ and F, and E′ and F′.

Three events A, B, C are mutually independent when every pair multiplies and also

P(A ∩ B ∩ C)
= P(A) P(B) P(C)

Two experiments are independent when every event of one is independent of every event of the other.

Independence in a squareThe square is the sample space (area = probability). A is the left strip. B is drawn in two parts: inside A and outside A. Independent exactly when B has the same height on both sides.
verdict
Example 10

Multiple of 3 and even on a die.

  1. 1/6 = 1/3 × 1/2.
Independent.
Example 11

Odd first throw, odd second throw.

  1. 1/4 = ½ × ½.
Independent.
Example 12

Three coins, three pairs of events.

  1. Test each product.
(E, F) independent; others dependent.
Example 13

E, F independent ⇒ E, F′ independent.

  1. P(E ∩ F′) = P(E) − P(E)P(F).
Proved.
Example 14

At least one of A, B.

  1. 1 − P(A′)P(B′).
Proved.
Part 4 · Section 13.5

Total probability and Bayes' theorem: from effect back to cause.

Sometimes we see a result and want its cause. Bayes' theorem runs the reasoning backwards: from what we saw to how likely each cause is.

Total probability
P(A) = Σᵢ P(Eᵢ) P(A|Eᵢ)

The theorem of total probability, for any event A, when E₁, …, Eₙ form a partition of S. Written out: P(E₁)P(A|E₁) + P(E₂)P(A|E₂) + … + P(Eₙ)P(A|Eₙ).

Split the world
E₁ ∪ E₂ ∪ … ∪ Eₙ = S

E₁, …, Eₙ form a partition of S when they are pairwise disjoint, together make up S, and each has non-zero probability. So exactly one of them happens.

Bayes' theorem
P(Eᵢ|A) = P(Eᵢ) P(A|Eᵢ)Σⱼ P(Eⱼ) P(A|Eⱼ)

It reverses the condition: having seen A, how likely is each cause Eᵢ? The bottom is just P(A), by total probability. Published in 1763, after Thomas Bayes' death.

SymbolName
Eᵢthe hypotheses: the possible causes
P(Eᵢ)the a priori (prior) probability, before we see A
P(Eᵢ|A)the a posteriori (posterior) probability, after we see A
The words that go with Bayes' theorem.

How to use it

  1. List the possible causes E₁, …, Eₙ (they must form a partition) and write down each prior P(Eᵢ).
  2. For each cause, write P(A|Eᵢ): how likely the result A is if that cause is the true one.
  3. Multiply each pair, P(Eᵢ) P(A|Eᵢ), and add all the products. The total is P(A).
  4. Divide the product for the cause you want by that total. The answer is the posterior P(Eᵢ|A).
Picture it as areas

In the area model used throughout this page, each hypothesis is a column as wide as its prior. The shaded bottom of each column is P(A|Eᵢ), the total shaded area is P(A), and the posterior is one column's share of the shading.

1000 people, one testEach dot is a person. Change how common the condition is and how good the test is. Count how many of the positive results are real.
posterior
Example 15

Construction job with a possible strike.

  1. Total probability.
0.488.
Example 16

Red ball: from Bag II?

  1. Bayes.
35/68.
Example 17

Gold coin: other also gold?

  1. Bayes over three boxes.
2/3.
Example 18

Positive HIV test.

  1. Rare condition.
≈ 0.083.
Example 19

Defective bolt: machine B?

  1. Bayes over three machines.
28/69.
Example 20

Late doctor: by train?

  1. Four means of transport.
1/2.
Example 21

He says six: is it?

  1. Truth 3/4.
3/8.
Example 22

Four boxes; black ball from box III?

  1. Bayes with a table.
≈ 0.165.
Example 23

First to throw a six.

  1. Geometric series.
6/11 and 5/11.
Example 24

Two acceptable items: correct set-up?

  1. 0.648/0.680.
≈ 0.95.
A note from the book

A random variable is a real-valued function on the sample space: it gives each outcome a number. For example, X = number of heads in two tosses:

X(HH) = 2,  X(TT) = 0
X(HT) = X(TH) = 1

Another is Y = heads minus tails. Several random variables can be defined on the same sample space.

Self-check

The nine multiple-choice questions, and six more.

Fifteen questions to check yourself. Tap an option to check it and see the reasoning.

Every MCQ from Exercises 13.1–13.3 and the miscellaneous exercise, plus six concept checks.

Score0 / 1515 left to answer
Summary

Remember this.

Conditional probability

P(E|F) = P(E ∩ F)P(F)P(F) ≠ 0
0 ≤ P(E|F) ≤ 1
P(E′|F) = 1 − P(E|F)
P((E ∪ F)|G)
= P(E|G) + P(F|G) − P((E ∩ F)|G)

Multiplication rule

P(E ∩ F) = P(E) P(F|E)
= P(F) P(E|F)

Independent events

P(E ∩ F) = P(E) P(F)

That is, P(E|F) = P(E) and P(F|E) = P(F).

Total probability and Bayes

P(A) = Σ P(Eᵢ) P(A|Eᵢ)
P(Eᵢ|A) = P(Eᵢ) P(A|Eᵢ)Σ P(Eⱼ) P(A|Eⱼ)

Both sums run over a partition E₁, …, Eₙ.

A little history

From gamblers' puzzles to axioms.

1477Dante commentary

The earliest known count of chances in dice games appears in a commentary on the Divine Comedy.

1501–1576Gerolamo Cardano

His treatise on gambling, Liber de Ludo Aleae, counted favourable cases for two dice; it was published in 1663.

c. 1600Galileo

Explained why, with three dice, a sum of 10 is more likely than a sum of 9: more cases favour it.

1654Pascal and Fermat

Letters prompted by the gambler Chevalier de Méré laid the foundations of the science of probability.

1713Jacob Bernoulli

Ars Conjectandi, published after his death, introduced the binomial distribution.

1933A. N. Kolmogorov

Built probability on axioms, as a function on sets, in Foundations of Probability.

Finished Chapter 13? Hear when the next one is ready

Leave your email and we will write when a new chapter or a new set of worked solutions is ready. That is all we use it for, and you can ask to be taken off the list at any time.

You are on the list. We will email you when new chapters are added, and for nothing else.