2.7.11 · HinglishStatistics & Probability — Intermediate

Combinations — nCr, Pascal's triangle

1,469 words7 min readRead in English

2.7.11 · Maths › Statistics & Probability — Intermediate


Combination KYA hota hai?

Permutations se alag idea ki ZAROORAT kyun hai? Ek permutation arrangements count karta hai — use fark padta hai kaun 1st, 2nd, 3rd hai. Lekin agar tum sirf ek committee ya hand of cards chahte ho, toh internal order meaningless hai. Combinations woh hata dete hain.


ko scratch se KAISE derive karein

Humein pehle se pata hai (permutations se) mein se ke ordered selections ki sankhya:

Key overcounting observation: items ke har ek unordered group ko apni khud ki har ordering ke liye ek baar count kiya gaya hai. items ke ek group ko tarike se arrange kiya ja sakta hai.

Toh har ek combination ko ke andar baar count kiya gaya tha. Usse undo karne ke liye, divide karo:


Pascal's Triangle — YEH KYU kaam karta hai

Figure — Combinations — nCr, Pascal's triangle

numbers ko ek triangle mein arrange karo: row , position .

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

Ek story se derivation (YEH sach kyun hai): logon mein se ek special person, maano Ravi, ko pick karo. size ki har committee exactly do cases mein se ek mein aati hai:

  • Ravi committee mein IN hai: toh remaining mein se aur chahiye ⇒ tarike.
  • Ravi OUT hai: remaining mein se saare chahiye ⇒ tarike.

Yeh cases overlap nahi karte aur sab kuch cover karte hain, toh hum add karte hain. Yahi Pascal's rule hai — koi algebra nahi chahiye, bas clean case-splitting.


Worked examples



Recall Feynman: 12-year-old ko samjhao

Socho tumhare paas 5 alag-alag candies hain aur 3 apni pocket mein rakh sakte ho. Tumhe fark nahi karta tum unhe kis order mein uthate ho — chocolate, mint, lemon wali pocket wahi pocket hai chahe tum unhe kisi bhi tarike se uthao. Toh pehle saare ordered grabs count karo, phir realize karo ki tumne har pocket ko baar count kiya (same 3 candies ke saare orders), aur 6 se divide karo. Woh divide-by-the-shuffles hi poora trick hai! Pascal's triangle bas yeh hai: koi bhi box fill karne ke liye, uske upar jhuke hue do boxes ko add karo — kyunki ek naya candy ya toh tumhari pocket mein hai ya nahi.


Active recall

kya count karta hai?
distinct items mein se items choose karne ke tarike jab order matter NAHI karta, koi repetition nahi.
ka formula?
.
ko se kyun divide karte hain?
items ka har unordered group ordered count mein baar count hota hai (har internal arrangement ke liye ek baar); divide karne se woh ordering remove hoti hai.
Combinations ke liye symmetry identity?
rakhne ke liye choose karna = discard karne ke liye choose karna.
Pascal's Rule state karo.
.
Pascal's Rule ka story-proof?
Ek special item fix karo: ya toh woh chosen hai () ya nahi (); disjoint & exhaustive, toh add karo.
ki value?
(kuch bhi choose nahi karne ka exactly ek tarika; use karta hai).
.
"At least one" selections fast count kaise karein?
Total minus complement ("us type ka koi nahi"). e.g. .
Compute karne ke liye chhhota ya bada use karein?
Multiplications kam karne ke liye symmetry ke zariye chhhote mein convert karo.

Connections

  • Permutations — nPr — combinations permutations hain se divide karke.
  • Factorials and 0! — yahan har formula ke peeche ka engine.
  • Binomial Theorem exactly mein binomial coefficients hain.
  • Probability — counting outcomes — combinations equally-likely unordered outcomes count karte hain.
  • Pascal's Triangle patterns — row sums , 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