5.2.5 Solved Problems
Problem Let and be jointly continuous random variables with joint PDF \begin{equation} \nonumber f_{X,Y}(x,y) = \left{ \begin{array}{l l} cx+1 & \quad x,y \geq 0, x+y<1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
- Show the range of , , in the plane.
- Find the constant .
- Find the marginal PDFs and .
- Find .
- Solution
Figure 5.8(a) shows in the plane.

The figure shows (a) as well as (b) the integration region for finding for Solved Problem 1.
To find the constant , we write \begin{align}%\label{} \nonumber 1&=\int_{-\infty}^{\infty} \int_{-\infty}^{\infty} f_{XY}(x,y)dxdy\ \nonumber &=\int_{0}^{1} \int_{0}^{1-x} cx+1 \hspace{5pt} dydx\ \nonumber &=\int_{0}^{1} (cx+1)(1-x) \hspace{5pt} dx\ \nonumber &=\frac{1}{2}+\frac{1}{6}c. \end{align} Thus, we conclude .
We first note that . \begin{align}%\label{} \nonumber f_X(x)&=\int_{-\infty}^{\infty} f_{XY}(x,y)dy\ \nonumber &=\int_{0}^{1-x} 3x+1 \hspace{5pt} dy\ \nonumber &=(3x+1)(1-x), \hspace{10pt} \textrm{ for }x \in [0,1]. \end{align} Thus, we have \begin{equation}
\nonumber f_X(x) = \left{ \begin{array}{l l} (3x+1)(1-x) & \quad 0 \leq x \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Similarly, we obtain \begin{align}%\label{} \nonumber f_Y(y)&=\int_{-\infty}^{\infty} f_{XY}(x,y)dx\ \nonumber &=\int_{0}^{1-y} 3x+1 \hspace{5pt} dx\ \nonumber &=\frac{1}{2}(1-y)(5-3y), \hspace{10pt} \textrm{ for }y \in [0,1]. \end{align} Thus, we have \begin{equation} \nonumber f_Y(y) = \left{ \begin{array}{l l} \frac{1}{2}(1-y)(5-3y) & \quad 0 \leq y \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} 4. To find , we need to integrate over the region shown in Figure 5.8(b). We have \begin{align}%\label{} \nonumber P(Y<2X^2)&=\int_{-\infty}^{\infty} \int_{-\infty}^{2x^2} f_{XY}(x,y)dydx\ \nonumber &=\int_{0}^{1} \int_{0}^{\min(2x^2,1-x)} 3x+1 \hspace{5pt} dydx\ \nonumber &=\int_{0}^{1} (3x+1) \min(2x^2,1-x) \hspace{5pt} dx\ \nonumber &=\int_{0}^{\frac{1}{2}} 2x^2(3x+1) \hspace{5pt} dx + \int_{\frac{1}{2}}^1 (3x+1)(1-x) \hspace{5pt} dx\ \nonumber &=\frac{53}{96}. \end{align}
Problem Let and be jointly continuous random variables with joint PDF \begin{equation} \nonumber f_{X,Y}(x,y) = \left{ \begin{array}{l l} 6e^{-(2x+3y)} & \quad x,y \geq 0 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
- Are and independent?
- Find .
- Find .
- Solution
- We can write \begin{align} \nonumber f_{X,Y}(x,y) =f_X(x)f_Y(y), \end{align} where \begin{align} \nonumber f_X(x)=2e^{-2x}u(x), \hspace{20pt} f_Y(y)=3e^{-3y}u(y). \end{align} Thus, and are independent.
- Since and are independent, we have . Note that , thus .
- We have \begin{align} \nonumber P(X>Y)&=\int_{0}^{\infty} \int_{y}^{\infty} 6e^{-(2x+3y)} dx dy \ \nonumber &=\int_{0}^{\infty} 3e^{-5y} dy \ \nonumber &=\frac{3}{5}. \end{align}
Problem Let be a continuous random variable with PDF \begin{equation} \nonumber f_X(x) = \left{ \begin{array}{l l} 2x & \quad 0 \leq x \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} We know that given , the random variable is uniformly distributed on .
- Find the joint PDF .
- Find .
- Find .
- Solution
- First note that, by the assumption \begin{equation} \nonumber f_{Y|X}(y|x) = \left{ \begin{array}{l l} \frac{1}{2x} & \quad -x \leq y \leq x \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Thus, we have \begin{equation} \nonumber f_{XY}(x,y)=f_{Y|X}(y|x)f_X(x) = \left{ \begin{array}{l l} 1 & \quad 0 \leq x \leq 1, -x \leq y \leq x \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Thus, \begin{equation} \nonumber f_{XY}(x,y) = \left{ \begin{array}{l l} 1 & \quad |y| \leq x \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
- First, note that . To find , we can write \begin{align} \nonumber f_Y(y)&=\int_{-\infty}^{\infty}f_{XY}(x,y)dx\ \nonumber &=\int_{|y|}^{1} 1 dx\ \nonumber &=1-|y|. \end{align} Thus, \begin{equation} \nonumber f_{Y}(y) = \left{ \begin{array}{l l} 1-|y| & \quad |y| \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
- To find , we can use the law of total probability (Equation 5.16): \begin{align}%\label{} \nonumber P(|Y|<X^3)&=\int_0^1 P(|Y|<X^3|X=x) f_X(x) dx \ \nonumber &= \int_0^1 P(|Y|<x^3|X=x) 2x dx \ \nonumber &= \int_0^1 \left(\frac{2x^3}{2x}\right) 2x dx \hspace{20pt} \textrm{since }Y|X=x \hspace{5pt} \sim \hspace{5pt} Uniform(-x,x)\ \nonumber &=\frac{1}{2}. \end{align}
Problem Let and be two jointly continuous random variables with joint PDF \begin{equation} \nonumber f_{X,Y}(x,y) = \left{ \begin{array}{l l} 6xy & \quad 0 \leq x \leq 1, 0 \leq y \leq \sqrt{x} \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
- Show in the plane.
- Find and .
- Are and independent?
- Find the conditional PDF of given , .
- Find , for $0 \leq y \leq 1$.
- Find , for $0 \leq y \leq 1$.
- Solution
Figure 5.9 shows in the plane.

Figure 5.9: The figure shows for Solved Problem 4.
First, note that . To find for $0 \leq x \leq 1$, we can write \begin{align} \nonumber f_X(x)&=\int_{-\infty}^{\infty}f_{XY}(x,y) \hspace{5pt} dy\ \nonumber &=\int_{0}^{\sqrt{x}} 6xy \hspace{5pt} dy\ \nonumber &=3x^2. \end{align} Thus, \begin{equation}
\nonumber f_X(x) = \left{ \begin{array}{l l} 3x^2 & \quad 0 \leq x \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right.
\end{equation} To find for $0 \leq y \leq 1$, we can write \begin{align} \nonumber f_Y(y)&=\int_{-\infty}^{\infty}f_{XY}(x,y) \hspace{5pt} dx\ \nonumber &=\int_{y^2}^{1} 6xy \hspace{5pt} dx\ \nonumber &=3y(1-y^4). \end{align} \begin{equation} \nonumber f_Y(y) = \left{ \begin{array}{l l} 3y(1-y^4) & \quad 0 \leq y \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} 3. and are not independent, since . 4. We have \begin{align} \nonumber f_{X|Y}(x|y)&=\frac{f_{XY}(x,y)}{f_Y(y)}\ \nonumber &=\left{ \begin{array}{l l} \frac{2x}{1-y^4} & \quad y^2 \leq x \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{align} 5. We have \begin{align} \nonumber E[X|Y=y]&=\int_{-\infty}^{\infty}xf_{X|Y}(x|y) \hspace{5pt} dx\ \nonumber &=\int_{y^2}^{1} x\frac{2x}{1-y^4} \hspace{5pt} dx\ \nonumber &=\frac{2(1-y^6)}{3(1-y^4)}. \end{align} 6. We have \begin{align} \nonumber E[X^2|Y=y]&=\int_{-\infty}^{\infty}x^2f_{X|Y}(x|y) \hspace{5pt} dx\ \nonumber &=\int_{y^2}^{1} x^2\frac{2x}{1-y^4} \hspace{5pt} dx\ \nonumber &=\frac{1-y^8}{2(1-y^4)}. \end{align} Thus, \begin{align} \nonumber \textrm{Var}(X|Y=y)&=E[X^2|Y=y]-(E[X|Y=y])^2\ \nonumber &=\frac{1-y^8}{2(1-y^4)}-\left(\frac{2(1-y^6)}{3(1-y^4)}\right)^2. \end{align}
Problem
Consider the unit disc
\begin{align}%\label{}
\nonumber D={(x,y)|x^2+y^2 \leq 1}.
\end{align}
Suppose that we choose a point uniformly at random in . That is, the joint PDF of and is given by
\begin{equation}
\nonumber f_{XY}(x,y) = \left{
\begin{array}{l l}
\frac{1}{\pi} & \quad (x,y) \in D \
& \quad \
0 & \quad \text{otherwise}
\end{array} \right.
\end{equation}
Let be the corresponding polar coordinates as shown in Figure 5.10. The inverse transformation is given by
\begin{equation}
\nonumber \left{
\begin{array}{l}
X=R \cos \Theta \
Y=R \sin \Theta
\end{array} \right.
\end{equation}
where and . Find the joint PDF of and .

Figure 5.10: Polar Coordinates
- Solution
- Here are jointly continuous and are related to by a one-to-one relationship. We use the method of transformations (Theorem 5.1). The function is given by \begin{equation} \nonumber \left{ \begin{array}{l} x=h_1(r,\theta)=r \cos \theta \ y=h_2(r,\theta)=r \sin \theta \end{array} \right. \end{equation} Thus, we have \begin{align} \nonumber f_{R\Theta}(r,\theta)&=f_{XY}(h_1(r,\theta),h_2(r,\theta)) |J|\ \nonumber &=f_{XY}(r \cos \theta,r \sin \theta) |J|. \end{align} where \begin{align} \nonumber J= \det \begin{bmatrix} \frac{\partial h_1}{\partial r} & \frac{\partial h_1}{\partial \theta} \ & \ \frac{\partial h_2}{\partial r} & \frac{\partial h_2}{\partial \theta} \ \end{bmatrix} =\det \begin{bmatrix} \cos \theta & -r \sin \theta \ & \ \sin \theta & r \cos \theta \ \end{bmatrix} =r \cos^2 \theta+r \sin^2 \theta=r.
\end{align} We conclude that \begin{align} \nonumber f_{R\Theta}(r,\theta)&=f_{XY}(r \cos \theta,r \sin \theta) |J|\ \nonumber &=\left{ \begin{array}{l l} \frac{r}{\pi} & \quad r \in [0,1], \theta \in (-\pi,\pi] \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{align} Note that from above we can write \begin{align} \nonumber f_{R\Theta}(r,\theta)=f_R(r)f_{\Theta}(\theta), \end{align} where \begin{equation} \nonumber f_R(r) = \left{ \begin{array}{l l} 2r & \quad r \in [0,1] \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} \begin{equation} \nonumber f_\Theta(\theta) = \left{ \begin{array}{l l} \frac{1}{2\pi} & \quad \theta \in (-\pi,\pi] \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Thus, we conclude that and are independent.