STP421: Probability January 26, 2009 Page 1 Lecture ? 01.26.09 ? Distinct Permutations and Combinations Permutation Review Proposition: ? We have ? distinct objects. ? Choose ? things. ? The number of permutations: ? = ??? = ?! ??? ! Distinct Permutations Proposition: ? We have ? objects of ? distinct types (?1 ?? ???? 1,?2 ?? ???? 2,?,?? ?? ???? ?) ? The number of distinct permutations: ?? = ?!? 1!??2!?????! Example #1: To elevated the classes linguistic abilities, we?re going to be learning a foreign language: Texan. Texan for ?everybody? or ?you all? is, of course ?yall.? The plural form of ?yall? is, therefore, ?allyall.? A) How many ways are there to arrange the letters in ALLYALL, assuming that each letter is distinct (ie: we can tell the difference between each of the two A?s and four L?s)? ? = 7! = 5,040 B) How many distinct permutations are there if each of the letters is not distinct (ie: if we switch the A?s in ALLYALL to form ALLYALL, this is not a new arrangement)? The number permutations of distinct letters (from part A) is equal to the number of distinct permutations multiplied by the permutations of the similar letters. So, # ?? ???????????? = # ?? ???????? ???????????? ? 4! ? 2! This is the case as, for example, there are 4! ways of arranging the 4 L?s in ALLYALL that were counted as different arrangements in part A. However, rearranging the L?s doesn?t create a distinct permutation, which is what we are counting in part B. ? = 7 ? = 3 ?1(?) = 2 ?2 ? = 4 ?3 ? = 1 7! = ? ? 4! ? 2 ? ? = 7!4!2!1! = 7?6?5?4?3?2?14?3?2?1?2?1?1 = 7?6?52 = 105 Example #2: We have the number set {1,1,2,2,2,3,3,3,4,4}. How many distinct ways can we arrange the number set? ? = 10 ? = 4 ?1 = 2 ?2 = 3 ?3 = 3 ?4 = 2 ?? = 10!2!3!3!2! = 25,200 Example #3: There are 7 paintings to be hung in a museum: 4 by the famous artist A, and 3 by the famous artist B. A?s paintings are dated and must be hung in temporal sequence (chronologically from earliest to latest). ? = 7 ? = 4 ?1 ? = 4 ?2 ?1 = 1 ?3 ?2 = 1 ?4 ?3 1 ?? = 7!4!1!1!1! = 7 ? 6 ? 5 = 210 STP421: Probability January 26, 2009 Page 2 A B A B C Example #4: There are two bars (A and B) downtown as outlined by the grid. Each line segment in the grid represents a block. Happy hour has ended at bar A, but is just beginning at bar B. How many ways are there to get from bar A to bar B? (We are to assume that we aren?t too drunk and that we can make it from A to B in the minimal number of blocks). We need to travel 6 blocks right and 4 blocks up (10 blocks total), regardless of our route. So, ? = 10 ?1 = 6 ?2 = 4 ?? = 10!6!4! = 210 Now let?s say that we are aware of a third bar C, that is on the way from bar A to bar B. It?s such a long trip that we?re going to have to stop at bar C to rehydrate. How many ways are there to get from bar A to bar B while making sure to stop at bar C? A to C: ? = 6 ?1 = 4 ?2 = 2 ??? = 6!4!2! = 15 C to B: ? = 4 ?1 = 2 ?2 = 2 ??? = 4!2!2! = 6 A to B through C: ?? = 15 ? 6 = 90 Example #5: We have 10 identical objects (shirts) that we need to put into 4 boxes. A) How many ways can we put the 10 shirts into the 4 boxes if every box must have at least one shirt? The following is one way to arrange the 10 shirts: ????? | ??? | ??? | ????? ? is a shirt, ? is a space between shirts in a box; and a | separates boxes. To arrange these 10 shirts in the 4 boxes is really just calculating the number of distinct permutations of the 6 spaces and 3 box separators. So, ? = 9 ?1 = 6 ?2 = 3 ?? = 9!6!3! = 84 General Rule: While placing ? identical objects into ? boxes, if none of the boxes can be empty, ?? = ??1 ! ??1 ! ??? !. B) How many ways can we put the 10 shirts into the 4 boxes if boxes can be empty? The way to calculate this, is to follow the rule above (part A) and calculate the number of ways as though you have 14 shirts and none of the boxes can be empty. After arranging the 14 shirts into the boxes, you take one shirt out of STP421: Probability January 26, 2009 Page 3 each box (leaving you with 10 shirts and the possibility that boxes may be empty). So, ? = 13 ?1 = 10 ?2 = 3 ?? = 13!10!3! = 286 General Rule: While placing ? identical objects into ? boxes, if the boxes can be empty, ?? = ?+??1 ! ??1 !?! . Combinations Proposition: ? We have ? distinct objects. ? Choose ? things, but order doesn?t matter. ? Number of Combinations: ? = ?? = ?!?! ??? ! (Binomial Coefficient) Example #1: There?s a new lottery in town called ?Randy?s Pick.? When selecting the winner, there are 50 balls, of which 5 are selected without replacement. If order does not matter, how many combinations of 5 balls can be selected? ?? = ?5 = 50!45!5! = 2,118,76050 Example #2: A committee of 3 people is to be selected from 4 couples. (? = 8 and ? = 3). A) How many possible committees can be formed? The order does not matter in selecting a committee of people, so this is a combination problem: ?? = ?38 = 8!5!3! = 56 B) How many committees of two women and 1 man can be formed? ? = # ?? ???? ???????? 2 ????? # ?? ???? ???????? 1 ??? = 42 41 = 4!2!2! ? 4!1!3! = 24 C) How many committees can be formed if spouses can?t serve together? To select the committee, it makes sense to first select 3 couples, and then select one person from each couple. So, ? = # ?? ???? ???????? 3 ??????? # ?? ???? ?? ??????? ?????? ???? ???? ?????? = 43 21 3 = 4! 3!1! 2 3 = 32 Example #3: There are 52 cards in a standard deck of playing cards. How many hands of 13 cards are possible? The order in which you draw the cards does not matter, so this is a combination problem. ?? = ?1352 = 5213 = 52!13! 52?13 ! = 635,013,559,600 Garrett STP421: Probability