Ivan Shishkin, Rye (1878)

Problems/CombinatoricsReviewed

Keeper’s keys issue

by Sequoia·
23
Difficulty scaleÉchelle de difficulté

This score reflects both the level of the required concepts and the difficulty of the solution.Ce score tient compte à la fois du niveau des notions nécessaires et de la difficulté de la résolution.

  1. 110First steps / middle schoolPremiers pas / collège
  2. 1125Beginner / high schoolDébutant / lycée
  3. 2650Intermediate / undergraduateIntermédiaire / licence
  4. 5170Advanced / graduateAvancé / master
  5. 7190Expert / specializedExpert / spécialisé
  6. 91100Research levelNiveau recherche
These levels are approximate guides.Ces niveaux sont des repères approximatifs.
·
English
EnglishFrançais
  1. Let us imagine you work at night but you’ve just visited your friends and had a lot to drink. You stand in front of your workplace door and take out nn keys from your pocket and drop them on the floor. However, you don’t remember which key opens the door.
    So you decide to try the first one you see. If it works, then good for you, but if it does not, you drop it on the ground in the middle of all the other keys. Of course, since you are drunk, you don’t remember where the key you just tried is. And you repeat the same process until you open the door.

What is the probability that it is the kk-th key which opens the door?

  1. After spending the whole night trying to open the door, you decide to drink only tomato juice with your friends before going to work. You still don’t remember which key opens your workplace door but you now have a strategy and you put away any key you try that does not open the door.

In this new situation, what is again the probability that it is the kk-th key which opens the door?

I solved itMark it doneAdd to my listKeep it in your list

Solutions

1
Reveal solutionsAre you sure? Give it a try first.

Solution by SequoiaFR

Discussions0 useful votes
  1. Disons que la première clef n’ouvre pas la porte, elle fait donc parti des n1n-1 clefs qui n’ouvre pas la porte parmi les nn. Cette événement a donc une probabilité n1n\frac{n-1}{n} de survenir.
    La seconde clef n’ouvre toujours pas la porte avec la même probabilité, ce qui rajoute un facteur n1n\frac{n-1}{n}. On itère ce raisonnement jusqu’à la k1k-1-ème clef qui n’ouvre pas la porte. Tout cela est donc un événement de probabilité (n1n)k1\left(\frac{n-1}{n}\right)^{k-1}, où l’on peut tout multiplier par indépendance.
    Mais la kk-ème clef va ouvrir la porte ! Ainsi cet événement a une probabilité 1n\frac{1}{n} d’advenir car on choisit une clef sur nn.
    Finalement, la probabilité que la kk-ème clef ouvre la porte suit une loi géométrique de paramètre 1n\frac{1}{n}, le résultat est donc (n1n)k11n\left(\frac{n-1}{n}\right)^{k-1}\,\frac{1}{n}.

2.La différence maintenant est que le gardien fait attention à la clef qu’il utilise. Disons que la première clef n’ouvre pas la porte, cela a donc une probabilité n1n\frac{n-1}{n} d’arriver, rien ne change pour l’instant.
Mais maintenant on met cette mauvaise clef de côté, il en reste donc n1n-1. Si on en choisit une mauvaise, cela a une probabilité n2n1\frac{n-2}{n-1} d’arriver (n2n-2 mauvaises clefs dans les n1n-1).
Maintenant il reste donc n2n-2 clefs devant nous. On peut ainsi prolonger ce raisonnement jusqu’à ce qu’on ait tiré k1k-1 mauvaises clefs (donc il en reste n(k1)=nk+1n-(k-1)=n-k+1). On multiplie alors les probabilités pour trouver:
n1nn2n1n3n2nk+2nk+3nk+1nk+2\frac{n-1}{n}\frac{n-2}{n-1}\frac{n-3}{n-2}\cdots\frac{n-k+2}{n-k+3}\frac{n-k+1}{n-k+2}Mais on remarque que n1n-1 se simplifie, ainsi que n2n-2, n3,,n-3,\dots, jusqu’à nk+1n-k+1 qui, lui, va rester.
On trouve ainsi nk+1n\frac{n-k+1}{n}.
Mais maintenant il nous reste à tirer la bonne clef parmi les nk+1n-k+1 restante, événement de probabilité 1nk+1\frac{1}{n-k+1} qui, multiplié par le résultat précédent, donne 1n\frac{1}{n}. Ainsi notre probabilité finale vaut 1n\frac{1}{n}. Elle ne dépend pas de kk !

Report

For an unclear, ambiguous, or possibly incorrect statement, please use the Discussion tab on the right. Report content that needs moderator intervention, such as dangerous, clearly non-mathematical, or plagiarized content.