letx=

Probability and statistics

Combinations

The number of ways to choose r items from n when the order does not matter: hands of cards, committees, lottery tickets.

(nr)=n!r!(n−r)!

Calculator

The live calculator needs JavaScript. The worked example below shows the same steps it would.

What the symbols mean

C
the number of selections, "n choose r", also written _nCr
n
the number of items to choose from
r
how many are chosen (r ≤ n)

When to use it

Use combinations when only *which* items are chosen matters, not their order: poker hands, lottery draws, teams, pizza toppings. They also count the ways to get k successes in n trials, which is why they appear in the binomial distribution and the binomial theorem.

Worked example

How many different 5-card hands can be dealt from a standard 52-card deck? (n = 52, r = 5)

  1. Start from the formula.

    (nr)=n!r!(n−r)!
  2. Cancel the larger factorial: the top keeps 5 factors and the bottom is 5!.

    (525)=52×51×50×49×485×4×3×2×1=2598960

Answer 2,598,960 possible hands

Why it works

Count ordered arrangements first, n!/(n−r)!, then divide by the r! orders in which the same r items could have been picked, since each selection was counted once per order.

Common mistakes

  • Using permutations for unordered selections, which overcounts by a factor of r!.
  • Forgetting the symmetry (nr)=(nn−r), which makes (10098) easy: it equals (1002)=4950.
  • Adding instead of multiplying for choices made together: 3 of 10 men and 2 of 8 women is (103)×(82).