Please see the **detailed homework policy document** for information about homework formatting, submission, and grading.

Let \(H\) denote the number of times Harry Potter manages to irritate Professor Snape in one day. Let \(R\) denote the number of times Ron Weasley manages to irritate Professor Snape in one day. Let the joint probability mass function for \((H, R)\) be

\[ f(h, r) = \begin{cases} \displaystyle\frac{h + r}{24} & h \in \{1, 2\}, \ r \in \{0, 1, 2, 3\} \\[1.5ex] \ \ \ 0 &\text{otherwise} \end{cases} \]

**(a)** Calculate \(\text{Cov}[H, R]\).

**(b)** Each day, Professor Snape takes 20 points from Gryffindor, simply because he can. Additionally, Professor Snape takes 10 points from Gryffindor each time Ron Weasley irritates him. The only person that Snape despises more than Ron is Harry, so Professor Snape takes 15 points from Gryffindor each time Harry irritates him. If these are the only three sources of point deductions for Gryffindor, what is the expected point loss for Gryffindor each day?

Consider two independent random variables \(X\) and \(Y\). \(X\) has a Uniform distribution on the interval \((0, 3)\). The probability density function of \(Y\) is given by

\[ f_Y(y) = \begin{cases} \displaystyle\frac{y^2}{9} & 0 < y < 3 \\[1.5ex] \ 0 &\text{otherwise} \end{cases} \]

**(a)** Calculate \(P(X \div Y > 1)\).

**(b)** Calculate \(P(X + Y > 2)\).

**(c)** Calculate \(P(X \times Y > 3)\).

Every week, Alex receives \(\$15\) allowance from his parents. He usually spends most of it buying candy. In Alex’s favorite candy store, M&M’s are sold in bulk at \(\$5\) per pound, and Skittles are sold at \(\$3\) per pound. Let \(X\) and \(Y\) denote the weight of M&M’s and Skittles Alex buys, respectively. Let the joint probability density function for \((X, Y)\) be

\[ f(x, y) = \begin{cases} \displaystyle\frac{4}{45}x^2y & x > 0, \ y > 0, \ 5 x + 3 y < 15 \\[1.5ex] \ 0 &\text{otherwise} \end{cases} \]

**(a)** Calculate the probability that Alex buys more M&M’s than Skittles. That is, calculate \(P(X > Y)\).

**(b)** Calculate the probability that the total weight of candy that Alex buys is over \(2\) pounds. That is, calculate \(P(X + Y > 2)\).

**(c)** Calculate the probability that the total weight of candy that Alex buys is over \(4\) pounds. That is, calculate \(P(X + Y > 4)\).

**(d)** Find the marginal probability density function of \(X\), \(f_X(x)\). *Be sure to include its support.*

**(e)** Find the marginal probability density function of \(Y\), \(f_Y(y)\). *Be sure to include its support.*