Mean line segment length

(Redirected from Robbins constant)

In geometry, the mean line segment length is the average length of a line segment connecting two points chosen uniformly at random in a given shape. In other words, it is the expected Euclidean distance between two random points, where each point in the shape is equally likely to be chosen.

Even for simple shapes such as a square or a triangle, solving for the exact value of their mean line segment lengths can be difficult because their closed-form expressions can get quite complicated. As an example, consider the following question:

What is the average distance between two randomly chosen points inside a square with side length 1?

While the question may seem simple, it has a fairly complicated answer; the exact value for this is .

Formal definition

edit

The mean line segment length for an n-dimensional shape S may formally be defined as the expected Euclidean distance ||⋅|| between two random points x and y,[1]

 

where λ is the n-dimensional Lebesgue measure.

For the two-dimensional case, this is defined using the distance formula for two points (x1, y1) and (x2, y2)

 

Approximation methods

edit
 
Monte Carlo method to approximate the mean line segment length of a unit square.

Since computing the mean line segment length involves calculating multidimensional integrals, various methods for numerical integration can be used to approximate this value for any shape.

One such method is the Monte Carlo method. To approximate the mean line segment length of a given shape, two points are randomly chosen in its interior and the distance is measured. After several repetitions of these steps, the average of these distances will eventually converge to the true value.

These methods can only give an approximation; they cannot be used to determine its exact value.

Formulas

edit

Line segment

edit

For a line segment of length d, the average distance between two points is 1/3d.[1]

Triangle

edit

For a triangle with side lengths a, b, and c, the average distance between two points in its interior is given by the formula[2]

 

where   is the semiperimeter, and   denotes  .

For an equilateral triangle with side length a, this is equal to

 

Square and rectangles

edit

The average distance between two points inside a square with side length s is[3]

 

More generally, the mean line segment length of a rectangle with side lengths l and w is[1]

 

where   is the length of the rectangle's diagonal.

If the two points are instead chosen to be on different sides of the square, the average distance is given by[3][4]

 

Cube and hypercubes

edit

The average distance between points inside an n-dimensional unit hypercube is denoted as Δ(n), and is given as[5]

 

The first two values, Δ(1) and Δ(2), refer to the unit line segment and unit square respectively.

For the three-dimensional case, the mean line segment length of a unit cube is also known as Robbins constant, named after David P. Robbins. This constant has a closed form,[6]

 

Its numerical value is approximately 0.661707182... (sequence A073012 in the OEIS)

Andersson et. al. (1976) showed that Δ(n) satisfies the bounds[7]

 

Choosing points from two different faces of the unit cube also gives a result with a closed form, given by,[4]

 

Circle and sphere

edit

The average chord length between points on the circumference of a circle of radius r is[8]

 

And picking points on the surface of a sphere with radius r is [9]

 

Disks

edit

The average distance between points inside a disk of radius r is[10]

 

The values for a half disk and quarter disk are also known.[11]

For a half disk of radius 1:

 

For a quarter disk of radius 1:

 

Balls

edit

For a three-dimensional ball, this is

 

More generally, the mean line segment length of an n-ball is[1]

 

where βn depends on the parity of n,

 

General bounds

edit

Burgstaller and Pillichshammer (2008) showed that for a compact subset of the n-dimensional Euclidean space with diameter 1, its mean line segment length L satisfies[1]

 

where Γ denotes the gamma function. For n = 2, a stronger bound exists.

 

References

edit
  1. ^ a b c d e Burgstaller, Bernhard; Pillichshammer, Friedrich (2009). "The Average Distance Between Two Points". Bulletin of the Australian Mathematical Society. 80 (3): 353–359. doi:10.1017/S0004972709000707.
  2. ^ Weisstein, Eric W. "Triangle Line Picking". MathWorld.
  3. ^ a b Weisstein, Eric W. "Square Line Picking". MathWorld.
  4. ^ a b Bailey, David H.; Borwein, Jonathan M.; Kapoor, Vishaal; Weisstein, Eric W. (2006). "Ten Problems in Experimental Mathematics". The American Mathematical Monthly. 113 (6): 481–509. doi:10.2307/27641975. hdl:1959.13/928097. ISSN 0002-9890. JSTOR 27641975.
  5. ^ Weisstein, Eric W. "Hypercube Line Picking". MathWorld.
  6. ^ Robbins, David P.; Bolis, Theodore S. (1978), "Average distance between two points in a box (solution to elementary problem E2629)", American Mathematical Monthly, 85 (4): 277–278, doi:10.2307/2321177, JSTOR 2321177.
  7. ^ Anderssen, R. S.; Brent, R. P.; Daley, D. J.; Moran, P. A. P. (1976). "Concerning   and a Taylor Series Method" (PDF). SIAM Journal on Applied Mathematics. 30 (1): 22–30. doi:10.1137/0130003.
  8. ^ Weisstein, Eric W. "Circle Line Picking". MathWorld.
  9. ^ Weisstein, Eric W. "Sphere Line Picking". MathWorld.
  10. ^ Weisstein, Eric W. "Disk Line Picking". MathWorld.
  11. ^ Weisstein, Eric W. "Circular Sector Line Picking". MathWorld.
edit