Marsaglia (1972) has given a simple method for selecting points with a uniform distribution on the surface of a 4-sphere. This is accomplished by picking two pairs of points
and
,
rejecting any points for which
and
. Then the points
have a uniform distribution on the surface of the hypersphere. This extends the method of Marsaglia (1972) for sphere point picking, but unfortunately does not generalize to higher dimensions.
An easy way to pick a random point on a hypersphere of arbitrary dimension is to generate Gaussian random variables
,
, ...,
. Then the distribution of the vectors
|
(5) |
is uniform over the surface (Muller 1959, Marsaglia 1972).
See also
Hypersphere, Sphere Point Picking
Explore with Wolfram|Alpha
References
Hicks, J. S. ad Wheeling, R. F. "An Efficient Method for Generating Uniformly Distributed Points on the Surface of an -Dimensional Sphere." Comm. Assoc. Comput. Mach. 2,
13-15, 1959.Marsaglia, G. "Choosing a Point from the Surface of
a Sphere." Ann. Math. Stat. 43, 645-646, 1972.Muller,
M. E. "A Note on a Method for Generating Points Uniformly on
-Dimensional Spheres." Comm. Assoc. Comput. Mach. 2,
19-20, Apr. 1959.
Referenced on Wolfram|Alpha
Cite this as:
Weisstein, Eric W. "Hypersphere Point Picking." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HyperspherePointPicking.html