5.3.3 Solved Problems
Problem Let and be two jointly continuous random variables with joint PDF \begin{equation} \nonumber f_{XY}(x,y) = \left{ \begin{array}{l l} 2 & \quad y+x \leq 1, x>0, y>0 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Find and .
- Solution
- For $0 \leq x \leq 1$, we have \begin{align}%\label{} \nonumber f_X(x)&=\int_{-\infty}^{\infty} f_{XY}(x,y)dy \ \nonumber &=\int_{0}^{1-x}2dy\ \nonumber &=2(1-x). \end{align} Thus, \begin{equation} \nonumber f_{X}(x) = \left{ \begin{array}{l l} 2(1-x) & \quad 0 \leq x \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Similarly, we obtain \begin{equation} \nonumber f_{Y}(y) = \left{ \begin{array}{l l} 2(1-y) & \quad 0 \leq y \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Thus, we have \begin{align}%\label{} \nonumber EX&=\int_{0}^{1}2x(1-x)dx\ \nonumber &=\frac{1}{3}=EY, \end{align} \begin{align}%\label{} \nonumber EX^2&=\int_{0}^{1}2x^2(1-x)dx\ \nonumber &=\frac{1}{6}=EY^2. \end{align} Thus, \begin{align}%\label{} \nonumber Var (X)=Var(Y)=\frac{1}{18}. \end{align} We also have \begin{align}%\label{} \nonumber EXY&=\int_{0}^{1} \int_{0}^{1-x}2xydydx\ \nonumber &=\int_{0}^{1}x(1-x)^2dx\ \nonumber &=\frac{1}{12}. \end{align} Now, we can find and : \begin{align}%\label{} \nonumber \textrm{Cov}(X,Y)&=EXY-EXEY\ \nonumber &=\frac{1}{12}-\left(\frac{1}{3}\right)^2\ \nonumber &=-\frac{1}{36}, \end{align} \begin{align}%\label{} \nonumber \rho(X,Y)&=\frac{\textrm{Cov}(X,Y)}{\sqrt{Var(X) Var(Y)}}\ \nonumber &=-\frac{1}{2}. \end{align}
Problem I roll a fair die times. Let be the number of $1$'s that I observe and let be the number of $2$'s that I observe. Find and . Hint: One way to solve this problem is to look at .
- Solution
- Note that you can look at this as a binomial experiment. In particular, we can say that and are . Also, is . Remember the variance of a random variable is . Thus, we can write \begin{align}%\label{} \nonumber n\frac{2}{6}.\frac{4}{6}&=Var(X+Y)\ \nonumber &=Var(X)+Var(Y)+2\textrm{Cov}(X,Y)\ \nonumber &=n\frac{1}{6}.\frac{5}{6}+n\frac{1}{6}.\frac{5}{6}+2\textrm{Cov}(X,Y). \end{align} Thus, \begin{align}%\label{} \nonumber \textrm{Cov}(X,Y)=-\frac{n}{36}. \end{align} And, \begin{align}%\label{} \nonumber \rho(X,Y)=\frac{\textrm{Cov}(X,Y)}{\sqrt{Var(X) Var(Y)}}=-\frac{1}{5}. \end{align}
Problem In this problem, you will provide another proof for the fact that . By definition , where $ U$ and are the normalized versions of and as defined in Equation 5.22: \begin{align} U=\frac{X-EX}{\sigma_X}, \hspace{10pt} V=\frac{Y-EY}{\sigma_Y}. \end{align} Use the fact that to show that .
- Solution
- We have \begin{align}%\label{} \nonumber \textrm{Var}(U+V)&=\textrm{Var}(U)+\textrm{Var}(V)+2 \textrm{Cov}(U,V)\ \nonumber &=1+1+2\rho_{XY}. \end{align} Since , we conclude . Also, from this we conclude that \begin{align}%\label{} \nonumber \rho(-X,Y) \geq -1. \end{align} But , so we conclude .
Problem Let and be two independent random variables. Let also and . Find .
- Solution
- It is useful to find the distributions of and . To find the CDF of , we can write \begin{align}%\label{} \nonumber F_Z(z)&=P(Z \leq z) \ \nonumber &=P(\max(X,Y) \leq z)\ \nonumber &=P\bigg((X \leq z) \textrm{ and } (Y \leq z)\bigg)\ \nonumber &=P(X \leq z) P(Y \leq z) &(\textrm{since }X \textrm{ and }Y \textrm{ are independent})\ \nonumber &=F_X(z)F_Y(z). \end{align} Thus, we conclude \begin{equation} \nonumber F_Z(z) = \left{ \begin{array}{l l} 0 & \quad z<0 \ z^2 & \quad 0 \leq z \leq 1 \ 1 & \quad z>1 \end{array} \right. \end{equation} Therefore, \begin{equation} \nonumber f_Z(z) = \left{ \begin{array}{l l} 2z & \quad 0 \leq z \leq 1 \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} From this we obtain . Note that we can find as follows \begin{align}%\label{} \nonumber 1=E[X+Y]&=E[Z+W] \ \nonumber &=EZ+EW\ \nonumber &=\frac{2}{3}+EW. \end{align} Thus, . Nevertheless, it is a good exercise to find the CDF and PDF of , too. To find the CDF of , we can write \begin{align}%\label{} \nonumber F_W(w)&=P(W \leq w) \ \nonumber &=P(\min(X,Y) \leq w)\ \nonumber &=1-P(\min(X,Y) > w)\ \nonumber &=1-P\bigg((X > w) \textrm{ and } (Y > w)\bigg)\ \nonumber &=1-P(X > w) P(Y > w) &(\textrm{since }X \textrm{ and }Y \textrm{ are independent})\ \nonumber &=1-(1-F_X(w))(1-F_Y(w))\ \nonumber &=F_X(w)+F_Y(w)-F_X(w)F_Y(w). \end{align} Thus, \begin{equation} \nonumber F_W(w) = \left{ \begin{array}{l l} 0 & \quad w<0 \ 2w-w^2 & \quad 0 \leq w \leq 1 \ 1 & \quad w>1 \end{array} \right. \end{equation} Therefore, \begin{equation} \nonumber f_W(w) = \left{ \begin{array}{l l} 2-2w & \quad 0 \leq w \leq 1 \ 0 & \text{otherwise} \end{array} \right. \end{equation} From the above PDF we can verify that . Now, to find , we can write \begin{align}%\label{} \nonumber \textrm{Cov}(Z,W)&=E[ZW]-EZEW \ \nonumber &=E[XY]-EZEW\ \nonumber &=E[X]E[Y]-E[Z]E[W] &(\textrm{since }X \textrm{ and }Y \textrm{ are independent})\ \nonumber &=\frac{1}{2}.\frac{1}{2}-\frac{2}{3}.\frac{1}{3}\ \nonumber &=\frac{1}{36}. \end{align} Note that as we expect intuitively.
Problem Let and be jointly (bivariate) normal, with . Show that the two random variables and are independent.
- Solution
- Note that since and are jointly normal, we conclude that the random variables and are also jointly normal. We have \begin{align}%\label{} \nonumber \textrm{Cov}(X+Y,X-Y)&=\textrm{Cov}(X,X)-\textrm{Cov}(X,Y)+\textrm{Cov}(Y,X)-\textrm{Cov}(Y,Y)\ \nonumber &=Var(X)-Var(Y)\ \nonumber &=0. \end{align} Since and are jointly normal and uncorrelated, they are independent.
Problem Let and be jointly normal random variables with parameters , , , , and .
- Find .
- Find the constant if we know and are independent.
- Find .
- Solution
- Since and are jointly normal, the random variable is normal. We have \begin{align}%\label{} \nonumber &EU=EX+EY=-1, \end{align} \begin{align} \nonumber Var(U)&=Var(X)+Var(Y)+2 \textrm{Cov}(X,Y) \ \nonumber &=1+4+2 \sigma_X \sigma_Y \rho(X,Y)\ \nonumber &=5-2 \times 1\times2\times\frac{1}{2}\ \nonumber &=3. \end{align} Thus, . Therefore, \begin{align}%\label{} \nonumber P(U>0)=1-\Phi\left(\frac{0-(-1)}{\sqrt{3}}\right)=1-\Phi\left(\frac{1}{\sqrt{3}}\right)=0.2819 \end{align}
- Note that and are jointly normal. Thus, for them, independence is equivalent to having . Also, note that . We have \begin{align} \nonumber \textrm{Cov}(aX+Y,X+2Y)&=a\textrm{Cov}(X,X)+2a\textrm{Cov}(X,Y)+\textrm{Cov}(Y,X)+2\textrm{Cov}(Y,Y) \ \nonumber &=a-(2a+1)+8\ \nonumber &=-a+7. \end{align} Thus, .
- If we define and , then note that and are jointly normal. We have \begin{align} \nonumber &EU=-1, Var(U)=3,\ \nonumber &EV=1, Var(V)=12, \end{align} and \begin{align}%\label{} \nonumber \textrm{Cov}(U,V)&=\textrm{Cov}(X+Y,2X-Y)\ &=2\textrm{Cov}(X,X)-\textrm{Cov}(X,Y)+2\textrm{Cov}(Y,X)-\textrm{Cov}(Y,Y)\ \nonumber &=2Var(X)+\textrm{Cov}(X,Y)-Var(Y)\ \nonumber &=2-1-4\ \nonumber &=-3. \end{align} Thus, \begin{align}%\label{} \nonumber \rho(U,V)&=\frac{\textrm{Cov}(U,V)}{\sqrt{Var(U) Var(V)}}\ \nonumber &=-\frac{1}{2}. \end{align} Using Theorem 5.4, we conclude that given , is normally distributed with \begin{align}%\label{} \nonumber &E[U|V=0]=\mu_U+ \rho(U,V) \sigma_U \frac{0-\mu_V}{\sigma_V}=-\frac{3}{4}, \ \nonumber &Var(U|V=0)=(1-\rho_{UV}^2)\sigma^2_U=\frac{9}{4}. \end{align} Thus \begin{align}%\label{} \nonumber P(X+Y>0|2X-Y=0)&=P(U>0|V=0)\ \nonumber &=1-\Phi\left(\frac{0-(-\frac{3}{4})}{\frac{3}{2}}\right)\ &= 1-\Phi\left(\frac{1}{2}\right)=0.3085. \end{align}