Lessons › math · taught by Ada
Conditional probability basics: filter the sample space
Learn how conditional probability changes the sample space and how to use P(A|B)=P(A and B)/P(B).
Learn this with Ada, freeA voiced lesson with a live whiteboard, quizzes and a tutor you can call, at tutelage.appA smaller sample after a filter
Conditional probability means we are looking inside a smaller group first. Then we ask: what fraction of that smaller group also fits the event we care about?
So the word given is the clue. It means 'after the filter,' not the whole room.
The formula for P(A|B)
Conditional probability is probability of A after B has happened.
The symbol P of A given B means the probability of A inside B.
The formula is P of A given B equals P of A and B divided by P of B.
So the denominator is the new total: just the outcomes where B happened.
Predict the new sample space
If we are finding P(A|B), what does the denominator represent?
- All outcomes in the whole experiment
- Only outcomes where B happened
- Only outcomes where A happened
Show answer
Only outcomes where B happened: Yes. B is the filter, so it becomes the new sample space.
A counting example with cards
Let’s use a deck example. Suppose a card is already known to be a face card.
Now we ask: what is the chance it is red? There are 12 face cards total and 6 of them are red.
So the probability is six out of twelve, which simplifies to one out of two.
Quick check on the setup
If 5 marbles are red and 20 marbles are in the bag, but you are told the marble is red, what should you use as the denominator when finding another probability from that group?
- 20 marbles
- 5 red marbles
- 25 marbles
Show answer
5 red marbles: Exactly. Once red is given, the red marbles are the new total.
Why the formula makes sense
Here is the big idea. Conditional probability is just a ratio after a filter.
First you narrow the sample space. Then you count how many of those filtered outcomes also satisfy A.
That is why the formula divides by P of B.
Your turn: apply the formula
A bag has 8 blue marbles and 4 green marbles. You are told the marble is blue. What is the probability it is green, given blue?
- 4/12
- 0
- 4/8
Show answer
0: Correct idea: if it is given blue, then only blue marbles are in the sample space. Since green cannot happen inside blue, the probability is 0.
Three steps to remember
Let’s wrap it up with a checklist.
Read the part after given. That is the filter.
Shrink the sample space to only those outcomes. Then use P of A and B over P of B.