A point is picked uniformly at random from the surface of an n -dimensional unit hypercube centered at the origin.
What is the minimum n for which the expected distance from the point to the origin is greater than 1?
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.
This is actually the way I initially thought about it, but it's not completely valid. It's a fair amount more difficult because d isn't linear wrt the p i 2 (due to the square root). The closest we can get to evaluating it that way (without more complicated steps) is Jensen's inequality, which yields E d < 4 1 + ( n − 1 ) 1 2 1 ⟹ E d > 1 min n ≥ 1 1
Log in to reply
If random generator served me well, the approximate mean distance using Monte Carlo integration for n=10 is: <d>=0.9936±0.0005, which is different to the above solution of <d>=1.
Log in to reply
That's perfectly in line with the estimate given by Jensen's ineq. Were you able to run it for n=11?
Log in to reply
@Brian Moehring – Yes. The mean distance is <d>=1.0346 with std of 0.00004 (5 sigma should suffice).
You're right! I edited my solution to use Jensen's inequality.
I might be wrong, but I believe you'll still have to prove that E ( d ) > 1 for n=11.
Log in to reply
Right, I noted that it is an incomplete solution because of that.
I struggled with integration by hand, and then decided to do simple Monte Carlo integration. Included in the code are estimates for the error (as standard deviation). ± 5 σ should be more than enough of an error bar. To be rigorous, one should form and test a hypothesis, but here the error bars are way to small for tests to have any practical significance.
1 2 3 4 5 6 7 8 9 10 |
|
Considering that the faces of n-hypercube are in dimension of (n-1) hypercube and knowing that the average distance from center of the n- hypercube to any other point inside the cube is √(n/12). the average distance from the center of the n-hypercube to any point on the surface of the n-hypercube is given by
√(1/4 +(n-1)/12) > 1, gives n >10.
Answer=11.
Can you elaborate on "average distance from centre...". It doesn't seem to hold for n=1.
Align the cube with coordinate system. Fix one of the coordinates of out point to the value 1/2, so that it is at the surface. The distance squared to the origin is the summed square over the coordinates. Very conveniently, there is no interaction between the coordinates in this problem. So the fixed coordinate contributes ( 2 1 ) 2 = 4 1 to the squared distance. Any other coordinate may range between -1/2 and 1/2 and thus contributes on average 2 1 − 2 − 1 ∫ − 1 / 2 1 / 2 x 2 d x = 1 2 1 to the squared distance. We need 10 other coordinates to exceed a expected (squared) distance of 1.
This is a problem which has to be solved using Mathematica.
Log in to reply
Mam l am only in10 class l i have^t understand
Sorry if it sounds as boasting, but the following is genuine. After reading the problem I had a shower and thought about it, using the bathroom tiles to help my imagination. First thing I did after the shower was filling in the answer 11 and it was right. Without pen, paper or mathematica.
Problem Loading...
Note Loading...
Set Loading...
Note: This is not a complete solution, but shows that n has a lower limit of n ≥ 1 1 . Thanks to @Brian Moehring for his comments and pointing me to Jensen's inequality.
In n -dimensional space, the distance from the origin to a point ( p 1 , p 2 , … , p n ) is d = p 1 2 + p 2 2 + ⋯ + p n 2 .
A point that is on an n -dimensional unit hypercube centered at the origin will have one coordinate that is exactly ± 2 1 and all the other coordinates ranging between [ − 2 1 , 2 1 ] .
By symmetry, we only need to consider p 1 = 2 1 , and the squares of the expected values of the other coordinates p 2 can be found by calculating the value of 2 1 − − 2 1 ∫ − 2 1 2 1 p 2 d p = 1 2 1 .
Therefore, by Jensen's inequality , the expected distance from a point on the surface of this n -dimensional cube to the center is E d < ( 2 1 ) 2 + ( n − 1 ) 1 2 1 which has a greater minimum value of 1 for n ≥ 1 1 .