A person has 8 keys, only one of which opens a door. They try the keys at random, excluding the used keys from further selection. We need to find the probability distribution of the number of keys needed to open the door. Let $X$ be the random variable representing the number of keys tried until the correct key is found. $X$ can take values from 1 to 8.
Probability and StatisticsProbabilityDiscrete Probability DistributionRandom VariableConditional ProbabilityPermutations
2025/4/22
1. Problem Description
A person has 8 keys, only one of which opens a door. They try the keys at random, excluding the used keys from further selection. We need to find the probability distribution of the number of keys needed to open the door. Let be the random variable representing the number of keys tried until the correct key is found. can take values from 1 to
8.
2. Solution Steps
We want to find for .
- : The probability that the first key tried is the correct key. Since there is only one correct key out of 8, .
- : The probability that the first key is incorrect and the second key is correct. The probability that the first key is incorrect is . Given that the first key is incorrect, there are 7 keys remaining, and only 1 is correct. So, the probability that the second key is correct is . Therefore, .
- : The probability that the first two keys are incorrect and the third key is correct. The probability that the first key is incorrect is . Given that the first key is incorrect, the probability that the second key is incorrect is . Given that the first two keys are incorrect, the probability that the third key is correct is . Therefore, .
- : In general, the probability that the first keys are incorrect and the -th key is correct is:
.
Therefore, for .
3. Final Answer
The probability distribution is for .