Professional Documents
Culture Documents
Dr. E. Suresh,
Assistant Professor
Department of Mathematics
College of Engenerring Technology
SRM Institute of Science and Technology
Joint distributions
Joint distributions
Joint distributions
Dr. E. ·Suresh
i.e.f (x, y ) = fX (x) ⇒ X and Y are independent.
fY (y ) 21MAB204T
Distribution Functions
Expectations :
(a)
P P
j i g (xi , yj ) pij
, for d.r.v. (X , Y )
E [g (X , Y )] = R∞ R∞
g (x, y ) f (x, y ) dx dy , for c.r.v. (X , Y )
−∞ −∞
R∞
E [h (Y )] = h (y ) fY (y ) dy
−∞
P
j yj p∗j
, for discrete r.v.
∴ Mean of Y = E (Y ) = R∞
y fY (y ) dy , for continuous r.v.
−∞
(ii) E (X + Y ) = E (X ) + E (Y ) and
E (XY ) = E (X ) · E (Y )
Y 0 1 2
X
0 0.1 0.04 0.02
1 0.08 0.20 0.06
2 0.06 0.14 0.30
X 0 1 2
p (x) 0.16 0.34 0.5
Y 0 1 2
p (y ) 0.24 0.38 0.38
Now P (X ≤ 1, Y ≤ 1)
= P (X = 0, Y = 0) + P (X = 0, Y = 1)
+P (X = 1, Y = 0) + P (X = 1, Y = 1)
= 0.1 + 0.04 + 0.08 + 0.20 = 0.42
To check X and Y are independent or not
Consider
P (x = 1, y = 2) = 0.06, P (x = 1) = 0.34 and P (y = 2) = 0.38
P (x = 1) P (y = 2) = 0.34 × 0.38 = 0.1292
⇒ 0.06 6= 0.1292
P (x = 1, y = 2) 6= P (x = 1) P (y = 2)
Hence X and Y are not independent.
Y -1 0 1
X
0 1/15 2/15 1/15
1 3/15 2/15 1/15
2 2/15 1/15 2/15
X -1 0 1
p (x) 6/15 5/15 4/15
Y 0 1 2
p (y ) 4/15 6/15 5/15
P(x, y ) = k(2x + 3y ), x = 0, 1, 2; y = 1, 2, 3.
P(X ≤ 2, Y ≤ 3) = 1
3k + 5k + 7k + 6k + 8k + 10k + 9k + 11k + 13k = 1
72k = 1
1
∴k =
72
Dr. E. Suresh 21MAB204T
DRV Problem No. 3
X 0 1 2
p (x) 18/72 24/72 30/72
Y 1 2 3
p (y ) 15/72 24/72 33/72
Case(ii) Y = 2, when X = 0,
6
P (X = 0 ∩ Y = 2) 6 1
P (X = 0/Y = 2) = = 72 = =
P (Y = 2) 24 24 4
72
when X = 1,
8
P (X = 1 ∩ Y = 2) 8 1
P (X = 1/Y = 2) = = 72 = =
P (Y = 2) 24 24 3
72
when X = 2,
10
P (X = 2 ∩ Y = 2) 10 5
P (X = 2/Y = 2) = = 72 = =
P (Y = 2) 24 24 12
72
Case(iii) Y = 3
when X = 0,
9
P (X = 0 ∩ Y = 3) 72 9 3
P (X = 0/Y = 3) = = = =
P (Y = 3) 33 33 11
72
when X = 1,
11
P (X = 1 ∩ Y = 3) 11 1
P (X = 1/Y = 3) = = 72 = =
P (Y = 3) 33 33 3
72
13
P (X = 2 ∩ Y = 3) 13
when x = 2, P (X = 2/Y = 3) = = 72 =
P (Y = 3) 33 33
72
Case(v) X = 1,
when Y = 1,
5
P (Y = 1 ∩ X = 1) 72 5
P (Y = 1/X = 1) = = =
P (X = 1) 24 24
72
when Y = 2,
8
P (Y = 2 ∩ X = 1) 8 1
P (Y = 2/X = 1) = = 72 = =
P (X = 1) 24 24 3
72
when Y = 3,
11
P (Y = 3 ∩ X = 1) 11
P (Y = 3/X = 1) = = 72 =
P (X = 1) 24 24
72
Case(vi) X = 2
when Y = 1,
7
P (Y = 1 ∩ X = 2) 72 7
P (Y = 1/X = 2) = = =
P (X = 2) 30 30
72
when Y = 2,
10
P (Y = 2 ∩ X = 2) 10 1
P (Y = 2/X = 2) = = 72 = =
P (X = 2) 30 30 3
72
when Y = 3,
13
P (Y = 3 ∩ X = 2) 13
P (Y = 3/X = 2) = = 72 =
P (X = 2) 30 30
72
X +Y P(X+Y)
3
1 P(X = 0, Y = 1) =
72
6 5 11
2 P(X = 0, Y = 2) + P(X = 1, Y = 1) = + =
72 72 72
3 P(X = 0, Y = 3)+P(X = 1, Y = 2)+P(X = 2, Y = 1)
9 8 7 24
= + + =
72 72 72 72
11 10 21
4 P(X = 1, Y = 3) + P(X = 2, Y = 2) = + =
72 72 72
13
5 P(X = 2, Y = 3) =
72
X 0 1 2
p (x) 6/27 9/27 12/27
Y 0 1 2
p (y ) 3/27 9/27 15/27
Case(ii) X = 1
1
P (Y = 0 ∩ X = 1) 27 1
when y = 0, P (Y = 0/X = 1) = = =
P (X = 1) 9 9
27
when y = 1,
3
P (Y = 1 ∩ X = 1) 3 1
P (Y = 1/X = 1) = = 27 = =
P (X = 1) 9 9 3
27
5
P (Y = 2 ∩ X = 1) 5
when y = 2, P (Y = 2/X = 1) = = 27 =
P (X = 1) 9 9
27
Case(iii) X = 2
when y = 0,
2
P (Y = 0 ∩ X = 2) 2 1
P (Y = 0/X = 2) = = 27 = =
P (X = 2) 12 12 6
27
when y = 1,
4
P (Y = 1 ∩ X = 2) 4 1
P (Y = 1/X = 2) = = 27 = =
P (X = 2) 12 12 3
27
when y = 2,
6
P (Y = 2 ∩ X = 2) 6 1
P (Y = 2/X = 2) = = 27 = =
P (X = 2) 12 12 2
27
c34 1
P (X = 0, Y = 0) = P( all the three balls are black) = 9
=
c3 21
c13 × c24 3
P (X = 0, Y = 1) = P (1r + 2b) = 9
= ,
c3 14
c23 × c14 1
P (X = 0, Y = 2) = P (2r + 1b) = = ,
c39 7
c33 1
P (X = 0, Y = 3) = P (3r ) = 9 = ,
c3 84
c2 × c4 1
P (X = 1, Y = 0) = P (1w + 2b) = 1 9 2 = ,
c3 7
Y 0 1 2 3
X
0 1/21 3/14 1/7 1/84
1 1/7 2/7 1/14 0
2 1/21 1/28 0 0
Y 1 2 3 4 5 6
X
0 0 0 1/32 2/32 2/32 3/32
1 1/16 1/16 1/8 1/8 1/8 1/8
2 1/32 1/32 1/64 1/64 0 2/64
Solution :
X 0 1 2
p (x) 8/32 20/32 4/32
Y 1 2 3 4 5 6
p (y ) 3/32 3/32 11/64 13/64 6/32 16/64
9
P (X ≤ 1 ∩ Y ≤ 3) 18
(iv ) P (X ≤ 1/Y ≤ 3) = = 32 =
P (Y ≤ 3) 23 23
64
9
P (X ≤ 1 ∩ Y ≤ 3) 9
(v ) P (Y ≤ 3/X ≤ 1) = = 32 =
P (X ≤ 1) 7 28
8
(vi) P(X + Y ≤ 4) = P (0, 1) + P (0, 2) + P (0, 3)
+P (0, 4) + P (1, 1) + P (1, 2) + P (2, 1) + P (2, 2)
= 0 + 0 + 1/32 + 2/32 + 1/16 + 1/16 + 1/32 + 1/32 = 13/32.
Marginal p.d.f. of X :
R∞ R2 xy
fX (x) = f (x, y )dy = x 2 + 3 dy =, 2x 2 + 32 x, 0 ≤ x ≤ 1
−∞ 0
Marginal p.d.f. of Y :
R∞ R1 xy
fY (y ) = f (x, y )dx = x 2 + 3 dx = 31 + y6 , 0 ≤ y ≤ 2
−∞ 0
Conditional density distributions of Y given X
2 + xy 3x 2 + xy
f (x, y ) x 3x + y
fy /x (y /x) = = 3 = 3 =
fX (x) 2 6x 2 + 2x 6x + 2
2x 2 + x
3 3
Conditional density distributions of X given Y
2 + xy 3x 2 + xy
f (x, y ) x 6x 2 + 2xy
fx/y (x/y ) = = 3 = 3 =
fY (y ) 1 y 2+y 2+y
+
3 6 6
Independent of X and Y :
f (x, −(x 2 +y 2 )
y ) = 42xye 2
= 2x e −x 2y e −y
= fX (x) .fY (y )
⇒ f (x, y ) = fX (x) .fY (y )
∴ X and Y are independent.
(iii) Find conditional pdf of X given Y.
2 2
f (x, y ) 4 x y e −(x +y ) 2
fx/y (x/y ) = = −x 2 = 2x e −x
fY (y ) 2y e
∂2 ∂2
f (x, y ) = F (x, y ) (or) F (x, y )
∂x∂y ∂y ∂x
∂ ∂ −x
−y
= 1−e 1−e
∂x ∂y
∂
1 − e −x e −y
=
∂x
= e −x e −y
= e −(x+y )
∴ f (x) = e −x , x > 0
∴ f (y ) = e −y , y > 0
f (x, y ) = e −(x+y )
= e −x · e −y
= f (x) · f (y )
Z2 Z3
P(1 < x < 3, 1 < y < 2) = e −x e −y dxdy
1 1
−5
=e − e −4 − e −3 + e −2
Joint distribution
function of X and Y is given by
1 − e −x − e −y + e −(x+y ) x ≥ 0, y ≥ 0
FXY (x, y ) = .
0 otherwise
Find
Determine the following (i) the marginal pdf of X and Y (ii) Are X
and Y independent? (iii) Find P (X ≤ 1 ∩ Y ≤ 1) (iv) Find
P (X + Y ≤ 1)
Solution : Given joint distribution function of continuous r.v.s X
and Y is given by −x
1 − e − e −y + e −(x+y ) x ≥ 0, y ≥ 0
FXY (x, y ) = .
0 otherwise
∂2 ∂2
f (x, y ) = F (x, y ) (or) F (x, y )
∂x∂y ∂y ∂x
∂ ∂ −x −y −x −y
= 1−e −e +e e
∂x ∂y
∂ −y
e − e −x e −y
=
∂x
= e −x e −y
= e −(x+y )
Marginal p.d.f. of X :
Z∞
f (x) = f (x, y )dy
−∞
Z∞
= e −(x+y ) dy (∵ by (2))
0
" #∞
e −(x+y )
=
−1
0
= (0) − −e −x
∴ f (x) = e −x , x > 0
Marginal p.d.f. of Y :
Z∞
f (y ) = f (x, y )dx
−∞
Z∞
= e −(x+y ) dx (∵ by (2))
0
" #∞
e −(x+y )
=
−1
0
= (0) − −e −y
∴ f (y ) = e −y , y > 0
f (x, y ) = e −(x+y )
= e −x · e −y
= f (x) · f (y )
(iii) : P (X ≤ 1 ∩ Y ≤ 1) :
P (X ≤ 1 ∩ Y ≤ 1) = P (X ≤ 1, Y ≤ 1)
Z1 Z1
= e −(x+y ) dxdy
0 0
1 1
Z Z
= e −x dx e −x dx
0 0
−1 −1
= 1−e 1−e
−1 2
= 1−e
(iv) : P (X + Y ≤ 1) :
Z1 h i
=− e −x e −(1−x) − e 0 dx
0
Z1
e −x e −1+x − 1 dx
=−
0
Z1
e −1 − e −x dx
=−
0
(iv) : P (X + Y ≤ 1) :
−x 1
−1 e
= − xe −
−1 0
−1 −x 1
= − xe + e 0
= − e −1 + e −1 − e 0
= − 2e −1 − 1
= 1 − 2e −1
Z∞
f (x) = f (x, y )dy
−∞
yZ=x
= 2dy (∵ by (1))
y =0
= 2[y ]yy =0
=x
= 2[x]x=1
x=y
= 2[(1) − (y )]
∴ f (y ) = 2(1 − y ), 0 < y < 1
(c) Conditional probability of X given Y
f (x, y )
f (x/y ) =
f (y )
2 1
= ∴ f (x/y ) = ,0 < y < 1
2(1 − y)
Dr. E. Suresh
1−y
21MAB204T
CRV Problem No. 5
(d) Conditional probability of Y given X
f (x, y )
f (y /x) =
f (x)
2
= (∵ by (1) and (a))
2x
1
∴ f (x/y ) = , 0 < y < 1
x
(e) Are X and Y independent?
If X and Y are independent, then f (x, y ) = f (x) · f (y )
If X and Y are not independent, then f (x, y ) 6= f (x) · f (y )
8xy 0 < x < 1, 0 < y < x
Given joint p.d.f. f (x, y ) = .
0 elsewhere
Find
Find (i) the marginal density of X and Y
(ii) conditional density of X /(Y = y )
(iii) P(X < 1/2)
Solution :Given joint p.d.f.
8xy 0 < x < 1, 0 < y < x
f (x, y ) = . (1)
0 elsewhere
Z∞
f (x) = f (x, y )dy
−∞
Zx
= 8xydy
0
x
y2
= 8x
2 0
3
= 4x , 0 < x < 1
3
∴ f (x) = 4x , 0 < x < 1
Marginal p.d.f. of Y
Z∞
f (y ) = f (x, y )dx
−∞
Z1
= 8xydx
y
1
x2
= 8y
2 y
= 4y 1 − y 2 , 0 < y < 1
∴ f (y ) = 4y 1 − y 2 , 0 < y < 1
f (x, y )
f (x/y ) =
f (y )
8xy
=
4y (1 − y 2 )
2x
=
(1 − y 2 )
cx(x − y ) 0 < x < 2, −x < y < x
Given fXY (x, y ) =
0 elsewhere
(i) evaluate c
(ii) find fX (x)
(iii) fine fY /X (y /x)
(iv) fY (y )
Solution : Given joint
cx(x − y ) 0 < x < 2, −x < y < x
p.d.f.fXY (x, y ) = (1)
0 elsewhere
Z2
x3 x3
3 3
⇒c x − +x + dx = 1
2 2
0
Z2
⇒c 2x 3 dx = 1
0
x=2
x4
⇒ 2c =1
4 x=0
24
⇒ 2c −0 =1
4
16
⇒ 2c =1
4
⇒ 2c (4) = 1
1
⇒c= .
8
Z∞
fX (x) = f (x, y )dy
−∞
Zx
1
= x(x − y )dy
8
−x
Zx
1
= (x 2 − xy )dy
8
−x
y =x
xy 2
1 2
= x y−
8 2 y =−x
x2 x3
1 3 3
= x − − −x −
8 2 2
x2 x2
1
= x3 − + x3 +
8 2 2
1
2x 3
=
8
x3
=
4
x3
⇒ fX (x) = , 0 < x < 1.
4
1 R2 2
8 (x − xy )dx
−y
fY (y ) =
1 R2 2
8 (x − xy )dx
y
x=2
1 x 3 x 2y
−
8 3 2 x=−y
= 3 x=2
1 x x 2y
−
8 3 2 x=y
3
y3
1 8 −y
− 2y − −
8 3 33 2
= 3
1 8 y y
− 2y − −
8 3 3 2
5y 3
1 8
− 2y +
8 3 6
= 3
1 8 y
− 2y +
8 3 6
3
1 − y + 5y
if −2 ≤ y ≤ 0
fY (y ) = 3 4 483
1−y +y
if 0≤y ≤2
3 4 48
1
Given joint p.d.f. f (x, y ) = (6 − x − y ), 0 < x < 2, 2 < y < 4.
8
Find
(a) P(X < 1, Y < 3) (b) P(X + Y < 3) (c) P(X + Y > 3)
(d) P(X < 1/Y < 3) (e) f (x/y = 1)
Solution : Given joint p.d.f. of continuous r.v.s X and Y is
1
f (x, y ) = (6 − x − y ), 0 < x < 2, 2 < y < 4. (1)
8
Z1
1 7
= − x dx
8 2
0 1
1 7 x2
= x−
8 2 2 0
1 7 1
= − − (0 − 0)
8 2 2
3
=
8
Z3
9 y2
1 2
= 18 − 6y − − + 3y − 3y + y − (0 − 0 − 0) dy
8 2 2
2
Z3
y2
1 27
= − 6y + dy
8 2 2
2
3
y3
1 27
= y − 3y 2 −
8 2 6 2
1 27 27 8
= 3 − 27 + − 27 − 12 +
8 2 6 6
1 4
= 3−
8 3
5
=
24
Z3
where, P(Y < 3) = f (y )dy (3)
2
(e) f (x/y = 1) :
f (x, y )
f (x/y = 1) =
f (y ) y =1
" #
1
(6 − x − y )
= 8 1
4 (5 − y ) y =1
1 5−x
=
2 4
5−x
=
8
Marginal p.d.f. of Y
Z∞
fY (y ) = f (x, y )dx
−∞
Z2
x2
2
= xy + dx
8
0
x=2
x 2y 2 x 3
= +
2 24 x=0
4y 2 8 1
= + = 2y 2 +
2 24 3
1
⇒ fY (y ) = 2y 2 + , 0 ≤ y ≤ 1
3
Z2 1/2
xy 3 x 2 y
= + dx
3 8 0
x=1
Z2
x2
x
= + dx
24 16
x=1
2
x2 x3
= +
48 48 1
4 8 1 1 10 5
= + − + = =
48 48 48 48 48 24
1 5
⇒P X >1∩Y < =
2 24
1 5
P X >1∩Y <
1 2 5
P X > 1/Y < = = 24 =
1
2 1 6
P Y <
2 4
1
(iv) P Y < /X > 1 :
2
1 5
P X >1∩Y <
1 2 5
P Y < /X > 1 = = 24 =
2 P (X > 1) 19 19
24
Z1 Zy
x2
2
P (X < Y ) = xy + dxdy
8
0 0
Z1 Zy
2
x
= xy 2 + dx dy
8
0 0
Z1 y
x 2y 2 x 3
= + dy
2 24 0
0
Z1
y4 y3
= + dy
2 24
0
1
y5 y4
= +
10 96 0
1 1 48 + 5 53
= + = =
10 96 480 480
53
⇒ P (X < Y ) =
480
Z1 !
y 2 1 − 2y + y 2 (1 − y )3
= + dy
2 24
0
Z1 Z1
1 1
y 2 − 2y 3 + y 4
(1 − y )3 dy
= dy +
2 24
0 0
" #1
y 3 2y 4 y 5 1 1 (1 − y )4
1
= − + +
2 3 4 5 0 24 −4
0