Quant Memo
Foundational

Conditional Probability

The probability of one event once you know another has happened. The formula for folding new information into an old belief, and the engine underneath Bayes' theorem and every "trade the news" decision.

Prerequisites: Probability Spaces

Conditional probability answers one question: once you learn that some event happened, how should the probability of another event change? It is how you fold fresh information into an old belief. Almost every question about reacting to news, a signal, or a test result is, underneath, asking you to compute one.

What "given" means

The notation P(AB)P(A \mid B) reads "the probability of AA given BB." You are told that BB definitely occurred, and you ask how likely AA is inside that smaller world. Learning BB throws away every outcome where BB is false and leaves only the outcomes where BB is true. The question becomes: of that shrunken world, what fraction also has AA?

The formula

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

The symbols: P(AB)P(A \cap B) is the probability that AA and BB both happen (the symbol \cap means "and"); P(B)P(B) is the probability of BB on its own; and we require P(B)>0P(B) > 0, since you cannot condition on something that never occurs. In words: out of all the ways BB can happen, what share also has AA? We divide by P(B)P(B) to renormalize, because BB is now the entire universe, so its probability has to climb back up to 1.

Multiply both sides by P(B)P(B) and you get the equally useful multiplication rule:

P(AB)=P(B)P(AB).P(A \cap B) = P(B)\,P(A \mid B) .

Conditioning shrinks the world to BB and then renormalizes by dividing by P(B)P(B). Keep both forms: P(AB)=P(AB)P(B)P(A\mid B)=\dfrac{P(A\cap B)}{P(B)} and the multiplication rule P(AB)=P(B)P(AB)P(A\cap B)=P(B)\,P(A\mid B).

P(B) P(Bc) P(A|B) P(Ac|B) A ∩ B Ac ∩ B A ∩ Bc Ac ∩ Bc P(A|B) = P(A ∩ B) / P(B)
Follow the highlighted path: the chance of landing on "A and B" is the chance of B times the chance of A once B has happened.

Independence is the special case where nothing changes

Sometimes learning BB tells you nothing about AA. Then P(AB)=P(A)P(A \mid B) = P(A), and the multiplication rule collapses to P(AB)=P(A)P(B)P(A \cap B) = P(A)\,P(B). That is exactly what independence means: the events do not move each other. Any time you multiply two probabilities together as if they were unrelated, you are quietly assuming independence, and if it is false your answer is wrong.

Every time you multiply P(A)P(B)P(A)\,P(B) you are silently assuming independence. Correlated trades, correlated defaults, and draws without replacement all break it, and then the product is simply wrong.

Worked example

Roll one fair die. Let BB be "the roll is even" and AA be "the roll is at least 4." You are told the roll came up even; how likely is it to be at least 4?

  • B={2,4,6}B = \{2,4,6\}, so P(B)=3/6=1/2P(B) = 3/6 = 1/2.
  • ABA \cap B is "even and 4\ge 4" ={4,6}= \{4,6\}, so P(AB)=2/6=1/3P(A \cap B) = 2/6 = 1/3.

Plug in:

P(AB)=P(AB)P(B)=2/63/6=23.P(A \mid B) = \frac{P(A \cap B)}{P(B)} = \frac{2/6}{3/6} = \frac{2}{3} .

So among the even rolls, two of the three (44 and 66) clear the bar, giving 2/32/3. Notice the unconditional answer was different: P(A)=P({4,5,6})=1/2P(A) = P(\{4,5,6\}) = 1/2. Learning the roll was even pushed the probability up from 1/21/2 to 2/32/3, which is the whole point of conditioning.

Common pitfalls

  • Flipping the bar. P(AB)P(A \mid B) is not P(BA)P(B \mid A). "The probability a test is positive given you are sick" is very different from "the probability you are sick given a positive test." Swapping them is the classic prosecutor's fallacy, and correcting it is exactly what Bayes' theorem is for.
  • Forgetting to renormalize. The division by P(B)P(B) is not optional. Skip it and your "probabilities" inside the conditioned world will not add up to 1.
  • Assuming independence for free. Multiplying P(A)P(B)P(A)P(B) is only valid when the events truly do not affect each other. Correlated trades, correlated defaults, and repeated draws without replacement all violate it.
  • Ignoring the base rate. A conditional probability can be small even when the evidence looks strong, because a rare event stays rare. To combine the evidence with the base rate correctly you need the The Law of Total Probability in the denominator.

Conditional probability, the The Law of Total Probability, and Bayes' theorem are three views of the same identity. Master this one and the other two are a line of algebra away. For the formal ground it all sits on, see Probability Spaces.

Related concepts

Practice in interviews

Further reading

  • Blitzstein & Hwang, Introduction to Probability, ch. 2
  • Ross, A First Course in Probability
ShareTwitterLinkedIn