📘 CodingMarble Learn

Combined Events, Tree Diagrams and Conditional Probability

When two things happen, list every outcome in a sample space, a table, a Venn diagram or a tree diagram. Multiply along tree branches (the multiplication rule) and add the paths you want. If the first event changes the second, the events are dependent: picking without replacement is the classic case. Conditional probability P(A | B) is the chance of A when we already know B happened: P(A | B) = P(A and B) ÷ P(B).

🎬 Step-by-step story

  1. Two coins: list every outcome. HH, HT, TH, TT, so P(two heads) = 1/4.
  2. Pick a ball, put it back, pick again. Multiply along the tree: 3/5 × 3/5.
  3. Do not put it back: the second pick changes. 3/5 × 2/4 = 3/10.
  4. 30 students in a Venn diagram. Given 'likes cricket', look only inside that circle.
  5. 5 of the 12 like football too: P(F | C) = 5/12 = P(F and C) ÷ P(C).
  6. Your turn: change the balls and switch replacement on or off.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why is HT different from TH?

The two coins are different coins. 'First head, second tail' and 'first tail, second head' are two separate tiles.

Why do we multiply along branches?

The second event happens in only a fraction of the first event's cases, so we take a fraction of a fraction.

Why does the second fraction change without replacement?

One red ball has left the bag, so there are fewer reds and fewer balls. Watch the ball stay outside.

Why divide by 12, not 30, for P(F | C)?

We already know the student likes cricket, so only the 12 dots inside that circle count. The others fade.

How can I tell if two events are independent?

Compare P(A | B) with P(A). Here 5/12 is not 18/30, so they are not independent.

Are mutually exclusive events independent?

No. If one happens the other cannot, so knowing one changes the other to 0.

Sample spaces, tables and Venn diagrams

The sample space is the list of every possible outcome. For two coins it is {HH, HT, TH, TT}. For two dice, a 6 × 6 table gives 36 outcomes. If all outcomes are equally likely:

P(event) = number of outcomes you want ÷ total number of outcomes

A Venn diagram shows overlapping groups. The overlap is A and B (A ∩ B). Everything in either circle is A or B (A ∪ B). Outside both circles is neither.

Addition rule: P(A or B) = P(A) + P(B) − P(A and B). We subtract the overlap so it is not counted twice. If A and B cannot happen together (mutually exclusive), the overlap is 0.

Tree diagrams and the multiplication rule

A tree diagram draws each stage as a set of branches. Write the probability on every branch. The branches from one point always add up to 1.

"At least one" questions are often quicker with 1 − P(none).

Independent and dependent events

Two events are independent if one does not change the chance of the other. Tossing a coin and rolling a die are independent. Picking a ball and putting it back before picking again is independent too. Then P(A and B) = P(A) × P(B).

Events are dependent if the first changes the second. Picking without replacement is dependent: after taking a red ball, there are fewer reds and fewer balls in total, so the second-stage fractions change.

Example: 3 red, 2 blue. With replacement P(RR) = 3/5 × 3/5 = 9/25. Without replacement P(RR) = 3/5 × 2/4 = 6/20 = 3/10.

Conditional probability

P(A | B) means "the probability of A given that B has happened". Knowing B shrinks the sample space to just B.

P(A | B) = P(A and B) ÷ P(B), or, with counts, (number in both) ÷ (number in B).

Example: of 30 students, 12 like cricket and 5 like both cricket and football. P(football | cricket) = 5 ÷ 12. Note this is not 5 ÷ 30: we only look at the cricket fans.

Rearranging gives the multiplication rule again: P(A and B) = P(B) × P(A | B). This is exactly what the second-stage branches of a tree diagram show.

Test for independence: A and B are independent if P(A | B) = P(A). Here P(F | C) = 5/12 ≈ 0.42 but P(F) = 18/30 = 0.6, so liking football and cricket are not independent.

Key formulas and definitions

Worked examples

1. Two fair dice are rolled. Find P(total = 7).

36 equally likely outcomes. Totals of 7: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) = 6. P = 6/36 = 1/6.

2. P(rain) = 0.3 on each of two days, independent. Find P(rain on both days).

0.3 × 0.3 = 0.09.

3. A bag has 4 green and 6 yellow sweets. Two are taken with replacement. Find P(both green).

4/10 × 4/10 = 16/100 = 4/25.

4. Same bag, without replacement. Find P(both green) and P(one of each).

P(GG) = 4/10 × 3/9 = 12/90 = 2/15. P(GY) = 4/10 × 6/9 = 24/90; P(YG) = 6/10 × 4/9 = 24/90. P(one of each) = 48/90 = 8/15.

5. In a class of 40, 22 study French, 15 study Spanish and 6 study both. Find P(French | Spanish).

Only look at the 15 Spanish students. 6 of them study French. P = 6/15 = 2/5.

6. P(A) = 0.5, P(B) = 0.4, P(A and B) = 0.2. Are A and B independent? Find P(A | B).

P(A) × P(B) = 0.2 = P(A and B), so yes. P(A | B) = 0.2 ÷ 0.4 = 0.5 = P(A), which agrees.

7. A light is red with probability 0.6. If red, a driver is late with probability 0.3; if not red, 0.1. Find P(late).

Tree: P(red and late) = 0.6 × 0.3 = 0.18; P(not red and late) = 0.4 × 0.1 = 0.04. P(late) = 0.18 + 0.04 = 0.22.

Common mistakes

Practice quiz

1. Two coins are tossed. P(exactly one head) =
2. On a tree diagram you multiply:
3. 3 red and 2 blue, two picked without replacement. P(RR) =
4. P(A | B) means:
5. A and B are independent if:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is conditional probability in simple words?

It is the chance of something happening when you already know something else has happened. You only count inside the group you know about.

When do you multiply and when do you add probabilities?

Multiply for 'A and then B' (along a tree path). Add for 'this path or that path' when the paths cannot both happen.

What is the difference between with and without replacement?

With replacement the item goes back, so the second pick is the same and events are independent. Without replacement the totals drop by one, so the events are dependent.

Where this is taught

England (GCSE, A level)Year 113.5 Probability
England (GCSE, A level)Year 113. Probability
Russia8 классProbability

Learn first

Learn next

Related lessons

All Maths lessons