You are going to visit apartments, one after another. Each apartment is assigned a score drawn uniformly from , independently of the others.
After each visit, you have two choices: take it (and the search ends there) or move on to the next one. An apartment you reject is gone for good, and if you reject the first , you are required to take the last one.
Your goal is to make the score of the apartment you choose as high as possible, on average.
You visit the first apartment. Its score is . Do you take it?
References
- Youtube "PRIOR"
Details
Export references
Hints
3Hint 1
Open this only if you want a small nudge before looking at the solutions.
Solutions
1Reveal solutionsAre you sure? Give it a try first.
On raisonne à rebours. Notons la note espérée obtenue en jouant de
façon optimale lorsqu’il reste appartements à visiter (celui qu’on a
sous les yeux compris).
Cas intitial : S’il n’en reste qu’un, on est forcé de le
prendre :
Récurrence. Quand il reste appartements, on observe la
note courante : la garder rapporte , la refuser rapporte en
moyenne. On garde donc si et seulement si : le seuil
d’acceptation est exactement . La note espérée est la moyenne sur
du meilleur des deux choix :
Calcul de la suite : En itérant depuis :
Conclusion. Au premier appartement, il reste visites,
donc le seuil vaut . Comme , on
refuse : la note est bonne dans l’absolu, mais il reste bien trop de
tirages devant soi pour se contenter de . En jouant ainsi jusqu’au
bout, on obtient en moyenne .
