Multinomial Coefficients
Multinomial Coefficients
05 Lecture 3
February 7, 2005
n!
Pn,k = (n−k)! - choose k out of n, order counts, without replacement.
k
n - choose k out of n, order counts, with replacement.
n!
Cn,k = k!(n−k)! - choose k out of n, order doesn’t count, without replacement.
n1 + ... + nk = n
� �� �� � � �� �
n n − n1 n − n1 − n2 n − n1 − ... − nk−2 nk
× ... ×
n1 n2 n3 nk−1 nk
n! (n − n1 )! (n − n1 − n2 )! (n − n1 − ... − nk−2 )!
= × × × ... × ×1
n1 !(n − n1 )! n2 !(n − n1 − n2 )! n3 !(n − n1 − n2 − n3 )! nk−1 !(n − n1 − ... − nk−1 )!
� �
n! n
= =
n1 !n2 !...nk−1 !nk ! n1 , n2 , ..., nk
These combinations are called multinomial coefficients.
Further explanation: You have n “spots” in which you have n! ways to place your elements.
However, you can permute the elements within a particular group and the splitting is still the same.
Example #1 - 20 members of a club need to be split into 3 committees (A, B, C) of 8, 8, and 4 people,
respectively. How many ways are there to split the club into these committees?
� �
20 20!
ways to split = =
8, 8, 4 8!8!4!
Example #2 - When rolling 12 dice, what is the probability that 6 pairs are thrown?
There are 612 possibilities for the dice throws, as each of the 12 dice has 6 possible values.
� �
12 12! 12!
= �P= = 0.0034
2, 2, 2, 2, 2, 2 (2!)6 (2!)6 612
7
Example #3 - Playing Bridge
� 13 �� 39 �
6,4,2,1 7,9,11,12 (choose �s)(choose other cards)
P= � 52
� = = 0.00196
13,13,13,13
(ways to arrange all cards)
Note - If it didn’t matter who got the cards, multiply by 4! to arrange people around the hands.
Alternate way to solve - just track the locations of the � s
�13��13��13��13�
6 4
P= �52�2 1
13
Theorem:
8
n
� � � �
P( Ai ) = P(Ai ) − P(Ai Aj ) + P(Ai Aj Ak ) − ... + (−1)n+1 P(Ai ...An )
i=1 i�n i<j i<j<k
Express each disjoint piece, then add them up according to what sets each piece
To check if the theorem is correct, see how many times each partition is counted.
i<j P(A A
i j ) − 2 times
� �k �
as follows: i<j<k = counted 3 times (1 time).
� � � � � � � �
total in general: k − k2 + k3 − k4 + ... + (−1)k+1 kk = sum of times counted.
9
k � �
� � � � � � � � �
k k i (k−i) k k k k
0 = (1 − 1) = (−1) (1) = − + − ...
i=0
i 0 1 2 3
** End of Lecture 3
10