Professional Documents
Culture Documents
6c 2c 6c 2c
2 1 1 2
8c 8c 8c
2 2 2
15 12 1
28 8 28
15 12 1 1
E(X ) xP ( x ) 0
28
1
28
2
28 2
Dr.K.Kavitha(SAS)
3. Let X be a R.V with E(X)=10 and V(X)=25. Find the positive
values of ‘a’ and ‘b’ such that Y=aX-b has expectation zero and
variance 1.
Given E(X)=10, V(x)=25
Now, E(Y)=E(aX-b)= aE(X)-b=0
a(10)-b=0---------(1)
Var(Y)=Var(aX-b)
=a2var(x)
a2(25)=1--------------(2)
Solving eqns (1) and (2) , we get
a=1/5; b=2.
Marginal density of X.
5 5
xy
f ( x) f (x, y)dy 96dy x / 8, 0 x 4
1 1
Marginal density of Y:
4 4
xy
f ( y) f ( x, y)dx 96 dx y / 12, 1 y 5 Dr.K.Kavitha(SAS)
0 0
4 4
x 1
E(X ) xf ( x ) dx x
8
dx
24
( 64 ) 8 / 3
0 0
5 5
y
E (Y ) yf ( y ) dy y.
12
dy 31 / 9
1 1
45 45
xy
E ( XY ) xyf ( x , y ) dydx xy 96
dydx
01 01
4
1 2 ( y 3 / 3 ) 5 dx 248 / 27
96 x 1
0
cov( X , Y ) E ( XY ) E ( X ) E ( Y )
248 8 31
. 0
27 3 9
Y -1 1
P(X) 3/8 5/8 Dr.K.Kavitha(SAS)
E( X ) xP( x) 4 / 8
x
E (Y ) yP( y) 2 / 8
y
E ( XY ) xyP( x, y ) 0(1 / 8) 0(3 / 8) (1)(2 / 8) 1(2 / 8) 0
x y
COV ( X , Y ) E ( XY ) E ( X ) E (Y ) 1 / 8
Correlation
Correlation is a statistical tool which measures the degree of
relationship between any two variable characteristics.
Karl Pearson’s coefficient of correlation:
It is denoted as ‘r’ and is computed as,
COV ( X , Y ) E ( XY ) E ( X ) E (Y )
r ( x, y )
V ( x ) V (Y ) V ( X ) V (Y )
Problem(Continuous case)
1. Two random variables X and Y have joint pdf
2 x y, 0 x 1, 0 y 1
f ( x, y )
0, otherwise
1 4
3
E (X ) xf ( x ) dx x(
2
x ) dx 5 / 12
0 0
1 1
3
E (Y ) yf ( y ) dy y .(
2
y ) dy 5 / 12
0 0
1 1
3
E (X 2) x 2 f ( x ) dx x2( x ) dx 1 / 4
2
0 0
1
E (Y 2 ) y 2 f ( y ) dy 1 / 4
0
1 1 1 1
E ( XY ) xyf ( x , y ) dydx xy ( 2 x y ) dydx
0 0 0 0
1/6
cov( X , Y ) E ( XY ) E ( X ) E ( Y ) 1 / 144
11
V ( X ) E ( X 2 ) { E ( X )} 2
144
11
V ( Y ) E ( Y 2 ) { E ( Y )} 2
144
COV ( x , y ) 1
r
V ( X ) V (Y ) 11
Problem(Discrete case)
1. The Joint pmf of X and Y is
-1 1
Y
X
0 1/8 3/8
1 2/8 2/8
Dr.K.Kavitha(SAS)
Find the correlation correlation of X and Y.
Marginal Pmf of X:
X 0 1
P(X) 4/8 4/8
Marginal Pmf of Y
Y -1 1
P(X) 3/8 5/8
E(X ) xP( x) 4 / 8
x
E (Y ) yP( y ) 2 / 8
y
E(X 2 ) x 2 P( x) 4 / 8
E (Y 2 ) y 2 P ( y ) 1
V ( X ) E ( X 2 ) {E ( X )}2 1 / 4
V (Y ) E (Y 2 ) {E (Y )}2 15 / 16
E ( XY ) xyP ( x, y ) 0(1 / 8) 0(3 / 8) (1)(2 / 8) 1(2 / 8) 0
x y
COV ( X , Y ) E ( XY ) E ( X ) E (Y ) 1 / 8
cov( X , Y )
r 0.26
V ( X ) V (Y )
Dr.K.Kavitha(SAS)
Correlation: For frequency distribution the formula is
xy
x y
r n
x y , when the series is individual series
For grouped data,2
fxy
x y
f 1 2 2 1 2 2
r where x x x ; y y y
x y n n
Correlation coefficient (r) lies between -1 and 1.
Problem:
1. Calculate the correlation coefficient for the following
heights(in inches) of fathers X and their sons Y.
X 65 66 67 67 68 69 70 72
Y 67 68 65 68 72 72 69 71
X Y XY X2 Y2
65 67 4355 4225 4489
66 68 4488 4356 4624
67 65 4355 4489 4225
67 68 4556 4489 4624
68 72 4896 4624 5184
69 72 4968 4761 5184
70 69 4830 4900 4761
72 71 5112 5184 5041
X 544 Y 552 XY 37560 X 2 37028 Y 2 38132
Dr.K.Kavitha(SAS)
X
X
544
68
n 8
Y
Y
552
69
n 8
X Y 4962
1 37028
x x2 x 2 4624 2.121
n 8
1 38132
y y2 y2 4761 2.345
n 8
xy xy 37560
4962
r n 8 0.6030
x y 2.121X 2.345
Dr.K.Kavitha(SAS)