 |
S.O.S. Mathematics CyberBoard
|
| View previous topic :: View next topic |
| Author |
Message |
trekkiee Math Cadet
Joined: 23 Nov 2009 Posts: 6
|
Posted: Mon, 23 Nov 2009 10:37:55 UTC Post subject: mean nearest neighbor in 3d |
|
|
Hi, 1st time poster here. I'm trying to figure out the average distance between nearest neighbors in a three dimensional randomly distributed sample of particles. My best guess is d_nearest neighbor_mean=(volume/n)^1/3 where n particles are randomly distributed in a 3 dimensional volume.
I'm not a student and this isn't homework, btw. The question originated when I wondered what was the average distance between stars in the solar neighborhood. atlasoftheuniverse.com gives 35 stars (including the Sun) within 12.5 light-years, and the above formula yields 6.16 ly as the avg distance from any given star to its closest neighbor. This seems a little high to me, since the distance from the Sun to its nearest neighbor (Proxima Centauri) is 4.4 ly. But perhaps the Sun has a closer-than-avg nearest neighbor, since, after all, the distribution should be random.
I originally thought it would be easy to figure this out, but after trying unsuccessfully for an hour to work out a satisfactory formula, then another hour trying to google one, I gave up. Thanks in advance  |
|
| Back to top |
|
 |
Shadow Moderator

Joined: 30 Mar 2005 Posts: 5464 Location: Urbana, IL
|
Posted: Mon, 23 Nov 2009 21:52:26 UTC Post subject: Re: mean nearest neighbor in 3d |
|
|
| trekkiee wrote: | Hi, 1st time poster here. I'm trying to figure out the average distance between nearest neighbors in a three dimensional randomly distributed sample of particles. My best guess is d_nearest neighbor_mean=(volume/n)^1/3 where n particles are randomly distributed in a 3 dimensional volume.
I'm not a student and this isn't homework, btw. The question originated when I wondered what was the average distance between stars in the solar neighborhood. atlasoftheuniverse.com gives 35 stars (including the Sun) within 12.5 light-years, and the above formula yields 6.16 ly as the avg distance from any given star to its closest neighbor. This seems a little high to me, since the distance from the Sun to its nearest neighbor (Proxima Centauri) is 4.4 ly. But perhaps the Sun has a closer-than-avg nearest neighbor, since, after all, the distribution should be random.
I originally thought it would be easy to figure this out, but after trying unsuccessfully for an hour to work out a satisfactory formula, then another hour trying to google one, I gave up. Thanks in advance  |
Why do you think the distance should be random? With all the forces going on (gravity for one) it seems perfectly reasonable to me that indeed the distribution is very not-random. _________________ (\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination |
|
| Back to top |
|
 |
trekkiee Math Cadet
Joined: 23 Nov 2009 Posts: 6
|
|
| Back to top |
|
 |
aswoods Member of the 'S.O.S. Math' Hall of Fame

Joined: 23 Feb 2009 Posts: 524 Location: Adelaide, Australia
|
Posted: Fri, 27 Nov 2009 13:21:49 UTC Post subject: |
|
|
according to Gradshteyn and Ryzhik 3.381.10, and Wolfram Alpha seems to agree. |
|
| Back to top |
|
 |
trekkiee Math Cadet
Joined: 23 Nov 2009 Posts: 6
|
Posted: Sat, 28 Nov 2009 21:25:01 UTC Post subject: |
|
|
| aswoods wrote: |
according to Gradshteyn and Ryzhik 3.381.10, and Wolfram Alpha seems to agree. |
Thanks. I obviously didn't look hard enough. |
|
| Back to top |
|
 |
trekkiee Math Cadet
Joined: 23 Nov 2009 Posts: 6
|
Posted: Sat, 28 Nov 2009 22:22:58 UTC Post subject: |
|
|
aswoods at
www.sosmath.com/CBB/viewtopic.php?p=197769#197769
helpfully pointed out that Gradshteyn and Ryzhik 3.381.10, and Wolfram Alpha agree that
the integral from 0 to infinity of x^3 e^(-ax^3)dx = 1/3 gamma(4/3) a^(-4/3)
so the mean nearest neighbor distance in 3d is:
<r> = [4 pi rho] integral from 0 to infinity r^3 e^(-[4/3] pi rho r^3) dr
<r> = 1/3 gamma(1/3) ([4/3] pi)^(-1/3) rho^(-1/3)
<r> = 0.55396 rho^(-1/3)
<r> = 3.93 light-years for the 23 star systems within 12.5 ly  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|