Combinations and permutations answer one of the most practical questions in probability and discrete mathematics: in how many ways can a selection be made? The distinction between the two matters enormously. Permutations count arrangements where order matters — the PIN 4-7-2-1 is different from 1-2-7-4. Combinations count selections where order doesn't matter — a 5-card poker hand containing the same five cards in any dealt order is the same hand. Getting this distinction right is the first step in any counting problem, and the formula follows directly from it.
Combinations with Repetition
Standard combinations don't allow an item to be chosen more than once. Combinations with repetition — also called multisets — allow repeated selection. The formula for selecting k items from n types with repetition allowed: C(n+k-1, k). Choosing 3 ice cream flavors from 12 available, allowing repeats (e.g., chocolate, chocolate, vanilla is valid): C(12+3-1, 3) = C(14, 3) = 364 options. Without repetition: C(12,3) = 220. Repetition significantly expands the count.
This formula appears in probability (the stars and bars method in combinatorics), in determining the number of non-negative integer solutions to equations, and in some sampling problems where replacement is allowed. The stars and bars framework: imagine distributing k identical balls into n distinct boxes, where each box can hold any number of balls. The answer is C(n+k-1, k) — the same formula as combinations with repetition.
Combinations in Probability Distributions
The binomial distribution — the probability distribution for a fixed number of yes/no trials — uses the combination formula as its core coefficient. P(X = k) = C(n,k) × p^k × (1-p)^(n-k), where n is the number of trials, k is the number of successes, and p is the probability of success on each trial. The combination C(n,k) counts how many ways you can get exactly k successes in n trials, and the probability calculation weights each combination by its likelihood.
A manufacturing quality check: 15 parts tested, each has a 4% defect rate. What's the probability exactly 2 are defective? P(X=2) = C(15,2) × (0.04)^2 × (0.96)^13 = 105 × 0.0016 × 0.5921 = 105 × 0.000947 = 0.0995 — approximately a 9.95% probability. The combination value 105 represents all the ways 2 defective parts can occur among 15 tested. Without the combination formula embedded in the binomial distribution, this calculation is impossible to structure.