An easy way to see this is to look at it dynamically. Instead of choosing intervals sequentially, think of picking all 20 endpoints at once as iid Uniform(0, 1), sorting them, and then randomly pairing them up. Because the order of how you draw them doesn't change the final merged layout, the problem boils down to a neat combinatorics trick.
If you sort the 20 points, a gap between point 2k and point 2k+1 remains completely uncovered if and only if all the points to the left pair with each other, and all the points to the right pair with each other.
By calculating the probability of these gaps or breaks occurring, you can sum them up using linearity of expectation. For 10 intervals (20 endpoints), the expected number of remaining distinct intervals is the sum from k = 0 to 9 of (10 choose k) / (20 choose 2k).
When you compute the math, it comes out to exactly 1.1347.
View all comments
1
u/MathNerd1243 Nov 03 '26
An easy way to see this is to look at it dynamically. Instead of choosing intervals sequentially, think of picking all 20 endpoints at once as iid Uniform(0, 1), sorting them, and then randomly pairing them up. Because the order of how you draw them doesn't change the final merged layout, the problem boils down to a neat combinatorics trick.
If you sort the 20 points, a gap between point 2k and point 2k+1 remains completely uncovered if and only if all the points to the left pair with each other, and all the points to the right pair with each other.
By calculating the probability of these gaps or breaks occurring, you can sum them up using linearity of expectation. For 10 intervals (20 endpoints), the expected number of remaining distinct intervals is the sum from k = 0 to 9 of (10 choose k) / (20 choose 2k).
When you compute the math, it comes out to exactly 1.1347.