433 words
2 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Statistics I · Week 6 — Permutations and combinations Deep study for Quiz 2 week 6. **Permutations** count ordered arrangements; **combinations** count unordered selections.

Statistics I · Week 6 — Permutations and combinations
Deep study for Quiz 2 week 6. Permutations count ordered arrangements; combinations count unordered selections.
Week map
Order matters? → permutation → order irrelevant? → combination → formulas → complement counting → word-problem translation.
Permutation notation
- P(n,r) or nPr → permutations of r items chosen from n distinct → order matters.
- Formula: P(n,r)=(n−r)!n!.
- Special case: P(n,n)=n! — arrange all n.
Mini-example: Top 2 finishers from 5 runners. Order matters (gold vs silver): P(5,2)=5×4=20.
Combination notation
- C(n,r) or (rn) → combinations — choose r from n → order does not matter.
- Formula: C(n,r)=r!(n−r)!n!.
- (0n)=1; (nn)=1.
Mini-example: Choose 2 toppings from 5 regardless of order: C(5,2)=2×15×4=10.
Decision rule
| Question phrasing | Use |
|---|---|
| Arrange, rank, sequence, PIN order | Permutation |
| Choose, select, committee, hand | Combination |
Pattern families
Easy — Small n compute directly
List or multiply descending factors: 5×4×3 for P(5,3). Divide by r! when order ignored.
Medium — Formula application
Plug into P(n,r) or C(n,r). Simplify factorials before multiplying large numbers.
Hard — Complement or restrictions
“At least one” → total minus “none.” Adjacent or fixed-position constraints may reduce to smaller permutation subproblem.
Worked mini-examples
Example 1 — Permutation.
P(4,2)=4×3=12.
Example 2 — Combination.
(26)=26×5=15.
Example 3 — Compare.
3-letter code from {A,B,C,D} without repeat: P(4,3)=24. Choose 3 letters unordered: (34)=4.
Example 4 — Committee.
Choose 3 from 7 people for roles-free committee: (37)=35.
Example 5 — Complement.
Choose at least one red from 3 red and 4 blue (choose 2 total): total (27)=21 minus no red (24)=6 → 15.
Traps
- Using combination when order matters (rankings, passwords).
- Using permutation when order irrelevant (teams, subsets).
- Forgetting to divide by r! when converting ordered to unordered.
- C(n,r)=C(n,n−r) symmetry — useful check.
- Identical items need division beyond basic C(n,r) (not all distinct).
Diagnostic (try yourself)
-
How many ways to arrange 3 distinct books on a shelf?
-
How many 2-person committees from 6 people (order irrelevant)?
-
Compute P(5,3) and C(5,3). Which is larger?
-
Word problem: “President and VP from 8 candidates.” Permutation or combination? Count?
-
(010) equals what?