2.7.11Statistics & Probability — Intermediate

Combinations — nCr, Pascal's triangle

1,653 words8 min readdifficulty · medium

WHAT is a combination?

WHY do we need a separate idea from permutations? A permutation nPr^nP_r counts arrangements — it cares who is 1st, 2nd, 3rd. But if you just want a committee or a hand of cards, the internal order is meaningless. Combinations strip that away.


HOW to derive (nr)\binom{n}{r} from scratch

We already know (from permutations) the number of ordered selections of rr from nn: nPr=n(n1)(n2)(nr+1)r factors=n!(nr)!^nP_r = \underbrace{n(n-1)(n-2)\cdots(n-r+1)}_{r \text{ factors}} = \frac{n!}{(n-r)!}

Key overcounting observation: every unordered group of rr items has been counted once for each of its own orderings. A group of rr items can be arranged in r!r! ways.

So each combination was counted r!r! times inside nPr^nP_r. To undo that, divide:

 (nr)=nPrr!=n!r!(nr)! \boxed{\ \binom{n}{r} = \frac{^nP_r}{r!} = \frac{n!}{r!\,(n-r)!}\ }


Pascal's Triangle — WHY it works

Figure — Combinations — nCr, Pascal's triangle

Arrange the numbers (nr)\binom{n}{r} in a triangle: row nn, position rr.

n=0:            1
n=1:          1   1
n=2:        1   2   1
n=3:      1   3   3   1
n=4:    1   4   6   4   1
n=5:  1   5  10  10   5   1

Derivation by a story (WHY it's true): Pick one special person, say Ravi, from the nn people. Every committee of size rr falls into exactly one of two cases:

  • Ravi is IN the committee: then we need r1r-1 more from the remaining n1n-1(n1r1)\binom{n-1}{r-1} ways.
  • Ravi is OUT: we need all rr from the remaining n1n-1(n1r)\binom{n-1}{r} ways.

These cases don't overlap and cover everything, so we add them. That's Pascal's rule — no algebra needed, just clean case-splitting.


Worked examples



Recall Feynman: explain to a 12-year-old

Imagine you have 5 different candies and can put 3 in your pocket. You don't care what order you grab them — a pocket with chocolate, mint, lemon is the same pocket however you grabbed them. So first count all the ordered grabs, then realize you counted each pocket 3×2×1=63\times2\times1=6 times (all the orders of the same 3 candies), and divide by 6. That divide-by-the-shuffles is the whole trick! Pascal's triangle is just: to fill any box, add the two boxes leaning over it — because a new candy is either in your pocket or not.


Active recall

What does (nr)\binom{n}{r} count?
Number of ways to choose rr items from nn distinct items when order does NOT matter, no repetition.
Formula for (nr)\binom{n}{r}?
n!r!(nr)!=nPrr!\dfrac{n!}{r!\,(n-r)!} = \dfrac{^nP_r}{r!}.
Why divide nPr^nP_r by r!r!?
Each unordered group of rr items is counted r!r! times in the ordered count (once per internal arrangement); dividing removes that ordering.
Symmetry identity for combinations?
(nr)=(nnr)\binom{n}{r}=\binom{n}{n-r} — choosing rr to keep = choosing nrn-r to discard.
State Pascal's Rule.
(nr)=(n1r1)+(n1r)\binom{n}{r}=\binom{n-1}{r-1}+\binom{n-1}{r}.
Story-proof of Pascal's Rule?
Fix one special item: either it's chosen ((n1r1)\binom{n-1}{r-1}) or not ((n1r)\binom{n-1}{r}); disjoint & exhaustive, so add.
Value of (n0)\binom{n}{0}?
11 (exactly one way to choose nothing; uses 0!=10!=1).
(73)=?\binom{7}{3}=?
7656=35\dfrac{7\cdot6\cdot5}{6}=35.
How to count "at least one" selections fast?
Total minus the complement ("none of that type"). e.g. (104)(64)\binom{10}{4}-\binom{6}{4}.
Which is bigger: use small or large rr to compute?
Convert to smaller rr via symmetry to minimize multiplications.

Connections

  • Permutations — nPr — combinations are permutations divided by r!r!.
  • Factorials and 0! — the engine behind every formula here.
  • Binomial Theorem(nr)\binom{n}{r} are exactly the binomial coefficients in (a+b)n(a+b)^n.
  • Probability — counting outcomes — combinations count equally-likely unordered outcomes.
  • Pascal's Triangle patterns — row sums =2n=2^n, hockey-stick, Fibonacci diagonals.

Concept Map

counts ordered selections

defines

defines

divide by r! to remove ordering

justifies dividing

master formula

symmetric in r and n-r

explains

values arranged by row n pos r

addition law

proves

Permutations nPr

nPr = n! / (n-r)!

Order matters

Order irrelevant

Combination nCr

Each group counted r! times

nCr = n! / r!(n-r)!

nCr = nC(n-r)

Choosing r to keep leaves n-r out

Pascal's Triangle

nCr = n-1 C r-1 + n-1 C r

Case-split on one person Ravi

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, combination ka matlab hai — group chunna jahan order matter nahi karta. Agar tum 7 doston me se 3 ka committee banate ho, to {Amit, Bina, Chetan} aur {Chetan, Amit, Bina} ek hi committee hai, kyunki inme koi "1st, 2nd" nahi hota. Isliye pehle hum ordered count nikalte hain (nPr^nP_r), phir har group ko r!r! baar extra gina hai (uske andar ke saare arrangements), to r!r! se divide kar dete hain. Bas yahi hai formula: (nr)=n!r!(nr)!\binom{n}{r}=\frac{n!}{r!(n-r)!}.

Ek badiya shortcut hai symmetry: (nr)=(nnr)\binom{n}{r}=\binom{n}{n-r}. Jab tum rr cheezein rakhne ke liye chunte ho, tab automatically baaki nrn-r chhodne ke liye chun lete ho — do naam, ek hi count. Isliye (10098)\binom{100}{98} likhne ki jagah (1002)=4950\binom{100}{2}=4950 nikaalo, seconds me ho jayega. Yahi 80/20 trick hai — hamesha chhote rr pe convert karo.

Pascal's triangle ka jaadu bhi simple story hai. Kisi ek khaas bande (maan lo Ravi) ko fix karo. Committee me ya to Ravi hai — to baaki r1r-1 log n1n-1 me se aayenge — ya Ravi nahi hai — to poore rr log n1n-1 me se. Ye do cases alag-alag hain aur sab kuch cover karte hain, isliye add karo: (nr)=(n1r1)+(n1r)\binom{n}{r}=\binom{n-1}{r-1}+\binom{n-1}{r}. Triangle me har number apne upar wale do numbers ka sum hota hai — bas isi wajah se.

Sabse common galti: committee ke liye permutation use kar lena. Test simple hai — "do log aapas me swap karne se naya answer banta hai?" Committee me NAHI, isliye combination. Aur yaad rakho (n0)=1\binom{n}{0}=1, kyunki "kuch na chunna" bhi ek tareeka hai (empty set), zero nahi.

Go deeper — visual, from zero

Test yourself — Statistics & Probability — Intermediate

Connections