Professional Documents
Culture Documents
Section 4.2
Problems: 1, 4, 5, 7
4.2-1 The joint p.m.f. in tabular form is:
Now, changing the notation a bit, and simplifying yet more, we get:
Now, taking the partial derivative of K(a, b) first with respect to a, and setting it equal to 0, we get:
∂K(a, b)
= −2µY + 2a + 2bµX ≡ 0
∂a
And solving for a:
a = µY − bµX
Therefore, the random variables X and Y must be dependent, because the support is not rectangular.
4.3-1 (a) We previously showed (in problem 4.2.1) that the joint PMF of X and Y in tabular form is:
f (x, y) 1 2 3 4 fx (x)
2 3 4 5 14
X 1 32 32 32 32 32
3 4 5 6 18
2 32 32 32 32 32
5 7 9 11
fY (y) 32 32 32 32 1
Although the above table presents the marginal PMFs of X and Y in tabular form, we also showed (in
problem 4.2.1) that the formula for the marginal PMF of X is:
4
X x+y 4x + 10
fX (x) = =
y=1
32 32
f (x, y) x + y 2y + 3 x+y
g(x|y) = = ÷ =
fY (y) 32 32 2y3
for x = 1, 2 and y = 1, 2, 3, 4. Therefore, the conditional distribution of X given Y in tabular form is:
g(x|y) 1 2 3 4
2 3 4 5
X 1 5 7 9 11
3 4 5 6
2 5 7 9 11
1 1 1 1
f (x, y) x + y 4x + 10 x+y
h(y|x) = = ÷ =
fX (x) 32 32 4x + 10
for x = 1, 2 and y = 1, 2, 3, 4. Therefore, the conditional distribution of Y given X in tabular form is:
h(x|y) 1 2 3 4
2 3 4 5
X 1 14 14 14 14
3 4 5 6
2 18 18 18 18
1 1 1 1
(d) The probability that Y is between 1 and 3 (inclusive) given that X is 1 is:
2 3 4 9
P (1 ≤ Y ≤ 3|X = 1) = + + =
14 14 14 14
The probability that Y is at most 2 given that X is 2 is:
3 4 7
P (Y ≤ 2|X = 2) = + =
18 18 18
The probability that X is 2 given that Y is 3 is:
5
P (X = 2|Y = 2) = g(2|3) =
9
(e) The conditional mean of Y given that X = 1 is:
X 2 3 4 5 40 20
yh(y|1) = 1 +2 +3 +4 = =
y
14 14 14 14 14 7
h(x|y) 1 2 fX (x)
3 1 4
X 1 8 8 8
1 3 4
2 8 8 8
4 4 1
fY (y) 8 8 8
Using the following formula to find the conditional PMF of X given Y is:
f (x, y)
g(x|y) =
fY (y)
we get that the conditional PMF of X given Y is:
g(x|y) 1 2
3 1
X 1 4 4
1 3
2 4 4
1 1
Then, the conditional expectation of X given Y = 1 is:
2
X 3 1 5
E(X|Y = 1) = xg(x|1) = 1 +2 =
x=1
4 4 4
Now, using the following formula to find the conditional PMF of Y given X is:
f (x, y)
h(y|x) =
fX (x)
h(x|y) 1 2
3 1
X 1 4 4
1 3
2 4 4
1 1
4.3-3 (a) The joint p.m.f. of X and Y is the trinomial p.m.f. with n = 50 and p1 = 0.02 and p2 = 0.90. That is:
50!
f (x, y) = 0.02x 0.90y 0.0850−x−y
x!y!(50 − x − y)!
(50 − x)!
h(y|x) = 0.90y 0.0850−x−y ÷ 0.9850−x
y!(50 − x − y)!
for y = 0, 1, 2, . . . , 50−x. That is, Y given X = 3 is binomial with n = 50−3 = 47 and p = 0.90/0.98 =
0.918.
(d) The conditional mean of Y given X = 3 is np = 47(0.918) = 43.16.
(e) Using the formula for the correlation coefficient between trinomial X and Yas derived in Example 4.3.3 on
p. 201, we get:
r s
p1 p2 0.02(0.90)
ρ=− =− = −0.429
(1 − p1 )(1 − p2 ) (0.98)(0.10)
It shouldnt be too much of a surprise that the correlation coefficient is negative, as youd expect that as one
of the variables, say X, goes up, the other one, say Y, goes down.