Expected items until two defects in a row
A machine produces items that are independently defective with probability . An inspector watches the stream and stops the moment two defective items appear back to back.
What is the expected number of items inspected until the inspector stops?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion Β· reading is open to everyone
π‘ Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussionβ¦
Learn the concepts
The theory behind this question.
Related questions
Expected rolls to get two sixes in a rowExpected flips to get two heads in a rowExpected spins to land red twice in a rowExpected draws to get two spades in a rowRandom walk on a square to the opposite corner
All questions β