mindstair

Home / Courses / Probability / Unit 1

Probability Unit 1: Counting and Combinatorics

Counting methods let you find the size of a sample space and of events without listing outcomes. Classical probability, poker hands and many exam problems depend on counting correctly.

Covers: Multiplication principle, Permutations, Combinations, Arrangements with repeated objects, Stars and bars, Inclusion–exclusion counting, Binomial theorem

Study guide

The basic tool is the multiplication principle: if a procedure has several steps and step i can be done in nᵢ ways no matter how earlier steps went, the whole procedure can be done in n₁ × n₂ × ··· ways. A 3-letter, 4-digit license plate with repetition allowed has 26³ × 10⁴ possibilities. The addition rule is its partner: if you must pick one option from several non-overlapping lists, add the list sizes. Most counting errors come from using one rule when the situation calls for the other, so always ask whether you are making a sequence of choices or a single choice from separate cases.

A permutation is an ordered arrangement. The number of ways to arrange n distinct objects is n!, and the number of ordered selections of k from n is P(n, k) = n!/(n − k)!. A combination is an unordered selection, counted by C(n, k) = n!/(k!(n − k)!), because each unordered group of k appears k! times among the ordered selections. The key question is whether swapping two chosen items gives a different outcome. Offices such as president and treasurer, rankings and seat orders depend on order; committees, poker hands and lottery picks do not. Circular arrangements of n people count as (n − 1)! when rotations are considered the same.

When objects repeat, divide out the orderings that look identical. The letters of MISSISSIPPI can be arranged in 11!/(4! 4! 2!) ways. The same multinomial coefficient n!/(n₁! n₂! ··· n_k!) counts the ways to split n people into labeled groups of sizes n₁, …, n_k. To distribute n identical items into k distinct boxes, use stars and bars: there are C(n + k − 1, k − 1) ways if boxes may be empty and C(n − 1, k − 1) if each box needs at least one. Identical versus distinct objects and boxes changes the answer completely, so decide that before writing a formula.

Inclusion–exclusion corrects for overlap: |A ∪ B| = |A| + |B| − |A ∩ B|, and for three sets you add back the triple intersection. It counts integers divisible by 2 or 5, derangements (no object in its own place), onto functions, and distributions with upper limits. For 'at least one' questions, the complement is often faster: count everything, then subtract the outcomes with none. Finally, the binomial theorem (x + y)ⁿ = Σ C(n, k)xᵏyⁿ⁻ᵏ links counting to algebra; it explains why a set of n elements has 2ⁿ subsets and gives coefficients such as C(6, 2) × 2² for x²y⁴ in (2x + y)⁶.

Key ideas

Formulas and rules

P(n, k) = n!/(n − k)!; n distinct objects in a row: n!; around a circle: (n − 1)!
C(n, k) = n!/(k!(n − k)!), with C(n, k) = C(n, n − k)
Multinomial: n!/(n₁! n₂! ··· n_k!) for arrangements with repeats or labeled groups
Stars and bars: C(n + k − 1, k − 1) nonnegative and C(n − 1, k − 1) positive solutions of x₁ + ··· + x_k = n
Inclusion–exclusion: |A ∪ B ∪ C| = |A| + |B| + |C| − |A∩B| − |A∩C| − |B∩C| + |A∩B∩C|
Binomial theorem: (x + y)ⁿ = Σₖ C(n, k) xᵏ yⁿ⁻ᵏ

Common mistakes

Before the test, make sure you can

Words to know

Multiplication principle
If step 1 has m outcomes and step 2 has n for each, the two steps together have mn outcomes.
Addition rule
If a choice comes from one of several disjoint lists, the number of options is the sum of the list sizes.
Factorial
n! = n(n − 1)···1, the number of orderings of n distinct objects; 0! = 1.
Permutation
An ordered arrangement; P(n, k) = n!/(n − k)! ordered selections of k from n.
Combination
An unordered selection; C(n, k) = n!/(k!(n − k)!).
Circular permutation
Arrangement around a circle where rotations are the same; (n − 1)! for n objects.
Multinomial coefficient
n!/(n₁!···n_k!), the number of ways to arrange n objects with repeats or split n into labeled groups.
Stars and bars
Method that counts placements of n identical items into k distinct boxes as C(n + k − 1, k − 1).
Inclusion–exclusion
Count a union by adding single sets, subtracting pairwise overlaps, adding triple overlaps, and so on.
Complement counting
Count the outcomes you want by subtracting the unwanted ones from the total.
Derangement
A permutation in which no object stays in its original position; D₄ = 9.
Binomial theorem
(x + y)ⁿ = Σ C(n, k)xᵏyⁿ⁻ᵏ.
Pascal's rule
C(n, k) = C(n − 1, k − 1) + C(n − 1, k), the rule that builds Pascal's triangle.
Power set size
A set with n elements has 2ⁿ subsets.
Onto function
A function in which every element of the codomain is the image of at least one input.

Sample practice questions

30 more questions like these, from level 1 to 5, are in the practice set.

Question 1 (level 1)

In how many ways can n distinct objects be arranged in a row?

  1. n!
  2. n(n − 1)/2
  3. 2ⁿ
  4. n²
Show the answer and steps

Answer: A) n!

  1. Fill the first position in n ways, the second in n − 1 ways, and so on down to 1.
  2. Multiply: n(n − 1)(n − 2)···1 = n!.
  3. 2ⁿ counts subsets and n(n − 1)/2 counts pairs, not orderings.
Question 2 (level 1)

Which expression equals the binomial coefficient C(n, k), the number of ways to choose k objects from n when order does not matter?

  1. n!/k!
  2. n!/(k!(n − k)!)
  3. nᵏ/k!
  4. n!/(n − k)!
Show the answer and steps

Answer: B) n!/(k!(n − k)!)

  1. Ordered selections of k from n number n!/(n − k)!.
  2. Each unordered group of k is counted k! times in that list.
  3. Divide by k! to get n!/(k!(n − k)!); n!/(n − k)! is the ordered count P(n, k).
Question 3 (level 3)

How many different 5-card hands can be dealt from a standard 52-card deck?

  1. 380,204,032
  2. 311,875,200
  3. 2,118,760
  4. 2,598,960
Show the answer and steps

Answer: D) 2,598,960

  1. A hand is an unordered set of 5 cards, so use C(52, 5).
  2. C(52, 5) = (52 × 51 × 50 × 49 × 48)/5! = 311,875,200/120.
  3. That is 2,598,960; 311,875,200 counts the order of dealing, which does not change a hand.