Expected Distance

Calculus Level 4

In the x y xy -plane, there is a circle of radius 1 centered at ( x , y ) = ( 1 , 1 ) (x,y) = (1,1) .
Suppose the distance from a random point on the circle to the origin is D D .

What is the expected value of D 2 ? D^2?


The answer is 3.00.

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.

5 solutions

Jon Haussmann
Nov 16, 2017

We can parameterize the circle by ( 1 + cos θ , 1 + sin θ ) (1 + \cos \theta, 1 + \sin \theta) . Hence, the expected value of D 2 D^2 is 1 2 π 0 2 π [ ( 1 + cos θ ) 2 + ( 1 + sin θ ) 2 ] d θ = 1 2 π 0 2 π ( 1 + 2 cos θ + cos 2 θ + 1 + 2 sin θ + sin 2 θ ) d θ = 1 2 π 0 2 π ( 3 + 2 cos θ + 2 sin θ ) d θ = 3. \begin{aligned} \frac{1}{2 \pi} \int_0^{2 \pi} [(1 + \cos \theta)^2 + (1 + \sin \theta)^2] \ d \theta &= \frac{1}{2 \pi} \int_0^{2 \pi} (1 + 2 \cos \theta + \cos^2 \theta + 1 + 2 \sin \theta + \sin^2 \theta) \ d \theta \\ &= \frac{1}{2 \pi} \int_0^{2 \pi} (3 + 2 \cos \theta + 2 \sin \theta) \ d \theta \\ &= 3. \end{aligned}

More generally, consider a circle centered at O O with radius r r . Let P P be a point, and let D D be the distance from P P to a random point on the circle. Then the expected value of D 2 D^2 is r 2 + O P 2 r^2 + OP^2 .

That's exactly how I did it

Steven Chase - 3 years, 6 months ago

Log in to reply

Potential follow-up question: If we look at the same problem involving the disc rather than just the circle I believe the expected value of D 2 D^{2} will be .... ..

Brian Charlesworth - 3 years, 6 months ago

Log in to reply

Sounds good. Can you post it? I'll pretend I didn't read the answer.

Steven Chase - 3 years, 6 months ago

Yep, got the same thing. That's a fun one. We should probably delete these before you post it.

Steven Chase - 3 years, 6 months ago

Log in to reply

@Steven Chase Ok, I've posted the question and deleted the value in my comment. :)

Brian Charlesworth - 3 years, 6 months ago

Log in to reply

@Brian Charlesworth Sweet, I'll post a solution to prove I actually did get it

Steven Chase - 3 years, 6 months ago

Log in to reply

@Steven Chase Haha Ok, thanks for doing that. :)

Brian Charlesworth - 3 years, 6 months ago
Miles Koumouris
Nov 16, 2017

If 0 y 1 0\leq y\leq 1 , then for some value of x x , the square of the distance can be given by D 0 y 1 2 = x 2 + ( 1 1 ( x 1 ) 2 ) 2 D_{0\leq y\leq 1}^2=x^2+\left(1-\sqrt{1-(x-1)^2}\right)^2 .

Similarly, if 1 y 2 1\leq y\leq 2 , then for some value of x x , the square of the distance can be given by D 1 y 2 2 = x 2 + ( 1 + 1 ( x 1 ) 2 ) 2 D_{1\leq y\leq 2}^2=x^2+\left(1+\sqrt{1-(x-1)^2}\right)^2 . Since y y has an equal chance of being greater than or less than 1 1 for some value of x x , we have

E [ D 0 y 2 2 ] = E [ D 0 y 1 2 ] + E [ D 1 y 2 2 ] 2 = 1 2 ( 1 2 0 2 x 2 + ( 1 1 ( x 1 ) 2 ) 2 d x + 1 2 0 2 x 2 + ( 1 + 1 ( x 1 ) 2 ) 2 d x ) = 1 2 ( π + 6 2 + π + 6 2 ) = 3 . \begin{aligned} \mathbb{E}[D_{0\leq y\leq 2}^2]&=\dfrac{\mathbb{E}[D_{0\leq y\leq 1}^2]+\mathbb{E}[D_{1\leq y\leq 2}^2]}{2}\\ &=\dfrac{1}{2}\left(\dfrac{1}{2}\int_0^2x^2+\left(1-\sqrt{1-(x-1)^2}\right)^2\; dx + \dfrac{1}{2}\int_0^2x^2+\left(1+\sqrt{1-(x-1)^2}\right)^2\; dx\right)\\ &=\dfrac{1}{2}\left(\dfrac{-\pi +6}{2}+\dfrac{\pi +6}{2}\right)\\ &=\boxed{3}. \end{aligned}

