What conditioning actually changes
Conditioning does not alter the world; it alters the list of outcomes you are willing to consider. Before any information arrives, a pair of dice has 36 equally likely outcomes. Once you are told the sum is 8, only five of them remain possible: two and six, three and five, four and four, five and three, and six and two. Every one of those five is still equally likely, because the original 36 were, and the event "sum is 8" selects them without favouring any of them. Any question asked inside that reduced list therefore has a denominator of 5, not 36. For the question "is the first die showing 5?" the favourable outcome is the single pair five and three, so the answer is one fifth. This is the whole idea behind the formula: divide the size of the intersection by the size of the conditioning event, and both numerator and denominator shrink together.
Properties of Conditional Probability
The third line is worth reading carefully, because it shows that once you condition on B, the ordinary addition rule simply reappears with B attached to every term. Conditioning therefore behaves like a fresh probability space of its own, with B playing the role of a new sure event. That observation also explains why P(A | B) and P(B | A) are so easily confused: they are probabilities in different reduced spaces, with different denominators.
Multiplication Rule
The rule extends without difficulty to three or more events applied in sequence. For events A, B and C, the probability that all three occur is P(A) times P(B given A) times P(C given A and B). Each factor answers a question about a more restricted situation than the one before it, and the chain must continue until the conditioning set contains every event that has already happened. The practical test for whether you have written the chain correctly is to ask, at each factor, whether the conditioning event mentions an event that occurs later in the chain; if it does, that factor is mislabelled.
Example: Basic Conditional Probability
A bag contains 5 red and 3 blue balls. Two balls are drawn without replacement. Find the probability that both are red.
The value 5/14 is roughly 0.357, and it is instructive to compare it with the answer you would get if the ball were put back after the first draw: that answer would be 25/64, about 0.391. Removing the ball lowers the chance of a second red, because the first draw has already taken one away, and the effect is largest exactly when the first ball drawn is red.
Example: Conditional Probability with Cards
Two cards are drawn from a pack of 52. Find the probability that both are aces given that at least one is an ace.
Notice the shortcut that the subset relation unlocks: when one event sits inside the other, their intersection collapses onto the smaller event, and the conditioning divides it away. One third is a surprisingly large answer, and the intuition is that once an ace is known to be present, only the second card carries any uncertainty, and three of the remaining 51 cards are still aces.
Independent Events
Testing independence from a table of counts
A contingency table settles the question without any algebra. Suppose 200 students are recorded by gender and by whether they take tea, giving 40 boys who take tea, 60 who do not, 70 girls who take tea and 30 who do not. The probability of being a boy is one half, the probability of taking tea is 110 out of 200, which is 0.55, and the probability of being a boy who takes tea is 40 out of 200, which is 0.20. Multiplying 0.50 by 0.55 gives 0.275, which is not 0.20, so gender and tea are dependent in this sample. The same computation with different numbers gives independence whenever the joint count equals the product of the two row and column totals divided by the grand total, and that equality is the fastest way to check a claim during a numerical question.
Example: Independent Events
If , , and , are and independent?
A screening test with false positives
The most important applied use of conditioning at this level is reading a medical or quality-control test result. Suppose a condition affects 1 in 100 people, a test correctly flags 99% of those who have it, and it wrongly flags 5% of those who do not. Among 10,000 people the condition appears in 100 of them, so 99 test positive, while the remaining 9,900 healthy people produce 495 false alarms. A person who tests positive is therefore one of 594 positive results, of which only 99 are genuine, so the chance of actually carrying the condition is 99/594, which is one in six.
| Group | Count | Test positive | Test negative |
|---|---|---|---|
| Condition present | 100 | 99 | 1 |
| Condition absent | 9,900 | 495 | 9,405 |
| Total | 10,000 | 594 | 9,406 |
The lesson is not that the test is worthless; it is that a positive result is a conditioning event, and the denominator it creates is the whole population of positives, most of whom came from the large healthy majority. Recomputing with a rarer condition, say 1 in 10,000, drops the same positive result below one in a hundred, which is why screening programs always pair a first test with a more specific second one.
Counting and simulating conditional probabilities
Enumerating the sample space by hand replaces every formula with a fraction you can see, and a short simulation confirms that the fraction is not a coincidence of one particular counting argument.
from itertools import combinations
balls = ['R1', 'R2', 'R3', 'R4', 'R5', 'B1', 'B2', 'B3']
draws = list(combinations(balls, 2)) # 28 equally likely pairs
both_red = [d for d in draws if all(b.startswith('R') for b in d)]
print(len(draws), len(both_red)) # 28 10
print(len(both_red) / len(draws)) # 0.3571... = 5/14
from fractions import Fraction
population = 10000
prevalence, sensitivity, false_positive = Fraction(1, 100), Fraction(99, 100), Fraction(5, 100)
sick = population * prevalence # 100
well = population - sick # 9900
true_positive = sick * sensitivity # 99
false_alarm = well * false_positive # 495
print(true_positive, false_alarm, true_positive + false_alarm) # 99 495 594
print(Fraction(int(true_positive), int(true_positive + false_alarm))) # 1/6
The second script uses exact fractions rather than decimals, so the printed answer 1/6 is an identity rather than a rounded approximation. Carrying the arithmetic in exact form is worth the small extra effort whenever the counts are integers, because it removes the last chance of a rounding error creeping into a final answer.
Common Mistakes
Using P(A) instead of P(A intersection B) in the numerator of the conditioning formula.
Fix: Both events must hold in the numerator; only the conditioning event B alone appears in the denominator.
Reading P(A given B) and P(B given A) as the same number.
Fix: They have different denominators: one divides by P(B) and the other by P(A). Rebuild the reduced sample space for the direction the question actually asks.
Assuming that a low false-positive rate guarantees a useful positive result.
Fix: Recount the positives across the whole population, because a rare condition means the false alarms can still outnumber the true ones.
Key Takeaways
- Conditioning shrinks the sample space to the conditioning event, and every probability inside it is recomputed with that smaller denominator.
- The multiplication rule turns a joint probability into a chain of conditional ones, and it extends to any number of events applied in sequence.
- Independence is a statement about products of probabilities, while mutual exclusivity is a statement about empty intersections; apart from trivial cases the two never coexist.
- A positive test result is a conditioning event, so its reliability depends on how rare the condition is, not only on the accuracy of the test.