2024-10-21
Calculate probabilities for a pair of discrete random variables
Calculate a joint, marginal, and conditional probability mass function (pmf)
Calculate a joint, marginal, and conditional cumulative distribution function (CDF)
Definition: joint pmf
The joint pmf of a pair of discrete r.v.’s \(X\) and \(Y\) is \[p_{X,Y}(x,y) = \mathbb{P}(X=x\ and\ Y=y) = \mathbb{P}(X=x, Y=y)\]
Example 1
Let \(X\) and \(Y\) be two random draws from a box containing balls labelled 1, 2, and 3 without replacement.
Find \(p_{X,Y}(x,y)\).
Find \(\mathbb{P}(X+Y=3).\)
Find \(\mathbb{P}(Y = 1).\)
Find \(\mathbb{P}(Y \leq 2).\)
Find the joint CDF \(F_{X,Y}(x,y)\) for the joint pmf \(p_{X,Y}(x,y)\)
Find the marginal CDFs \(F_{X}(x)\) and \(F_{Y}(y)\)
Find \(p_{X|Y}(x|y)\).
Are \(X\) and \(Y\) independent? Why or why not?
Example 1
Let \(X\) and \(Y\) be two random draws from a box containing balls labelled 1, 2, and 3 without replacement.
Find \(p_{X,Y}(x,y)\).
Find \(\mathbb{P}(X+Y=3).\)
Example 1
Let \(X\) and \(Y\) be two random draws from a box containing balls labelled 1, 2, and 3 without replacement.
Find \(\mathbb{P}(Y = 1).\)
Find \(\mathbb{P}(Y \leq 2).\)
Some properties of joint pmf’s:
A joint pmf \(p_{X,Y}(x,y)\) must satisfy the following properties:
\(p_{X,Y}(x,y)\geq 0\) for all \(x, y\).
\(\sum \limits_{\{all\ x\}} \sum \limits_{\{all\ y\}} p_{X,Y}(x,y)=1\).
Marginal pmf’s:
\(p_X(x) = \sum \limits_{\{all\ y\}} p_{X,Y}(x,y)\)
\(p_Y(y) = \sum \limits_{\{all\ x\}} p_{X,Y}(x,y)\)
Definition: joint CDF
The joint CDF of a pair of discrete r.v.’s \(X\) and \(Y\) is \[F_{X,Y}(x,y) = \mathbb{P}(X \leq x\ and\ Y \leq y) = \mathbb{P}(X \leq x, Y \leq y)\]
Example 1
Let \(X\) and \(Y\) be two random draws from a box containing balls labelled 1, 2, and 3 without replacement.
Example 1
Let \(X\) and \(Y\) be two random draws from a box containing balls labelled 1, 2, and 3 without replacement.
\(F_X(x)\): right most columns of the CDf table (where the \(Y\) values are largest)
\(F_Y(y)\): bottom row of the table (where X values are largest)
\(F_X(x)=\lim\limits_{y\rightarrow\infty}F_{X, Y}(x,y)\)
\(F_Y(y)=\lim\limits_{x\rightarrow\infty}F_{X, Y}(x,y)\)
Recall that for events \(A\) and \(B\),
\(\mathbb{P}(A|B) = \frac{\mathbb{P}(A \cap B)}{\mathbb{P}(B)}\)
\(A\) and \(B\) are independent if and only if
\(\mathbb{P}(A|B) = \mathbb{P}(A)\)
\(\mathbb{P}(A \cap B) = \mathbb{P}(A)\cdot\mathbb{P}(B)\)
Independence and conditioning are defined similarly for r.v.’s, since \[p_X(x) = \mathbb{P}(X=x)\ \mathrm{and}\ \ p_{X,Y}(x,y) = \mathbb{P}(X = x ,Y = y).\]
Definition: conditional pmf
The conditional pmf of a pair of discrete r.v.’s \(X\) and \(Y\) is defined as \[p_{X|Y}(x|y) = \mathbb{P}(X = x |Y = y) = \frac{\mathbb{P}(X = x\ and\ Y = y)}{\mathbb{P}(Y = y)} =\frac{p_{X,Y}(x,y) }{p_{Y}(y) }\] if \(p_{Y}(y) > 0\).
The following properties follow from the conditional pmf definition:
If \(X \perp Y\) (independent)
If \(X_1, X_2, …, X_n\) are independent
Example 1
Let \(X\) and \(Y\) be two random draws from a box containing balls labelled 1, 2, and 3 without replacement.
Remark: