Conditional Probability, Total Probability and Bayes' Rule
Conditional probability as a change of denominator rather than a change to the world, the asymmetry between
Definition
Conditional probability. For
the probability of
Conditioning discards the outcomes where
Two consequences follow immediately. The operation is not symmetric:
Independence, stated conditionally.
Law of total probability and Bayes. For a partition
The first decomposes an overall probability into the cases of a partition, weighted by how likely each case is. The second reverses the direction of conditioning, and its denominator is the first. The corresponding decomposition for expectation is
Assumptions and scope
requires , and is not symmetric: except by coincidence.A small conditional probability of evidence given a hypothesis does not make the hypothesis improbable; the base rate
governs the posterior as much as the likelihood does. The law of total probability requires the
to partition the sample space: mutually exclusive, and jointly exhaustive. A set of cases that overlaps, or that omits a possibility, gives the wrong denominator. A posterior is specific to the population whose base rate it used. The same likelihoods applied to a different population give a different answer, so the base rate belongs with the reported figure.
Forms this is expressed in
The same content in several forms. Each makes something visible that the others leave implicit, so moving between them is part of understanding the topic rather than a presentation choice.
tabular
A two-way grid of counts, one row per value of the first variable and one column per value of the second. Interior cell
This reading answers questions about which set is being divided by. Conditioning becomes a physical operation, cover the rows that did not occur, then renormalise what is left, rather than a formula to recall. Because
It is also the form that makes base rates impossible to overlook. A rare condition is a short row, so the false positives drawn from the long row can outnumber the true positives even when each is individually unlikely, and the comparison is a glance at two cells rather than an inference from percentages. Counting a concrete population, 10,000 people rather than probabilities, turns Bayes' rule into one count divided by a total of counts.
Independence is equally direct: the variables are independent exactly when every interior cell equals its row total times its column total divided by the grand total, so a single cell disagreeing with that product settles the question.
What the table does not expose is anything beyond two discrete variables with few values. Continuous quantities have no cells, a third variable has no axis, and the layout silently suggests that every probability is a tally waiting to be counted, which is false for a genuinely unrepeatable event, where the counts that would fill the grid do not exist.
Worked material
Example
Conditioning on a second table, and a partition with three cases
The student table is one shape of problem. Two more, to separate the method from the example.
---
1. A partition with three cases. A factory takes components from three suppliers. Supplier A provides 50% of them and 2% of those are defective; B provides 30% at 4% defective; C provides 20% at 5% defective.
The overall defect rate, by the law of total probability over the partition
The three cases are mutually exclusive and cover every component, which is what licenses the sum.
Reversing the conditioning. A defective component is found. Which supplier is it most likely from?
summing to 1. B is the most likely source despite not having the worst defect rate, because it supplies half again as many components as C. And A, with the best rate, is exactly as likely a source as C with the worst, because it ships two and a half times the volume. Neither the rate nor the volume decides this alone; the product does.
---
2. A table with a different shape. 200 job applicants, classified by whether they were referred by an employee and whether they were hired.
| Hired | Not hired | Row total | |
|---|---|---|---|
| Referred | 24 | 36 | 60 |
| Not referred | 28 | 112 | 140 |
| Column total | 52 | 148 | 200 |
Referral doubles the hire rate. But reversing the conditioning asks a different question:
so most hires were not referred, even though referral doubled an individual's chances. Both statements are true of the same table. The first divides by a row, the second by a column, and they answer different questions: one is about an applicant's prospects, the other about the composition of the hired group.
Dependence check.
---
What carries across both. The arithmetic never changed: identify the conditioning event, restrict to it, renormalise. What changed was which quantity the question wanted. In the supplier case the tempting error is to answer with the defect rates; in the hiring case it is to read a doubled individual rate as a statement about who the hires are. Both errors are the same error, answering the conditional that was easiest to see rather than the one that was asked.
Common errors
Common misconception
Related units
Connected
- Propensity Scores (used by)
- Covariance, Independence and the Variance of a Sum (used by)