MATH 20: PROBABILITY
Lecture 3: Permutations Xingru Chen xingru.chen.gr@dartmouth.edu
XC 2020
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
Lecture 3: Permutations Xingru Chen xingru.chen.gr@dartmouth.edu
XC 2020
2 East Wheelock Street, Hanover, NH
XC 2020
SM SMALL PL PLATES ES LAR LARGE P PLA LATES SW SWEET EET BITES ES
Cauliflower
Fries 2 2
Fish Taco
Lobster Roll
Inn Burger 3 3
Vanilla Cheesecake
Ice Creams 2 2
XC 2020
SP 1 SP 2 LP 1 LP 2 LP 3 LP 1 LP 2 LP 3
SB 1 SB 2
2 2
3 3
2 2
XC 2020
SP 1 SP 2 LP 1 LP 2 LP 3 LP 1 LP 2 LP 3
SB 1 SB 2
nu number ๐ร๐ร๐ = ๐๐
XC 2020
ยง Airplane ยง Ferry ยง Train
Options
United States Brazil Egypt China Australia
XC 2020
2 2
2 2
2 2
3 3
1 1
nu number ๐ร๐ร๐ร๐ร๐ = ๐๐
XC 2020
Forgot your password? Maximum number
attempts required is โฆ
XC 2020
Forgot your password? Maximum number
attempts required is โฆ nu number ๐๐ร๐๐ร๐๐ร๐๐ร๐๐ร๐๐ = ๐๐๐
XC 2020
ยง Experiment is composed
multiple in independent stages. ยง The numbers
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
How many students do we need to have in
hours section to make it favorable bet (that is, probability
success greater than "
#)
that two people in the classroom will have the same birthday?
XC 2020
ยง Ignore leap years in
calculation (1๐ง = 365 ๐). Assume birthdays are equally likely to fall
any particular day. ยง Order the students from 1 to ๐. There are ๐ฎ possibilities for the birthday
a
are ๐ฎ possibilities altogether.
XC 2020
ยง Ignore leap years in
calculation (1๐ง = 365 ๐). Assume birthdays are equally likely to fall
any particular day. ยง Order the students from 1 to ๐. There are 365 possibilities for the birthday
a
are 365$ possibilities altogether.
XC 2020
365 possibilities 365ร364 possibilities
XC 2020
ยง The probability that all birthdays are different for ๐ students:
(&'()! &'(! .
We denote the product ๐ร ๐ โ 1 ร โฏร ๐ โ ๐ + 1 by (๐)! (read โ๐ down ๐ โ or โ๐ lower ๐ โ).
XC 2020
How many students do we need to have in
hours section to make it favorable bet (that is, probability
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
The waiter serve
course at a
many possible serving
are there in total? Order Course 1 SP 2 LP 3 SB
SM SMALL PL PLATES ES LAR LARGE P PLA LATES SW SWEET EET BITES ES
XC 2020
Order 1 2 3 Course SP LP SB Course SP SB LP Course LP SP SB Course LP SB SP Course SB SP LP Course SB LP SP
SM SMALL PL PLATES ES LAR LARGE P PLA LATES SW SWEET EET BITES ES
6 = 3ร2ร1.
XC 2020
Order 1 2 3 Course 1 2 3 Course 1 3 2 Course 2 1 3 Course 2 3 1 Course 3 1 2 Course 3 2 1
SM SMALL PL PLATES ES = ๐ LAR LARGE P PLA LATES = ๐ SW SWEET EET BITES ES = ๐
6 = 3ร2ร1.
XC 2020
The
these four numbers is unknown.
ยง The password is a combination of four numbers. ยง The four numbers are 12, 25, 33, and 77.
XC 2020
What's the maximum number
tries to
the lock? For ease
notation: ยง 12 โ 1st, 25 โ 2nd, 33 โ 3rd, 77 โ 4st. 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
rd
st
nd
st
24 = 4ร3ร2ร1.
3 1 2 4 3 2 4 3 4 4
XC 2020
Australia
5st stop
China
4st stop
Egypt
3rd stop
Brazil
2nd stop
United States
1st stop
visit
country at a
many possible travel
are there in total?
XC 2020
ยง Let ๐ต be any finite set. ยง A permutation
๐ต, ๐, is a
mapping
๐ต onto itself. ยง For example, if we have an
list
elements ๐ต = {๐" , ๐#, ๐&}, a possible permutation (re-arrangment) can be prescribed by ๐ =
" # & # " & .
2 1 3 1 2 3
XC 2020
Th Theorem The total number
permutations
a set ๐ต of ๐ elements is given by ๐! = ๐ ร (๐ โ 1) ร (๐ โ 2) ร โฏร 1. 3 5 4 2 1 1 2 3 4 5
XC 2020
St Stirlingโs โs Formula The sequence ๐! is asymptotically equal to ๐$๐*$ 2๐๐.
๐ ๐ fa facto tori rial St Stirli lingโ gโs Formula la ra ratio 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
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
students needed such that ๐" =
($%&)! $%&! = ( ).
๐ = 23.
XC 2020
๐ ๐! ๐๐๐*๐ ๐๐๐ 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
XC 2020
ยง Since a permutation is a
mapping
the set
itself, it is
interest to ask how many points (elements) are mapped
points are called fi fixed po points of the mapping.
1 2 3 1 2 3 2 1 3 1 2 3 2 3 1 1 2 3
XC 2020
ยง Let ๐,(๐) denote the probability that a random permutation
the set {1, 2,ยท ยท ยท , ๐} has exactly ๐ fixed points. ยง What is the probability
no fixed points for a permutation
a set
๐ elements, ๐-(๐)? This is the famous hat ch check ck problem.
1 2 3 1 2 3 1 3 2 2 1 3 2 3 1 3 1 2 3 2 1
๐- 3 = โฏ.
XC 2020
ยง Let ๐,(๐) denote the probability that a random permutation
the set {1, 2,ยท ยท ยท , ๐} has exactly ๐ fixed points. ยง What is the probability
no fixed points for a permutation
a set
๐ elements, ๐-(๐)? This is the famous hat ch check ck problem.
1 2 3 1 2 3 1 3 2 2 1 3 2 3 1 3 1 2 3 2 1
๐- 3 = #
&! = " &.
XC 2020
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
ยง 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,
b) man #2 does not get hat #1
XC 2020
ยง In case (a), for a derangement to
we need the remaining ๐ โ 2 men to get the wrong
the total number
derangements in this subcase is simply ๐ธ-(๐ โ 2). ยง In case (b), for a derangement to
man #2 cannot get hat #1 (thatโs case a), man #3 cannot get hat #3, man #๐ cannot get hat #๐,
this subcase, the number
derangements is ๐ธ-(๐ โ 1).
XC 2020
ยง We can treat the cases where man #1 receives hat #3,
hat #4,
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
=! .
= [๐; ๐ โ 1 โ ๐@(๐ โ 2)].
XC 2020
= [๐; ๐ โ 1 โ ๐@(๐ โ 2)].
ยง ๐- 1 = 0, ๐- 2 = "
#.
ยง ๐- 3 = ๐- 2 โ "
& ๐- 2 โ ๐/ 1
= "
# โ " '.
ยง ๐- 4 = ๐- 3 โ "
0 ๐- 3 โ ๐/ 2
= "
# โ " ' + " #0.
ยง โฏ
XC 2020
A! โ ? B! + ? C! โ ? D! + โฏ + (E?)" =! .
XC 2020
A! โ ? B! + ? C! โ ? D! + โฏ + (E?)" =! .
๐1 = 1 + ๐ฆ + "
#! ๐ฆ# + โฏ + " $! ๐ฆ$ + โฏ.
XC 2020
๐1 = 1 + ๐ฆ + "
#! ๐ฆ# + โฏ + " $! ๐ฆ$ + โฏ.
๐ฆ = โ1 ๐*" = "
#! โ " &! + " 0! โ " (! + โฏ + *" ! $!
+ โฏ โ .3679.
XC 2020
XC 2020
XC 2020