CDF of distance to a point in 3D-sphere

probability distributionsprobability theory

Let's say we have a unit sphere and want to generate uniformly distributed points inside it. We use rejection to do so, and as such we place the sphere inside a $2$x$2$x$2$ bounding box and generate points uniformly inside of there, rejecting any points that don't end up inside the sphere.

If I'm correct then there is a .23 rejection rate.

But let's say we introduce a random variable $L$ that is the distance from the center of the sphere to a random point inside the sphere. What would the CDF of $L$ be?

Best Answer

Hint: the volume of a sphere of radius $L$ is $\frac{4}{3} \pi L^3$.

Related Question