Mean Distance

Geometry Level 2

Choose two points on a line segment (length=1) randomly.What is the expected value of the distance between the two points?

1 2 \frac{1}{2} 1 3 \frac{1}{3} 1 π \frac{1}{\pi} 1 6 \frac{1}{6}

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Zico Quintina
May 6, 2018

Let the two points be x x and y y ; then the distance between the points is x y |x-y| . To find its expected value, we can integrate x y |x-y| over the region { 0 x 1 , 0 y 1 } \{0 \le x \le 1, 0 \le y \le 1\} and then divide by the area of that region; however in this case the area is 1 so we can forgo the division.

0 1 0 1 x y d y d x = 0 1 0 x ( x y ) d y d x + 0 1 x 1 ( y x ) d y d x = 0 1 ( x y y 2 2 ) 0 x d x + 0 1 ( y 2 2 x y ) x 1 d x = 0 1 ( x 2 x 2 2 ) d x + 0 1 ( 1 2 x ) ( x 2 2 x 2 ) d x = 0 1 ( x 2 x + 1 2 ) d x = ( x 3 3 x 2 2 + x 2 ) 0 1 = ( 1 3 1 2 + 1 2 ) = 1 3 \begin{aligned} \displaystyle\int_{0}^{1} \displaystyle\int_{0}^{1} |x-y| \ dy \ dx &= \displaystyle\int_{0}^{1} \displaystyle\int_{0}^{x} (x-y) \ dy \ dx + \displaystyle\int_{0}^{1} \displaystyle\int_{x}^{1} (y-x) \ dy \ dx \\ \\ &= \displaystyle\int_{0}^{1} \left. \left( xy - \dfrac{y^2}{2} \right) \right|_0^x \ dx + \displaystyle\int_{0}^{1} \left. \left( \dfrac{y^2}{2} - xy \right) \right|_x^1 \ dx \\ \\ &= \displaystyle\int_{0}^{1} \left( x^2 - \dfrac{x^2}{2} \right) \ dx + \displaystyle\int_{0}^{1} \left( \dfrac{1}{2} - x \right) - \left( \dfrac{x^2}{2} - x^2 \right) \ dx \\ \\ &= \displaystyle\int_{0}^{1} \left( x^2 - x + \dfrac{1}{2} \right) \ dx \\ \\ &= \left. \left( \dfrac{x^3}{3} - \dfrac{x^2}{2} + \dfrac{x}{2} \right) \right|_0^1 \\ \\ &= \left( \dfrac{1}{3} - \dfrac{1}{2} + \dfrac{1}{2} \right) = \boxed{\dfrac{1}{3}} \end{aligned}

I wasn't able to create a 3-D graph of the integral, but if you can visualize it, it's not hard to see that it consists of two congruent pyramids, so we could have just calculated the first half of the above integral and doubled the answer, which would have shortened the work considerably.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...