p2 Combinatorial Probability
p2 Combinatorial Probability
2.1.2 Definition. For any integer n ≥ 0, define the factorial of n, written n!, by
(
1, n = 0,
n! =
n(n − 1) · · · 1, n ≥ 1.
3
n!
General case: n(n − 1) · · · (n − r + 1) = .
(n − r)!
Equivalent problem: allocate r distinguishable objects into n distinguishable cells, with no
cell containing > 1 objects.
4
Equivalent problem: allocate r distinguishable objects into n distinguishable cells, with no
restriction on no. of objects allocated in each cell. [e.g. allocating 1st and 2nd objects into jth
cell is equivalent to selecting jth object at 1st and 2nd times.]
(1 + x + x2 + · · · )(1 + x + x2 + · · · ) · · · (1 + x + x2 + · · · ) = (1 + x + x2 + · · · )n = (1 − x)−n .
Picking jth object s times in our selection is equivalent to picking the term xs in the jth
bracket in above expansion of (1 − x)−n .
◦ ◦ | ◦ | | ◦ ◦ | ··· | ◦ ◦ ◦
Each such sequence may be regarded as an allocation of r objects into n cells (2 in 1st cell, 1
in 2nd, 0 in 3rd etc.) Thus,
5
n+r−1
Answer is .
r
2.1.8 Summary
Putting ith object into group j is equivalent to picking pj from the ith bracket.
The answer is
n n!
= ,
n1 , . . . , n k n1 ! n2 ! · · · nk !
which is known as a multinomial coefficient.
(a) In a peace talk on the Middle East, 4 delegates come from the UN, 3 from USA, 5 from Russia
and 2 from Syria. They are to be seated in a row. Americans, Russians and Syrians must be
separated by the UN delegates, and delegates representing the same country must be seated
next to each other. How many ways to seat them?
Answer: 4! 3! 5! 2! × (5 · 4 · 3) = 2, 073, 600.
6
∗(b) Similar to (a), but with the 14 delegates seated around a circular table. How many ways to
seat them?
Answer: 4! 3! 5! 2! × (3 · 2) × 14 = 2, 903, 040.
(c) A lift can reach 5 different floors. How many exit patterns are there for 8 persons inside the
lift?
5+8−1 12
Answer: 58 = 390, 625, or = = 495 if the persons are identical robots!
8 8
∗(d) Mary has 5 dresses, 3 skirts, 4 blouses, 3 pairs of shoes, and 2 hats. She always wears shoes
and either a dress or a blouse and a skirt. She may or may not wear a hat.
(i) How many different combinations can she wear?
(ii) Suppose Mary can afford to buy either an extra dress or an extra hat (but not both).
Which should she buy if she decides to maximise the number of different combinations
that she can wear?
(iii) Suppose Mary’s yellow shoes do not match her black or green dress, and that the black
dress does not match her two hats. How many matching combinations can she wear?
§2.2 Definitions
2.2.1 Definition. Consider an experiment with a finite number of different possible outcomes. The
set Ω of all possible outcomes is called the sample space.
2.2.2 An event A is a subset of Ω. It occurs if and only if the outcome of the experiment belongs to
the subset A.
2.2.3 Definition. Assume that each outcome in Ω has EQUAL chance of occurring. The probability
of event A is defined by
no. of outcomes in A
P(A) = .
no. of outcomes in Ω
2.2.4 Example.
If we roll a dice, possible outcomes are Ω = {1, 2, 3, 4, 5, 6}.
The event A = {2, 4, 6} refers to that “an even score turns up”.
The probability of getting an even score is
3 1
P(A) = = .
6 2
7
2.2.5 In the above definition, it is important that all outcomes in Ω must be equally likely, such that
for each ω ∈ Ω,
1
P({ω}) = .
no. of outcomes in Ω
Counter-example. When we toss a coin, it can land on a head, a tail OR on its edge. We
may define Ω = {H, T, Edge}. The above definition instructs that
§2.3 Examples
2.3.1 If we roll 2 dice, what is the probability that the total is 6?
Here Ω = {(1, 1), (1, 2), . . . , (1, 6), (2, 1), . . . , (6, 6)} contains 6 × 6 = 36 outcomes. The event of
interest is
A = {(1, 5), (2, 4), (3, 3), (4, 2), (5, 1)},
A problem of statistical inference: N unknown, k known and r observed; pick N such that
P(A) is maximum; this is an example of maximum likelihood estimation of the total number
of fish in the lake.
8
2.3.3 In a game of bridge, what is the probability that North and South each gets 2 aces?
Take
Ω =collection of partitions of 52 cards into 3 sets of sizes 13, 13, 26. Then Ω contains
52
outcomes.
13, 13, 26
Take A = collection of partitions of 52cards
into 3 sets
of sizes 13, 13, 26 such that the first 2 sets
4 48
contain 2 aces each. Then A contains outcomes. Thus,
2 11, 11, 26
4 48 52
P(A) = .
2 11, 11, 26 13, 13, 26
An alternative game is suggested as follows. de Méré wins if at least one double six appears
in 24 throws of a pair of dice. Who has the better chance to win?
Now Ω contains 3624 outcomes. The event that you win has 3524 outcomes. Thus
Remark:
de Méré argued that in the first game he would experience 4 out of 6 (i.e. 2/3) of all possible outcomes,
one of which (“6”) is favourable. In the second game, again one of the 36 possible outcomes is favourable
and with 24 throws he would experience 24 out of 36 possible outcomes, the proportion is again 2/3. He
thus concluded that the second game is equally favourable to him. Do you think that de Méré was right?
2.3.5 Toss 2 coins; we can get either 2 heads, 2 tails, or 1 head and 1 tail. So,
Correct?
9
§2.4 Deficiencies
2.4.1 Toss a drawing pin. Can you say what P(pin lands point up) should be?
Physicists would say
no. of occurrences of “point up” among first n tosses
P(point up) = ,
n
for a very large n.
2.4.2 Difficulties:
2.5.2 If n people are seated randomly in a row of 2n seats, what is the probability that no two persons
will sit on adjacent seats?
10