Solved Problems - Marginal PMF - Independence - Two Random Variables
Solved Problems - Marginal PMF - Independence - Two Random Variables
6 Solved Problems
Problem 1
Consider two random variables X and Y with joint PMF given in Table 5.3.
a. Find P (X ≤ 2, Y ≤ 4) .
b. Find the marginal PMFs of X and Y .
c. Find P (Y = 2|X = 1) .
d. Are X and Y independent?
Y = 2 Y = 4 Y = 5
1 1 1
X = 1
12 24 24
1 1 1
X = 2
6 12 8
1 1 1
X = 3
4 8 12
Solution
a. To find P (X ≤ 2, Y ≤ 4) , we can write
1 1 1 1 3
= + + + = .
12 24 6 12 8
1
⎧
⎪ x = 1
⎪ 6
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪ 3
⎪ x = 2
⎪ 8
PX (x) = ⎨
⎪
⎪
⎪ 11
⎪
⎪ x = 3
⎪
⎪
24
⎪
⎪
⎪
⎪
⎪
⎩
⎪
0 otherwise
1
⎧ y = 2
⎪
⎪ 2
⎪
⎪
⎪
⎪
⎪
⎪
⎪
⎪ 1
⎪
⎪ y = 4
⎪ 4
PY (y) = ⎨
⎪
⎪ 1
⎪
⎪ y = 5
⎪
⎪ 4
⎪
⎪
⎪
⎪
⎪
⎪
⎩
⎪
0 otherwise
PXY (1, 2)
=
PX (1)
1
1
12
= = .
1
2
6
d. Are X and Y independent? To check whether X and Y are independent, we need to check that
P (X = x i , Y = yj ) = P (X = x i )P (Y = yj ) , for all x i ∈ RX and all yj ∈ RY . Looking at the
1 3
P (X = 2, Y = 2) = ≠ P (X = 2)P (Y = 2) = .
6 16
Problem 2
I have a bag containing 40 blue marbles and 60 red marbles. I choose 10 marbles (without replacement) at random.
Let X be the number of blue marbles and y be the number of red marbles. Find the joint PMF of X and Y .
Solution
This is, in fact, a hypergeometric distribution. First, note that we must have X + Y = 10, so
40 60
⎧
⎪ (
i
)(
j
)
⎪
i + j = 10, i, j ∈ Z, i, j ≥ 0
100
PXY (i, j) = ⎨ (
10
)
⎪
⎩
⎪
0 otherwise
Problem 3
Let X and Y be two independent discrete random variables with the same CDFs FX and FY . Define
Z = max(X, Y ),
W = min(X, Y ).
Solution
To find the CDF of Z , we can write
FZ (z) = P (Z ≤ z)
= P (max(X, Y ) ≤ z)
= FX (z)FY (z).