Alternatively, consider that for some point ( x , y ) (x,y) on the circle's circumference, we have

E [ x ] = E [ y ] = 1 \mathbb{E}[x]=\mathbb{E}[y]=1

Now the circle has equation ( y 1 ) 2 + ( x 1 ) 2 = 1 (y-1)^2+(x-1)^2=1 so that

D 2 = x 2 + y 2 = 2 x + 2 y 1 D^2=x^2+y^2=2x+2y-1

and thus

E [ D 2 ] = 2 E [ x + y ] 1 = 2 × 2 1 = 3 . \mathbb{E}[D^2]=2\mathbb{E}[x+y]-1=2\times 2-1=\boxed{3}.

Draw a line passing through the origin O O and centre C C of the circle, (touching the circle at points A A and B B ), and let P P be any point on the circle below this line. Now consider the triangle Δ O C P \Delta OCP with O C P = θ \angle OCP = \theta . Then by the cosine rule

O P 2 = O C 2 + C P 2 2 O C C P cos ( θ ) = ( 2 ) 2 + 1 2 2 × 2 × 1 × cos ( θ ) = 3 2 2 cos ( θ ) |OP|^{2} = |OC|^{2} + |CP|^{2} - 2|OC||CP|\cos(\theta) = (\sqrt{2})^{2} + 1^{2} - 2\times \sqrt{2} \times 1 \times \cos(\theta) = 3 - 2\sqrt{2}\cos(\theta) .

Now D = O P D = |OP| . By symmetry, if we calculate the average of O P 2 |OP|^{2} over the arc A B AB , (which has length π \pi ), then we will have found the expected value of D 2 D^{2} . To do this we need to take the integral of O P 2 |OP|^{2} with respect to θ \theta as θ \theta goes from 0 0 to π \pi and then divide by the length of arc A B AB :

D 2 = 1 π 0 π ( 3 2 2 cos ( θ ) ) d θ = 1 π ( 3 θ 2 2 sin ( θ ) ) 0 π = 1 π × 3 π = 3 D^{2} = \dfrac{1}{\pi} \displaystyle \int_{0}^{\pi} (3 - 2\sqrt{2}\cos(\theta)) d\theta = \dfrac{1}{\pi} \left(3\theta - 2\sqrt{2}\sin(\theta)\right)_{0}^{\pi} = \dfrac{1}{\pi} \times 3\pi = \boxed{3} .

This one is even nicer. Did the cosine rule application jump out at you immediately, or did you spend time trying to find the most elegant way?

Steven Chase - 3 years, 6 months ago

Log in to reply

Thanks! After seeing that we were being asked for D 2 D^{2} I immediately thought of the cosine rule, but I consider the parameterization method to be more elegant.

Brian Charlesworth - 3 years, 6 months ago

The answer is immediate from a physics point of view, since we are looking for the radius of gyration of a circumference taken from origin in our case. The Steiner formula gives us that value of Moment of Inertia of a plane figure from an arbitrary point will be Moment of inertia from center of gravity of the figure plus the mass of figure times the square of distance between the given point and center of gravity. Dividing the resulting Moment of Inertia by the mass 2piR we get the radius of gyration squared must be R + 2R. Being R= 1 so D^2=3. We can also tackle the problem from a more mathematical path using polarity.

Very nice interpretation!

Calvin Lin Staff - 3 years, 6 months ago
Abhishek Sinha
Nov 17, 2017

In the polar coordinate, the coordinates of any point on the circle is of the form ( 1 + cos ( θ ) , 1 + sin ( θ ) ) , \big(1+\cos(\theta), 1+\sin(\theta)\big), where θ \theta is a uniformly distributed random variable in the range [ 0 , 2 π ] [0, 2\pi] . Thus, D 2 = ( 1 + cos ( θ ) ) 2 + ( 1 + sin ( θ ) ) 2 = 3 + 2 ( cos ( θ ) + sin ( θ ) ) . D^2= (1+\cos(\theta))^2+ (1+\sin(\theta))^2=3+2(\cos(\theta) + \sin (\theta)). Taking expectations of both sides and realizing that, under the given uniform distribution E ( cos ( θ ) ) = E ( sin ( θ ) ) = 0 \mathbb{E}(\cos(\theta))=\mathbb{E}(\sin(\theta))=0 , we conclude that E ( D 2 ) = 3. \mathbb{E}(D^2)=3.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...