SlideShare a Scribd company logo
1 of 1
Download to read offline
Solution
Week 48 (8/11/03)
The hotel problem
In figuring out the probability for success (choosing the cheapest hotel), it is conve-
nient to organize the different cases according to what the highest ranking hotel (in
order of cheapness) in the first fraction x is. Let H1 denote the cheapest hotel, H2
the second cheapest, etc.
Assume that H1 is among the first x, which happens with probability x. In this
case, there is failure.
Assume that H2 is the cheapest among the first x, which happens with proba-
bility x(1−x). This is the probability that H2 is in the first x, times the probability
that H1 is not.1 In this case, we have success.
Assume that H3 is the cheapest among the first x, which happens with proba-
bility x(1 − x)2 (again, see the remark below). This is the probability that H3 is in
the first x, times the probability that H2 is not, times the probability that H1 also
is not. In this case, we have success 1/2 of the time, because only 1/2 of the time
H1 will come before H2.
Continuing in this fashion, we see that the probability for success, P, is
P(x) = x(1 − x) +
1
2
x(1 − x)2
+
1
3
x(1 − x)3
+ · · ·
=
k=1
1
k
x(1 − x)k
. (1)
The 1/k factor comes from the probability that H1 is first among the top k hotels
which lie in the final (1 − x) fraction. Using the expansion ln(1 − y) = −(y + y2/2 +
y3/3 + · · ·), with y = 1 − x, we obtain
P(x) = −x ln x. (2)
Taking the derivative, we see that P(x) is maximized when x = 1/e, in which case
the value is 1/e. Therefore, you want to pass up 1/e ≈ 37% of the hotels, and then
pick the next one that is better than all the ones you’ve seen. Your chance of getting
the best one is 1/e ≈ 37%.
Remark: For sufficiently large N, the probabilities in eq. (1) are arbitrarily close to
x(1 − x)k
/k, for small values of k. But each successive term in eq. (1) is suppressed by a
factor of at least (1 − 1/e). The terms therefore become negligibly small at a k value that is
independent of N. The only significant contribution to the sum therefore comes from small
values of k, for which the given probabilities are essentially correct.
1
The (1 − x) factor is technically not correct, because there are only N − 1 spots available for
H1, given that H2 has been placed. But the error is negligible for large N. See the remark below.
1

More Related Content

What's hot

Statistics Formulae for School Students
Statistics Formulae for School StudentsStatistics Formulae for School Students
Statistics Formulae for School Studentsdhatiraghu
 
Bernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial DistributionBernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial DistributionDataminingTools Inc
 
Poisson Distribution, Poisson Process & Geometric Distribution
Poisson Distribution, Poisson Process & Geometric DistributionPoisson Distribution, Poisson Process & Geometric Distribution
Poisson Distribution, Poisson Process & Geometric DistributionDataminingTools Inc
 
Chapter 2 Probabilty And Distribution
Chapter 2 Probabilty And DistributionChapter 2 Probabilty And Distribution
Chapter 2 Probabilty And Distributionghalan
 
Binomial and Poisson Distribution
Binomial and Poisson  DistributionBinomial and Poisson  Distribution
Binomial and Poisson DistributionSundar B N
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distributionSaradha Shyam
 
Quantitative Methods for Management_MBA_Bharathiar University probability dis...
Quantitative Methods for Management_MBA_Bharathiar University probability dis...Quantitative Methods for Management_MBA_Bharathiar University probability dis...
Quantitative Methods for Management_MBA_Bharathiar University probability dis...Victor Seelan
 
6.6 normal approx p hat
6.6 normal approx p hat6.6 normal approx p hat
6.6 normal approx p hatleblance
 
Normal distribution
Normal distributionNormal distribution
Normal distributionAlok Roy
 
Kenny’S Potw Solution
Kenny’S Potw SolutionKenny’S Potw Solution
Kenny’S Potw Solutionbacknblac77
 
Chapter 4 part3- Means and Variances of Random Variables
Chapter 4 part3- Means and Variances of Random VariablesChapter 4 part3- Means and Variances of Random Variables
Chapter 4 part3- Means and Variances of Random Variablesnszakir
 
Discreet and continuous probability
Discreet and continuous probabilityDiscreet and continuous probability
Discreet and continuous probabilitynj1992
 
Notes Day 6: Bernoulli Trials
Notes Day 6: Bernoulli TrialsNotes Day 6: Bernoulli Trials
Notes Day 6: Bernoulli TrialsKate Nowak
 
February 17 Blackboards
February 17 BlackboardsFebruary 17 Blackboards
February 17 Blackboardsyukondawn
 
Random variables and probability distributions
Random variables and probability distributionsRandom variables and probability distributions
Random variables and probability distributionsAntonio F. Balatar Jr.
 

What's hot (16)

Statistics Formulae for School Students
Statistics Formulae for School StudentsStatistics Formulae for School Students
Statistics Formulae for School Students
 
Bernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial DistributionBernoullis Random Variables And Binomial Distribution
Bernoullis Random Variables And Binomial Distribution
 
Poisson Distribution, Poisson Process & Geometric Distribution
Poisson Distribution, Poisson Process & Geometric DistributionPoisson Distribution, Poisson Process & Geometric Distribution
Poisson Distribution, Poisson Process & Geometric Distribution
 
Chapter 2 Probabilty And Distribution
Chapter 2 Probabilty And DistributionChapter 2 Probabilty And Distribution
Chapter 2 Probabilty And Distribution
 
Binomial and Poisson Distribution
Binomial and Poisson  DistributionBinomial and Poisson  Distribution
Binomial and Poisson Distribution
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
Quantitative Methods for Management_MBA_Bharathiar University probability dis...
Quantitative Methods for Management_MBA_Bharathiar University probability dis...Quantitative Methods for Management_MBA_Bharathiar University probability dis...
Quantitative Methods for Management_MBA_Bharathiar University probability dis...
 
6.6 normal approx p hat
6.6 normal approx p hat6.6 normal approx p hat
6.6 normal approx p hat
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
Kenny’S Potw Solution
Kenny’S Potw SolutionKenny’S Potw Solution
Kenny’S Potw Solution
 
Chapter 4 part3- Means and Variances of Random Variables
Chapter 4 part3- Means and Variances of Random VariablesChapter 4 part3- Means and Variances of Random Variables
Chapter 4 part3- Means and Variances of Random Variables
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
Discreet and continuous probability
Discreet and continuous probabilityDiscreet and continuous probability
Discreet and continuous probability
 
Notes Day 6: Bernoulli Trials
Notes Day 6: Bernoulli TrialsNotes Day 6: Bernoulli Trials
Notes Day 6: Bernoulli Trials
 
February 17 Blackboards
February 17 BlackboardsFebruary 17 Blackboards
February 17 Blackboards
 
Random variables and probability distributions
Random variables and probability distributionsRandom variables and probability distributions
Random variables and probability distributions
 

Viewers also liked (20)

Fisica
FisicaFisica
Fisica
 
Sol66
Sol66Sol66
Sol66
 
Sol58
Sol58Sol58
Sol58
 
Sol65
Sol65Sol65
Sol65
 
Sol56
Sol56Sol56
Sol56
 
Sol64
Sol64Sol64
Sol64
 
Sol42
Sol42Sol42
Sol42
 
Learn and Share event 25th February 2015 NCVO volunteering in care homes proj...
Learn and Share event 25th February 2015 NCVO volunteering in care homes proj...Learn and Share event 25th February 2015 NCVO volunteering in care homes proj...
Learn and Share event 25th February 2015 NCVO volunteering in care homes proj...
 
Criminalistica
CriminalisticaCriminalistica
Criminalistica
 
Sol40
Sol40Sol40
Sol40
 
resume_A Busel 3_23_15
resume_A Busel 3_23_15resume_A Busel 3_23_15
resume_A Busel 3_23_15
 
Sol61
Sol61Sol61
Sol61
 
Green Dentistry
Green DentistryGreen Dentistry
Green Dentistry
 
Sol54
Sol54Sol54
Sol54
 
Sol60
Sol60Sol60
Sol60
 
Sol43
Sol43Sol43
Sol43
 
Jurnal ilmiah hapalan shalat delisa
Jurnal ilmiah hapalan shalat delisaJurnal ilmiah hapalan shalat delisa
Jurnal ilmiah hapalan shalat delisa
 
Sol57
Sol57Sol57
Sol57
 
Sol44
Sol44Sol44
Sol44
 
Sol51
Sol51Sol51
Sol51
 

Similar to Sol48

Econometrics 2.pptx
Econometrics 2.pptxEconometrics 2.pptx
Econometrics 2.pptxfuad80
 
lloydtabios2014
lloydtabios2014lloydtabios2014
lloydtabios2014benjlloyd
 
benjielloyd1234
benjielloyd1234benjielloyd1234
benjielloyd1234benjlloyd
 
lloydtabios2014
lloydtabios2014lloydtabios2014
lloydtabios2014benjlloyd
 
Interpretation of coefficients Linear and Logistic regression
Interpretation of coefficients Linear and Logistic regressionInterpretation of coefficients Linear and Logistic regression
Interpretation of coefficients Linear and Logistic regressionAnkit Sharma
 
Expectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptExpectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptAlyasarJabbarli
 
553_Final_Project_Bokser_Litalien
553_Final_Project_Bokser_Litalien553_Final_Project_Bokser_Litalien
553_Final_Project_Bokser_LitalienRory Bokser
 
Probability and Statistics
Probability and StatisticsProbability and Statistics
Probability and StatisticsMalik Sb
 
Mba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsMba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsRai University
 
Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Vijay Hemmadi
 
Mit2 092 f09_lec23
Mit2 092 f09_lec23Mit2 092 f09_lec23
Mit2 092 f09_lec23Rahman Hakim
 
Discussion about random variable ad its characterization
Discussion about random variable ad its characterizationDiscussion about random variable ad its characterization
Discussion about random variable ad its characterizationGeeta Arora
 

Similar to Sol48 (20)

Berans qm overview
Berans qm overviewBerans qm overview
Berans qm overview
 
Sol78
Sol78Sol78
Sol78
 
Sol78
Sol78Sol78
Sol78
 
SAS Homework Help
SAS Homework HelpSAS Homework Help
SAS Homework Help
 
Econometrics 2.pptx
Econometrics 2.pptxEconometrics 2.pptx
Econometrics 2.pptx
 
lloydtabios2014
lloydtabios2014lloydtabios2014
lloydtabios2014
 
benjielloyd1234
benjielloyd1234benjielloyd1234
benjielloyd1234
 
lloydtabios2014
lloydtabios2014lloydtabios2014
lloydtabios2014
 
lecture4.ppt
lecture4.pptlecture4.ppt
lecture4.ppt
 
Interpretation of coefficients Linear and Logistic regression
Interpretation of coefficients Linear and Logistic regressionInterpretation of coefficients Linear and Logistic regression
Interpretation of coefficients Linear and Logistic regression
 
Expectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptExpectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.ppt
 
553_Final_Project_Bokser_Litalien
553_Final_Project_Bokser_Litalien553_Final_Project_Bokser_Litalien
553_Final_Project_Bokser_Litalien
 
Probability and Statistics
Probability and StatisticsProbability and Statistics
Probability and Statistics
 
Mba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsMba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributions
 
Summer Proj.
Summer Proj.Summer Proj.
Summer Proj.
 
polynomial
 polynomial  polynomial
polynomial
 
Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis Introduction to probability distributions-Statistics and probability analysis
Introduction to probability distributions-Statistics and probability analysis
 
Mit2 092 f09_lec23
Mit2 092 f09_lec23Mit2 092 f09_lec23
Mit2 092 f09_lec23
 
104newton solution
104newton solution104newton solution
104newton solution
 
Discussion about random variable ad its characterization
Discussion about random variable ad its characterizationDiscussion about random variable ad its characterization
Discussion about random variable ad its characterization
 

More from eli priyatna laidan

Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2eli priyatna laidan
 
Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5eli priyatna laidan
 
Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4eli priyatna laidan
 
Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3eli priyatna laidan
 
Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2eli priyatna laidan
 
Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1eli priyatna laidan
 
Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)eli priyatna laidan
 
Soal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didikSoal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didikeli priyatna laidan
 
Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017eli priyatna laidan
 
Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2eli priyatna laidan
 

More from eli priyatna laidan (20)

Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2
 
Soal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.netSoal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.net
 
Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5
 
Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4
 
Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3
 
Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2
 
Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1
 
Soal up akmal
Soal up akmalSoal up akmal
Soal up akmal
 
Soal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannyaSoal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannya
 
Soal tes wawasan kebangsaan
Soal tes wawasan kebangsaanSoal tes wawasan kebangsaan
Soal tes wawasan kebangsaan
 
Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)
 
Soal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didikSoal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didik
 
Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017
 
Rekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogiRekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogi
 
Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2
 
Bank soal ppg
Bank soal ppgBank soal ppg
Bank soal ppg
 
Soal cpns-paket-17
Soal cpns-paket-17Soal cpns-paket-17
Soal cpns-paket-17
 
Soal cpns-paket-14
Soal cpns-paket-14Soal cpns-paket-14
Soal cpns-paket-14
 
Soal cpns-paket-13
Soal cpns-paket-13Soal cpns-paket-13
Soal cpns-paket-13
 
Soal cpns-paket-12
Soal cpns-paket-12Soal cpns-paket-12
Soal cpns-paket-12
 

Sol48

  • 1. Solution Week 48 (8/11/03) The hotel problem In figuring out the probability for success (choosing the cheapest hotel), it is conve- nient to organize the different cases according to what the highest ranking hotel (in order of cheapness) in the first fraction x is. Let H1 denote the cheapest hotel, H2 the second cheapest, etc. Assume that H1 is among the first x, which happens with probability x. In this case, there is failure. Assume that H2 is the cheapest among the first x, which happens with proba- bility x(1−x). This is the probability that H2 is in the first x, times the probability that H1 is not.1 In this case, we have success. Assume that H3 is the cheapest among the first x, which happens with proba- bility x(1 − x)2 (again, see the remark below). This is the probability that H3 is in the first x, times the probability that H2 is not, times the probability that H1 also is not. In this case, we have success 1/2 of the time, because only 1/2 of the time H1 will come before H2. Continuing in this fashion, we see that the probability for success, P, is P(x) = x(1 − x) + 1 2 x(1 − x)2 + 1 3 x(1 − x)3 + · · · = k=1 1 k x(1 − x)k . (1) The 1/k factor comes from the probability that H1 is first among the top k hotels which lie in the final (1 − x) fraction. Using the expansion ln(1 − y) = −(y + y2/2 + y3/3 + · · ·), with y = 1 − x, we obtain P(x) = −x ln x. (2) Taking the derivative, we see that P(x) is maximized when x = 1/e, in which case the value is 1/e. Therefore, you want to pass up 1/e ≈ 37% of the hotels, and then pick the next one that is better than all the ones you’ve seen. Your chance of getting the best one is 1/e ≈ 37%. Remark: For sufficiently large N, the probabilities in eq. (1) are arbitrarily close to x(1 − x)k /k, for small values of k. But each successive term in eq. (1) is suppressed by a factor of at least (1 − 1/e). The terms therefore become negligibly small at a k value that is independent of N. The only significant contribution to the sum therefore comes from small values of k, for which the given probabilities are essentially correct. 1 The (1 − x) factor is technically not correct, because there are only N − 1 spots available for H1, given that H2 has been placed. But the error is negligible for large N. See the remark below. 1