PDF Transformation: What manoeuvres are involved in this case?

190 Views Asked by At

Preamble: Given the illustration in the figure below, the pdf for a random variable $r$ is shown below:

$$f_r(r)= \frac{\lambda \pi r \exp{(-\lambda \pi r^2/2)}}{1-e^{-\lambda \pi R^2/2}}$$

where $$0<r\leq R$$

Question: In order to transform the above pdf, how was the equation below derived? Are there any special manoeuvres involved? I would appreciate this with steps.

$$f_Z(z)= \frac{\sqrt{2\lambda}e^{-\lambda \pi z^2/2}\text{erf}\sqrt{\frac{\pi\lambda}{2}(R^2-z^2)}}{1-e^{-\lambda \pi R^2/2}}$$

where $$0<z\leq R$$

With these steps one should be able to transform

$$f_r(r)= \frac{2r}{R^{2}}$$ to $$f_Z(z)= \frac{4\sqrt{R^2-z^2}}{\pi R^2}$$

image

2

There are 2 best solutions below

4
On BEST ANSWER

Assume WLOG 2D PDF of the random vector $(\hat r,\hat \theta)$ in the form of $$f_{r,\theta}(r,\theta)=\dfrac2\pi f_r(r),\quad r\in(0,R],\quad \theta\in\left(0,\dfrac\pi2\right),$$ then the element of the 2D PDF is $$dF(r,\theta) = \Pr((\hat r\in[r,r+\mathrm dr]) \wedge(\hat\theta\in[\theta,\theta+\mathrm d\theta])) =\dfrac2\pi f_r(r)\,\mathrm dr\,\mathrm d\theta.$$ In according with the illustration, $$\hat z = \hat r\cos\hat\theta,\quad \hat z\in(0,\hat r],$$ and $$F_z(z) = \Pr(\hat z \le z) = \dfrac2\pi\int\limits_0^R\int\limits_{\arccos\dfrac zr}^{\pi/2} f_r(r)\,\mathrm dr\,\mathrm d\theta,$$ then $$f_z(z)=\dfrac{\,\mathrm dF_z(z)}{\,\mathrm dz} = \dfrac2\pi\int\limits_z^R f_r(r)\dfrac{\mathrm dr}{\sqrt{r^2-z^2}}.$$

If $$f_r(r)=\dfrac{2r}{R^2},$$ then $$f_z(z) = \dfrac{4}{\pi R^2}\int\limits_z^R \dfrac{r\mathrm dr}{\sqrt{r^2-z^2}} = \dfrac{4}{\pi R^2}\sqrt{r^2-z^2}\Big|_z^{R} = \mathbf{\color{red}{\dfrac{4\sqrt{R^2-z^2}}{\pi R^2}}}.$$

0
On

The density for $r$ corresponds to normal distributions for $z$ and $Y$ that would be independent if the distribution extended over the entire plane; in that case, the marginal distributions for $z$ and $Y$ would just be Gaussians. However, as the distribution is truncated to the circle, $z$ and $Y$ aren't independent. To get the marginal distribution for $z$ you need to integrate out $Y$; this is what leads to the $\operatorname{erf}$ term. To reproduce the result, transform from polar coordinates to Cartesian coordinates ($r^2$ in the exponent becomes $z^2+Y^2$ and $2\pi r\mathrm dr\mathrm d\phi$ becomes $\mathrm dz\mathrm dY$) and integrate out $Y$ to get the marginal density for $z$.