A coin of random bias, then twenty flips
A coin is manufactured so that its probability of heads, , is a random number spread evenly between and (uniform on ). Once is fixed, you flip that coin times.
How many heads should you expect? As a follow-up, what if is instead spread evenly between and ?
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
Random defect rate, then inspect twelve itemsEach archer's accuracy is random, then sixteen shotsPick a coin from a mixed bag, then flip ten timesA die picks the bias, then eight flipsAn amoeba that dies, stays, or splits each minute
All questions →