Borui Academy

Chapter 11

Counting & Probability

计数与概率 · counting principles · permutations · combinations · classical probability

Unit 11 · Counting and Probability 计数与概率

By the end of this chapter you can:

  1. Apply the addition and multiplication principles to count outcomes in multi-step tasks
  2. Compute permutations P(n,k)P(n,k) and combinations (nk)\binom{n}{k} and know when to use each
  3. Calculate probabilities in classical (equally-likely) models using favorable / total outcomes
  4. Use independence and the addition rule — including the inclusion-exclusion correction — to find probabilities of compound events

Exam weight on past CSCA papers: ~6% (3 of 48 MCQs).


11.1 Counting Principles 计数原理

The two fundamental rules

Addition Principle (加法原理): If task AA can be done in mm ways and task BB can be done in nn ways, and the two tasks are mutually exclusive (doing AA prevents doing BB), then either AA or BB can be done in m+nm + n ways.

Multiplication Principle (乘法原理): If a multi-step procedure has step 1 done in mm ways and step 2 done in nn ways (regardless of what step 1 chose), then the complete procedure can be done in m×nm \times n ways.

🔑 Key question to distinguish them: Does your final result require one action (use addition) or does it require several sequential actions (use multiplication)?

Worked Example 11.1.A

A school offers 4 science electives and 3 humanities electives. A student must choose either one science or one humanities elective for a free period. In how many ways can they choose?

Solution. The student picks from science or humanities — these are mutually exclusive categories. Use the Addition Principle:

4+3=74 + 3 = \boxed{7}

Contrast: If the student instead had to pick one science and one humanities elective, the answer would be 4×3=124 \times 3 = 12 (Multiplication Principle).

⚠️ Trap — "or" does not always mean add: The addition principle requires truly mutually exclusive options. If some choices belong to both categories simultaneously, you must subtract the overlap (see 11.5 for inclusion-exclusion). Only add directly when the categories cannot overlap.

The multiplication principle across multiple steps

For a procedure with kk independent steps with n1,n2,,nkn_1, n_2, \ldots, n_k choices respectively:

Total outcomes=n1×n2××nk\text{Total outcomes} = n_1 \times n_2 \times \cdots \times n_k

Example: A password is 3 letters (A–Z) followed by 2 digits (0–9), no restrictions.

Total passwords=263×102=17,576×100=1,757,600\text{Total passwords} = 26^3 \times 10^2 = 17{,}576 \times 100 = 1{,}757{,}600


11.2 Permutations and Combinations 排列与组合

Permutations — order matters 排列(顺序有意义)

A permutation is an ordered selection of kk objects from nn distinct objects.

P(n,k)=n!(nk)!=n(n1)(n2)(nk+1)P(n,k) = \frac{n!}{(n-k)!} = n(n-1)(n-2)\cdots(n-k+1)

Reading: "How many ways to arrange kk items chosen from nn?" Fill kk slots: the first has nn choices, the second has n1n-1, …, the kk-th has nk+1n-k+1.

Special cases:

  • P(n,n)=n!P(n,n) = n! — all nn objects arranged in a line
  • P(n,1)=nP(n,1) = n

Combinations — order does not matter 组合(顺序无意义)

A combination is an unordered selection of kk objects from nn distinct objects.

(nk)=n!k!(nk)!=P(n,k)k!\binom{n}{k} = \frac{n!}{k!\,(n-k)!} = \frac{P(n,k)}{k!}

The factor k!k! divides out the overcount from all k!k! orderings of the same chosen kk objects.

Pascal-like identities (useful for verification)

(nk)=(nnk)(choosing k to include = choosing nk to exclude)\binom{n}{k} = \binom{n}{n-k} \qquad \text{(choosing $k$ to include = choosing $n-k$ to exclude)}

