Derive the pdf and cdf of $Z = \frac{X}{Y}$

82 Views Asked by At

Let $X$ and $Y$ have a uniform distribution on $\left [ 0,1 \right ] \times \left [ 0,1 \right ]$. I have to derive the cdf and pdf of $Z = \frac{X}{Y}$.

My attempt: Let $Z = \frac{X}{Y} \Leftrightarrow Y = Z^{-1} X$ for $Z \in \left [ 0,1 \right ]$.

Then $$G(z) = P(Z \leq z)$$ $$ = P\left ( Y \leq \frac{z^{-1}}{x} \right )$$ $$ = z^{-1} + \int_{z^{-1}}^{1} \int_{0}^{\frac{z^{-1}}{x}} dy dx$$ $$ = z^{-1} + z^{-1} (log 1 - log z^{-1})$$ $$ = \frac{1}{z} - \frac{1}{z} log\left ( \frac{1}{z} \right )$$

Does my work so far look correct?

2

There are 2 best solutions below

5
On BEST ANSWER

$Z$ defined on $(0, +\infty)$ (for any $z > 1$, pick $x = 1$ and $y=\frac{1}{z}$ to obtain $z = \frac{x}{y}$. for $z \in (0, 1)$ pick $x=y=z$)

Then,

$P(Z \le \alpha) = P(Y \ge \frac{X}{\alpha})$, this is a probability of all $(X, Y) \in [0,1]×[0,1]$ above line $Y = \frac{X}{\alpha}$.

Draw that line and compute the square of the area above that line, you'll get two cases

$$ P(Z \le \alpha)= \begin{cases} \frac{\alpha}{2},& \text{if } \alpha\le 1\\ 1 - \frac{1}{2\alpha}, & \text{otherwise} \end{cases} $$ That's distribution function for $Z$.

enter image description here

You can notice CDF is differentiable everywhere including $1$, thus you can get pdf as well

0
On

Note two bad signs - first, your CDF is not increasing with $z$. Second, it is not bounded between $0$ and $1$.

Note that $\frac{z^{-1}}{x}$ can be outside the region $[0,1]$, which should affect the limits of your integration. Moreover, in your second line of calculations, you should replace the direction of the $\leq$ sign.