Sub topic 12
Probability rules
This chapter assumes you are comfortable with decimals and percentages and with rearranging simple equations. It covers the basic vocabulary of events and the rules for combining their probabilities. Conditional probability, the total probability rule and Bayes' formula build on these rules and get their own chapters.
Events, outcomes and the sample space
A random variable is a quantity whose value is uncertain until it is observed. An outcome is one possible value of it. An event is a specific outcome or a set of outcomes. The sample space is the list of all possible outcomes.
Two properties of events matter for every rule below.
- Mutually exclusive events cannot both happen in the same trial. A bond cannot both default and not default in the same period.
- Exhaustive events together cover the whole sample space. At least one of them must happen.
A set of events that is both mutually exclusive and exhaustive is a partition of the sample space. Their probabilities sum to exactly 1.
Every probability follows two requirements:
- The probability of any event is between 0 and 1 inclusive.
- The probabilities of a mutually exclusive and exhaustive set of events sum to 1.
Probability, odds and the complement
You can state the same likelihood as a probability or as odds. For an event with probability P:
- Odds for = P / (1 − P)
- Odds against = (1 − P) / P
If P = 0.25, the odds for are 0.25 / 0.75 = 1/3, or "1 to 3". The odds against are 3 to 1. To go back from odds for of a/b, use P = a / (a + b).
The complement rule says the probability that an event does not occur is 1 − P(A). It is often the fastest route to an answer, as the "at least one" section below shows.
def odds_for(p):
return p / (1 - p)
def odds_against(p):
return (1 - p) / p
def prob_from_odds_for(a, b):
# odds for of "a to b"
return a / (a + b)
p = 0.25
print(round(odds_for(p), 4)) # 0.3333
print(round(odds_against(p), 4)) # 3.0
print(round(prob_from_odds_for(1, 3), 2)) # 0.25
print(round(1 - p, 2)) # 0.75, the complementThe addition rule
The addition rule gives the probability that at least one of two events occurs, written P(A or B).
For events that may overlap:
P(A or B) = P(A) + P(B) − P(A and B)
You subtract the joint probability because adding P(A) and P(B) counts the overlap twice.
For mutually exclusive events, P(A and B) = 0, so the rule simplifies to:
P(A or B) = P(A) + P(B)
Suppose a fund outperforms its benchmark with probability 0.50 (event A). The economy expands with probability 0.30 (event B). Both happen with probability 0.12.
p_a = 0.50
p_b = 0.30
p_a_and_b = 0.12
p_a_or_b = p_a + p_b - p_a_and_b
print(round(p_a_or_b, 2)) # 0.68
print(round(p_a + p_b, 2)) # 0.8, wrong: double counts the overlapA quick check: P(A or B) can never be smaller than the larger of P(A) and P(B), and never larger than 1. If your answer breaks either bound, you probably forgot the subtraction or used the wrong joint probability.
The multiplication rule
The multiplication rule gives the probability that two events both occur, P(A and B).
P(A and B) = P(A | B) × P(B)
The symbol P(A | B) means "the probability of A given that B has occurred". It is a conditional probability, and the next chapter develops it. Here you only need the rule's shape: the joint probability is the probability of one event times the probability of the other, adjusted for the first having happened.
Rearranged, it recovers the conditional probability: P(A | B) = P(A and B) / P(B). Using the figures above, P(A | B) = 0.12 / 0.30 = 0.40. Knowing the economy expands lifts the chance of outperformance from 0.50 to 0.40? No, it lowers it. The two events are therefore not independent, a point the next chapter makes precise.
Independent events
Two events are independent if knowing that one occurred does not change the probability of the other. Then P(A | B) = P(A), and the multiplication rule becomes:
P(A and B) = P(A) × P(B)
This extends to any number of independent events: multiply all of their probabilities.
At least one: use the complement
"At least one" questions are easier through the complement. The only way for none of the events to happen is for every event to fail. For independent events:
P(at least one) = 1 − P(none) = 1 − (1 − p₁)(1 − p₂)…(1 − pₙ)
Take three independent bonds, each with a 2% chance of default over the year.
p_default = 0.02
n = 3
p_none = (1 - p_default) ** n
p_at_least_one = 1 - p_none
p_all = p_default ** n
print(round(p_at_least_one, 6)) # 0.058808
print(p_all) # 8e-06Adding the three probabilities gives 0.06, which overstates the true 0.058808. Simple addition ignores the small chance that two or more bonds default together.
You can confirm the two rules agree on a smaller case. Let A and B be independent with P(A) = 0.6 and P(B) = 0.5.
p_a, p_b = 0.6, 0.5
via_addition = p_a + p_b - p_a * p_b
via_complement = 1 - (1 - p_a) * (1 - p_b)
print(round(via_addition, 2)) # 0.8
print(round(via_complement, 2)) # 0.8Choosing the right rule
Read the wording of the question first. "Or" and "at least one" point to addition. "And" and "both" point to multiplication.
Common errors
| Error | Why it fails | Fix | Column |
|---|---|---|---|
| Adding probabilities of overlapping events without subtracting the joint | Counts the overlap twice | Subtract P(A and B) | |
| Multiplying probabilities of dependent events | Ignores that one event changes the other's likelihood | Use P(A \ | B) × P(B) |
| Treating "mutually exclusive" and "independent" as the same | They are nearly opposite: if A and B are mutually exclusive and both possible, learning A occurred tells you B did not | Check each definition separately | |
| Giving odds when asked for probability | Odds for of 1/3 is a probability of 0.25 | Convert with P = a / (a + b) | |
| Probabilities summing to something other than 1 across a partition | The events are not exhaustive, or they overlap | Check coverage and overlap |
Worked check against a joint table
A joint probability table lists P(A and B) for each combination. Suppose events A and B have these joint probabilities.
| Row | B occurs | B does not occur | Total |
|---|---|---|---|
| A occurs | 0.12 | 0.38 | 0.50 |
| A does not occur | 0.18 | 0.32 | 0.50 |
| Total | 0.30 | 0.70 | 1.00 |
The row and column totals are the unconditional probabilities, P(A) = 0.50 and P(B) = 0.30. All four cells sum to 1, which confirms they form a partition. P(A or B) is the sum of the three cells where A or B occurs: 0.12 + 0.38 + 0.18 = 0.68. This matches the addition rule result earlier.
Exercise
Event A has probability 0.40 and event B has probability 0.25. They are independent. (a) What is the probability that both occur? (b) What is the probability that at least one occurs? (c) What are the odds against A?
Show answer
(a) For independent events, P(A and B) = 0.40 × 0.25 = 0.10. (b) P(A or B) = 0.40 + 0.25 − 0.10 = 0.55. The complement check gives 1 − (0.60 × 0.75) = 1 − 0.45 = 0.55. (c) Odds against A = (1 − 0.40) / 0.40 = 1.5, or 3 to 2 against.
Exercise
A trader says that the chance of a rate cut (0.35) and the chance of a recession (0.20) are mutually exclusive, and that the chance of a rate cut or a recession is therefore 0.55. Later you learn that P(rate cut and recession) = 0.08. What is the correct probability of a rate cut or a recession, and why was the trader's figure wrong?
Show answer
The events overlap, so they are not mutually exclusive. P(A or B) = 0.35 + 0.20 − 0.08 = 0.47. The trader's 0.55 counted the 0.08 overlap twice.