Functions on two random variables
from joint PMF chart
Suppose the joint PMF of
0.2 | 0.2 | |
0.35 | 0.1 | |
0.05 | 0.1 | |
Define |
Solution
First compute the values of
0 | 3 | |
1 | 4 | |
2 | 5 | |
Now take the sum, weighted by probabilities: |
two ways, and , from joint density
Suppose
(a) Compute
(b) Compute
Solution
(a) Method One: via marginal PDF
Then expectation:
(a) Method Two: directly, via two-variable formula:
(b) Directly, via two-variable formula:
Covariance from PMF chart
Suppose the joint PMF of
0.2 | 0.2 | |
0.35 | 0.1 | |
0.05 | 0.1 | |
Find |
Solution
We need
Therefore:
Variance of sum of indicators
An urn contains 3 red balls and 2 yellow balls.
Suppose 2 balls are drawn without replacement, and
Find
Solution
Let
Then
We also have
The variance sum rule gives: