Often we are not interested in the behavior of an individual random variable.
Instead, we may be interested in the relationship between two components of a bivariate random variable.
Example: X = number of hours study per week
The joint probability mass function (or joint PMF) of the jointly discrete random variable X and Y is
\[ p(x,y)=P(X=x,Y=y) \]
\[ p(x_i,y_i)\geq0~for~all~i\\\ \sum_{(x_i,y_i)\in S}p(x_i,y_i)=1\\ p(x<X\leq b,c<Y\le d)=\sum_{i:a,x_i\le b,c<y_i\leq d}p(x_i,y_i) \]
\[ p_X(x)=\sum_{y\in S_Y}p(x,y)\\ p_Y(y)=\sum_{x\in S_X}p(x,y) \]
Example: Measurements for the length and width of plastic covers for CDs are rounded to the nearest mm.
X = length of a randomly selected CD cover
Y = width of a randomly selected CD cover
The possible values of X are 129, 130, and 131 mm. The possible values of Y are 120 and 121 mm. The joint PMF for X and Y is
y
120 121
x 129 0.12 0.08 130 0.42 0.28 131 0.06 0.04
The sum of probability is 1, or each item is greater than 0.
\[ =P(X=130,Y=121)+P(X=131,Y=121)=0.28+0.06=0.32 \]
\[ =P(X=130)+P(X=131)=0.42+0.28+0.06+0.04=0.8 \]
| y | 120 | 121 |
|---|---|---|
| p(y) | 0.6 | 0.4 |