Worked solutions - Quiz 8

This page contains sketch notes to some of the quiz questions from Quiz 8. It is not comprehensive. We have tried to include most of the questions where it may not be obvious how to get to the correct answer.

Question 1

The cumulative density function is defined as the integral of the probability density function from \(-\infty\) to \(x\). In this case, \(f(x)\) is zero for all negative values, so the lower bound is instead 0. So we have, for \(0 \leq x \leq 2\),

\[\begin{split} \begin{align*} F(x) = \int_{0}^x f(t) dt & = \int_{0}^x \left( \frac{t^3}{10} - \frac{t}{20} + \frac{7}{20} \right) dt \\ & = \left[ \frac{t^4}{40} - \frac{t^2}{40} + \frac{7 t}{20} \right]_0^x \\ & = \frac{x^4}{40} - \frac{x^2}{40} + \frac{7 x}{20} \end{align*} \end{split}\]

Question 2

\[\begin{split} \begin{align*} E(X) & = \int_0^2 x f(x) dx \\ & = \int_0^2 x \left( \frac{x^3}{10} - \frac{x}{20} + \frac{7}{20} \right) dx \\ & = \int_0^2 \left( \frac{x^4}{10} - \frac{x^2}{20} + \frac{7 x}{20} \right) dx \\ & = \left[ \frac{x^5}{50} - \frac{x^3}{60} + \frac{7 x^2}{40} \right]_0^2 \\ & = \frac{2^5}{50} - \frac{2^3}{60} + \frac{7 . 2^2}{40} \\ & = 1.207 \end{align*} \end{split}\]

Question 3

\[\begin{split} \begin{align*} E(X^2) & = \int_0^2 x^2 f(x) dx \\ & = \int_0^2 x^2 \left( \frac{x^3}{10} - \frac{x}{20} + \frac{7}{20} \right) dx \\ & = \int_0^2 \left( \frac{x^5}{10} - \frac{x^3}{20} + \frac{7 x^2}{20} \right) dx \\ & = \left[ \frac{x^6}{60} - \frac{x^4}{80} + \frac{7 x^3}{60} \right]_0^2 \\ & = \frac{2^6}{60} - \frac{2^4}{80} + \frac{7 . 2^3}{60} \\ & = 1.8 \end{align*} \end{split}\]

Question 4

\[ \begin{align*} Var(X) = E(X^2) - (E(X))^2 = 1.8 - 1.207^2 = 0.343 \end{align*} \]

Question 5

We have the joint density for \(X\) and \(Y\) of

\[ \begin{align*} f(x,y) = 12 x y (1-x), \mbox{for} 0<x<1, 0<y<1 \end{align*} \]

The marginal density of \(Y\) is given by integrating out \(X\),

\[\begin{split} \begin{align*} f(y) & = \int_x f(x,y) dx \\ & = \int_0^1 12 x y (1-x) dx \\ & = 12 y \int_0^1 x (1-x) dx \\ & = 12 y \int_0^1 (x -x^2) dx \\ & = 12 y \left[ \frac{x^2}{2} - \frac{x^3}{3} \right]_0^1 \\ & = 12 y \left\{ \left( \frac{1^2}{2} - \frac{1^3}{3} \right) - (0 - 0) \right\} \\ & = 12 y \times \frac{1}{6} = 2 y \end{align*} \end{split}\]

Question 6

We have \(f(y) = 2y\) and \(f(x) = 6 x (1-x)\) and \(f(x,y) = 12 x y (1-x)\), for \(0<x<1, 0<y<1\). Random variables \(X\) and \(Y\) are independent if we can factorise the joint density into the two marginal densities, i.e. if \(f(x,y) = f(x) f(y)\). In this case,

\[ \begin{align*} f(x, y) & = 12 x y (1-x) = 2y \times 6 x(1-x) = f(y) \times f(x) \end{align*} \]

so \(X\) and \(Y\) are independent.