Give every value except the one you want, or write the letter with a question mark, for example a=0.6, b=0.5 or J=0.18, a=0.6. Every answer is checked by putting it back into the formula.
J = a × b
J : P(A and B) a : P(A) b : P(B given A), found on the second branch
On this page
Before you start
This page is easier if you are comfortable with:
What Dependent events (tree diagram) means
Events are dependent when the result of the first affects the second, for example picking two sweets from a bag without replacement.
On a tree diagram, the probability on the second set of branches changes according to what happened first. You multiply along the branches to find the probability of the combined outcome.
The probabilities on the branches from any point must add up to 1. The calculation uses the multiplication rule with a changed second probability, whereas for independent events nothing changes.
This page is part of Conditional probability and Venn diagrams in Probability . Topics that work alongside it: Independent events , Multiplication rule , Conditional probability , Sum of probabilities , Probability of an event and Relative frequency .
What is it used for? Events are dependent if the outcome of one changes the probability of the next, as when you pick items without replacing them. A tree diagram shows the branches.
Drawing a card or counter without replacement. Finding the probability of a sequence of events. Setting up conditional probability .
How to use the dependent events (tree diagram) formula
Draw a tree diagram. Write the probabilities on the first branches. Update the numbers for the second branches. Multiply along the branches.
Diagram P(A) P(A′) P(B | A) P(B′ | A) P(B | A′) P(B′ | A′) A A′ B B′ B B′ When events depend on each other, the second-stage probabilities change depending on what happened first.
Worked examples
Each example below was worked out by the solver on this page and checked by substituting the answer back into the formula.
Example 1: find the probability of both The probability of the first event is 0.6, and given that, the second has probability 0.5. Find the probability of both.
Try this in the solver: a=0.6, b=0.5
Dependent events (tree diagram) Answer checked
The formula
Dependent events (tree diagram). In this formula J is the P(A and B), a is the P(A), b is the P(B given A), found on the second branch.
J = a × b
What we know and what we want
We know a = 0.6 , b = 0.5 and we want to find J , the P(A and B).
Substitute the numbers
J = 0.6 × 0.5
Calculate
J = 0.3
Check by substituting back
Put all the values back into the original formula: both sides should match.
0.3 = 0.6 × 0.5 ✓
Example 2: find the second probability The joint probability is 0.18 and the first has probability 0.6. Find the probability of the second given the first.
Try this in the solver: J=0.18, a=0.6
Dependent events (tree diagram) Answer checked
The formula
Dependent events (tree diagram). In this formula J is the P(A and B), a is the P(A), b is the P(B given A), found on the second branch.
J = a × b
What we know and what we want
We know J = 0.18 , a = 0.6 and we want to find b , the P(B given A), found on the second branch.
Rearrange for b
Rearrange the formula to make b the subject.
b = a J
Substitute the numbers
b = 0.6 0.18
Calculate
b = 0.3
Check by substituting back
Put all the values back into the original formula: both sides should match.
0.18 = 0.6 × 0.3 ✓
Example 3: find the first probability The joint probability is 0.08 and the second has probability 0.2 given the first. Find the first probability.
Try this in the solver: J=0.08, b=0.2
Dependent events (tree diagram) Answer checked
The formula
Dependent events (tree diagram). In this formula J is the P(A and B), a is the P(A), b is the P(B given A), found on the second branch.
J = a × b
What we know and what we want
We know J = 0.08 , b = 0.2 and we want to find a , the P(A).
Rearrange for a
Rearrange the formula to make a the subject.
a = b J
Substitute the numbers
a = 0.2 0.08
Calculate
a = 0.4
Check by substituting back
Put all the values back into the original formula: both sides should match.
0.08 = 0.4 × 0.2 ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
Both happen P(A) = 0.6, P(B | A) = 0.5: 0.3
Multiply along the branches.
The second branch P(A and B) = 0.18, P(A) = 0.6: 0.3
Divide.
The first branch P(A and B) = 0.08, P(B | A) = 0.2: 0.4
Divide.
Two aces P = 4/52 × 3/51
The second probability changes.
Word problems
When the first event changes the second, P(A and B) = P(A) × P(B given A).
Both happen P(A) = 0.6 and P(B given A) = 0.5. Find P(A and B).
Multiply 0.6 × 0.5 Calculate 0.3 Check: smaller than P(A) ✓ 0.3.
Counters A bag has 5 red and 3 blue counters. Two are taken without replacement. Find P(both red) to 2 decimal places.
First 5/8 Second 4/7 Multiply 20/56 = 0.36 Check: with replacement it would be 25/64 = 0.39 ✓ 0.36.
The second branch Higher P(A and B) = 0.18 and P(A) = 0.6. Find P(B given A).
Divide 0.18 ÷ 0.6 Calculate 0.3 Check: 0.6 × 0.3 = 0.18 ✓ 0.3.
Two aces Higher Two cards are drawn without replacement. Find P(both aces) to 4 decimal places.
First 4/52 Second 3/51 Multiply 0.0045 Check: 1/221 ✓ 0.0045.
Common mistakes
Using the same probability twice 4/52 × 4/52 ✗
4/52 × 3/51 ✓
The pool changes.
Adding branches 5/8 + 4/7 ✗
5/8 × 4/7 ✓
Multiply along a path.
Forgetting to reduce the total 5/8 × 4/8 ✗
5/8 × 4/7 ✓
One counter is gone.
Using P(B) for P(B | A) the unconditional probability ✗
the probability given A happened ✓
Use the second branch.
Exam tips
P(A and B) = P(A) × P(B | A).
Reduce the total after each pick.
Draw a tree.
Multiply along, add across.
Check the branches sum to 1.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. P(A) = 0.5 and P(B | A) = 0.4. Find P(A and B) Foundation 0.2
2. P(A) = 0.8 and P(B | A) = 0.25. Find P(A and B) Foundation 0.2
3. A bag has 4 red and 6 blue. Two are drawn without replacement. Find P(both blue) to 2 decimal places Foundation 30/90 = 0.33
4. P(A and B) = 0.24 and P(A) = 0.6. Find P(B | A) Higher 0.4
5. P(A and B) = 0.09 and P(B | A) = 0.3. Find P(A) Higher 0.3
6. Two cards drawn without replacement. Find P(both hearts) to 3 decimal places Higher 0.059
Practice generator Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
Key terms
Dependent events The first changes the chance of the second. Without replacement Items are not put back. Conditional probability P(B given A). Tree diagram A picture of the stages. Branch One path on the tree. Joint probability P(A and B).
Frequently asked questions
What are dependent events? Events where the first affects the second.
What is the rule? P(A and B) = P(A) × P(B | A).
What if I replace the item? The events become independent.
How do I find the second probability? Divide the joint by P(A).
Which page covers independent events? independent events.
Which page covers conditional probability? conditional probability.