r/probabilitytheory • • 5d ago

[Education] Conditional probability makes zero intuitive sense to me. Is drawing it out the fix?

I'm a grad student in public health, and my math background is pretty limited. I took college algebra and one intro stats class a while ago. I can plug numbers into the conditional probability formula and get the right answer, but I still don't understand why we're dividing by the probability of B in the first place.

I've gone through the probability chapter in my biostats textbook twice and watched the Khan Academy videos on dependent events. The problem is that they mostly explain the formula and walk through examples, so I end up memorizing the steps rather than actually understanding the concept.

I'm wondering if drawing out every problem using a tree diagram or a grid of 100 people would help build that intuition. Does that actually make the formula easier to understand over time, or am I just creating another way to memorize the steps?

Would be interested to hear what worked for people who struggled with this initially.

35 Upvotes

28 comments sorted by

10

u/the__humblest 5d ago

It may be intuitive for you to draw it out on a grid and calculate areas. Try it!

5

u/FreeXFall 5d ago

I just watched this video earlier this week (came up at work). The first few minutes he uses area to explain / show bayes theorem. I hadn’t seen it that way before and I found it really helpful.

https://youtu.be/HZGCoVF3YvM

5

u/TheTurtleCub 5d ago edited 4d ago

Setup examples to exercise your intuition and see why it makes sense.

Do toy examples: if it's raining in the city, there's a 90% chance you'll get wet. If it's not raining it's zero. The chance of rain is 60%, what's the chance of getting wet?

Then flip it around, you have the chance of getting wet, but not the chance of rain, etc. Then you don't know the change of getting wet when it's raining, but know the rest

4

u/fermat9990 4d ago

2×2 tables are very good for this.

4

u/tb5841 4d ago

I have a class of twenty students. Eight of them are girls. Three of those girls wear glasses.

I pick a student at random. What's the probability they wear glasses, given that they are a girl?

Draw it on a Venn diagram. The probability a random student is a girl who wears glasses is three twentieths, but I'm not selecting out of the whole set. I'm only selecting from the set of girls, which has probability eight twentieths. So it's three twentieths out of that eight twentieths, i.e. 0.15/0.4 = 3/8.

1

u/EmuOdd2310 5d ago

Drawing it out was what finally made it click for me too. Using a grid of 1,000 people instead of percentages makes the divide-by-P(B) step much easier to understand. You're basically removing everyone who isn't in group B and then calculating based on who's left.
It's not a crutch as long as you understand why B becomes your new whole. Once that clicks, the visual method actually makes the concept easier to grasp.

1

u/ColdOutside6499 4d ago

Our biostats book never says anything like that, it just writes P(A and B) over P(B) and jumps straight to a screening test example. I've been drawing grids but then computing off the whole grid (which is probably why my answers felt random).

2

u/guesswho135 4d ago edited 4d ago

If it helps, just count instead of using probabilities.

Suppose 60 people are in a venue. 20 of them are wearing red. There are 40 more people hanging outside the venue who may or may not be wearing red, it doesn't matter.

P(wearing red | in the venue) = 20/60 = .33

That is "the formula" you're taking about

If you want to use probabilities instead of counts, we can divide both the numerator and denominator by 100, since there are 100 people total. (20/100) / (60/100) = .2/.6 = .333. Same answer.

1

u/roderickwicklundv626 4d ago

Grids helped me too but it really stuck once I ran it a bunch of times myself. I did the probability lessons on Brilliant and ran the little simulations myself(the dice ones were my favourite). I could watch the B group pile up over the runs. If your sick of memorising textbook examples give it a shot

1

u/Artistic-Paper-472 4d ago

memorising worked examples is such a trap- been there w/ intro stats and it's miserable.

1

u/ColdOutside6499 4d ago

Every exam in my program swaps in a new disease and a new screening test, so the memorized examples never match ANYTHING.

2

u/Zyxplit 4d ago

Okay.

So there are two different concepts.

One is "A and B happens" (their joint probability) And one is "A happens if we know B happens" (conditional probability).

We divide by p(B) because we know B occurred.

