Joint Distribution of Two Random Variables
Joint Distribution of Two Random Variables
P.1
e.g. Toss two coins 1 if head on rst coin Let X = 0 if tail on rst coin Y = number of heads on two coins Sample point (x, y) Here HH (1, 2) HT (1, 1) TH (0, 1) TT (0, 0)
1
1 4 1 4
2 0
1 4
Pr(X = 0) = Pr {(X = 0, Y = 0) (X = 0, Y = 1) (X = 0, Y = 2)} = Pr (X = 0, Y = 0) + Pr (X = 0, Y = 1) + Pr (X = 0, Y = 2) since mutually exclusive i.e. the sum of the rst row (X = 0 row) will give Pr(X = 0) Similarly for Pr(X = 1).
P.2
0
1 4
1
1 4 1 4 1 2
2 0
1 4 1 4
Pr(X = x)
1 2 1 2
0
1 4
The same also applies to Y . We call Pr(X = x) = px (x) the marginal probability function of X and Pr(Y = y) = py (y) the marginal probability function of Y .
Independence
The random variables X and Y are independent i Pr(X = x, Y = y) = Pr(X = x) Pr(Y = y) or p(x, y) = px (x) py (y) for all possible x and y. Otherwise X and y are dependent. e.g. Toss two coins: X and Y are dependent Roll two dice: X and Y are dependent
Conditional p.f.
The probability of X/Y is called the conditional probability of X given Y . px (x/y) = e.g. toss two coins Pr(X = x/Y = y) Y 0 0 X 1 0 1 1
1 2 1 2
2 0 1
P.3
1
1 2 1 2
2 0
1 2
Expectations The random variable g(X, Y ) has an expected value given by XX E {g(X, Y )} = g(x, y)p(x, y)
x y
provided the series converges absolutely. e.g. toss two coins Let g(X, Y ) = XY Then E {g(X, Y )} = E(XY ) = = (0 0) XX xyp(x, y)
1 1 + (0 1) + (0 2) 0 4 4 1 1 +(1 0) 0 + (1 1) + (1 2) 4 4 3 = 4 g(X, Y ) = XY 2
Note that E(X) & E(Y ) are obtained in the usual way using the marginal p.f. E(X) = 0 1 + 1 1 = 1 2 2 2 E(Y ) = 0 1 + 1 1 + 2 4 2
1 4
=1
= x = y
Joint Distribution
P.4
is referred to as the covariance of X and Y , cov(X, Y ). E(X x )(Y y ) = E(XY x y X + x y ) = E(XY ) x E(Y ) y E(X) + x y = E(XY ) x y e.g. cov(X, Y ) = 3 4 1 1 (1) = 2 4
This is a measure of the association or degree of relationship between X and Y. A standardized measure is given by = cov(X, Y ) xy
called the correlation coecient of X and Y. e.g. toss two coins E(X 2 ) = 0 1 1 1 + 12 = 2 2 2 2 1 1 1 2 = = x 2 2 4 1 1 3 2 2 1 E(Y ) = 0 + 1 + 22 = 4 2 4 2 3 1 2 = 12 = y 2 2
1
q = q 4
1 4
1 2
1 = q = 0.7071
1 2
Joint Distribution
P.5
< 0 X, Y tend to move inversely i.e. and large X is more likely to occur with small Y . small X is more likely to occur with large Y . > 0 X, Y tend to move proportionally i.e. large X is more likely to occur with large Y . and small X is more likely to occur with small Y . The closer is to +1 or 1, the stronger is the tendency.