Conditional Probability

April 12, 2026

Problem

A bag has 4 red, 3 blue balls. Draw one red, then without replacement, P(second is red)?

Explanation

What is conditional probability?

P(AB)P(A|B) is the probability of AA given that BB has already occurred. It restricts the sample space to the outcomes where BB happened.

P(AB)=P(AB)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}

Step-by-step: Drawing without replacement

Setup: Bag has 4 red + 3 blue = 7 balls.

Step 1: First draw is red. Now the bag has 3 red + 3 blue = 6 balls remaining.

Step 2: P(2nd red1st red)=36=12=50%P(\text{2nd red} | \text{1st red}) = \frac{3}{6} = \frac{1}{2} = 50\%

Note: Without the "given" information, P(any single ball is red)=4/757%P(\text{any single ball is red}) = 4/7 \approx 57\%. After removing one red ball, the probability drops to 3/6=50%3/6 = 50\%.

With replacement vs without

  • With replacement: P(2nd red)=4/7P(\text{2nd red}) = 4/7 always (bag is reset).
  • Without replacement: P(2nd red1st red)=3/6=1/2P(\text{2nd red} | \text{1st red}) = 3/6 = 1/2 (bag has changed).

Independence

Events are independent if knowing one happened doesn't change the probability of the other: P(AB)=P(A)P(A|B) = P(A). Drawing with replacement → independent. Drawing without replacement → dependent.

Multiplication rule

P(AB)=P(A)P(BA)P(A \cap B) = P(A) \cdot P(B|A)

P(1st red AND 2nd red)=47×36=1242=2728.6%P(\text{1st red AND 2nd red}) = \frac{4}{7} \times \frac{3}{6} = \frac{12}{42} = \frac{2}{7} \approx 28.6\%

Try it in the visualization

The bag shows colored balls. Drawing one ball updates the bag visually. The probability of the next draw changes based on what was removed. Toggle between with/without replacement to see the difference.

Interactive Visualization

Parameters

4.00
3.00
Red
Without replacement
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Conditional Probability | MathSpin