Sum and product laws

Sum and product laws

Spec 3.4 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Sum law: P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B); for mutually exclusive events the last term is 00.
  • Product law: P(A∩B)=P(A) P(B∣A)P(A\cap B)=P(A)\,P(B\mid A); for independent events P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B).
  • On a tree diagram multiply along a path and add between paths.
  • On a Venn diagram fill the intersection first and check the regions add to the total.
  • Without replacement the second probability changes; for 'at least one' use 1−P(none)1-P(\text{none}).

Events and the sum law

The sum law adds the two probabilities and subtracts the overlap, which was counted twice.

An event is a set of outcomes. A∪BA\cup B means AA or BB (or both), A∩BA\cap B means AA and BB, and A′A' is the complement (not AA), with P(A′)=1−P(A)P(A')=1-P(A).

The sum law removes the overlap, which was counted twice.

If AA and BB are mutually exclusive, they cannot both happen, so P(A∩B)=0P(A\cap B)=0 and P(A∪B)=P(A)+P(B)P(A\cup B)=P(A)+P(B).

AB
Venn diagram of A and B: P(A) + P(B) counts the overlap A ∩ B twice, so it is subtracted once
  • Sum lawP(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B)
  • Mutually exclusiveP(A∪B)=P(A)+P(B)P(A\cup B)=P(A)+P(B)

Worked example

P(A)=0.4P(A)=0.4, P(B)=0.5P(B)=0.5, P(A∩B)=0.15P(A\cap B)=0.15. Find P(A∪B)P(A\cup B) and the probability of neither.

P(A)=0.5P(A)=0.5, P(B)=0.3P(B)=0.3 and AA, BB are mutually exclusive. What is P(A∪B)P(A\cup B)?

The product law and independence

The product law is P(A∩B)=P(A)P(B∣A)P(A\cap B)=P(A)P(B\mid A); for independent events it becomes P(A)P(B)P(A)P(B).

The product law (multiplication law) is P(A∩B)=P(A)×P(B∣A)P(A\cap B)=P(A)\times P(B\mid A), where P(B∣A)P(B\mid A) is the probability of BB given that AA has happened.

Events are independent if one happening does not change the chance of the other. Then P(B∣A)=P(B)P(B\mid A)=P(B).

To test independence, compare P(A)P(B)P(A)P(B) with P(A∩B)P(A\cap B): if they are not equal, the events are not independent.

  1. 1

    A happens

    The probability is P(A).

  2. 2

    B happens, given A

    The probability is P(B | A); if the events are independent this is just P(B).

  3. 3

    Multiply

    P(A ∩ B) = P(A) × P(B | A).

Product law for A and then B
  • Product lawP(A∩B)=P(A) P(B∣A)P(A\cap B)=P(A)\,P(B\mid A)
  • Independent eventsP(A∩B)=P(A) P(B)P(A\cap B)=P(A)\,P(B)

Worked example

P(A)=0.4P(A)=0.4, P(B)=0.5P(B)=0.5, P(A∩B)=0.15P(A\cap B)=0.15. Are AA and BB independent?

Two fair coins are tossed. Which is the probability of two heads?

Venn diagrams

Work from the middle outwards: fill the intersection first, then the 'only' regions, then the outside.

A Venn diagram shows how many outcomes lie in each region.

Work from the middle outwards: fill the intersection first, then subtract it from each set total to get the 'only' regions, then find the outside region from the overall total.

Check that the regions add up to the total number of outcomes before reading off any probability.

05101520M onlyBothP onlyNeitherRegionStudents
The four regions for 60 students: 35 study MM, 28 study PP, 15 study both.

Worked example

60 students: 35 study MM, 28 study PP, 15 study both. Find the number in each region and test for independence.

In the example, how many students study neither subject?

Tree diagrams

Multiply along the branches to get the probability of a path, and add the paths that give the outcome you want.

A tree diagram shows a sequence of events. Each branch carries a probability, and the probabilities on branches leaving one point add to 1.

  • Multiply along the branches to find the probability of a full path (the product law).
  • Add the probabilities of the different paths that give the outcome you want, because the paths are mutually exclusive.

For a later stage, the branch probabilities may change depending on what has already happened.

  1. 1

    Draw the branches

    label each with its probability

  2. 2

    Multiply along each path

    gives the probability of that full path

  3. 3

    Pick the paths you want

    the ones that give the required outcome

  4. 4

    Add those paths

    they are mutually exclusive

Reading a tree diagram.

Worked example

Machine XX (60% of items) is defective with probability 0.050.05 and machine YY (40%) with probability 0.020.02. Find P(defective)P(\text{defective}).

On a tree diagram, how do you find the probability of an outcome that can happen by two different paths?

Sampling with and without replacement

With replacement the draws are independent; without replacement the numbers fall and the second probability depends on the first.

With replacement, each item is returned before the next is taken, so the probabilities do not change and the draws are independent.

Without replacement, the item is not returned, so the number of items falls and the second probability depends on the first.

For at least one, it is usually quicker to use the complement: P(at least one)=1−P(none)P(\text{at least one})=1-P(\text{none}).

00.10.20.30.4With replacementWithout replacementMethodP(both red)
Bag of 8 balls, 5 red: P(both red) is 5/8 × 5/8 with replacement and 5/8 × 4/7 without

With replacement

  • Probabilities do not change
  • Draws are independent
  • Both red: 58×58\frac58\times\frac58

Without replacement

  • Numbers in the bag fall
  • Second draw depends on the first
  • Both red: 58×47\frac58\times\frac47

Worked example

5 red and 3 blue discs. Two are taken without replacement. Find P(both red)P(\text{both red}), P(different colours)P(\text{different colours}) and P(at least one red)P(\text{at least one red}).

Which method uses the complement for "at least one"?

Try an exam question

Events AA and BB are independent, with P(A)=0.4P(A)=0.4 and P(B)=0.25P(B)=0.25. Find (a) P(A∩B)P(A\cap B), (b) P(A∪B)P(A\cup B), (c) P(A′∩B′)P(A'\cap B').

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find P(A∪B)P(A\cup B).

1 mark, marked against the mark scheme

Revision notes