MATH2421: Probability | Dr. YU, Chi Wai Chapter 1: Preliminary 1 BASIC PRINCIPLE OF COUNTING In many cases with a finite sample space, we will be able to solve a probability problem by counting the number of elements in an event without actually listing them. The way to solve such problems is to break them down into a series of simple tasks that are easy to count, and employ known rules of combining tasks. We will see how to do so in next lecture note. In the following, some fundamental principles of counting will be presented. Two basic counting methods: Permutation: An ordered arrangement of all or a part of a set of distinct objects. Combination: An arrangement of all or a part of a set of distinct objects, regardless of the order. 1.1 PERMUTATION Frequently, we want to know how many different ordered arrangements of the letters a, b, and c are possible. By direct enumeration we see that there are 6: namely, abc, acb, bac, bca, cab and cba. Each arrangement is known as a permutation. In other words, there are 6 possible permutations of a set of 3 distinct objects. In general, n distinct objects can be arranged in n(n - 1)(n - 2) … (3)(2)(1) different permutations. We denote n(n - 1)(n - 2) … (3)(2)(1) by n!. Based on the fact that the product of no numbers at all is 1, we define 0! = 1. ~1~ MATH2421: Probability | Dr. YU, Chi Wai EXAMPLE In how many ways can 5 starting positions on a basketball team be filled with 8 men who can play any of the positions? Ans: ๐58 (= 6720). QUESTION In how many ways can 9 people be lined up to get on a bus? ~2~ MATH2421: Probability | Dr. YU, Chi Wai If the boy insists in sticking with his mom, then how many ways are possible? PERMUTATION WITH SOME INDISTINGUISHABLE OBJECTS Up to now, we have only considered permutations of distinct objects, i.e. all the objects were distinguishable. Now we shall determine the number of permutations of a set of n objects when certain of the objects are indistinguishable from each other. To set this straight in our minds, let's take a look at the following example. ~3~ MATH2421: Probability | Dr. YU, Chi Wai ~4~ MATH2421: Probability | Dr. YU, Chi Wai QUESTION A Go tournament has 5 competitors of which 2 are Japanese, 2 are from Korea, and 1 from China. If the tournament result lists just the nationalities of the players in the order in which they placed, how many outcomes are possible? 1.2 COMBINATION The permutations considered before concerned the ordered choices from a certain set. Often, the order in which the elements are selected is not relevant, and we are interested only in the total number of possible choices, regardless of the particular order in which they are obtained. Such choices are referred to as combinations. For instance, we are interested in determining the number of groups of 3 selected from the 5 items A, B, C, D and E. More generally, we may want to determine the number of different groups of r objects that could be formed from a total of n objects, i.e. the number of ways of selecting r objects from n when the order of selection is NOT considered relevant. To answer this, we can imagine that we partition the 5 items into two cells. One is a "selected" cell with 3 objects and another is a "not selected" cell with 2 objects. So using Theorem 5, there are 5!/(3!2!) = 10 different groups of 3 selected from the 5 items. ~5~ MATH2421: Probability | Dr. YU, Chi Wai QUESTION From a group of 5 women and 7 men, how many different committees consisting of 2 women and 3 men can be formed? What if 2 of the men refuse to serve on the committee together? ~6~ MATH2421: Probability | Dr. YU, Chi Wai 2 BINOMIAL AND MULTINOMIAL THEOREM ~7~ MATH2421: Probability | Dr. YU, Chi Wai If we replace x + y in the binomial theorem by the sum of r variables, say ๐ฅ1 , … , ๐ฅ๐ , then we would have the multivariable version of the binomial theorem --- Multinomial theorem. EXAMPLE Expand (๐ฅ1 + ๐ฅ2 + ๐ฅ3 )2 . (๐ฅ1 + ๐ฅ2 + ๐ฅ3 )2 = 2! 2! 2! 2! ๐ฅ12 ๐ฅ20 ๐ฅ30 + ๐ฅ10 ๐ฅ22 ๐ฅ30 + ๐ฅ10 ๐ฅ20 ๐ฅ32 + ๐ฅ11 ๐ฅ21 ๐ฅ30 2! 0! 0! 0! 2! 0! 0! 0! 2! 1! 1! 0! 2! 2! + ๐ฅ11 ๐ฅ20 ๐ฅ31 + ๐ฅ10 ๐ฅ21 ๐ฅ31 1! 0! 1! 0! 1! 1! = ๐ฅ12 + ๐ฅ22 + ๐ฅ32 + 2๐ฅ1 ๐ฅ2 + 2๐ฅ1 ๐ฅ3 + 2๐ฅ2 ๐ฅ3 ~8~ MATH2421: Probability | Dr. YU, Chi Wai 3 PROBLEM ON THE DISTRIBUTION OF BALLS IN BOXES Note that if ๐ "distinguishable" balls are distributed into ๐ different boxes, then there are ๐ ๐ possible outcomes, because each ball can be distributed into any of ๐ possible boxes. Now suppose that all ๐ balls are "indistinguishable" from each other, then how many different outcomes are possible in this case? Since the balls are indistinguishable, it follows that the outcomes of the experiment of distributing the ๐ balls into ๐ boxes can be described by a vector (๐ฅ1 , … , ๐ฅ๐ ), where ๐ฅ๐ denotes the number of balls that are distributed into ๐ ๐กโ box. Thus, the problem is equivalent to finding the number of distinct nonnegative integer-valued solutions of ๐ฅ1 + โฏ + ๐ฅ๐ = ๐. To get the answer easily, we first consider the question with the number of positive integer-valued solutions. Suppose that there are ๐ indistinguishable objects lined up and that we want to divide them into ๐ nonempty groups. To do so, we can select ๐ − 1 of the ๐ − 1 spaces between adjacent objects as our dividing points. ~9~ MATH2421: Probability | Dr. YU, Chi Wai For instance, if we have ๐ = 8 and ๐ = 3, and then choose the 2 divisors as shown ooo|ooo|oo then the solution (๐ฅ1 , ๐ฅ2 , ๐ฅ3 ) is (3, 3, 2). Similarly, if we choose the 2 divisors as shown o|ooo|oooo then the solution (๐ฅ1 , ๐ฅ2 , ๐ฅ3 ) is (1, 3, 4), and so on. If we list all possible outcomes, then we would see that there are 21 different solutions. This number can be obtained by the following result: ๐≥๐ EXAMPLE 4 5−1 If ๐ = 5 and ๐ = 3, then there are ( ) = ( ) = 6 possible positive integer-valued 2 3−1 solutions of ๐ฅ1 + ๐ฅ2 + ๐ฅ3 = 5. Indeed, we have 5 = 1+1+3 = 1+3+1 = 3+1+1= 1+2+2= 2+2+1= 2+1+2. Now we can go back to our original question: to obtain the number of nonnegative solutions (๐ฅ1 , … , ๐ฅ๐ ) of ๐ฅ1 + โฏ + ๐ฅ๐ = ๐. Note that the number of nonnegative solutions of ๐ฅ1 + โฏ + ๐ฅ๐ = ๐ is equivalent to the number of positive solutions of ๐ฆ1 + โฏ + ๐ฆ๐ = ๐ + ๐, where ๐ฆ๐ = ๐ฅ๐ + 1 for ๐ = 1, … , ๐. Hence, from the above result, we have ~ 10 ~ MATH2421: Probability | Dr. YU, Chi Wai EXAMPLE (CONT’D) 7 5+3−1 If ๐ = 5 and ๐ = 3, then there are ( ) = ( ) = 21 possible nonnegative integer2 3−1 valued solutions of ๐ฅ1 + ๐ฅ2 + ๐ฅ3 = 5. Indeed, we have 5 = 1+1+3 = 1+3+1 = 3+1+1= 1+2+2= 2+2+1= 2+1+2 = 0+0+5 = 0+5+0 = 5+0+0 = 1+0+4 = 1+4+0 = 0+1+4 = 0+4+1 = 1+0+4 = 4+0+1 = 2+0+3 = 2+3+0 = 0+2+3 = 0+3+2 = 2+0+3 = 3+0+2 QUESTION 20 identical red balls are distributed into 4 different boxes. How many different divisions are possible if (a) No box is empty, and (b) Boxes can be empty. Challenging question for students: ~ 11 ~