\[F(x,y) = F_{X}(x) F_Y(y)\]
\[p(x,y) = p_X(x)p_Y(y)\]
\[f(x,y) = f_X(x)f_Y(y)\]
If \(X\) and \(Y\) are discrete random variables with joint pmf \(p(x,y)\) and marginal pmfs \(p_X(x)\) and \(p_Y(y)\), respectively, then \(X \perp\!\!\!\perp Y\) if and only if either condition is satisfied:
Why?
\[\scriptsize p_{X|Y}(x|y) = \frac{p(x,y)}{p_{Y}(y)} = \frac{p_X(x)p_Y(y)}{p_Y(y)} = p_X(x)\]
If \(X\) and \(Y\) are continuous random variables with joint pdf \(f(x,y)\) and marginal pdfs \(f_X(x)\) and \(f_Y(y)\), respectively, then \(X \perp\!\!\!\perp Y\) if and only if either condition is satisfied:
Why?
\[\scriptsize f_{X|Y}(x|y) = \frac{f(x,y)}{f_{Y}(y)} = \frac{f_X(x)f_Y(y)}{f_Y(y)} = f_X(x)\]
Suppose \(X\) and \(Y\) are jointly discrete with joint pmf:
\[p(x,y) = \left\{\begin{array} {ll} \frac{1}{30}(x+y) & x=0,1,2; y=0,1,2,3 \\ 0 & otherwise\\ \end{array}\right.\]
Are \(X\) and \(Y\) independent?
\(p(x,y)\):
| \(y\) | \(x= 0\) | \(x = 1\) | \(x = 2\) |
|---|---|---|---|
| 0 | 0/30 | 1/30 | 2/30 |
| 1 | 1/30 | 2/30 | 3/30 |
| 2 | 2/30 | 3/30 | 4/30 |
| 3 | 3/30 | 4/30 | 5/30 |
\(p_X(x)\):
| \(x\) | 0 | 1 | 2 |
|---|---|---|---|
| \(P(X=x)\) | 6/30 | 10/30 | 14/30 |
\(p_Y(y)\):
| \(y\) | \(P(Y=y)\) |
|---|---|
| 0 | 3/30 |
| 1 | 6/30 |
| 2 | 9/30 |
| 3 | 12/30 |
\[p(0,0) = 0 \ne p_X(0)p_Y(0) = 18/30^2 \implies X \not\!\perp\!\!\!\perp Y\]
\[a < X < b\] \[c < Y < d\]
where the endpoints could be \(\pm \infty\).
If \(X \sim POI(\lambda)\) and \(Y|X=x \sim BIN(x,p)\), are \(X\) and \(Y\) independent?
Joint support, \(0 \leq Y \leq X < \infty\):
Non-rectangular support \(\implies\) \(X\not \perp\!\!\!\!\!\perp Y\)
Suppose \(X\) and \(Y\) are jointly discrete with joint pmf:
\[p(x,y) = \left\{\begin{array} {ll} \frac{1}{30}(x+y) & x=0,1,2; y=0,1,2,3 \\ 0 & otherwise\\ \end{array}\right.\]
\(p(x,y)\):
| \(y\) | \(x= 0\) | \(x = 1\) | \(x = 2\) |
|---|---|---|---|
| 0 | 0/30 | 1/30 | 2/30 |
| 1 | 1/30 | 2/30 | 3/30 |
| 2 | 2/30 | 3/30 | 4/30 |
| 3 | 3/30 | 4/30 | 5/30 |
Joint support:
Non-rectangular support \(\implies\) \(X\not \perp\!\!\!\!\!\perp Y\)
| Variable | y = 1 | y = 2 | y = 3 |
|---|---|---|---|
| x = 0 | 1/6 | 1/6 | 1/6 |
| x = 1 | 1/6 | 1/6 | 1/6 |
Rectangular support \(\implies\) \(X\) and \(Y\) could be independent!
Suppose \(X\) and \(Y\) are jointly continuous with joint pdf:
\[f(x,y) = \begin{cases}3x & 0 < y < x < 1 \\ 0 & otherwise \end{cases}\]
Are \(X\) and \(Y\) independent?
Joint support:
Non-rectangular support \(\implies\) \(X\not \perp\!\!\!\!\!\perp Y\)
Suppose \(X\) and \(Y\) are jointly continuous with joint pdf:
\[f(x,y) = \begin{cases}\frac{x+y}{8} & 0 \leq x \leq 2, 0\leq y\leq 2\\ 0 & otherwise \end{cases}\]
Are \(X\) and \(Y\) independent?
Joint support:
Rectangular support \(\implies\) \(X\) and \(Y\) could be independent!
Are \(X\) and \(Y\) independent if their jointly continuous CDF is:
\[\scriptsize F(x,y) = \begin{cases} 0 & x < 0\ OR\ y <0 \\ x^2 y^2 & 0 \leq x \leq 1, 0 \leq y \leq 1\\ x^2 & 0 \leq x \leq 1, y > 1\\ y^2 & 0 \leq y \leq 1, x > 1\\ 1 & x > 1, y > 1 \end{cases}\]
Implied joint support:
Rectangular support \(\implies\) \(X\) and \(Y\) could be independent!