Section 6. Joint Distributions (LECTURE NOTES 6) 101
3.6 Joint Distributions
Properties of the joint (bivariate) discrete probability mass function pmf f(x, y) = P (X = x, Y = y) for random variables X and Y with ranges RX and RY where R = {(x, y)|x ∈ RX , y ∈ RY }, are:
• 0 ≤ f(x, y) ≤ 1, for all x ∈ RX , y ∈ RY , • PPf(x, y) = 1, (x,y)∈R • if S ⊂ R, P [(X,Y ) ∈ S] = PPf(x, y), (x,y)∈S with marginal pmfs of X and of Y , X X fX (x) = P (X = x) = f(x, y), fY (y) = P (Y = y) = f(x, y).
y∈RY x∈RX Properties of the joint (bivariate) continuous probability density function pdf f(x, y) for continuous random variables X and Y , are: • f(x, y) ≥ 0, −∞ < x < ∞, −∞ < y < ∞, R ∞ R ∞ • −∞ −∞ f(x, y) dy dx = 1, RR • if S is a subset of two-dimensional plane, P [(X,Y ) ∈ S] = S f(x, y) dy dx, with marginal pdfs of X and of Y , Z ∞ Z ∞ fX (x) = f(x, y) dy, fY (y) = f(x, y) dx. −∞ −∞ Random variables (discrete or continuous) X and Y are independent if and only if
f(x, y) = fX (x) · fY (y).
A set of n random variables are mutually independent if and only if
f(x1, x2, . . . , xn) = fX1 (x1) · fX2 (x3) ··· fXn (xn).
Exercise 3.6 (Joint Distributions) 1. Discrete joint (bivariate) pmf: marbles drawn from an urn. Marbles chosen at random without replacement from an urn consist of 8 blue and 6 black marbles. Blue counts for 0 points and black counts for 1 point. Let X denote number of points from first marble chosen and Y denote number of points from second marble chosen. 102 Chapter 3. Continuous Random Variables (LECTURE NOTES 6)
f(x, y)
0.60
0.40
0.20 0, blue 0, blue 1, black 1, black x, first draw
y, second draw
Figure 3.14: Discrete bivariate function: marbles
(a) Chance of choosing two blue marbles is f(x, y) = f(0, 0) = 8·7 28 8·6 24 6·8 24 6·5 15 (i) 14·13 = 91 (ii) 14·13 = 91 (iii) 14·13 = 91 (iv) 14·13 = 91 . (b) Chance of a blue marble then black marble is f(x, y) = f(0, 1) = 8·7 28 8·6 24 6·8 24 6·5 15 (i) 14·13 = 91 (ii) 14·13 = 91 (iii) 14·13 = 91 (iv) 14·13 = 91 . (c) The joint density is first drawn, x blue, 0 blue, 0 black, 1 black, 1 second drawn, y blue, 0 black, 1 blue, 0 black, 1 8·7 28 8·6 24 6·8 24 6·5 15 f(x, y) 14·13 = 91 14·13 = 91 14·13 = 91 14·13 = 91 (i) True (ii) False (d) Chance of choosing a blue marble in first of two draws is fX (0) = P (X = 0) = f(0, 0) + f(0, 1) = 28 28 28 24 28 15 24 15 (i) 91 + 91 (ii) 91 + 91 (iii) 91 + 91 (iv) 91 + 91 . (e) Chance of choosing a black marble in first of two draws is fX (1) = P (X = 1) = f(1, 0) + f(1, 1) = 28 28 28 24 28 15 24 15 (i) 91 + 91 (ii) 91 + 91 (iii) 91 + 91 (iv) 91 + 91 . 24 24 (f) P (X + Y = 1) = f(0, 1) + f(1, 0) = 91 + 91 = 48 28 24 15 (i) 91 (ii) 91 (iii) 91 (iv) 91 . (g) The joint density, including the marginal probabilities, x f(x, y) blue, 0 black, 1 fY (y) = P (Y = y) 28 24 52 y blue, 0 91 91 91 24 15 39 black, 1 91 91 91 52 39 fX (x) = P (X = x) 91 91 1 (i) True (ii) False Section 6. Joint Distributions (LECTURE NOTES 6) 103
(h) Are first draw X and second draw Y independent? Since 28 52 52 f(0, 0) = ≈ 0.307 6= f (0) · f (0) = · ≈ 0.327 91 X Y 91 91 24 52 39 f(0, 1) = ≈ 0.264 6= f (0) · f (1) = · ≈ 0.245 91 X Y 91 91 24 39 52 f(1, 0) = ≈ 0.264 6= f (1) · f (0) = · ≈ 0.245 91 X Y 91 91 15 39 39 f(1, 1) = ≈ 0.165 6= f (1) · f (1) = · ≈ 0.184 91 X Y 91 91 X and Y are (i) independent (ii) dependent. Only necessary to show one of four equations unequal to one another to demonstrate dependence; on the other hand, must show all equations to be equal to one another to show independence.
2. Another discrete joint pmf. Consider bivariate function xy f(x, y) = , x = 1, 2; y = 1, 2, 3. 18 (a) This function is a pmf because 0 ≤ f(x, y) ≤ 1, x = 1, 2; y = 1, 2, 3 and
2 3 X X xy 1 · 1 1 · 2 1 · 3 2 · 1 2 · 2 2 · 3 = + + + + + = 18 18 18 18 18 18 18 x=1 y=1
(i) 0 (ii) 0.5 (iii) 0.75 (iv) 1. (b) Marginal pmf of X is
3 X xy x + 2x + 3x f (x) = = = X 18 18 y=1
x x x x (i) 3 (ii) 6 (iii) 9 (iv) 10 . (c) Marginal pmf of Y is
2 X xy y + 2y f (y) = = = Y 18 18 x=1
y y y y (i) 3 (ii) 6 (iii) 9 (iv) 10 . (d) Since xy x y f(x, y) = = f (x) · f (y) = · 18 X Y 3 6 X and Y are (i) independent (ii) dependent. 1·1 1·2 2·1 (e) P (X + Y ≤ 3) = f(1, 1) + f(1, 2) + f(2, 1) = 18 + 18 + 18 = 3 4 5 6 (i) 18 (ii) 18 (iii) 18 (iv) 18 . 104 Chapter 3. Continuous Random Variables (LECTURE NOTES 6)