Conditional Probability: Why the Formula Matches Intuition
Shrinking the sample space to B and dividing by P(B) look like different operations. A dice example, a uniqueness argument and a rejection-sampling proof show they are the same one.

A question on Mathematics Stack Exchange asks something most probability courses skip over. Textbooks define conditional probability by a formula, usually rearranged as P(A∩B) = P(A|B)P(B). Problems then ask you to find P(A|B), and you often get it by imagining that the sample space has shrunk to B.
Those are two different procedures. One is an algebraic definition. The other is a mental operation: throw away everything outside B and reason about what is left. The question is how anyone knows that the measure P(·|B) produced by the formula is the same one the intuition uses.
The asker also notices that the original measure P is still at work 'in the background' when you compute P(A|B) directly. That observation is the key to the answer. The intuition never really discards P. It reweights it.
What 'restricting the sample space' has to mean
One answer starts with a point that is easy to miss. The set B on its own does not determine a probability distribution. If you only say 'restrict to B', you have not said how probability is spread across the outcomes in B.
The answer gives the precise version: the normalised restriction of the original measure, dP_B = (1_B / P(B)) dP, defined when P(B) > 0. Outcomes outside B get weight zero. Outcomes inside keep their original relative weights and are scaled up by a single factor, 1/P(B), so the total comes to 1.
The answer also states why this is the right measure and not just one convenient choice. It is the unique probability measure supported on B whose density with respect to P is constant on B. Requiring only P_B(B) = 1 is not enough, because many measures put all their mass on B. The constant-density condition is what 'nothing else changed' means, and it forces the formula.
A worked case where formula and intuition visibly agree
The highest-voted answer argues that the formula agrees with intuition because it was written down to express that intuition. It then shows the agreement with an example. You toss a coin to choose between a fair 6-sided die and a fair 8-sided die, then roll whichever one you picked. Let A be 'we roll a 6' and B be 'we picked the d6'.
The full sample space has 14 elements: (d6,1) to (d6,6) and (d8,1) to (d8,8). Intuitively, once you know you hold the d6, the chance of a 6 is 1/6, so P(A|B) = 1/6. The answer adds a correction. Writing P(A) = 1/6 is no longer strictly accurate unless B was certain to happen.
The chance of choosing the d6 is 1/2. The chance of choosing the d6 and rolling a 6 is 1/2 × 1/6 = 1/12. Nobody needs the formula to see that. It is still exactly P(A∩B) = P(B) × P(A|B).
Where the formalism pays for itself
The same answer then moves to questions where intuition alone gets harder to manage. The first is the overall chance of rolling a 6. By total probability:
P(A) = P(B)P(A|B) + P(not B)P(A|not B)
= 1/2 × 1/6 + 1/2 × 1/8
= 7/48The second reverses the question: given that a 6 came up, how likely is it that you were holding the d6? From P(B|A)P(A) = P(A∩B) you get P(B|A) × 7/48 = 1/12, so P(B|A) = 4/7.
The answer checks this result by restricting and renormalising by hand. The relevant outcomes are (d6,6) with probability 1/12 and (d8,6) with probability 1/16. Renormalising those two gives 4/7 and 3/7. The two routes agree, and the answer notes that this agreement can be proven in general. The formula is the shortcut you can trust, not a separate idea.
Checking against literally discarding outcomes
The other answer offers a test that does not rely on the definition at all. It treats 'discard outcomes outside B' as a physical procedure. Repeat the experiment independently until the first outcome lands in B, and call that accepted outcome Y.
For Y to land in A, the first n−1 trials must miss B and the nth must land in A∩B. Summing over all n gives:
Pr(Y ∈ A) = Σ_{n≥1} (1 − P(B))^{n−1} P(A∩B) = P(A∩B) / P(B)The geometric series sums to 1/P(B), and the defining formula drops out. The answer identifies this as the rejection lemma, Theorem 3.2 in Chapter II of Devroye. In other words, the conditional-probability definition describes the distribution of what survives when you throw away outcomes outside B.
Why direct computation in problems works
This addresses the asker's sense that P is lurking in the background. When you write down P(A|B) without using the definition, the answer says you are usually relying on one of two things.
- Symmetry of the original model. All outcomes in
Bcarry equal weight underP, as with the six faces of a fair die, so the renormalised weights are equal too. - Probability kernels from the mechanism. The experiment itself specifies what happens at each stage, such as 'if you hold the d8, each face has probability 1/8'.
Either way, P is present. These kernels agree with the conditional distributions because the joint law is built from them in the first place, just as the 14-outcome space above was built from a coin toss and a die roll.
Where this does not fit, and what to watch for
The definition requires P(B) > 0. When P(B) = 0, the formula has no value, and neither the normalised restriction nor the rejection procedure applies. The thread does not cover that case, so do not stretch this reasoning to cover it.
Watch for unconditional probabilities that are really conditional ones. As the dice example shows, writing P(A) = 1/6 silently assumes the d6 was certain. Also remember that 'restrict to B' is only meaningful once you have kept the relative weights from P. If your mental shortcut treats the outcomes in B as equally likely when the original model does not, you are no longer computing conditional probability.
This article draws on How does the conditional probability definition coincide with its use and intuitive understanding. and answers to it (1, 2), on the Stack Exchange network, licensed under CC BY-SA 4.0.
- #Bayes theorem
- #conditional-probability
- #intuition
- #probability
- #probability-theory
- #rejection sampling


Comments