Let's take a really stupid example to see it in action.

Probability that a patient is male... if it's given that he's male. Logically, obviously, this should be 100%. If we just take their joint probability, we get that with (approximately) p=0.5, he's male. But we can divide by p(male) to adjust for the fact that we know he's male. And then we get the obvious answer. If a patient is male, there's a 100% probability that he is male.

2

u/Atypicosaurus 4d ago

If the question is merely whether visualization helps, yes, it does.

Yes, conditional statistics are not intuitive. Here's another thing that may help.

Imagine you are a gambler and you like doing lottery and betting on things. But you also like to cheat. Let's imagine a game, I roll two dice (a red one and a blue one). The question is what odds would you bet that the red one is a 6.
And so if you don't know anything, the red die is a 6 exactly at 1/6 chance. But what if you have a cheating machine that can tell their sum and according to the machine the sum is 5. That makes it impossible that un this very case the red die is a 6.

Conditional probability is like that. It doesn't ask what's the odds of the red die rolling a 6, it's always the same 1/6. The question is, out of all possible initial outcomes (that includes red being 6), what are the outcomes left that can explain the situation.

The previous example was easy because it made the red being 6 impossible (0% chance). You wouldn't bet on it if you were a gambler and you knew the sum is 5. But what if we play another round and now your cheating machine says the sum is now 11? Now it's possible only in 2 ways, either the red is 5 and the blue is 6, or the other way around. In this scenario it makes 50% the red being 6.

So don't ever ask the original probabilities. They are always the same. Ask instead, what is the relevance of the information that the cheating machine gave to me? Is it still possible that the red die shows a 6? Is it now more probable or less probable?

2

u/t3co5cr 4d ago edited 4d ago

I can plug numbers into the conditional probability formula and get the right answer, but I still don't understand why we're dividing by the probability of B in the first place. ... I'm wondering if drawing out every problem using a tree diagram or a grid of 100 people would help build that intuition.

It's actually easiest to understand using Venn diagrams. I wish I could add a figure here, but you'll have to imagine them.

So picture in your mind's eye a rectangular box representing the sample space. It's the collection of all outcomes (sample points) that could possibly happen (in a given experiment), and thus collectively they have probability P(S)=1. In that sample space, outcomes are circled to indicate they belong to a set we call "event A". Being a subset of the sample space, P(A) is less than 1.

Now there's also a second set, call it "event B", which may or may not have some overlap with A. Since it's also only a subset of S, it has P(B) less than 1. Also, the events outside of the set B are known as "not B" (or rather "B complement", if you know that term).

So what does "A given B" mean? If you're told B has happened, the sample space effectively shrinks down to just set B. All non-B parts of the sample space (i.e., "not B") have been ruled out. Which means the possible outcomes (sample points) for which A is true now only includes the ones that originally overlapped with B. If that overlap was empty, then P(A|B)=0. If the overlap was not empty, P(A|B) is bigger than 0.

But together, P(A|B) and P(not A|B) still have to add up to one, by the rules of probability. So how do you rescale the probabilities inside just B so that they add up to one? You divide by what they originally summed up to, i.e. P(B).

2

u/Frederf220 4d ago

With a conditional you're examining a subset of the possibilities instead of all. It's basically a different problem.

E.g. you have 100 beans, 98 red and 2 blue. One blue bean has a dot, one doesn't.

What are the odds of getting a blue dot bean? 1% because of the 100 beans only 1 is blue with dot.

Now what are the odds of getting a blue dot bean on the condition that the bean is blue? 50%. Because when the condition is applied there are only 2 beans. The red beans don't exist.

2

u/Ruddlepoppop 4d ago

Yes-a tree diagram is a big help (at least, that is what I found) to develop intuition with cond. probability, and the use of binomial expansion coefficient to confirm restricted event space.

1

u/NitNav2000 4d ago

I find using discreet probabilities to understand things helps. Integral then get replaced with summations over finite sets of things. Try casting your problem and that form and look at it.

1

u/Helpful_Home_8531 4d ago

decision trees are useful, try working through the proof of bayes theorem.

