3

my question is related on this one that I have posed on math.stackexchange but is not exactly the same (even I would appreciate receive an answer for the other as well). Since I haven't received answers, I've been told that here could be a better place to ask about statistics.

Let imagine we have a vector $\vec{a} = (1,0,0)$ and that we have a vector $\vec{\lambda}$ uniformly distributed in the unit ball (sphere of radius $1$).

We can then write $$\vec{\lambda} = (r_1.\cos \phi.\sin \theta,r_1.\sin \phi.\sin \theta,r_1.\cos \theta)$$ and $$\vec{a}.\vec{\lambda} = r_1.\cos \phi.\sin \theta$$

But I'm not comfortable with something. If we say that $\vec{\lambda}$ has a uniform distribution in the unit ball, can we say that $$r_1 ~\sqcup_{[0,1]} \\ \phi ~\sqcup_{[0,2\pi]} \\ \theta ~\sqcup_{[0,\pi]}$$

with $\sqcup_{S}$ meaning that the distribution is uniform on the set $S$ ?

If it's the case, I could test the uniformity of $|\vec{a}.\vec{\lambda}|$ by testing this

$$\int_{r_1}^{r_2} \int_{\phi_1}^{\phi_2} \int_{\theta_1}^{\theta_2} |r.\cos \phi.\sin \theta| \,r^2\sin \theta\;dr\,d\phi\,d\theta = \frac{\int_{r_1}^{r_2} \int_{\phi_1}^{\phi_2} \int_{\theta_1}^{\theta_2} \,r^2\sin \theta\;dr\,d\phi\,d\theta}{\frac{4}{3}\pi}$$

right ?

Is it a good way to do it ? How could I do more easily this test ?

mwoua
  • 131
  • 2
  • 1
    "Uniform on the unit ball" is not equivalent to uniformity of $\phi, \theta,$ and $r$. – Glen_b Aug 28 '13 at 10:37
  • And is "Uniform on the unit sphere" equivalent to uniform on $\phi$ and $\theta$ ? – mwoua Aug 28 '13 at 11:44
  • No. In both cases you can have your $\phi$ (the one on $[0,2\pi)$) to be uniform, but the other must not be or the points will not be equally dense at the poles as the equator. With $r$ it's more obvious - there's much more volume at large $r$ than small $r$, so the density over $r$ must increase to make the points equally dense at the center and near the surface. – Glen_b Aug 28 '13 at 13:14
  • See [here](http://stats.stackexchange.com/questions/8021/how-to-generate-uniformly-distributed-points-in-the-3-d-unit-ball), [here](http://mathworld.wolfram.com/SpherePointPicking.html), [here](http://math.stackexchange.com/questions/87230/picking-random-points-in-the-volume-of-sphere-with-uniform-probability), and [here](http://stats.stackexchange.com/questions/7977/how-to-generate-uniformly-distributed-points-on-the-surface-of-the-3-d-unit-sphe) – Glen_b Aug 28 '13 at 13:16
  • With the appropriate density for $r$ and your $\theta$, you could do perhaps do three goodness of fit tests, one for each variable. – Glen_b Aug 28 '13 at 13:29
  • I see your question has been closed as a duplicate (presumably the two links I gave to CV). If you'd like to pursue your question about goodness-of-fit (which those questions don't address), you might like to post a new question specifically about ways of testing uniformity in the unit ball, which is a very interesting question and deserves more than my one-line suggestion. – Glen_b Aug 28 '13 at 21:10

0 Answers0