Salta al contenuto
Note per Studenti Binomial Coefficients Report

Binomial Coefficients

In questa pagina 3

Definition and conventions

Cn,k=(nk)≜n(n−1)⋯(n−k+1)k!=n!k! (n−k)!C_{n,k}=\binom nk\triangleq\frac{n(n-1)\cdots(n-k+1)}{k!}=\frac{n!}{k!\,(n-k)!} (different notations for the same number; its combinatorial meaning, the number of combinations without repetition, is in Sampling and Allocation ProblemsCounting problems are modelled either as drawing balls from an urn (sampling) or as placing tokens into cells (allocation), leading to dispositions with and without repetition, permutations and combinations without repetition.Sampling and Allocation Problems →).

Conventions: 0!=10!=1, (00)=(nn)=1\binom00=\binom nn=1, (n0)=(nn)=1\binom n0=\binom nn=1.

Properties

(a) Symmetry: (nk)=(nn−k)\displaystyle\binom nk=\binom n{n-k}.

Proof. Trivial, since (nk)=n!k!(n−k)!\binom nk=\frac{n!}{k!(n-k)!} and (nn−k)=n!(n−k)! (n−(n−k))!=n!(n−k)! k!\binom n{n-k}=\frac{n!}{(n-k)!\,(n-(n-k))!}=\frac{n!}{(n-k)!\,k!}.

Alternative proof from the combinatorial meaning: (nk)\binom nk is the number of committees of kk people chosen from a group of nn people, but this equals the number of committees of n−kn-k people chosen from the same group (choosing the committee is the same as choosing who is left out; the notes pose this as "why?"). □\square

(b) Pascal's rule: (n−1k−1)+(n−1k)=(nk)\displaystyle\binom{n-1}{k-1}+\binom{n-1}{k}=\binom nk.

Proof. The algebraic proof is left as an exercise. Combinatorial proof: on the right-hand side, (nk)\binom nk is the number of committees of kk people out of nn. A committee of kk people can be chosen as follows. Choose one person, say AA. The number of committees is the sum of

  • the number of committees containing AA and k−1k-1 more persons chosen from the remaining n−1n-1 people (there are (n−1k−1)\binom{n-1}{k-1} such committees), plus
  • the number of committees that do not contain AA and are formed of kk persons chosen from the other n−1n-1 people (AA is excluded): there are (n−1k)\binom{n-1}{k} such committees.

Therefore (nk)=(n−1k−1)+(n−1k)\binom nk=\binom{n-1}{k-1}+\binom{n-1}k. □\square

Pascal's triangle

Property (b) allows one to construct Pascal's triangle: row nn contains (n0),…,(nn)\binom n0,\dots,\binom nn and each entry is the sum of the two entries above it.

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

(for instance (42)=(31)+(32)=3+3=6\binom42=\binom31+\binom32=3+3=6).

Binomial theorem

The binomial coefficients are related to the power of a binomial: (a+b)n=∑k=0n(nk)akbn−k.(a+b)^n=\sum_{k=0}^n\binom nk a^k b^{n-k}. In particular ∑k=0n(nk)=2n(∗)\sum_{k=0}^n\binom nk=2^n\qquad(*) Exercise (from the notes): give a combinatorial interpretation of (∗)(*) (left to the reader on the page).

Application to the computation of probabilities

With an equiprobable measure, P(E)=∣E∣/∣Ω∣P(E)=|E|/|\Omega| (see Empirical and Equiprobable MeasuresProbability theory does not say how to choose P; two common choices are the empirical measure built from repeated trials and, on a finite sample space, the equiprobable measure P(E) = favourable cases over all cases.Empirical and Equiprobable Measures →) and the cardinalities are computed with binomial coefficients and the multiplication principle (Counting PrinciplesCounting finite sets rests on the addition principle for disjoint sets and the multiplication principle for staged procedures, which requires a constant number of outcomes at each stage and distinct composite outcomes.Counting Principles →).

Example (soccer team). A team has 12 strikers, 8 defenders and 2 goalies. The coach selects 11 players: 5 strikers, 5 defenders and 1 goalie. Giovanni and Paolo are both strikers. Assuming all choices of the coach are equiprobable, what is the probability of E≜E\triangleq "Giovanni and Paolo will play together"? P(E)=# of choices of teams with Giovanni and Paolo# of choices of teams.P(E)=\frac{\#\text{ of choices of teams with Giovanni and Paolo}}{\#\text{ of choices of teams}}. Denominator, by the multiplication principle: #teams=(125)×(85)×(21)\#\text{teams}=\binom{12}5\times\binom85\times\binom21 (choose 5 of the 12 strikers, 5 of the 8 defenders, 1 of the 2 goalies). Numerator: the two strikers are fixed, so 3 more strikers are chosen among the other 10: (103)(85)(21)\binom{10}3\binom85\binom21. The factors for defenders and goalie cancel: P(E)=(103)(125)=10⋅9⋅83⋅2⋅5⋅4⋅3⋅212⋅11⋅10⋅9⋅8=533.P(E)=\frac{\binom{10}3}{\binom{12}5}=\frac{10\cdot9\cdot8}{3\cdot2}\cdot\frac{5\cdot4\cdot3\cdot2}{12\cdot11\cdot10\cdot9\cdot8}=\frac5{33}.

