Project 2 – Solution Key

STAT 380

Problem 1

\[ \int_0^1 (y + c_1)\,dy = \left[\frac{y^2}{2} + c_1 y\right]_0^1 = \frac{1}{2} + c_1 = 1 \]

\[ c_1 = \frac{1}{2}, \qquad f_Y(y) = y + \frac{1}{2};\quad 0<y<1 \]

Problem 2

\[ E[Y] = \int_0^1 y\left(y + \frac{1}{2}\right)dy = \left[\frac{y^3}{3} + \frac{y^2}{4}\right]_0^1 = \frac{1}{3} + \frac{1}{4} = \frac{7}{12} \]

Problem 3

\[ E[Y^2] = \int_0^1 y^2\left(y + \frac{1}{2}\right)dy = \left[\frac{y^4}{4} + \frac{y^3}{6}\right]_0^1 = \frac{1}{4} + \frac{1}{6} = \frac{5}{12} \]

\[ V[Y] = E[Y^2] - (E[Y])^2 = \frac{5}{12} - \left(\frac{7}{12}\right)^2 = \frac{60}{144} - \frac{49}{144} = \frac{11}{144} \]

Problem 4

\[ T = \frac{9}{5}Y \]

\[ E[T] = \frac{9}{5}E[Y] = \frac{9}{5}\cdot\frac{7}{12} = \frac{21}{20} = 1.05 \]

\[ V[T] = \left(\frac{9}{5}\right)^2 V[Y] = \frac{81}{25}\cdot\frac{11}{144} = \frac{99}{400} = 0.2475 \]

Problem 5

Marginal of \(Y\):

\[ f_Y(y) =y+\frac{1}{2};\quad 0<y<1 \]

Conditional distribution:

\[ f_{X|Y}(x|y) = \frac{f_{X,Y}(x,y)}{f_Y(y)} = \frac{\frac{1}{4}(x+2y)}{y + \frac{1}{2}} = \frac{x + 2y}{4y + 2};\quad 0<x<2 \]

Problem 6

For \(0<x<2\):

\[ F_{X|Y}(x|y) = \int_0^x \frac{t + 2y}{4y+2}\,dt = \frac{1}{4y+2}\left[\frac{t^2}{2} + 2yt\right]_0^x = \frac{x^2 + 4xy}{8y + 4} \]

\[ F_{X|Y}(x|y) = \begin{cases} 0, & x \le 0 \\[4pt] \dfrac{x^2 + 4xy}{8y + 4}, & 0 < x < 2 \\[8pt] 1, & x \ge 2 \end{cases} \qquad 0<y<1 \]

Note that \(y\) is a fixed value.

Problem 7

Marginal of \(X\):

\[ f_X(x) = \int_0^1 \frac{1}{4}(x + 2y)\,dy = \frac{1}{4}\left[xy + y^2\right]_0^1 = \frac{x+1}{4};\quad 0<x<2 \]

Moments of \(X\):

\[ E[X] = \int_0^2 x\cdot\frac{x+1}{4}\,dx = \frac{1}{4}\left[\frac{x^3}{3} + \frac{x^2}{2}\right]_0^2 = \frac{1}{4}\left(\frac{8}{3} + 2\right) = \frac{7}{6} \]

\[ E[X^2] = \int_0^2 x^2\cdot\frac{x+1}{4}\,dx = \frac{1}{4}\left[\frac{x^4}{4} + \frac{x^3}{3}\right]_0^2 = \frac{1}{4}\left(4 + \frac{8}{3}\right) = \frac{5}{3} \]

\[ V[X] = \frac{5}{3} - \left(\frac{7}{6}\right)^2 = \frac{60}{36} - \frac{49}{36} = \frac{11}{36} \]

Joint moment:

\[ E[XY] = \int_0^1\int_0^2 xy\cdot\frac{1}{4}(x + 2y)\,dx\,dy = \frac{1}{4}\int_0^1\left[\frac{x^3 y}{3} + x^2y^2\right]_0^2 dy = \frac{1}{4}\int_0^1\left(\frac{8y}{3} + 4y^2\right)dy \]

\[ = \frac{1}{4}\left[\frac{4y^2}{3} + \frac{4y^3}{3}\right]_0^1 = \frac{1}{4}\left(\frac{8}{3}\right) = \frac{2}{3} \]

Covariance:

\[ Cov(X,Y) = E[XY] - E[X]E[Y] = \frac{2}{3} - \frac{7}{6}\cdot\frac{7}{12} = \frac{48}{72} - \frac{49}{72} = -\frac{1}{72} \]

Correlation:

\[ Corr(X,Y) = \frac{Cov(X,Y)}{\sqrt{V[X]\,V[Y]}} = \frac{-1/72}{\sqrt{\frac{11}{36}\cdot\frac{11}{144}}} = \frac{-1/72}{11/72} = -\frac{1}{11} \approx -0.0909 \]

The correlation is very close to 0 and negative. This means that there is a weak negative linear relationship between fan rotation speed and chip temperature. Higher chip temperatures are associated with slightly lower fan speeds (which seems counterintuitive), but the weak relationship means that one doesn’t really affect the other.