Sub topic 3
Classical Probability: Favourable over Total
Prerequisites and scope
This chapter assumes you can count with permutations and combinations (nCr, nPr, factorials) and that you can define a sample space and an event for a word problem. Both were covered in the two preceding chapters. Here you turn them into one working formula, and you learn the conditions under which that formula is valid.
By the end you should be able to:
- State the classical probability formula and its one essential condition.
- Choose between listing outcomes and counting them with combinations.
- Spot the most common error, which is counting outcomes that are not equally likely.
The formula
Classical probability applies when a random experiment has a finite number of outcomes and every outcome is equally likely. For an event E:
P(E) = (number of outcomes in E) / (number of outcomes in the sample space)
The numerator holds the favourable outcomes. The denominator holds all possible outcomes. Three consequences follow directly.
- P(E) is always between 0 and 1, because E is a subset of the sample space.
- P(E) = 0 means no outcome is favourable. P(E) = 1 means every outcome is favourable.
- The probabilities of all single outcomes add up to 1.
A classic CAT-style trap shows why. Roll two dice and ask for the probability that the sum is 7. If you list the possible sums 2 to 12, you get 11 outcomes and might answer 1/11. But those 11 sums are not equally likely. The 36 ordered pairs of faces are equally likely, so you must count those.
The working procedure
Use the same four steps every time.
- Define the experiment and decide what one outcome is (ordered pair, unordered set, a single card).
- Make sure the outcomes you chose are equally likely.
- Count the total outcomes, n(S).
- Count the favourable outcomes, n(E), using the same notion of outcome, then divide.
Step 4 contains a rule that causes many errors: the numerator and the denominator must be counted in the same way. If the denominator counts ordered pairs, the numerator must count ordered pairs. If the denominator counts unordered hands (combinations), the numerator must too.
Method 1: list the outcomes
When the sample space is small, listing is the safest method. It is also easy to check.
from itertools import product
outcomes = list(product(range(1, 7), repeat=2))
favourable = [o for o in outcomes if sum(o) == 7]
print(len(favourable), len(outcomes)) # 6 36The 36 outcomes are all ordered pairs (first die, second die). Six of them sum to 7: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1). So P(sum is 7) = 6/36 = 1/6.
Note that (1,6) and (6,1) are different outcomes. If you treat them as the same, you get 3 favourable outcomes but must then also shrink the total to 21 unordered pairs. The unordered pairs are not equally likely, because a pair like (3,3) can occur in one way while (1,6) can occur in two. This is why treating the two dice as distinguishable, even when they look identical, is the standard fix.
The table below shows how many of the 36 outcomes give each sum.
| Sum | Ways | Probability |
|---|---|---|
| 2 or 12 | 1 each | 1/36 each |
| 3 or 11 | 2 each | 2/36 each |
| 4 or 10 | 3 each | 3/36 each |
| 5 or 9 | 4 each | 4/36 each |
| 6 or 8 | 5 each | 5/36 each |
| 7 | 6 | 6/36 |
Method 2: count with combinations
Listing breaks down when the sample space is large. Choosing 2 balls from a bag of 8 has only 28 outcomes, but choosing 5 cards from 52 has 2,598,960. In these cases you count with combinations.
Suppose a bag has 5 red and 3 blue balls, and 2 balls are drawn without replacement. Find the probability that both are red.
- Treat a draw as an unordered selection of 2 balls from 8. Every such pair is equally likely, so n(S) = 8C2 = 28.
- Favourable outcomes are the selections of 2 red balls from 5 red balls, so n(E) = 5C2 = 10.
- P(both red) = 10/28 = 5/14.
from math import comb
from fractions import Fraction
# Bag has 5 red and 3 blue balls; 2 are drawn without replacement.
print(Fraction(comb(5, 2), comb(8, 2))) # 5/14You can confirm this with sequential probabilities. The chance that the first ball is red is 5/8. Given that, the chance the second is red is 4/7. The product is (5/8)(4/7) = 20/56 = 5/14. Both methods agree. The sequential method uses the multiplication rule, which a later chapter develops fully.
Mixed selections
The same idea extends to mixed outcomes. For the same bag, the probability of exactly one red and one blue is:
- n(E) = 5C1 × 3C1 = 15, since you choose the red ball and the blue ball independently.
- n(S) = 8C2 = 28.
- P = 15/28.
The three cases (two red, one of each, two blue) must account for the whole sample space: 10 + 15 + 3 = 28. This check is worth doing in the exam whenever the cases are few. If your counts do not add up to n(S), something is miscounted.
from math import comb
from fractions import Fraction
total = comb(8, 2)
cases = {
"RR": comb(5, 2),
"RB": comb(5, 1) * comb(3, 1),
"BB": comb(3, 2),
}
print(sum(cases.values()) == total) # True
for name, ways in cases.items():
print(name, Fraction(ways, total))The output is True, then 5/14, 15/28 and 3/28.
Ordered or unordered: pick one and stay consistent
Both of these give the same answer for "both red":
- Unordered: 5C2 / 8C2 = 10/28.
- Ordered: 5P2 / 8P2 = 20/56.
Each unordered pair corresponds to the same number of orderings (2!) in both numerator and denominator, so the factor cancels. The method fails only if you mix them, for example 5C2 / 8P2 = 10/56, which is wrong.
Worked examples
Example 1: cards
A card is drawn from a standard 52-card deck. Find the probability that it is a king or a heart.
Count directly. There are 13 hearts and 4 kings, but the king of hearts is in both groups. Favourable cards = 13 + 4 − 1 = 16. So P = 16/52 = 4/13.
Counting 13 + 4 = 17 double-counts the king of hearts. The addition rule chapter treats this overlap formally. For now, the lesson is that "favourable" means a set of distinct outcomes, and each outcome is counted once.
Example 2: a committee
A committee of 3 is chosen at random from 4 men and 5 women. Find the probability that it has exactly 2 women.
- n(S) = 9C3 = 84.
- n(E) = 5C2 × 4C1 = 10 × 4 = 40.
- P = 40/84 = 10/21.
Example 3: arrangements
The letters of the word LEVEL are arranged randomly in a row. Find the probability that the arrangement is a palindrome.
The letters are L, E, V, E, L, with repeated letters. The total number of distinct arrangements is 5!/(2! 2!) = 30. A palindrome needs the middle letter to be V, with the pair positions mirrored. The first two positions can hold (L,E) or (E,L), and the last two positions then mirror them. That gives 2 palindromes: LEVEL and ELVLE.
P = 2/30 = 1/15.
Common errors
| Error | Why it fails | Fix |
|---|---|---|
| Using 1/(number of sums) for dice sums | Sums are not equally likely | Count the 36 ordered pairs |
| Mixing nCr in the numerator with nPr in the denominator | Counts use different notions of outcome | Use the same type in both |
| Counting an overlap twice (king or heart as 17) | Outcomes must be distinct | Subtract the overlap |
| Treating "two outcomes" as 50-50 | Outcomes may have unequal chances | Define equally likely outcomes first |
| Leaving an answer above 1 | Favourable set exceeds the sample space | Recheck both counts |
Quick checks for exam use
- Sanity check the range: the answer must lie between 0 and 1.
- If you split the problem into cases, confirm that the case counts sum to n(S).
- If the answer looks unusually large or small, estimate it: for example, drawing 2 red from a bag that is 5/8 red should be a bit under (5/8)² ≈ 0.39. The exact value 5/14 ≈ 0.357 fits.
- When you are unsure of a count, test the same logic on a smaller version of the problem and list it out.
Where the formula stops working
Classical probability needs finitely many equally likely outcomes. It does not apply directly when a coin is biased, when outcomes have different weights, or when the sample space is infinite. Later chapters handle these through the multiplication rule, conditional probability and the binomial formula. Most CAT questions are designed so that you can first reduce them to equally likely outcomes, so the discipline of Step 2 above is worth the few seconds it takes.
Exercise
Two fair dice are rolled. What is the probability that the sum is at least 10?
Show answer
Ordered pairs with sum 10: (4,6), (5,5), (6,4) which is 3. Sum 11: (5,6), (6,5) which is 2. Sum 12: (6,6) which is 1. Favourable = 6 out of 36, so P = 6/36 = 1/6.
Exercise
A box has 6 white and 4 black balls. Three balls are drawn at random without replacement. What is the probability that exactly 2 are white?
Show answer
n(S) = 10C3 = 120. n(E) = 6C2 × 4C1 = 15 × 4 = 60. P = 60/120 = 1/2.
Exercise
A student says that when two coins are tossed, the outcomes are "two heads, two tails, one of each", so P(one head and one tail) = 1/3. Find the error and the correct answer.
Show answer
The three listed outcomes are not equally likely. The equally likely outcomes are HH, HT, TH and TT, so n(S) = 4. Exactly one head and one tail has 2 favourable outcomes (HT, TH), so P = 2/4 = 1/2.