In the x y -plane there is a disc of radius 1 centred at ( 1 , 1 ) .
Suppose the distance from a random point on the disc to the origin is D . What is the expected value of D 2 ?
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.
Nice solution! Thanks for posting it. :)
I guess the logical extension is to look at the similar problem for a sphere of radius 1 centred at ( 1 , 1 , 1 ) .
Log in to reply
I was thinking the same.
That one is up now
Log in to reply
Great! I'm glad I got that one on the first try; there were quite a few moving parts to slip up on. :)
Log in to reply
@Brian Charlesworth – Indeed. I did it analytically in spherical coordinates, and then numerically in Cartesian coordinates just to be sure.
I solved it without polar coordinates (sticking to the theme), but I initially miscalculated, so my answer was wrong. Here was my approach:
If you consider a line segment in the disc, parallel to the y -axis and at some distance x from the rightmost point on the disc, we can calculate its length to be
2 1 − ( 1 − x ) 2
Now integrating this function from 0 to 2 will give the area of the circle, which is π . So we can calculate a probability density function for a given line defined by some x as
f ( x ) = π 2 1 − ( 1 − x ) 2
Now, given some point ( ( 2 − x ) , a ) on this line, we have
D 2 = ( 2 − x ) 2 + a 2
and thus the average value of the square of the distance given only x becomes
2 1 − ( 1 − x ) 2 1 ∫ 1 − 1 − ( 1 − x ) 2 1 + 1 − ( 1 − x ) 2 ( 2 − x ) 2 + a 2 d a = 3 2 x 2 − 3 1 0 x + 5
Then integrating their product gives
E [ D 2 ] = ∫ 0 2 f ( x ) × ( 3 2 x 2 − 3 1 0 x + 5 ) = 2 . 5
More generally, consider a circle of radius R centered at O = ( 0 , 0 ) , and let P = ( a , b ) .
Parametrically, we can represent a point inside the disc by ( r cos θ , r sin θ ) , where 0 ≤ r ≤ R and 0 ≤ θ ≤ 2 π . If D is the distance from a point inside the disc to P , then the expected value of D 2 is π R 2 1 ∫ 0 R ∫ 0 2 π [ ( r cos θ − a ) 2 + ( r sin θ − b ) 2 ] r d r d θ = π R 2 1 ∫ 0 R ∫ 0 2 π ( r 2 cos 2 θ − 2 a r cos θ + a 2 + r 2 sin 2 θ − 2 b r sin θ + b 2 ) r d r d θ = π R 2 1 ∫ 0 R ∫ 0 2 π ( r 2 − 2 a r cos θ − 2 b r sin θ + a 2 + b 2 ) r d r d θ = π R 2 1 ∫ 0 R ∫ 0 2 π r 3 − 2 a r 2 cos θ − 2 b r 2 sin θ + ( a 2 + b 2 ) r d r d θ = π R 2 1 ∫ 0 R 2 π r 3 + 2 π ( a 2 + b 2 ) r d r = π R 2 1 [ 2 π R 4 + ( a 2 + b 2 ) π R 2 ] = 2 R 2 + a 2 + b 2 = 2 R 2 + O P 2 .
Problem Loading...
Note Loading...
Set Loading...
Coordinates within the disk:
x = 1 + r c o s θ y = 1 + r s i n θ
Square of distance from origin:
D 2 = x 2 + y 2 = 2 + 2 r c o s θ + 2 r s i n θ + r 2
Probability as a function of radius and angle:
P = A d A = π r d r d θ
Infinitesimal contribution to expectation:
d E = D 2 P = ( 2 + 2 r c o s θ + 2 r s i n θ + r 2 ) π r d r d θ = π 1 ( 2 r + 2 r 2 c o s θ + 2 r 2 s i n θ + r 3 ) d r d θ
Total expected value:
E = π 1 ∫ 0 2 π ∫ 0 1 ( 2 r + 2 r 2 c o s θ + 2 r 2 s i n θ + r 3 ) d r d θ = π 1 ∫ 0 2 π ( 4 5 + 3 2 c o s θ + 3 2 s i n θ ) d θ = π 1 ( 4 1 0 π ) = 2 . 5