Qm

Expected gap between the top two of five

Draw 5 independent numbers uniformly from [0,1][0,1] and sort them.

What is the expected gap between the largest and the second largest?

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

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Expected distance between two random points on a ropeExpected maximum of uniform random variablesWhere does the k-th smallest uniform land?Expected range of n uniformsExpected value of the second largest of four
All questions →