Jump to content

Mean line segment length

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by LightbulbMEOW (talk | contribs) at 08:59, 2 May 2022 (Created page with '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. == Formal definition == The mean line segment length for an ''n''-dimensional shape...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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.

Formal definition

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

The Monte Carlo method may be used to approximate the mean line segment length of a given shape. Two points are randomly chosen inside the shape and their distance is measured. After several repetitions of this process, the average of these values will eventually converge to the mean line segment length. This method can only give an approximation; it cannot be used to determine its exact value.

Formulas

Line segment

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

Triangle

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

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.

Cube and hypercubes

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

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,[5]

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

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

Circle

The average distance between points on the circumference of a circle of radius r is[7]

Disk and balls

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

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

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

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

References

  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. ^ Weisstein, Eric W. "Square Line Picking". MathWorld.
  4. ^ Weisstein, Eric W. "Hypercube Line Picking". MathWorld.
  5. ^ 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.
  6. ^ 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.
  7. ^ Weisstein, Eric W. "Circle Line Picking". MathWorld.
  8. ^ Weisstein, Eric W. "Disk Line Picking". MathWorld.

Weisstein, Eric W. "Mean Line Segment Length". MathWorld.