From 7 keys 2 fit the lock. What is the probability to pick the correct key in no more…
- User
From 7 keys 2 fit the lock. What is the probability to pick the correct key in no more than 3 tries if when bad key is picked it is removed from those 7? Answer is 5/7.
- Assistant
Let's analyze the situation step by step.
- On the first try, there are 2 correct keys and 5 incorrect keys, so the probability of picking a correct key is 2/7.
- If the first try is unsuccessful, one incorrect key has been removed and there are 6 keys left: 2 correct and 4 incorrect. The probability of choosing a correct key on the second try is 2/6, or 1/3.
- If both the first and second tries are unsuccessful, 2 incorrect keys have been removed and there are 5 keys left: 2 correct and 3 incorrect. The probability of choosing a correct key on the third try is 2/5.
Now we need to find the probability of choosing a correct key in no more than 3 tries.
- The probability of choosing a correct key on the first try is already 2/7.
- If the first try was unsuccessful, then the probability of choosing a correct key on the second try is (5/7)*(1/3), which is 5/21.
- If both the first and second tries were unsuccessful, the probability of choosing a correct key on the third try is (5/7)(2/5), which is 2/21.