2.7.8Statistics & Probability — Intermediate

Conditional probability — P(A - B) = P(A∩B) - P(A)

1,572 words7 min readdifficulty · medium3 backlinks

WHAT is being defined

  • ABA\cap B = "both AA and BB" (the overlap).
  • We ==restrict the universe to BB== and measure how much of BB is taken up by AA.

WHY the formula must look like this (derivation from scratch)

Suppose outcomes are equally likely, with NN total outcomes.

  • P(B)=n(B)NP(B) = \dfrac{n(B)}{N} where n(B)n(B) = number of outcomes in BB.
  • Once we know BB happened, only the n(B)n(B) outcomes in BB are still possible. The new sample space is BB.
  • Among these, the ones that also give AA number n(AB)n(A\cap B).

So by the basic "favourable / total" rule inside the shrunken world: P(AB)=n(AB)n(B)P(A|B) = \frac{n(A\cap B)}{n(B)}

Now divide top and bottom by NN (the trick that removes the "equally likely" assumption): P(AB)=n(AB)/Nn(B)/N=P(AB)P(B)P(A|B) = \frac{n(A\cap B)/N}{n(B)/N} = \frac{P(A\cap B)}{P(B)}

Figure — Conditional probability — P(A - B) = P(A∩B) - P(A)

The multiplication rule (rearranged form)

Multiply both sides by P(B)P(B): P(AB)=P(B)P(AB)=P(A)P(BA)P(A\cap B) = P(B)\,P(A|B) = P(A)\,P(B|A)

Independence falls out for free

If knowing BB tells you nothing about AA, then P(AB)=P(A)P(A|B) = P(A). Substitute: P(AB)=P(B)P(AB)=P(B)P(A)P(A\cap B) = P(B)\,P(A|B) = P(B)P(A) which is the independence condition. So: A,B independent    P(AB)=P(A)    P(AB)=P(A)P(B)A,B \text{ independent} \iff P(A|B)=P(A) \iff P(A\cap B)=P(A)P(B)


Worked examples


Common mistakes (Steel-manned)


Flashcards

Define P(AB)P(A|B) as a formula (state the restriction).
P(AB)=P(AB)P(B)P(A|B)=\dfrac{P(A\cap B)}{P(B)}, valid for P(B)>0P(B)>0.
In the formula, why divide by P(B)P(B) not P(A)P(A)?
Because BB is the given event — the new sample space; rescaling by P(B)P(B) makes probabilities inside BB sum to 1.
State the multiplication rule two ways.
P(AB)=P(A)P(BA)=P(B)P(AB)P(A\cap B)=P(A)P(B|A)=P(B)P(A|B).
Condition for A,BA,B independent using conditional probability.
P(AB)=P(A)P(A|B)=P(A) (equivalently P(AB)=P(A)P(B)P(A\cap B)=P(A)P(B)).
Is P(AB)=P(BA)P(A|B)=P(B|A) in general?
No — same numerator P(AB)P(A\cap B) but different denominators.
Which complement identity is TRUE?
P(AB)+P(AcB)=1P(A|B)+P(A^c|B)=1 (you may not change the condition BB).
Fair die: P(>3even)P(>3 \mid \text{even})?
{4,6}\{4,6\} out of {2,4,6}\{2,4,6\} = 2/32/3.
P(two kings, no replacement)P(\text{two kings, no replacement}) from 52 cards?
452351=1221\frac{4}{52}\cdot\frac{3}{51}=\frac{1}{221}.

Recall Feynman: explain to a 12-year-old

Imagine a big box of coloured marbles. Normally you guess the chance of grabbing a red one from the whole box. Now a friend says: "I only let you reach into the blue-lidded half." Suddenly your box got smaller! Conditional probability just means: given you're stuck in the smaller (blue-lidded) part, what's the chance the marble is red? You count reds in that part only, and divide by how many marbles are in that part. That "how many are in that part" is the P(B)P(B) on the bottom.

Connections

  • Independence of events — special case where P(AB)=P(A)P(A|B)=P(A).
  • Multiplication rule of probability — the rearranged form.
  • Bayes' Theorem — flips P(AB)P(A|B) into P(BA)P(B|A) correctly.
  • Law of total probability — sums conditionals over a partition.
  • Sample space and events — the "universe" we shrink.
  • Tree diagrams — visual chaining of conditional steps.

Concept Map

shrinks universe to B

defined as

requires

count favourable

divide by N

rescale so P of B given B = 1

rearrange

symmetric form

if P given = P of A

equivalent to

apply

Know B happened

P of A given B

P = P of A∩B / P of B

P of B > 0

Equally likely outcomes

n of A∩B / n of B

Divide by P of B not P of A

P of A∩B = P of B · P given

= P of A · P of B given A

Independence

P of A∩B = P of A · P of B

Dice example

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, conditional probability ka matlab simple hai: "jab tumhe pehle se pata chal gaya ki ek event B ho chuka hai, tab event A ke hone ki chance kya hai?" Jaise hi tum jaan lete ho ki B hua, tumhara pura sample space chhota ho jaata hai — ab sirf B ke andar wale outcomes hi possible hain. Isliye formula hai P(AB)=P(AB)/P(B)P(A|B) = P(A\cap B)/P(B), aur denominator P(B) hi aayega, kyunki B ab naya "universe" ban gaya hai.

Note title me galti se P(A)P(A) likha hai denominator me — woh galat hai. Yaad rakho: bar ke right side jo event hai (yahan B), usi se divide karte ho. Mnemonic: "Bottom = Bar's Buddy". Aur ek badi trap: P(AB)P(A|B) aur P(BA)P(B|A) same nahi hote! Medical test wale example me dekha — test "positive" aane par bhi bimari hone ki chance sirf 50% ho sakti hai, kyunki healthy log zyada hote hain to false positives bhi kaafi aa jaate hain.

Practical use: jab bhi "aur" (intersection) nikalna ho aur ek event doosre pe depend kare — jaise cards without replacement — tab multiplication rule P(AB)=P(B)P(AB)P(A\cap B)=P(B)P(A|B) use karo, step by step chain banao. Agar P(AB)=P(A)P(A|B)=P(A) nikle, matlab dono events independent hain — B ka hona A ko affect nahi karta. Bas itna dhyaan rakho aur exam me confuse mat hona ki bar ke neeche kya jaata hai.

Go deeper — visual, from zero

Test yourself — Statistics & Probability — Intermediate

Connections