Professional Documents
Culture Documents
PART -A
Problem 1 Let X and Y have joint density function f x, y 2, 0 x y 1 .Find the marginal
density functions and the conditional density function Y given X x .
Solution:
Marginal density function of X is given by
fX x f x f x, y dy
1 1
f x, y dy 2dy 2 y x
1
x x
2 1 x , 0 x 1.
Marginal density function of Y is given by
fY y f y f x, y dx
y
2dx 2 y, 0 y 1 .
0
f x, y dxdy 1 .
Ae (2 x y ) dxdy 1
0 0
1
Unit.3. Two Dimensional Random Variables
e2 x
A e y
dy 1
0 2 0
1
A e y dy 1
0
2
1 e y
A 1
2 1 0
1
A 1 1 A 2
2
Problem 3 Verify whether X and Y are independent if f x, y kxy, 0 x y, 0 y 4
Solution:
Since f x, y is a joint density function
f x, y dxdy 1 .
4 y
kxydxdy 1
0 0
y
4
x2
k y dy 1
0 2 0
4
1 3 1 1
k y dy 1 k y 4 1 k 32 1 k
4
0
2 8 0 32
Marginal density function of X is given by
fX x f x f x, y dy
4
1 y2
4
1 x
xydy x , 0 x y
0
32 32 2 0 4
Marginal density function of Y is given by
fY y f y f x, y dx
y
x2
y
1 1 y3
xydx y , 0 y 4
0
32 32 2 0 64
x y3
f x . f y . f x, y
4 64
X and Y are not independent.
f x, y dxdy 1 .
y
Ae x e y dxdy 1
0 0
y
e x
A e y
dy 1
0 1 0
A e y e 2 y dy 1
0
e y e 2 y
A 1
1 2 0
1
A 1 A 2
2
Problem 6 Examine whether the variables X and Y are independent, whose joint density
function is f x, y xe , 0 x, y .
x y 1
Solution:
The marginal probability function of X is
fX x f x f x, y dy xe
x y 1
dy
0
3
Unit.3. Two Dimensional Random Variables
e x y 1
0 e e ,
x x
x
x 0
The marginal probability function of Y is
fY y f y f x, y dx x e
x y 1
0
dx
e x y 1 e x y 1
x 2
y 1 0 y 1 0
1
y 1
2
1
Here f x . f y e x f x, y
1 y
2
fY y 2 ye y , y 0
2
Problem 8 If X is uniformly distributed random variable in , , Find the probability
2 2
density function of Y tanX .
Solution:
Given Y tanX x tan 1 y
dx 1
dy 1 y 2
Since X is uniformly distribution in , ,
2 2
1 1
fX x
ba
2 2
4
Unit.3. Two Dimensional Random Variables
1
fX x , x
2 2
dx 1 1
Now fY y f X x , y
dy 1 y 2
1
fY y , y
1 y 2
Solution:
1 1
E xy xyf x, y dxdy y
0 y
1 1
24 xy 2 1 x dxdy x y
0 y
1
1 y 2 y3 4
24 y 2 dy . x
0 6 2 3 15
5
Unit.3. Two Dimensional Random Variables
y
bxy r and byx r x
x y
If bxy 1 then byx 1
PART - B
Problem 16 The joint probability density function of a bivariate random variable X , Y is
k x y , 0 x 2, 0 y 2
f XY x, y where ' k ' is a constant.
0 , otherwise
i. Find k .
ii. Find the marginal density function of X and Y .
iii. Are X and Y independent?
iv. Find fY y X x
and f X x .
Y y
Solution:
(i). Given the joint probability density function of a brivate random variable X , Y is
6
Unit.3. Two Dimensional Random Variables
K x y , 0 x 2, 0 y 2
f XY x, y
0 , otherwise
Here f XY x, y dxdy 1 K x y dxdy 1
2
2 2
x2
2
0 0 K x y dxdy 1 K 0 2 xy dy 1
0
2
K 2 2 y dy 1
0
2
K 2 y y 2 1
0
K 8 0 1
1
K
8
(ii). The marginal p.d.f of X is given by
2
1
f X x f x, y dy x y dy
80
2
1 y2 1 x
xy
8 2 0 4
The marginal p.d.f of X is
x 1
, 0 x2
fX x 4
0 , otherwise
The marginal p.d.f of Y is
2
1
fY y f x, y dx x y dx
80
2
1 x2
yx
8 2 0
1 y 1
2 2 y
8 4
The marginal p.d.f of Y is
y 1
, 0 y2
fY y 4
0 , otherwise
(iii). To check whether X and Y are independent or not.
f X x fY y
x 1 y 1 f x, y
XY
4 4
Hence X and Y are not independent.
7
Unit.3. Two Dimensional Random Variables
X
fY y
x
1 x y
2 x 1
, 0 x 2, 0 y 2
1 2
0 y 2
(v) P
x 1 Y X x 1
f
0
y
dy
1
1 1 y
2
5
20 2
dy
32
.
Problem 17 a) If X and Y are two random variables having joint probability density function
1
6 x y , 0 x 2, 2 y 4
f x, y 8 Find (i) P X 1 Y 3
0 , otherwise
(ii) P X Y 3 (iii) P X 1
Y 3
.
b). Three balls are drawn at random without replacement from a box containing 2 white, 3 red
and 4 black balls. If X denotes the number of white balls drawn and Y denotes the number of
red balls drawn find the joint probability distribution of X , Y .
Solution:
a).
y 3 x 1
P X 1 Y 3 f x, y dxdy
y x
y 3 x 1
1
8 6 x y dxdy
y 2 x 0
3 1
1
6 x y dxdy
820
1
1
3
x2
82 6 x
2
xy dy
0
3
1 11 1 11y y 2
3
y dy
822 8 2 2 2
3
P X 1 Y 3
8
8
Unit.3. Two Dimensional Random Variables
1 3 x
1
(ii). P X Y 3 8 6 x y dydx
0 2
3 x
1 y2
1
6 y xy dx
80 2 2
1 3 x
1 2
6 3 x x 3 x 12 2 x 2 dx
8 0 2
1
1
18 6 x 3 x x 2 9 x2 6 x
10 2 x dx
80 2
1
1
9 x2 6 x
18 9 x x 2 10 2 x dx
80 2 2 2
1 7 x2
1
8 0 2
4 x dx
2
1
1 7 x 4 x 2 x3 1 7 1
2
8 2 2 6 0 8 2 6
1 21 12 1 1 10 5
8 6 24 .
8 6
P x 1 y 3
(iii). P X 1
Y 3
P y 3
2
The Marginal density function of Y is fY y f x, y dx
0
2
1
6 x y dx
0
8
2
1 x2
6 x yx
8 2 0
1
12 2 2 y
8
5 y
, 2 y 4.
4
x 1 y 3
1
8 6 x y dxdy
P X 1
Y 3 x 0 y 2
y 3
fY y dy
y 2
9
Unit.3. Two Dimensional Random Variables
3 3
3 8 8
3
5 y 1 y2
2 4 dy
4
5y
2 2
3 8 3
.
8 5 5
10
Unit.3. Two Dimensional Random Variables
2C2 4C1 1
9C3 21
P X 2, Y 1 P( drawing 2 white balls and no red balls)
2C2 3C1 1
9C3 28
P X 2, Y 2 0
P X 2, Y 3 0
The joint probability distribution of X , Y may be represented as
Y 0 1 2 3
X
1 3 1 1
0
21 14 7 84
1 2 1
1 0
7 7 14
1 1
2 0 0
21 28
Problem 18 a) Two fair dice are tossed simultaneously. Let X denotes the number on the first
die and Y denotes the number on the second die. Find the following probabilities.
(i) P X Y 8 , (ii) P X Y 8 , (iii) P X Y and (iv) P X Y 6
Y 4
.
b) The joint probability mass function of a bivariate discrete random variable X , Y in given
by the table.
X
Y 1 2 3
1 0.1 0.1 0.2
2 0.2 0.3 0.1
Find
i. The marginal probability mass function of X and Y .
ii. The conditional distribution of X given Y 1 .
iii. P X Y 4
Solution:
a). Two fair dice are thrown simultaneously
1,11, 2 ... 1, 6
2,1 2, 2 ... 2, 6
S , n( S ) 36
. . ... .
6,1 6, 2 ... 6, 6
Let X denotes the number on the first die and Y denotes the number on the second die.
11
Unit.3. Two Dimensional Random Variables
1
Joint probability density function of X , Y is P X x, Y y for
36
x 1, 2,3, 4,5, 6 and y 1, 2,3, 4,5, 6
(i) X Y the events that the no is equal to 8
2, 6 , 3,5 , 4, 4 , 5,3 , 6, 2
P X Y 8 P X 2, Y 6 P X 3, Y 5 P X 4, Y 4
P X 5, Y 3 P X 6, Y 2
1 1 1 1 1 5
36 36 36 36 36 36
(ii) P X Y 8
2, 6
3,5 , 3, 6
X Y 4, 4 , 4,5 , 4, 6
5,3 , 5, 4 5,5 , 5, 6
6, 2 , 6,3 , 6, 4 , 6,5 6, 6
P X Y 8 P X Y 8 P X Y 9 P X Y 10
P X Y 11 P X Y 12
5 4 3 2 1 15 5
36 36 36 36 36 36 12
(iii) P X Y
P X Y P X 1, Y 1 P X 2, Y 2 ...... P X 6, Y 6
1 1 1 6 1
..........
36 36 36 36 6
P X Y 6 Y 4
(iv) P X Y 6
Y 4
P Y 4
1
Now P X Y 6 Y 4
36
6
P Y 4
36
1
P X Y 6
Y 4
1
36 .
6 6
36
12
Unit.3. Two Dimensional Random Variables
When X 1 ,
PX xi PXY 1,1 PXY 1, 2
0.1 0.2 0.3
When X 2 ,
PX x 2 PXY 2,1 PXY 2, 2
0.2 0.3 0.4
When X 3 ,
PX x 3 PXY 3,1 PXY 3, 2
0.2 0.1 0.3
The marginal probability mass function of X is
0.3 when x 1
PX x 0.4 when x 2
0.3 when x 3
The marginal probability mass function of Y is given by PY y j PXY xi , y j
xi
3
When Y 1 , PY y 1 PXY xi ,1
xi 1
13
Unit.3. Two Dimensional Random Variables
P X 1 Y 1
When X 1 , P X 1 Y 1
P Y 1
PXY 1,1 0.1
0.25
PY 1 0.4
P 2,1 0.1
When X 2 , P X 2 Y 1
P 1
XY
0.4
Y
0.25
P 3,1 0.2
When X 3 , P X 3
Y 1
P 1
XY
Y
0.4
0.5
Problem 19 a) If X and Y are two random variables having the joint density function
1
f x, y x 2 y where x and y can assume only integer values 0, 1 and 2, find the
27
conditional distribution of Y for X x .
b) The joint probability density function of X , Y is given by
2 x2
xy , 0 x 2, 0 y 1
f XY x, y 8 . Find (i) P X 1 , (ii) PX Y and
0
, otherwise
(iii) P X Y 1
Solution:
a). Given X and Y are two random variables having the joint density function
1
f x, y x 2 y (1)
27
Where x 0,1, 2 and y 0,1, 2
Then the joint probability distribution X and Y becomes as follows
Y 0 1 2 f1 x
X
1 2 3
0 0
27 27 27
2 3 4 9
1
27 27 27 27
4 5 6 15
2
27 27 27 27
14
Unit.3. Two Dimensional Random Variables
27
2
P Y 1
X 0
P X 0,
P X 0
Y 1
27
6 3
1
27
4
P X 0, Y 2 27 2
P Y 2
X 0
P X 0
6
3
27
1
P X 1, Y 0 27 1
P Y 0
X 1
P X 1
9 9
27
3
P Y 1
X 1
P X 1,
P X 1
Y 1
27
9 9 3
3 1
27
5
27 5
P Y 2
X 1
P X 1, Y
P X 1
2
9 9
27
2
P Y 0
X 2
P
X 2, Y
P X 2
0
27
12 6
1
27
15
Unit.3. Two Dimensional Random Variables
4
P X 2, Y 1
P Y 1
X 2
P X 2
27
12 3
1
27
6
27 1
P Y 2
X 2
P
X 2, Y
P X 2
2
12 2
27
x2
b). Given the joint probability density function of X , Y is f XY x y xy 2 ,
8
0 x 2, 0 y 1
(i). P X 1 f X x dx
1
1
The Marginal density function of X is f X x f x, y dy
0
1
x 2
f X x xy 2 dy y y 1
0
8
1
xy 2 x 2 y x x2
, 1 x 2
3 8 0 3 8
2
x x2
P X 1 dx x
1
3 8
2
x 2 x3 19
. y x 1 x2
6 24 1 24
(ii) P X Y f XY x, y dxdy y 1
R2
2 x2
1 y
P X Y xy 8 dxdy yx
y 0 x 0
y
x 2 y 2 x3
1
dy x0 x
0
2 24 0
1
1
y4 y3 y5 y4
dy
0
2 24 10 96 0
1 1 96 10 53
10 96 960 480
(iii) P X Y 1 f XY x, y dxdy
R3
16
Unit.3. Two Dimensional Random Variables
1 1 y
2 x2
P X Y 1 y 0 x0 xy 8 dxdy y
1 y
1
x 2 y 2 x 3
dy y 1
y 0
2 24 0
1 1 y 2 y 2 1 y 3
dy x y 1
y 0
2 24
1 1 y2 2 y y2
1 y
3
dy x
0
2 24
1
y 3 y 5 2 y 2 1 1 y 4
x 1
3 5 4 2 96
0
1 1 1 1 13
.
6 10 4 96 480
17
Unit.3. Two Dimensional Random Variables
f x, y dy e
x y
dy
0
e x y
1 0
e
x y
0
x
e , x0
The marginal probability function of Y is
f y fY y
f x, y dx
x y
e dx e
x y
0
0
e y , y 0
f x f y e x e y e f x, y
x y
f y x 2 dy
3
b). P 1 Y 3
X 2
1
4
f X x f x, y dy
2
6 x y
4
dy
2 8
4
1 y2
6 y xy
8 2 2
18
Unit.3. Two Dimensional Random Variables
1
16 4 x 10 2 x
8
6 x y
f y
x
f 8 6 x y
x ,
f x
y
6 2x 6 2x
8
dy
3
P 1 Y 3 f y
X 2 x2
1
4 y
3
dy
2 2
3
1 y2
4 y
2 2 2
3
1 y2 1 17 11
4 y 14 .
2 2 2 2 2 4
Problem 21 a) Two random variables X and Y have the following joint probability density
2 x y, 0 x 1, 0 y 1
function f x, y . Find the marginal probability density function
0 , otherwise
of X and Y . Also find the covariance between X and Y .
6 x y
b) If f x, y , 0 x 2, 2 y 4 for a bivariate X , Y , find the correlation
8
coefficient
Solution:
2 x y, 0 x 1, 0 y 1
a) Given the joint probability density function f x, y
0 , otherwise
Marginal density function of X is f X x f x, y dy
1
2 x y dy
0
1
y2
2 y xy
2 0
1
2 x
2
3
x, 0 x 1
fX x 2
0 , otherwise
19
Unit.3. Two Dimensional Random Variables
1
Marginal density function of Y is fY y 2 x y dx
0
1
x2
2 x xy
2 0
3
y
2
3
y, 0 y 1
fY y 2
0 , otherwise
Covariance of X , Y Cov X , Y E XY E X E Y
1
1 1
3 3 x 2 x3 5
E X xf X x dx x x dx
0 2 2 3 0 12
0
2
3
1 1
5
E Y yfY y dy y y dy
0 0 2 12
Cov X , Y E XY E X E Y
1 1
E XY xy f x, y dxdy
0 0
1 1
xy 2 x y dxdy
0 0
1 1
2xy x 2 y xy 2 dxdy
0 0
1
1
2 x 2 y x3 x2 2
y y dy
0 2 3 2 0
1
1 y2
y dy
0
3 2
1
y 2 y y3 1
2 3 6 0 6
1 5 5
Cov X , Y
6 12 12
1 25 1
.
6 144 144
E XY E X E Y
b). Correlation coefficient XY
XY
Marginal density function of X is
20
Unit.3. Two Dimensional Random Variables
6 x y 6 2x
4
fX x f x, y dy 2 8 dy 8
Marginal density function of Y is
6 x y 10 2 y
2
fY y f x, y dx dx
0
8 8
6 2x
2 2
Then E X xf X x dx x dx
0
0
8
2
1 6 x 2 2 x3
8 2 3 0
1 16 1 20 5
12
8 13 8 3 6
4
10 2 y 1 10 y 2 2 y 3
4
17
E Y y dy
2 8 8 2 3 2 6
2
6 2x 1 6 x3 2 x4
2 2
E X 2
x f x x dx x
2
dx
2
1
0 0
8 8 3 4 0
4
10 2 y 1 10 y 3 2 y 4
4
E Y 2
y
8
2
dy
8 3
4 2 3
25
2
2
5 11
Var X E X E X 1
2 2 2
X
6 36
2
25 17 11
Var Y E Y E Y
2
2
Y
2
3 6 36
6 x y
4 2
E XY xy dxdy
2 0 8
2
1 6 x2 y x3 y x2 y 2
4
dy
82 2 3 2 0
4
1 1 12 y 2 8 y 2 2 y 3
4
8
12 y y 2 y 2 dy
8 2 3 8 2 3 2 3 2
1 64 128 16 16 1 56
96 24
8 3 3 3 3 8 3
7
E XY
3
7 5 17
E XY E X E Y 3 6 6
XY
XY 11 11
6 6
21
Unit.3. Two Dimensional Random Variables
1
XY .
11
X 0 1 2 P Y
Y
1 1
0 3 0 0 3
1 1
1 0 3 0 3
1 1
0 0 0 3 3
P X 1 1 1
3 3 3
1 1 1
E X xi pi xi 0 1 2 1
i 3 3 3
1 1 1 1
E Y yi p j y j 0 1 0
j 3 3 3 3
1 1 1 5
E X 2 xi p xi 0 1 4
2
3 3 3 3
i
5
Var ( X ) E X 2 E X 1
2
2
3 3
1 1 1 1
E Y 2 y j p y j 0 1 0
2
3 3 3 3
j
V Y E Y 2 E Y
1 1 2
2
3 9 9
E XY E X E Y
Correlation coefficient XY
V X V Y
22
Unit.3. Two Dimensional Random Variables
E XY xi y j p xi , y j
i j
1 1 1 1
0.0. 0.1.0 1.0.0 1.1. 1.2.0 0.0.0 0.1.0 0.2.
3 3 3 3
1 1
1
XY
3 3 0
2 2
3 9
Correlation coefficient 0 .
b). Given E X 1 5, E X 2 10
V X 1 4, V X 2 9
Since X and Y are independent E XY E X E Y
E UV E U E V
Correlation coefficient
Var U Var V
E U E 3 X 1 4 X 2 3E X 1 4 E X 2
3 5 4 10 15 40 55.
E V E 3 X 1 X 2 3E X 1 E X 2
3 5 10 15 10 5
E UV E 3 X 1 4 X 2 3 X 1 X 2
E 9 X 1 3 X 1 X 2 12 X 1 X 2 4 X 2
2 2
9 E X 1 3E X 1 X 2 12 E X 1 X 2 4 E X 2
2 2
9E X 9E X X 4E X
2 2
1 1 2 2
9E X 9E X E X 4E X
2 2
1 1 2 2
9 E X 450 4 E X
2 2
1 2
V X E X E X
2 2
1 1 1
E X V X E X 4 25 29
2 2
1 1 1
E X V X E X 9 100 109
2 2
2 2 2
23
Unit.3. Two Dimensional Random Variables
Problem 23 a) Let the random variable X has the marginal density function
1 1
f x 1, x and let the conditional density of Y be
2 2
1
1, x y x 1, x 0
2
f y . Prove that the variables X and Y are uncorrelated.
x
1, x y 1 x, 0 x 1
2
b) Given f x, y xe
x y 1
, x 0, y 0 . Find the regression curve of Y on X .
Solution:
1 1 1
2
x2 2 2
a). We have E X xf x dx xdx 0
1
1 2 1
2 2 2
1
0 x 1 2 1 x
E XY xydxdy xydxdy
1 x 0 x
2
1
x 1
0
2
1 x
x ydy dx x ydy dx
1 x 0 x
2
1
0 2
1 1
2 x 2 x 1 dx 2 x 1 2 x dx
1 0
2
1
0
1 2 x3 x 2 1 x 2 2 x3 2
0
2 3 2 1 2 2 3 0
2
f x, y
f y / x
fX X
Marginal density function f X x f x, y dy
0
24
Unit.3. Two Dimensional Random Variables
x y 1
x e dy
0
e x y 1
x e x , x 0
x 0
Conditional pdf of Y on X is f y
x
f x, y xe xy x
fX x
x xe xy
e
The regression curve of Y on X is given by
x
E y yxe xy dy
0
e xy e xy
x y 2
x x 0
1 1
E y y and hence xy 1 .
x x x
x y
, 0 x 1, 0 y 2
Problem 24 a) Given f x, y 3 , obtain the regression of Y on X
0 , otherwise
and X on Y .
b) Distinguish between correlation and regression Analysis
Solution:
Regression of Y on X is E Y
X
X yf y x dy
E Y
X ff x,xy
f Y
X
fX x f x, y dy
2
x y 1 y2
2
3 2 0
dy xy
0
3
2 x 1
3
f x, y
f Y
X
x y
f X x 2( x 1)
y x y
X
2
Regression of Y on X E Y dy
0
2 x 1
25
Unit.3. Two Dimensional Random Variables
2
1 xy 2 y 3
2 x 1 2 3 0
1 8 3x 4
2x
2 x 1 3 3 x 1
Y xf x y dx
E X
y ff x,yy
f x
Y
fY y f x, y dx
1
x y 1 x2
1
dx xy
0
3 3 2 0
1 1
y
3 2
f x
y
2 x y
2 y 1
Y 2xyy1 dx
1
Regression of X on Y E X
0
1
1 x2
xy
2 y 1 2 0
1
y
1
2 .
2 y 1 2
b).
1. Correlation means relationship between two variables and Regression is a Mathematical
Measure of expressing the average relationship between the two variables.
2. Correlation need not imply cause and effect relationship between the variables. Regression
analysis clearly indicates the cause and effect relationship between Variables.
3. Correlation coefficient is symmetric i.e. rxy ryx where regression coefficient is not symmetric
4. Correlation coefficient is the measure of the direction and degree of linear relationship
between two variables. In regression using the relationship between two variables we can predict
the dependent variable value for any given independent variable value.
Problem 25 a) X any Y are two random variables with variances x2 and y2 respectively and
y x
r is the coefficient of correlation between them. If U X KY and V X , find the
y
value of k so that U and V are uncorrelated.
b) Find the regression lines:
26
Unit.3. Two Dimensional Random Variables
X 6 8 10 18 20 23
Y 40 36 20 14 10 2
Solution:
Given U X KY
E U E X KE Y
X
VX Y
Y
E V E X X E Y
Y
If U and V are uncorrelated, Cov U ,V 0
E U E U V E V 0
E X KY E X KE Y X X Y E X X E Y 0
Y Y
E X E X K Y E Y X E X X Y E Y 0
Y
2
E X E X X X E X Y E Y K Y E Y X E X K X Y E Y 0
2
Y Y
X
V X Cov X , Y KCov X , Y K X V Y 0
Y Y
K Cov X , Y X V Y V X X Cov x, y
Y Y
V X X r X Y
Y X2 r X2
K
r X Y X Y
r X Y X V Y
Y
X2 1 r
X .
X Y 1 r Y
b).
X Y X2 Y2 XY
6 40 36 1600 240
8 36 64 1296 288
10 20 100 400 200
18 14 324 196 252
20 10 400 100 200
27
Unit.3. Two Dimensional Random Variables
23 2 529 4 46
X 85 Y 122 X 2
1453 Y 2
3596 XY 1226
x 85 y 122
X 14.17 , Y 20.33
n 6 n 6
x2 x
2 2
1453 85
x 6.44
n n 6 6
y2 y
2 2
3596 122
y 13.63
n n 6 6
xy 1226
xy 14.17 20.33
r n 6 0.95
x y 6.44 13.63
x 6.44
bxy r 0.95 0.45
y 13.63
y 13.63
byx r 0.95 2.01
x 6.44
The regression line X on Y is
x x bxy y y x 14.17 0.45 y y
x 0.45 y 23.32
The regression line Y on X is
y y byx x x y 20.33 2.01 x 14.17
y 2.01x 48.81
Problem 26 a) Using the given information given below compute x , y and r . Also compute
y when x 2, 2 x 3 y 8 and 4 x y 10 .
b) The joint pdf of X and Y is
X
Y -1 1
1 3
0 8 8
2 2
1 8 8
Find the correlation coefficient of X and Y .
Solution:
a). When the regression equation are Known the arithmetic means are computed by solving the
equation.
2 x 3 y 8 ------------ (1)
28
Unit.3. Two Dimensional Random Variables
4 x y 10 ------------ (2)
(1) 2 4 x 6 y 16 ------- (3)
2 3 5 y 6
6
y
5
6
Equation 1 2 x 3 8
5
18
2x 8
5
11
x
5
11 6
i.e. x & y
5 5
To find r , Let 2 x 3 y 8 be the regression equation of X on Y .
3
2x 8 3 y x 4 y
2
3
bxy Coefficient of Y in the equation of X on Y
2
Let 4 x y 10 be the regression equation of Y on X
y 10 4 x
byx coefficient of X in the equation of Y on X 4 .
r bxy byx
3
4
2
bxy & byx are negative
2.45
Since r is not in the range of 1 r 1 the assumption is wrong.
Now let equation 1 be the equation of Y on X
8 2x
y
3 3
byx Coefficient of X in the equation of Y on X
2
byx
3
from equation (2) be the equation of X on Y
1
bxy
4
2 1
r bxy byx 0.4081
3 4
2
To compute y from equation 4 byx
3
29
Unit.3. Two Dimensional Random Variables
y
But we know that byx r
x
2 y
0.4081
3 2
y 3.26
E X 2 x 2 p x 02 12
4 4 4
x 8 8 8
E Y 2 y p y 1 12 1
2 2 3 5 3 5
y 8 8 8 8
V X E X 2 E X
2
2
4 4 1
8 8 4
V Y E Y 2 E Y
2
2
1 15
1
4 16
E XY xy p x, y
x y
1 3 2 2
0 0 1 1 0
8 8 8 8
1 1 1
Cov X , Y E XY E X E Y 0
2 4 8
30
Unit.3. Two Dimensional Random Variables
1
Cov X , Y
r 8 0.26 .
V X V Y 1 15
4 16
Problem 27 a) 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
b) If X and Y are independent exponential variates with parameters 1, find the pdf of
U X Y .
Solution:
X Y XY X2 Y2
65 67 4355 4225 4489
66 68 4488 4359 4624
67 65 4355 4489 4285
68 72 4896 4624 5184
69 72 4968 4761 5184
70 69 4830 4900 4761
72 71 5112 5184 5041
x 544
X 68
n 8
y 552
Y 69
n 8
X Y 68 69 4692
1 2 1
X x2 X (37028) 682 4628.5 4624 2.121
n 8
1 1
Y y2 y2 38132 692 4766.5 4761 2.345
n 8
1 1
Cov X , Y XY X Y 37650 68 69
n 8
4695 4692 3
The correlation coefficient of X and Y is given by
31
Unit.3. Two Dimensional Random Variables
Cov X , Y 3
r X ,Y
XY 2.121 2.345
3
0.6032 .
4.973
32
Unit.3. Two Dimensional Random Variables
u 2 u
2 e , u 0
f u 2
0 , otherwise
33
Unit.3. Two Dimensional Random Variables
x2 y2
1
f XY x, y e 8 , x, y
8
The joint pdf of z , w is given by
f ZW z , w J f XY x, y
1
z 3 w w2
2
4
1 1
. e 8
2 8
1 321 z 3w2 4 w2
e , z , w .
16
The pdf of z is the marginal pdf obtained by interchanging f ZW z , w w.r.to w over the range of
w.
1
321 z 2 6 wz 13 w2
fZ z e dw
16
z 2 w2
13 6 wz 3 z 3 z
2 2
e e
1 32
32 13 13 13
dw
16
2
z 2
9z 2 13 3 z
1 32 w
e 1332 e 32 13 dw
16
2
1 8z13 13
t2
16
e
e 32
dt
13 2 13 16 r 32
r t dr tdt dr dt dr dt
32 16 13t 13
1
16 13 4
dr dt r 2 dr dt
13 r 32 13 2
z 1 2
2 4
e 813 e r r 2 dr
16 13 2 0
z 1 2
1
e 813 e r r 2 dr
2 13 2 0
z2
z2
2 2 13
2
1 1
e 813
e
2 13 2 2 13 2
i.e. Z N 0, 2 13
b).(ii) Given that X and Y are uniform Variants over 0,1
34
Unit.3. Two Dimensional Random Variables
1, 0 x 1 1, 0 y 1
fX x and fY y
0, otherwise 0, otherwise
Since X and Y are independent,
1, 0 x, y 1
f XY x, y f X x f y y
0, otherwise
x
Consider the transformation u and v y
y
i.e. x uv and y v
x x
x, y u v
J
u , v y y
u v
v 0
v
u 1
fUV u , v f XY x, y J
v , 0 u , 0 v
The range for u and v are identified as follows.
0 x 1 and 0 y 1. 0 uv 1 and 0 v 1
uv 0, uv 1, v 0 and v 1
uv 0 and v 0 u 0
Now f u fUV u , v dv
The range for v differs in two regions
1
f u fUV u , v dv
0
1
1
v2 1
vdv , 0 u 1
0 2 0 2
1
u
f u fUV u , v dv
0
1
1 u
u
v2 1
vdv 2 , 1 u
0 2 0 2u
1
2 , 0 u 1
f u
1 , u 1
2u 2
35
Unit.3. Two Dimensional Random Variables
Problem 29 a) If X 1 , X 2 ,..... X n are Poisson variates with parameter 2 . Use the central limit
theorem to estimate P 120 S n 160 where sn X 1 X 2 ...... X n and n 75 .
b) A random sample of size 100 is taken from a population whose mean is 60 and variance is
400. Using central limit theorem, with what probability can we assent that the mean of the
sample will not differ from 60 by more than 4.
Solution:
a). Given that E X i 2 and Var X i 2
[Since in Poisson distribution mean and variance are equal to ]
i.e. 2 and 2 2
By central limit theorem, S n N n , n 2
S n N 150,150
120 150 160 150
P 120 Sn 160 P z
150 150
P(2.45 z 0.85)
P (2.45 z 0) P (0 z 0.85)
P(0 z 2.45) P(0 z 0.85)
0.4927 0.2939 0.7866
P 4 X 60 4
56 60 64 60
P 56 X 64 P z
2 2
P 2 Z 2
2 P 0 Z 2 2 0.4773 0.9446
36
Unit.3. Two Dimensional Random Variables
Variance 833.33
12 12
By CLT, S n X 1 X 2 X 3 X 4 follows a normal distribution with N n , n 2
S n n
The standard normal variable is given by Z
n 2
1900 4 500 100
when S n 1900 , Z 1.732
4 833.33 57.73
2100 2000 100
when S n 2100 , Z 1.732
4 833.33 57.73
P 1900 Sn 2100 P 1.732 z 1.732
2 P 0 z 1.732
2 0.4582 0.9164 .
37
Unit.3. Two Dimensional Random Variables
ie P Z 0.4082 n 0.95
Where ' Z ' is the standard normal variable.
The Last value of ' n ' is obtained from P Z 0.4082 n 0.95
2 P 0 z 0.4082 n 0.95
0.4082 n 1.96
n 23.05
The size of the sample must be atleast 24.
38