math 20 probability
play

MATH 20: PROBABILITY Lecture 3: Permutations Xingru Chen - PowerPoint PPT Presentation

MATH 20: PROBABILITY Lecture 3: Permutations Xingru Chen xingru.chen.gr@dartmouth.edu XC 2020 PINE 2 East Wheelock Street, Hanover, NH XC 2020 SMALL PL SM PLATES ES LAR LARGE P PLA LATES SW SWEET EET BITES ES Buffalo


  1. MATH 20: PROBABILITY Lecture 3: Permutations Xingru Chen xingru.chen.gr@dartmouth.edu XC 2020

  2. PINE 2 East Wheelock Street, Hanover, NH XC 2020

  3. SMALL PL SM PLATES ES LAR LARGE P PLA LATES SW SWEET EET BITES ES Buffalo Cauliflower Crispy Fish Taco Citrus Vanilla Cheesecake • • • Pine Fries Maine Lobster Roll House-Made Ice Creams • • • 2 2 options Hanover Inn Burger 2 2 options • 3 3 options XC 2020

  4. 3 3 options SB 1 LP 1 SB 2 SP 1 LP 2 2 2 options LP 3 LP 1 SP 2 LP 2 LP 3 2 2 options XC 2020

  5. SB 1 LP 1 SB 2 SP 1 LP 2 LP 3 nu number 𝟑×𝟒×𝟑 = 𝟐𝟑 LP 1 SP 2 LP 2 LP 3 XC 2020

  6. Le tour du monde en quatre-vingts jours China United States Egypt Brazil Australia Options Airplane § Ferry § Train § XC 2020

  7. Le tour du monde en quatre-vingts jours number nu 2 2 options 𝟒×𝟑×𝟑×𝟑×𝟐 = 𝟑𝟓 2 2 options 3 3 options 2 2 options 1 1 options XC 2020

  8. Lockscreen Password Forgot your password? Maximum number of attempts required is … XC 2020

  9. Lockscreen Password Forgot your password? Maximum number of attempts required is … nu number 𝟐𝟏×𝟐𝟏×𝟐𝟏×𝟐𝟏×𝟐𝟏×𝟐𝟏 = 𝟐𝟏 𝟕 XC 2020

  10. Counting Problems § Experiment is composed of multiple in independent stages. § The numbers of outcomes may be different for each stage. § Examples: restaurant menu, multi-destination travel, password, name initials… § Counting technique: tr tree diagram . ? What does independent mean here? XC 2020

  11. Birthday Problem How many students do we need to have in our hours section to make it favorable bet (that is, probability of " success greater than # ) that two people in the classroom will have the same birthday? XC 2020

  12. Birthday Problem § Ignore leap years in our calculation ( 1𝑧 = 365 𝑒 ). Assume birthdays are equally likely to fall on any particular day. 💮 possibilities § Order the students from 1 to 𝑜 . There are for the birthday of a 💮 possibilities student. There are altogether. XC 2020

  13. Birthday Problem § Ignore leap years in our calculation ( 1𝑧 = 365 𝑒 ). Assume birthdays are equally likely to fall on any particular day. § Order the students from 1 to 𝑜 . There are 365 possibilities for the birthday of a 365 $ possibilities student. There are altogether. XC 2020

  14. Birthdays are different 365 possibilities 365×364 possibilities XC 2020

  15. Birthday Problem § The probability that all birthdays are di ff erent for 𝑜 students: (&'() ! &'( ! . We denote the product 𝑙× 𝑙 − 1 × ⋯× 𝑙 − 𝑠 + 1 by (𝑙) ! (read ‘ 𝑙 down 𝑠 ’ or ‘ 𝑙 lower 𝑠 ’ ). XC 2020

  16. Birthday Problem How many students do we need to have in our hours section to make it favorable bet (that is, probability of " success greater than # ) that two people in the classroom will have the same birthday? pr probabili lity 𝑄 = 1 − 365 $ 365 $ > 1 2 𝑜 = 23, 24, ⋯ XC 2020

  17. Serving Orders The waiter serve one course at a time. How many possible serving orders are there in total? SM SMALL PL PLATES ES LAR LARGE P PLA LATES Order Course SWEET SW EET BITES ES 1 SP 2 LP 3 SB XC 2020

  18. Serving Orders Order 1 2 3 Course SP LP SB Course SP SB LP Course LP SP SB SM SMALL PL PLATES ES Course LP SB SP LARGE P LAR PLA LATES Course SB SP LP SW SWEET EET BITES ES Course SB LP SP 6 = 3×2×1 . ! XC 2020

  19. Serving Orders Order 1 2 3 Course 1 2 3 Course 1 3 2 ES = 𝟐 SMALL PL SM PLATES Course 2 1 3 LATES = 𝟑 Course 2 3 1 LARGE P LAR PLA ES = 𝟒 Course 3 1 2 SW SWEET EET BITES Course 3 2 1 6 = 3×2×1 . ! XC 2020

  20. Combination Lock 80 90 70 0 What is known § The password is a combination of four 60 10 numbers. § The four numbers are 12, 25, 33, and 0 50 2 77. What is unknown 40 30 The order of these four numbers is unknown. XC 2020

  21. Password Number Orders What's the maximum number of tries to open the lock? For ease of notation: § 12 – 1 st , 25 – 2 nd , 33 – 3 rd , 77 – 4 st . Further: § 12 – 1, 25 – 2, 33 – 3, 77 – 4. 1 2 3 4 1 2 3 4 1 2 4 3 1 3 2 4 1 3 4 2 1 4 2 3 1 4 3 2 … … … … XC 2020

  22. 1 st st 3 rd rd 4 st st 2 nd nd 2 3 4 1 3 4 2 4 3 4 24 = 4×3×2×1 . ! XC 2020

  23. Travel orders 1 st stop United States 2 nd stop Brazil 3 rd stop Egypt 4 st stop China 5 st stop Australia Mr. Fogg visit one country at a time. How many possible travel orders are there in total? XC 2020

  24. Permutations § Let 𝐵 be any fi nite set. 2 § A permutation of 𝐵 , 𝜏 , is a one-to-one mapping of 𝐵 onto itself. 2 1 3 § For example, if we have an ordered list 1 3 of elements 𝐵 = {𝑏 " , 𝑏 # , 𝑏 & } , a possible permutation (re-arrangment) can be prescribed by " # & & . 𝜏 = # " XC 2020

  25. Permutations Th Theorem ! The total number of permutations of a set 𝐵 of 𝑜 elements is given by 𝑜! = 𝑜 × (𝑜 − 1) × (𝑜 − 2) × ⋯× 1 . 2 4 3 5 4 2 1 1 3 5 XC 2020

  26. 𝑜 factorial 𝑜! St Stirling’s ’s Formula ! The sequence 𝑜! is asymptotically equal to 𝑜 $ 𝑓 *$ 2𝜌𝑜 . 𝑜 fa facto tori rial St Stirli ling’ g’s Formula la ratio ra 𝑜 1 1 0.9221 1.0844 2 2 1.919 1.0422 3 6 5.8362 1.0281 4 24 23.5062 1.021 5 120 118.0192 1.0168 6 720 710.0782 1.014 … … … … XC 2020

  27. St Stirling’s ’s Formula The sequence 𝑜! is asymptotically equal to 𝑜 $ 𝑓 *$ 2𝜌𝑜 . Birthda day P Problem lem Apply Stirling’s formula to estimate the number ($%&) ! ( of students needed such that 𝑞 " = ) . $%& ! = 𝑜 = 23 . XC 2020

  28. Stirling’s formula 𝒐 𝒐 𝒇 *𝒐 𝟑𝝆𝒐 ra ratio difference ce 𝒐 𝒐! 1 1 0.9221 0.9221 0.0779 2 2 1.919 0.9595 0.081 3 6 5.8362 0.9727 0.1638 4 24 23.5062 0.9794 0.4938 5 120 118.0192 0.9835 1.9808 6 720 710.0782 0.9862 9.9218 7 5040 4980.3958 0.9882 59.6042 8 40320 39902.3955 0.9896 417.6045 ⋯ ⋯ ⋯ ⋯ ⋯ XC 2020

  29. Stirling’s formula XC 2020

  30. Fixed Points § Since a permutation is a one-to-one mapping of the set onto itself, it is of interest to ask how many points (elements) are mapped onto themselves. Such points are called fi fixed po points of the mapping. 2 2 2 1 3 1 2 3 1 3 1 3 2 2 3 1 1 3 XC 2020

  31. Fixed Points § Let 𝑞 , (𝑜) denote the probability that a random permutation of the set {1, 2,· · · , 𝑜} has exactly 𝑙 fi xed points. § What is the probability of no fi xed points for a permutation of a set of 𝑜 elements, 𝑞 - (𝑜) ? This is the famous hat ck problem. ch check 1 2 3 1 2 3 1 3 2 ? 𝑞 - 3 = ⋯ . 2 1 3 2 3 1 3 1 2 3 2 1 XC 2020

  32. Fixed Points § Let 𝑞 , (𝑜) denote the probability that a random permutation of the set {1, 2,· · · , 𝑜} has exactly 𝑙 fi xed points. § What is the probability of no fi xed points for a permutation of a set of 𝑜 elements, 𝑞 - (𝑜) ? This is the famous hat ck problem. ch check 1 2 3 1 2 3 1 3 2 𝑞 - 3 = # &! = " ? & . 2 1 3 2 3 1 3 1 2 3 2 1 XC 2020

  33. Hat Hat Check k Probl oblem m In a restaurant 𝑜 hats are checked and they are hopelessly scrambled. What is the probability that no one gets his own hat back? XC 2020

  34. Hat Check Problem § Nu Number of derangements ts 𝑬 𝟏 (𝒐) § If there is a derangement, then man #1 will not have his correct hat. § We begin by looking at the case where man #1 gets hat #2 . Note that this case can be broken down into two subcases: a) man #2 gets hat #1 , or b) man #2 does not get hat #1 XC 2020

  35. Hat Check Problem § Nu Number of derangements ts 𝑬 𝟏 (𝒐) § In case (a), for a derangement to occur, we need the remaining 𝑜 − 2 men to get the wrong hats. Therefore, the total number of derangements in this subcase is simply 𝐸 - (𝑜 − 2) . § In case (b), for a derangement to occur, man #2 cannot get hat #1 (that’s case a), man #3 cannot get hat #3 , man #𝑗 cannot get hat #𝑗 , etc. In this subcase, the number of derangements is 𝐸 - (𝑜 − 1) . XC 2020

  36. Hat Check Problem § Nu Number of derangements ts 𝑬 𝟏 (𝒐) § We can treat the cases where man #1 receives hat #3 , or hat #4 , or hat #𝑗 , in exactly the same way. § Therefore, to account for all possible derangements, there are 𝑜 − 1 such possibilities for all the different incorrect hats which man #1 can get. 𝐸 - (𝑜) = 𝑜 − 1 [𝐸 - 𝑜 − 1 + 𝐸 - 𝑜 − 2 ] . XC 2020

Recommend


More recommend