Skip to content

Conditional Probability

Definition

Let A,BA,B be events with P(B)>0\mathbb{P}(B)>0. The conditional probability of AA given BB is

P(A∣B)=P(A∩B)P(B).\mathbb{P}(A\mid B)=\frac{\mathbb{P}(A\cap B)}{\mathbb{P}(B)}.

This definition restricts and renormalizes the probability model to BB. It is not defined when P(B)=0\mathbb{P}(B)=0, because the quotient would divide by zero.


Interpretation

Conditioning asks how likely AA is once we know that BB has happened. The outcomes outside BB are discarded, and the probabilities of the outcomes in BB are rescaled so that they sum to one again.

Two panels with overlapping discs A and B: before conditioning the whole rectangle S counts; after learning B, only the disc B remains as the new sample space, with A and B shown as the part of A inside it.

Before conditioning, the whole rectangle SS counts. After learning BB, only the disc BB remains as the new sample space, and of AA only the part A∩BA\cap B is still possible. P(A∣B)\mathbb{P}(A\mid B) is the share of the probability of BB that lies in A∩BA\cap B.

Knowing that BB happened keeps only the outlined region. P(A∣B)\mathbb{P}(A\mid B) is the share of that region taken up by AA.

Each part of the formula has a role. The numerator is P(A∩B)\mathbb{P}(A\cap B), not P(A)\mathbb{P}(A), because outcomes of AA outside BB have been ruled out. Dividing by P(B)\mathbb{P}(B) makes the new probabilities add up to one, and it requires P(B)>0\mathbb{P}(B)>0: the formula does not define conditioning on an event of probability zero. With equally likely outcomes, as in naive probability, the formula becomes counting inside BB: P(A∣B)=∣A∩B∣/∣B∣\mathbb{P}(A\mid B)=|A\cap B|/|B|. For two fair dice, P(at least one six)=1136\mathbb{P}(\text{at least one six})=\tfrac{11}{36}, but among the six pairs with sum 77 exactly two contain a six, so P(at least one six∣sum=7)=26=13\mathbb{P}(\text{at least one six}\mid\text{sum}=7)=\tfrac{2}{6}=\tfrac{1}{3}.

A common slip is to swap the roles of AA and BB: in general P(A∣B)≠P(B∣A)\mathbb{P}(A\mid B)\ne\mathbb{P}(B\mid A), and Bayes' rule converts one into the other; confusing them is the prosecutor's fallacy. When P(A∣B)=P(A)\mathbb{P}(A\mid B)=\mathbb{P}(A), learning BB changes nothing, which is the idea of independent events. The law of total probability builds P(A)\mathbb{P}(A) back from the conditional probabilities given the cases of a partition.


Key Results

  • P(A∩B)=P(A∣B)P(B)\mathbb{P}(A\cap B)=\mathbb{P}(A\mid B)\mathbb{P}(B).
  • For fixed BB of positive probability, A↦P(A∣B)A\mapsto\mathbb{P}(A\mid B) is a probability measure.

Examples

  • For a fair die, P(X=6∣X is even)=(1/6)/(3/6)=1/3\mathbb{P}(X=6\mid X\text{ is even})=(1/6)/(3/6)=1/3.
  • If P(A∩B)=0.12\mathbb{P}(A\cap B)=0.12 and P(B)=0.4\mathbb{P}(B)=0.4, then P(A∣B)=0.3\mathbb{P}(A\mid B)=0.3.

Prerequisites

Sources

Aliases: conditional probability of A given B Keywords: updated probability Symbols: intersection

Last updated: 20 October 2026 03:02