STA169 · 2078 · 5 marks
If two random variables have the joint probability density function find (i) constant k (ii) conditional probability density function of X (iii) Identify whether X and Y are independent.
If two random variables have the joint probability density function find (i) constant k (ii) conditional probability density function of X (iii) Identify whether X and Y are independent.
$$f(x,y) = \begin{cases} k(2x + 3y), & 0 \leq x \leq 1, 0 \leq y \leq 1 \ 0, & \text{otherwise} \end{cases}$$
[5]
Joint PDF: $f(x,y) = k(2x + 3y)$, $0 \le x \le 1$, $0 \le y \le 1$
Given data
- $f(x,y) = k(2x+3y)$ for $0 \le x \le 1$, $0 \le y \le 1$; zero otherwise.
(i) Constant k
Normalization condition:
$$\int_0^1 \int_0^1 k(2x+3y),dx,dy = 1$$
Inner integral over $x$:
$$\int_0^1 (2x+3y),dx = \left[x^2 + 3xy\right]_0^1 = 1 + 3y$$
Outer integral over $y$:
$$k\int_0^1 (1+3y),dy = k\left[y + \tfrac{3y^2}{2}\right]_0^1 = k\left(1+\tfrac{3}{2}\right) = \tfrac{5}{2}k$$
Set equal to 1:
$$\tfrac{5}{2}k = 1 \implies \boxed{k = \tfrac{2}{5}}$$
(ii) Conditional PDF of X (given Y)
Marginal of $Y$:
$$f_Y(y) = \int_0^1 \tfrac{2}{5}(2x+3y),dx = \tfrac{2}{5}(1+3y), \quad 0 \le y \le 1$$
Conditional PDF:
$$f_{X|Y}(x|y) = \frac{f(x,y)}{f_Y(y)} = \frac{\tfrac{2}{5}(2x+3y)}{\tfrac{2}{5}(1+3y)}$$
$$\boxed{f_{X|Y}(x|y) = \frac{2x+3y}{1+3y}, \quad 0 \le x \le 1}$$
(iii) Independence
Marginal of $X$:
$$f_X(x) = \int_0^1 \tfrac{2}{5}(2x+3y),dy = \tfrac{2}{5}\left[2xy + \tfrac{3y^2}{2}\right]_0^1 = \tfrac{2}{5}\left(2x + \tfrac{3}{2}\right) = \frac{4x+3}{5}$$
Product of marginals:
$$f_X(x),f_Y(y) = \frac{4x+3}{5}\cdot\frac{2(1+3y)}{5} = \frac{2(4x+3)(1+3y)}{25}$$
Compare with joint:
$$f(x,y) = \frac{2(2x+3y)}{5}$$
Since
$$\frac{2(4x+3)(1+3y)}{25} \neq \frac{2(2x+3y)}{5},$$
the joint density does not factor into the product of marginals.
Conclusion: X and Y are NOT independent.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.