Professional Documents
Culture Documents
Joint Probability Distribution
Joint Probability Distribution
1) Problem:
Table: Joint probability distribution of X and Y
Y
30
10/56
X=xi
10/56
30
19/56
18/56
37/56
60
6/56
9/56
15/56
90
1/56
1/56
Y=yi
29/56
24/56
10/56
X
0
90
60
Example:
Let xi = 0. Thus, P[X= 0] = P[X=0Y=30]+P[X=0Y=60]+P[X=0Y=90]
= 10/56 + 0 + 0 = 10/56
Q1. Find the following:
P[X=30], P[X=60], P[X=90]
Marginal distribution of Y; Marginal expectation of X; Marginal expectation of Y;
Marginal variance of X; marginal variance of Y.
f(x,y) = 1, f(x,y) 0
Example:
1. Is the following function a pmf?
Solution:
f ( x , y ) 0 x y f ( x , y ) =
f ( x , y ) =p
2.
f ( x , y )=
x+ y
2x
xy
, x=0,1,2,3 y =1,2,3,4
60
1
[ x . y ] =1 . Hence it is a pmf.
60
Bernoulli distribution)
Marginal pmf:
The marginal pmf of Y is obtained from the joint pmf as follows:
f ( x , y )=f ( y )=P[Y = y ]
x
Example:
f ( x , y ) =p x+ y q 2x , x=0,1; y =0,1,2, The marginal distribution of X is given as
f ( x )= p x+ y q2 x = px q1 x
y
Conditional Probability:
q
= p x q 1x
. E[X] = p.
1 p
P[X=x|Y=y]=
P [ X =x , Y = y ]
.
P[Y = y ]
xP [X =xY = y ]
x
2
2
, V(X/Y=y) = h(y)= E [ X Y = y ]E [ XY = y ]
E (XY) =
XY P[X=x, Y=y]
If X and Y are centred about their mean then expectation of the centred variables is known as
covariance.
Cov (X, Y) = xy =
xy f(x,y) - E(X)E(Y)
Example:
1. Calculate Cov(x,y) in the example in the table given (Use EXCEL) (Work on your own)
Correlation Coefficient:
If X and Y are standardized to make them unit free and comparable, then the covariance between
where
Cov ( X ,Y )
xy
x y
Important Results:
a.
xy
is symmetric
b.
xy
c.
xy
XE [ X ] Y E [ Y ]
=
Y =E [ Y ] + y ( XE [ X ] ) ,
x
y
x
Proof : x , y =1
i. e linear relationship.
INDEPENDENCE OF RANDOM VARIABLES:
X and Y are independent if
P[X=xY=y] = P[X=x] P[Y=y]
i.e. f ( x , y ) =f ( x ) f ( y )
Consequences:
E(XY) =
xy P[X=x, Y=y]
xy P[X=x] P[Y=y]
x P[X=x]
yP[Y=y]
=E(x) E(y)
E(aX+bY) =aE(X)+bE(Y)
Extension to n variables:
n
i 1
Ci E(Xi)
H.W
Variance of sum:
V(X+Y) =V(X)+V(Y)+2COV(X,Y)
(H.W)
Extension:
n
i 1
Ci 2 V(Xi) + 2
Ci CjCov(Xi, Yj)
A R
f(x,y) 0 &
f ( x , y ) dxdy =1
R
f(x1, x2..,xn) =
Function of a Random variable:
g ( x ) P [ X=x ]
E[g(x)] =
g ( x ) f ( x ) dx
i 1
f(xi)
could