(nk)+(nk+1)=(n+1k+1)(Pascal’s Identity)\binom{n}{k} + \binom{n}{k+1} = \binom{n+1}{k+1} \qquad \text{(Pascal's Identity)}

(n0)+(n1)++(nn)=2n\binom{n}{0} + \binom{n}{1} + \cdots + \binom{n}{n} = 2^n

🔑 Permutation vs. Combination decision rule:

  • Order matters (rank, row seats, passwords, race positions) → P(n,k)P(n,k)
  • Order does not matter (committee, hand of cards, sample, group) → (nk)\binom{n}{k}

Worked Example 11.2.A

A team of 10 players must elect a captain and a vice-captain (two different roles). Then separately, a 3-player sub-group is chosen from the remaining 8 for a special task. How many ways can this be done?

Solution.

Step 1 — Choose captain and vice-captain (order matters — the roles are distinct):

P(10,2)=10×9=90P(10,2) = 10 \times 9 = 90

Step 2 — Choose 3 players from the remaining 8 (order does not matter — it is just a group):

(83)=8×7×63×2×1=56\binom{8}{3} = \frac{8 \times 7 \times 6}{3 \times 2 \times 1} = 56

Step 3 — Multiply (two independent sequential steps):

90×56=504090 \times 56 = \boxed{5040}

⚠️ Trap — counting with restrictions: When a problem says "must include person X" or "cannot place A next to B," handle the restriction first (fix what is forced), then count the remaining free choices. Do not apply the formula to the full pool and subtract after, unless the subtraction is straightforward.


11.3 Classical Probability 古典概型

Definition

A classical probability model (古典概型) has a finite sample space Ω\Omega where every outcome is equally likely. The probability of event AA is:

P(A)=number of outcomes in Atotal number of outcomes in Ω=AΩP(A) = \frac{\text{number of outcomes in } A}{\text{total number of outcomes in } \Omega} = \frac{|A|}{|\Omega|}

Basic properties:

Property Formula
Non-negativity 0P(A)10 \le P(A) \le 1
Certainty P(Ω)=1P(\Omega) = 1
Complement rule 对立事件 P(A)=1P(A)P(\overline{A}) = 1 - P(A)
Impossible event P()=0P(\emptyset) = 0

Worked Example 11.3.A

A bag contains 5 red balls and 3 blue balls. Two balls are drawn at random without replacement. What is the probability that both balls are red?

Solution.

Total ways to choose 2 from 8 (unordered — any pair is equally likely):

Ω=(82)=28|\Omega| = \binom{8}{2} = 28

Favorable outcomes (both red — choose 2 from the 5 red balls):

A=(52)=10|A| = \binom{5}{2} = 10

P(A)=1028=514P(A) = \frac{10}{28} = \boxed{\dfrac{5}{14}}

🔑 Why combinations, not permutations? When drawing without replacement and asking for a group (not "which one drawn first"), the draw is unordered — use (nk)\binom{n}{k} for both numerator and denominator. The equally-likely assumption holds because each unordered pair is equally likely to be selected.


11.4 Independent Events 独立事件

Definition

Two events AA and BB are independent (独立) if knowing that AA occurred gives no information about whether BB occurs:

P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B)

This is both the definition and the computational rule. If the equation holds, the events are independent; if it fails, they are dependent.

Extension to three or more events: AA, BB, CC are mutually independent if

P(ABC)=P(A)P(B)P(C)P(A \cap B \cap C) = P(A) \cdot P(B) \cdot P(C)

(all pairwise independence conditions must also hold separately).

With replacement vs. without replacement

Scenario Are successive draws independent?
Draw from bag, replace before next draw (放回抽样) Yes — pool resets each time
Draw from bag, no replacement (不放回抽样) No — pool shrinks, later probabilities shift

🔑 The with/without replacement distinction is one of the most commonly tested traps on CSCA. Always check whether the problem says 放回 or 不放回 before writing down any probability formula.

Worked Example 11.4.A

A fair coin is flipped and a fair six-sided die is rolled. What is the probability of getting heads and a 4?

Solution. The coin and die are physically independent.

P(heads)=12,P(rolling a 4)=16P(\text{heads}) = \frac{1}{2}, \qquad P(\text{rolling a 4}) = \frac{1}{6}

P(heads and 4)=12×16=112P(\text{heads and 4}) = \frac{1}{2} \times \frac{1}{6} = \boxed{\dfrac{1}{12}}

Repeated independent trials — "at least once" shortcut

If the probability of success in one trial is pp, and nn independent trials are conducted:

P(at least one success)=1P(zero successes)=1(1p)nP(\text{at least one success}) = 1 - P(\text{zero successes}) = 1 - (1-p)^{n}

⚠️ Trap — "at least once" problems: Students often try to add P(exactly 1)+P(exactly 2)+P(\text{exactly 1}) + P(\text{exactly 2}) + \cdots, which is tedious and error-prone. Always use the complement: 1P(none)1 - P(\text{none}).


11.5 Mutually Exclusive Events and the Addition Rule 互斥事件与加法公式

General addition rule (inclusive form)

For any two events AA and BB:

P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)

The term P(AB)P(A \cap B) corrects for outcomes counted in both AA and BB (inclusion-exclusion).

Mutually exclusive events (互斥事件)

Events AA and BB are mutually exclusive (also called disjoint, 互斥) if they cannot both occur:

AB=    P(AB)=0A \cap B = \emptyset \implies P(A \cap B) = 0

The addition rule then simplifies to:

P(AB)=P(A)+P(B)P(A \cup B) = P(A) + P(B)

For a collection of pairwise mutually exclusive events A1,A2,,AnA_1, A_2, \ldots, A_n:

P(A1A2An)=P(A1)+P(A2)++P(An)P(A_1 \cup A_2 \cup \cdots \cup A_n) = P(A_1) + P(A_2) + \cdots + P(A_n)

Complementary events (对立事件) — a special case

A\overline{A} (the complement of AA) is always mutually exclusive with AA, and together they exhaust Ω\Omega:

P(A)+P(A)=1P(A)=1P(A)P(A) + P(\overline{A}) = 1 \qquad \Longleftrightarrow \qquad P(\overline{A}) = 1 - P(A)

⚠️ Trap — forgetting the overlap in the general addition rule: A common error is writing P(AB)=P(A)+P(B)P(A \cup B) = P(A) + P(B) when AA and BB are not mutually exclusive. This overcounts the intersection. Always check whether AB=A \cap B = \emptyset before simplifying.

Worked Example 11.5.A

A card is drawn at random from a standard 52-card deck. Find the probability that the card is a king or a heart.

Solution. Let AA = "king", BB = "heart."

P(A)=452,P(B)=1352,P(AB)=152 (the king of hearts)P(A) = \frac{4}{52}, \quad P(B) = \frac{13}{52}, \quad P(A \cap B) = \frac{1}{52} \text{ (the king of hearts)}

These events are not mutually exclusive (the king of hearts is both). Apply the general rule:

P(AB)=452+1352152=1652=413P(A \cup B) = \frac{4}{52} + \frac{13}{52} - \frac{1}{52} = \frac{16}{52} = \boxed{\dfrac{4}{13}}


Try it! 自测练习

Q1. A student can travel to school by bus (3 routes) or by metro (2 lines). How many total travel options are there?

Q2. From 6 students, how many ways can a president, vice-president, and secretary be elected (three distinct roles)?

Q3. A committee of 4 is chosen at random from 9 people. What is the probability that a specific person, Alice, is included?

Q4. A fair die is rolled twice (independent rolls). What is the probability of getting a number greater than 4 on both rolls?

Q5. P(A)=0.4P(A) = 0.4, P(B)=0.3P(B) = 0.3, P(AB)=0.1P(A \cap B) = 0.1. Find P(AB)P(A \cup B).

Answers & explanations
  1. The routes are mutually exclusive (bus or metro — cannot take both simultaneously). Addition Principle: 3+2=53 + 2 = \mathbf{5} options.

  2. Three distinct roles from 6 students — order matters (different roles mean different outcomes). P(6,3)=6×5×4=120P(6,3) = 6 \times 5 \times 4 = \mathbf{120}.

  3. Total committees of 4 from 9: (94)=126\binom{9}{4} = 126. Committees containing Alice: Alice is fixed, choose 3 from the remaining 8: (83)=56\binom{8}{3} = 56. Probability =56/126=4/90.444= 56/126 = \mathbf{4/9} \approx 0.444.

  4. P(single roll>4)=2/6=1/3P(\text{single roll} > 4) = 2/6 = 1/3 (faces 5 and 6). Independent rolls multiply: (1/3)2=1/9(1/3)^2 = \mathbf{1/9}.

  5. By the general addition rule: P(AB)=0.4+0.30.1=0.6P(A \cup B) = 0.4 + 0.3 - 0.1 = \mathbf{0.6}.


📌 Chapter summary

Topic Key formula / rule
11.1 Counting principles Mutually exclusive options → add; sequential steps → multiply
11.2 Permutations P(n,k)=n!(nk)!P(n,k) = \dfrac{n!}{(n-k)!} — order matters
11.2 Combinations (nk)=n!k!(nk)!\binom{n}{k} = \dfrac{n!}{k!(n-k)!} — order does not matter
11.2 Pascal identity (nk)=(nnk)\binom{n}{k} = \binom{n}{n-k}; sum of row =2n= 2^n
11.3 Classical probability P(A)=A/ΩP(A) = |A|/|\Omega| — equally likely outcomes only
11.3 Complement P(A)=1P(A)P(\overline{A}) = 1 - P(A) — shortcut for "at least one"
11.4 Independence P(AB)=P(A)P(B)P(A \cap B) = P(A) \cdot P(B); with replacement → independent
11.5 Addition rule P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)
11.5 Mutually exclusive AB=A \cap B = \emptysetP(AB)=P(A)+P(B)P(A \cup B) = P(A) + P(B)

What's next → Unit 12 covers Statistics: mean, variance, and frequency distributions — where probability models connect to describing real data sets.