TheoremComplete

Combinatorial Probability - Applications

Combinatorial methods extend beyond basic counting to solve complex probability problems involving partitions, matchings, and recursive structures.

Stars and Bars Method

Theorem

The number of ways to distribute nn indistinguishable balls into rr distinguishable boxes is: (n+r1r1)=(n+r1n)\binom{n+r-1}{r-1} = \binom{n+r-1}{n}

Proof: Represent nn balls as stars and r1r-1 dividers as bars. Any arrangement of nn stars and r1r-1 bars corresponds to a distribution. The number of such arrangements is choosing r1r-1 positions for bars among n+r1n+r-1 total positions. □

Example

How many non-negative integer solutions are there to x1+x2+x3=10x_1 + x_2 + x_3 = 10?

Using stars and bars with n=10n = 10 balls and r=3r = 3 boxes: (10+3131)=(122)=66\binom{10+3-1}{3-1} = \binom{12}{2} = 66

If we require each xi1x_i \geq 1 (positive integers), first place one ball in each box, leaving nrn-r balls to distribute freely: (nr+r1r1)=(n1r1)\binom{n-r+r-1}{r-1} = \binom{n-1}{r-1}

Catalan Numbers

Definition

The nn-th Catalan number is: Cn=1n+1(2nn)=(2n)!(n+1)!n!C_n = \frac{1}{n+1}\binom{2n}{n} = \frac{(2n)!}{(n+1)!n!}

Catalan numbers count many combinatorial structures:

  • Number of ways to properly parenthesize a product of n+1n+1 factors
  • Number of paths from (0,0)(0,0) to (n,n)(n,n) staying below the diagonal y=xy = x
  • Number of binary trees with nn internal nodes

The first few Catalan numbers: 1,1,2,5,14,42,132,1, 1, 2, 5, 14, 42, 132, \ldots

Example

Ballot Problem: In an election, candidate A receives nn votes and candidate B receives mm votes, where n>mn > m. What is the probability that A is always ahead throughout the counting?

If votes are counted in random order, the probability is: nmn+m\frac{n-m}{n+m}

For n=5,m=3n = 5, m = 3: probability = 535+3=28=0.25\frac{5-3}{5+3} = \frac{2}{8} = 0.25

Principle of Inclusion-Exclusion (General Form)

Theorem

For events A1,,AnA_1, \ldots, A_n and sets S1,,SnS_1, \ldots, S_n, the number of elements in none of the sets is: S1cS2cSnc=USi+i<jSiSji<j<kSiSjSk+\left|S_1^c \cap S_2^c \cap \cdots \cap S_n^c\right| = |U| - \sum |S_i| + \sum_{i<j} |S_i \cap S_j| - \sum_{i<j<k} |S_i \cap S_j \cap S_k| + \cdots

where UU is the universal set.

Example

Derangements Revisited: The number of derangements DnD_n (permutations with no fixed points) is: Dn=n!k=0n(1)kk!D_n = n! \sum_{k=0}^n \frac{(-1)^k}{k!}

For large nn, Dnn!eD_n \approx \frac{n!}{e}.

Thus D10=1,334,961D_{10} = 1,334,961 compared to 10!=3,628,80010! = 3,628,800 total permutations.

Stirling Numbers

Definition

Stirling numbers of the second kind S(n,k)S(n,k) count the number of ways to partition nn distinct objects into kk non-empty unlabeled subsets.

Stirling numbers of the first kind s(n,k)s(n,k) count the number of permutations of nn elements with exactly kk cycles.

These satisfy recurrence relations: S(n,k)=kS(n1,k)+S(n1,k1)S(n,k) = k \cdot S(n-1,k) + S(n-1,k-1) s(n,k)=(n1)s(n1,k)+s(n1,k1)s(n,k) = (n-1) \cdot s(n-1,k) + s(n-1,k-1)

Remark

Advanced combinatorial structures like Catalan numbers and Stirling numbers appear throughout discrete mathematics, computer science, and probability theory. They provide exact formulas for quantities that seem intractable at first glance.