1

u/TibblyMcWibblington 4d ago

Make a 2x2 table of probabilities of some columns for positive or negative of some condition (eg breast cancer, diabetes, anemia, etc) by rows of some characteristic (eg gender). The numbers don’t have to be correct, just guess them and make sure they’re all different, and make sure the columns add up to 1.

If you’ve set it up right, the rows should add up the total probability of having the condition and not having the condition. Now the individual squares are the probability of having / not having the condition and having / not having a characteristic.

Can you understand the reason why we might want something conditional, eg given that I’m female, what are my changes of having anemia? By restricting to that row, you have some idea, but the probabilities don’t add up to one in the row. Divide by the sum of the row, that will fix it. The probabilities add up to one, so you can now make a statement about the conditional probability.

With this stuff I’d always try to understand the motivation and ideas first, why is this useful? Then some examples of doing it, and keep asking how it could be useful with real data. Then start looking back at the mathematical definition and see if it makes sense on its own yet - that last part might take a while and might not be necessary for a working understanding.

1

u/Kindly-Department206 4d ago

A Venn diagram worked well enough for me.

P(A | B) is the proportion of A that is also in B.

P(A&B) how much A and B overlap, in absolute terms. Dividing P(A&B) by P(B) makes the amount of overlap relative to all of B (rather than absolute).

1

u/Salindurthas 4d ago

I'm wondering if drawing out every problem using a tree diagram or a grid of 100 people would help build that intuition

The idea of 'given' is that you cut out the part of the tree that is irrelevant to you.

For instance, if you have a probability that someone dies of a heart attack, and you gave half the patients the medicine, then to get "chance of dying of a heart attack if/given you got the medicine" then you may need to account for that factor of 2 somewhere (the factor of 2 from only giving half the patients the medicine).

The formula for 'conditional probability' shows you one very useful way to account for it, and in a sense, "why we're dividing by the probability of B in the first place" is to account for that factor of 2 (in this case).

1

u/telephantomoss 4d ago

Try this: the condition, what is "given" simply tells you what your new sample space is. Suppose we went to know the probability of rolling a 2 for a six side die. We know it is 1/6 probability. Now simple we want to know the probability of rolling a 2 conditioned on the fact that the room is an even number, maybe debited my P(2|even). That just tells us or 3 canine slave is no longer 1,2,3,4,5,6, and it is instead the even numbers 2,4,6. Out of those, the probably of rolling 2 is now 1/3. Thus P(2|even)=1/3.

1

u/jpgoldberg 3d ago

I have seen drawing out the trees work for students like you. It’s slow, it’s tedious, but with enough practice it should help build the intuition.

1

u/novachess-guy 3d ago

What is the probability that a random American has the first name John? I don’t know, say it’s 0.2%. Now, conditional upon that American being a male, what is the probability their first name is John? Since virtually no women are named John, it would be about 0.4%.

This is all conditional probability is.

1

u/Twofer-Cat 3d ago

If two facts are both true -- you have symptom A and condition B, say -- they're both true regardless of which order you check. The odds of them being if you check A then B are pA * pB|A; the odds of B then A are pB * pA|B; so pApB|A = pBpA|B.

1

u/rsambasivan 2d ago

Have you thought about it as just doing regular probablity but just shrinking the sample space - basically conditioning does that and the formula does the accounting for shrinking the sample space.

1

u/nutshells1 2d ago

part over whole.

whole = B happened
part = A and B happened

P(A | B) = P(AB) / P(B)

1

u/izmirlig 1d ago

The key is conditioning selects a new denominator. Rain was predicted for later in the afternoon. 13 out of 20 students brought umbrellas. There are 11 girls and 9 boys in the class. 7 girls and 4 boys brought umbrellas.

What portion of students were girls and brought umbrellas?

 P( Girl  and Umbrella) = 7/20   

What portion of students were boys and brought umbrellas

 P( Boy and Umbrella) = 4/20

what portion of girls brought umbrellas

P(umbrella | girl)  = 7/ 11

What portion of boys brought umbrellas

P(umbrella | boy ) = 4/9