Example (train). A train has 3 cars and 21 passengers are waiting to board. Assuming all occupancies are equiprobable, compute the probability of the events A=A= "car 1 is boarded by 4 passengers" and B=B= "cars 1, 2, 3 are boarded by 7 passengers each". Each passenger chooses one of 3 cars, so there are 3213^{21} boardings. P(A)=# boardings with 4 in car 1# boardings=(214)⋅217321,P(B)=(217)(147)(77)321.P(A)=\frac{\#\text{ boardings with 4 in car 1}}{\#\text{ boardings}}=\frac{\binom{21}4\cdot2^{17}}{3^{21}},\qquad P(B)=\frac{\binom{21}7\binom{14}7\binom77}{3^{21}}. (Choose which 4 of the 21 passengers go in car 1, the other 17 choose between cars 2 and 3 freely: 2172^{17}; for BB choose 7 passengers for car 1, 7 of the remaining 14 for car 2, the last 7 go to car 3.)

Example (urn with three colours). An urn contains 5 white, 6 black and 7 red balls. Draw 3 balls at once. (The page adds "or draw one at a time with replacement, it is the same thing"; the counts that follow are those of drawing without replacement, i.e. (183)\binom{18}3 equiprobable subsets, so the parenthetical remark on the page is probably meant as "without replacement" and is flagged as an imprecision in the source.)

(a) E=E= "the 3 balls drawn are of different colours": P(E)=# draws with 3 balls of different colour# draws of 3 balls=(51)(61)(71)(183).P(E)=\frac{\#\text{ draws with 3 balls of different colour}}{\#\text{ draws of 3 balls}}=\frac{\binom51\binom61\binom71}{\binom{18}3}.

(b) If instead one draws 6 balls at once, let E=E= "out of the 6 drawn, 2 are white", F=F= "3 are black", G=G= "4 are red". Compute P(E∪F∪G)P(E\cup F\cup G). By inclusion-exclusion (Probability Measures and AxiomsA probability measure is a non-negative, normalised, sigma-additive map on the sigma-algebra of events; from the three axioms follow the complement rule, monotonicity, subadditivity and inclusion-exclusion, while the axioms do not determine P uniquely.Probability Measures and Axioms →, consequence (g)): P(E∪F∪G)=P(E)+P(F)+P(G)−P(E∩F)−P(E∩G)−P(F∩G)+P(E∩F∩G).P(E\cup F\cup G)=P(E)+P(F)+P(G)-P(E\cap F)-P(E\cap G)-P(F\cap G)+P(E\cap F\cap G). Here F∩G=∅F\cap G=\varnothing (3 black and 4 red would need 7 balls) and E∩F∩G=∅E\cap F\cap G=\varnothing, so P(F∩G)=P(E∩F∩G)=0P(F\cap G)=P(E\cap F\cap G)=0. For example P(E)=(52)(134)(186),P(E∩F)=P(2 white and 3 black out of 6)=(52)(63)(71)(186).P(E)=\frac{\binom52\binom{13}4}{\binom{18}6},\qquad P(E\cap F)=P(\text{2 white and 3 black out of 6})=\frac{\binom52\binom63\binom71}{\binom{18}6}. Imitating this for the rest: P(E∪F∪G)=(52)(134)(186)+(63)(123)(186)+(74)(112)(186)−(52)(63)(71)(186)−(52)(74)(60)(186).P(E\cup F\cup G)=\frac{\binom52\binom{13}4}{\binom{18}6}+\frac{\binom63\binom{12}3}{\binom{18}6}+\frac{\binom74\binom{11}2}{\binom{18}6}-\frac{\binom52\binom63\binom71}{\binom{18}6}-\frac{\binom52\binom74\binom60}{\binom{18}6}. (The last term is P(E∩G)P(E\cap G): 2 white, 4 red, 0 black.)

The birthday example of the same kind is in The Birthday ProblemThe probability that at least two of n children share a birthday is computed through the complementary event of all-distinct birthdays, and already n = 23 gives probability above one half.The Birthday Problem →.

Versione ripasso

  • (nk)=n(n−1)⋯(n−k+1)k!=n!k!(n−k)!\binom nk=\dfrac{n(n-1)\cdots(n-k+1)}{k!}=\dfrac{n!}{k!(n-k)!}; 0!=10!=1, (n0)=(nn)=1\binom n0=\binom nn=1. Meaning: number of kk-subsets of an nn-set, of committees of kk among nn, of nn-bit sequences with kk ones.
  • Symmetry: (nk)=(nn−k)\binom nk=\binom n{n-k}. Pascal: (n−1k−1)+(n−1k)=(nk)\binom{n-1}{k-1}+\binom{n-1}k=\binom nk (committee containing a fixed person AA or not).
  • Binomial theorem (a+b)n=∑k(nk)akbn−k(a+b)^n=\sum_k\binom nka^kb^{n-k}; ∑k(nk)=2n\sum_k\binom nk=2^n.
  • Probabilities with equiprobable PP: P(E)=∣E∣/∣Ω∣P(E)=|E|/|\Omega|, counting each stage with a binomial and multiplying.
    • Team: P=(103)/(125)=5/33P=\binom{10}3/\binom{12}5=5/33.
    • Train (3 cars, 21 passengers): P(A)=(214)217/321P(A)=\binom{21}4 2^{17}/3^{21}, P(B)=(217)(147)(77)/321P(B)=\binom{21}7\binom{14}7\binom77/3^{21}.
    • Urn 5W,6B,7R5W,6B,7R: 3 balls of different colours (51)(61)(71)/(183)\binom51\binom61\binom71/\binom{18}3; 6 balls, inclusion-exclusion with F∩G=∅F\cap G=\varnothing.
  • Typical mistake: forgetting that incompatible intersections have probability 0 in inclusion-exclusion, or using ordered counts in numerator and unordered in denominator.

Teoria collegata