I had previously asked the following question from my probability textbook:
If two points be taken at random on a finite straight line their average distance apart will be one third of the line.
See here: Integrating $\int_0^1 \int_0^1 |x-y|\,\text{d}x\,\text{d}y$ by hand
Basically, it boils down to calculating ${\int_0^1 \int_0^1 |x-y|\,\text{d}x\,\text{d}y} = {1\over3}$.
It turns out this question had been asked before a long time ago, see here: Average Distance Between Random Points on a Line Segment
Now, my probability textbook also asks the following generalization:
If $n$ points be taken at random on a finite line the average distance between any two consecutive points will be one $(n+1)$th of the line.
My question is, how do I go about showing this? How should go about generalizing my previous integral of ${\int_0^1 \int_0^1 |x-y|\,\text{d}x\,\text{d}y}$? Any help would be well-appreciated.