Dependent Events Formula Solver with Worked Examples

When the first event changes the chances of the second, , where the second probability is found on the second branch of a tree diagram. Use the calculator to multiply along the branches.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

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.

  • : P(A and B)
  • : P(A)
  • : P(B given A), found on the second branch

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.

How to use the dependent events (tree diagram) formula

  1. Draw a tree diagram.
  2. Write the probabilities on the first branches.
  3. Update the numbers for the second branches.
  4. Multiply along the branches.

Diagram

P(A)P(A′)P(B | A)P(B′ | A)P(B | A′)P(B′ | A′)AA′BB′BB′

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.

Dependent events (tree diagram) Answer checked
Answer
J=0.3J=0.3
  1. The formula
    Dependent events (tree diagram). In this formula is the P(A and B), is the P(A), is the P(B given A), found on the second branch.
  2. What we know and what we want
    We know and we want to find , the P(A and B).
  3. Substitute the numbers
  4. Calculate
  5. Check by substituting back
    Put all the values back into the original formula: both sides should match.

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.

Dependent events (tree diagram) Answer checked
Answer
b=0.3b=0.3
  1. The formula
    Dependent events (tree diagram). In this formula is the P(A and B), is the P(A), is the P(B given A), found on the second branch.
  2. What we know and what we want
    We know and we want to find , the P(B given A), found on the second branch.
  3. Rearrange for
    Rearrange the formula to make b the subject.
  4. Substitute the numbers
  5. Calculate
  6. Check by substituting back
    Put all the values back into the original formula: both sides should match.

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.

Dependent events (tree diagram) Answer checked
Answer
a=0.4a=0.4
  1. The formula
    Dependent events (tree diagram). In this formula is the P(A and B), is the P(A), is the P(B given A), found on the second branch.
  2. What we know and what we want
    We know and we want to find , the P(A).
  3. Rearrange for
    Rearrange the formula to make a the subject.
  4. Substitute the numbers
  5. Calculate
  6. Check by substituting back
    Put all the values back into the original formula: both sides should match.

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).

  1. Multiply0.6 × 0.5
  2. Calculate0.3
  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.

  1. First5/8
  2. Second4/7
  3. Multiply20/56 = 0.36
  4. 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).

  1. Divide0.18 ÷ 0.6
  2. Calculate0.3
  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.

  1. First4/52
  2. Second3/51
  3. Multiply0.0045
  4. 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

  1. P(A and B) = P(A) × P(B | A).
  2. Reduce the total after each pick.
  3. Draw a tree.
  4. Multiply along, add across.
  5. 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.

Solve: …

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.

More in Probability and the formula sheets.