How to Achieve Uniform Distribution of Points on a Sphere?

Click For Summary
SUMMARY

The discussion focuses on achieving a uniform distribution of points on a sphere using spherical coordinates. The correct parametrization is given by the equations θ = πR1 and φ = arccos(1 - 2R2, where R1 and R2 are uniformly distributed random numbers between 0 and 1. An alternative approach proposed by the user, θ = πR1 sin(R1) and φ = 2πR2, is incorrect as it does not maintain a constant area element on the sphere. The correct method involves understanding the joint density and integrating to find marginal and conditional densities.

PREREQUISITES
  • Understanding of spherical coordinates and their parametrization
  • Knowledge of probability density functions and uniform distributions
  • Familiarity with vector calculus, specifically cross products
  • Basic understanding of integration techniques in probability theory
NEXT STEPS
  • Study the derivation of joint density functions in spherical coordinates
  • Learn about the properties of the cross product in vector calculus
  • Explore the concept of marginal and conditional probability distributions
  • Investigate Monte Carlo methods for generating uniform distributions on spheres
USEFUL FOR

Mathematicians, computer graphics developers, and anyone involved in simulations requiring uniform point distributions on spherical surfaces.

kaksmet
Messages
81
Reaction score
0
Hello

I am trying to make a uniform distribution of points on a sphere. I can find the answer
\theta=\pi R_1
\phi = arccos(1-2R_2)

where R1 and R2 are uniformly distributed random numbers between 0 and 1.

To me, it feels like
\theta=\pi R_1 sin(R1)
\phi = 2\pi R_2
should also give the correct distribution. Is that the case, and if not how can I understand why not this but the above solution is true? How can I calculate my way to the first answer?

thanks!
Tomas
 
Physics news on Phys.org
Well, you want a parametrization x(u,v) : (0,1) x (0,1) -> the unit sphere S2
such that the unit of area
|x_u \times x_v|
is constant, where \times is the cross product.

It should be simple to verify that this works for the solution given but does not work for your solution. To be more specific, in the solution given,
x(R1,R2) = s(pi R1, arccos(1-2R2))
where s is the function for spherical coordinates, i.e. s(theta, phi) = (sin theta cos phi, sin theta sin phi, cos theta)
 
Last edited:
To write theta and phi in terms of uniforms you first need to find their joint density. Since the points are uniformly distributed over the area, the probability of the rectangle [theta,theta+dt] x [phi,phi+dp] is the proportional to the area on the sphere which is
the magnitude of the cross product [dx/dtheta] x [dx/dphi] *(dt*dp).

From this by normalizing you get the joint density f(theta,phi) and integrate to get a marginal density e.g. f(theta) and a conditional density f(phi|theta). The cumulative distribution of any random variable is uniformly distributed, so theta=F^{-1}(R1) and phi=F^{-1}(R2|theta)=F^{-1}(R2|F^{-1}(R1)).

Hope this helps - what answer do you get from this process?
 
If there are an infinite number of natural numbers, and an infinite number of fractions in between any two natural numbers, and an infinite number of fractions in between any two of those fractions, and an infinite number of fractions in between any two of those fractions, and an infinite number of fractions in between any two of those fractions, and... then that must mean that there are not only infinite infinities, but an infinite number of those infinities. and an infinite number of those...

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K