Professional Documents
Culture Documents
18 05 Lec3
18 05 Lec3
05 Lecture 3
February 7, 2005
n!
- choose k out of n, order counts, without replacement.
Pn,k = (nk)!
k
n - choose k out of n, order counts, with replacement.
n!
Cn,k = k!(nk)!
- choose k out of n, order doesnt count, without replacement.
n1 + ... + nk = n
n
n n1
n n1 n2
n n1 ... nk2
nk
...
n2
n3
nk1
nk
n1
=
(n n1 )!
(n n1 n2 )!
(n n1 ... nk2 )!
n!
1
...
n1 !(n n1 )! n2 !(n n1 n2 )! n3 !(n n1 n2 n3 )!
nk1 !(n n1 ... nk1 )!
=
n!
=
n1 !n2 !...nk1 !nk !
n
n1 , n2 , ..., nk
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!)6 612
2, 2, 2, 2, 2, 2
(2!)6
13 39
(choose s)(choose other cards)
6,4,2,1 7,9,11,12
=
P=
= 0.00196
52
(ways to arrange all cards)
13,13,13,13
Note - If it didnt 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
13131313
P=
522
13
Theorem:
P(
i=1
Ai ) =
in
P(Ai )
P(Ai Aj ) +
i<j
i<j<k
Express each disjoint piece, then add them up according to what sets each piece
Ai ) =
i=1
P(disjoint partition)
To check if the theorem is correct, see how many times each partition is counted.
P(A
k k ) - k times
i j
i<j
2 times
P(A1 A2 ) P(A1 A3 ) P(A1 A4 ) P(A2 A3 ) P(A2 A4 ) P(A3 A4 ) = counted k2
times (3 times).
0 = (1 1) =
k
i=0
(1) (1)
(ki)
k
k
k
k
=
+
...
0
1
2
3
** End of Lecture 3
10