Welcome to Westonci.ca, the Q&A platform where your questions are met with detailed answers from experienced experts. Experience the convenience of finding accurate answers to your questions from knowledgeable professionals on our platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

A woman has eight keys on a key ring, one of which fits the door she wants to unlock. Sherandomly selects a key and tries it. If it does not unlock the door, she randomly selects anotherkey from those remaining and tries to unlock the door with it. She continues in this manner untilthe door is unlocked. LetXbe the number of keys she tries before unlocking the door, countingthe key that actually worked. Find the expected number of keys she will try before she opensthe door.

Sagot :

Answer:

The expected number of keys she will try before she opens the door is 4.5.

Step-by-step explanation:

Probability of opening with the first key:

One key out of 8 working, so: 1/8 probability of opening with the first key, that is:

[tex]P(X = 1) = \frac{1}{8}[/tex]

Probability of opening with the second key:

Doesn't work on the first(7/8 probability), works on the second(1/7 probability). So

[tex]P(X = 2) = \frac{7}{8}*\frac{1}{7} = \frac{1}{8}[/tex]

Following the logic:

For each value of x from 1 to 8, we have that [tex]P(X = x) = \frac{1}{8}[/tex]

Find the expected number of keys she will try before she opens the door.

Each outcome multiplied by its probability. So

[tex]E(X) = 1\frac{1}{8} + 2\frac{1}{8} + 3\frac{1}{8} + 4\frac{1}{8} + 5\frac{1}{8} + 6\frac{1}{8} + 7\frac{1}{8} + 8\frac{1}{8} = \frac{1+2+3+4+5+6+7+8}{8} = 4.5[/tex]

The expected number of keys she will try before she opens the door is 4.5.