|
|
Subject:
Probability density of points in multi-dimensional space
Category: Science > Math Asked by: applepienut-ga List Price: $5.00 |
Posted:
14 Jan 2005 10:11 PST
Expires: 16 Jun 2005 10:49 PDT Question ID: 457217 |
I have a hypercube in N dimensions that spans the range 0 to 1 in each dimension (aka, its hyper-volume is always 1), and I pick two points at random in that hypercube and observe that their distance is d. What is the probability of picking two points at random in that hypercube and finding that their distance is less than or equal to d? Ultimately, I would like an answer in terms of d and N. The answer can be a recurrence relation, as long as it can be solved *exactly* in a reasonably short time on a computer. |
|
There is no answer at this time. |
|
Subject:
Re: Probability density of points in multi-dimensional space
From: racecar-ga on 14 Jan 2005 13:45 PST |
Here's a start: the expectation value of the squared distance between two randomly chosen points is <d^2> = N/6. |
Subject:
Re: Probability density of points in multi-dimensional space
From: hfshaw-ga on 14 Jan 2005 14:47 PST |
I don't think the problem can be solved "exactly". See http://mathworld.wolfram.com/HypercubeLinePicking.html |
Subject:
Re: Probability density of points in multi-dimensional space
From: bastibartel-ga on 15 Jan 2005 12:29 PST |
Howdy, You definitely want to role dice ! This is a perfect example for a monte carlo simulation. 1. Pick a random vector (x1, x2, x3, ...xN) in the cube 2. Pick another vector (y1, y2, y3, ...yN) in the cube ( all xi, yi from the interval {0..1} ) 3. Determine D = sqrt( sum_i[xi-yi] ) 4. Count success S -> S+1, if D <= Dmax 5. Repeat M times from 1. M being large 6. Prob (D <= Dmax) = S/M I just wrote a short programm that'll display the dependance P(Dmax) for a fixed number of dimensions N. The result is extremly fascinating - seriously! |
Subject:
Re: Probability density of points in multi-dimensional space
From: bastibartel-ga on 15 Jan 2005 12:33 PST |
Change step 3 to: 3. Determine D = sqrt( sum_i[ (xi-yi)^2 ] ) |
Subject:
Re: Probability density of points in multi-dimensional space
From: racecar-ga on 16 Jan 2005 11:54 PST |
When you add two independent random variables together, the pdf of the sum is the convolution of the pdfs of the two variables. The distance between two points between 0 and 1 (in 1 dimension) chosen randomly according to a uniform distribution may be regarded as the absolute value of the sum of two numbers, one chosen randomly from between 0 and 1, and the other from between -1 and 0. The convolution gives a triangle function, and, with the absolute value, the pdf is | 2 - 2d, 0<d<1 P(d) = < | 0, otherwise. If you go through the math, this means that the pdf of the square of the distance between the two points is P(D) = D^(-.5) - 1, 0<D<1 [D = d^2] Now, the square of the distance between two points in an N-d hypercube is just the sum of the squares of the distances along each of the N dimensions. So, the pdf of the squared distance in the hypercube is just the convolution of the pdf P(D) with itself N times. Once you have computed this pdf, the probability that the distance between two points is less than d is just the integral of the pdf from 0 to d^2. |
Subject:
Re: Probability density of points in multi-dimensional space
From: alphafoobar-ga on 19 Jan 2005 20:14 PST |
Isn't the probability of this problem dependent on the number of points in the space? |
Subject:
Re: Probability density of points in multi-dimensional space
From: hfshaw-ga on 21 Jan 2005 11:54 PST |
> Isn't the probability of this problem dependent on > the number of points in the space? We are all assuming that the original question asked about continua, in which there are an infinite number of points. The cardinality of the set of points in any N-dimensional space (N>0) is the same; all contain aleph-1 points. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |