Tutorial 3-3: Questions 11 to 14
Siddharth Pamidi, Roll No. EP23BTECH11029
11.
Consider two continuous random variables X and Y, the joint PDF is given by
(
cxy 0 < x < 4, 1 < y < 5
fX,Y (x, y) =
(1)
0
otherwise
1. Find the value of the constant c.
By Normalisation :
R∞ R∞
−∞ −∞
cxy dx dy = 1
R5 R4
=> c 1 y( 0 x dx) dy = 1
R5
2
= c 1 y[ x2 ]40 dy = 1
R5
= 8c 1 y dy = 1
2
= 8c[ y2 ]51 = 1
= 8c ∗ 12 = 1
= 96c = 1
1
=> c = 96
2. Find P(X ≥ 3, Y ≤ 2).
R
R4
1 2
= 96
y( 3 x dx) dy
1
R
2
1 2
= 96
y[ x2 ]43 dy
1
R
1 7 2
= 96
* 2 1 y dy
2
7 y 2
= 192
[ 2 ]1
1
7
* 32
= 192
7
= 128
3. Find the marginal distributions of X and Y.
fX (x)
=
R∞
−∞
x
= 96
fX,Y (x, y) dy
R5
1
y dy
2
x y 5
= 96
[ 2 ]1
x
= 12x
96 = 8 = fX (x)
fY (y)
=
R∞
−∞
y
= 96
fX,Y (x, y) dx
R4
0
x dx
2
y
[ x2 ]40
= 96
y
= 8y
96 = 12 =fY (y)
4. Find P(X + Y < 3).
x ∈ (0, 3 − y)
y ∈ (1, 3)
P (X + Y < 3)
R 3−y
R
1 3
= 96
y( 0 x dx) dy
1
R
2
1 3
= 96
y[ x2 ]3−y
dy
0
1
R3
1
= 192
y ∗ (3 − y)2 dy
1
R3
1
= 192
(9y + y 3 − 6y 2 ) dy
1
2
4
1 9y
= 192
[ 2 + y4 -2y3 ]31
2
1 162+81−216−18−1+8
[
]
= 192
4
1
= 192
*4
1
= 48
12.
Let X and Y be jointly continuous with joint PDF
(
6e−(2x+3y) x, y ≥ 0
fX,Y (x, y) =
0
otherwise
1. Are X and Y independent?
X, Y are independent if fX (x) ∗ fY (y) = fX,Y (x, y)
fX (x)
=
R∞
=
R∞
−∞
0
fX,Y (x, y) dy
6e−(2x+3y) dy
R∞
= 6e−2x 0 e−3y dy
−3y
= 6e−2x [ e−3 ]∞
0
= −2e−2x [0 − 1]
= 2e−2x = fX (x)
fY (y)
=
R∞
=
R∞
−∞
0
fX,Y (x, y) dx
6e−(2x+3y) dx
= 6e−3y
R ∞ −2x
e
dx
0
−2x
= 6e−3y [ e−2 ]∞
0
= −3e−3y [0 − 1]
3
(2)
= 3e−3y = fY (y)
fX (x) ∗ fY (y) = 2e−2x ∗ 3e−3y = 6e−(2x+3y) = fX,Y (x, y)
Hence X and Y are independent.
2. Find E[Y |X > 2].
E[Y |X > 2] =
R∞
0
fY (y|x > 2) dy
as X and Y are independent, P (Y |X > 2) = P (Y )
=> E[Y |X > 2] =
=
R∞
0
R∞
0
yfY (y) dy
y3e−3y dy
Y ∼ Exp(3) => E[Y ] = 31
3. Find P(X > Y).
P(X > Y)
=
R∞R∞
0
y
6e−(2x+3y) dx dy
R∞
R∞
= 6 0 e−3y ( y e−2x dx) dy
R∞
−2x
= 6 0 e−3y [ e−2 ]∞
y dy
R∞
= 3 0 e−3y ∗ e−2y dy
−5y
= 3[ e−5 ]∞
0
= 35
4
13.
Let the joint probability density function for (X,Y) be
(
x+y
x > 0, y > 0, 3x + y > 0
2
fX,Y (x, y) =
0
otherwise
1. Find the probability P(X<Y).
we know y < 3-3x
P(X<Y)
=
R 1 R 3−3x x+y
0
dy dx
2
x
= 21
R 1 R 3−3x x+y
( x
dy dx
2
0
= 12
R 1 xy y2 3−3x
dx
[ + 4 ]x
0 2
= 21
R 1 6x−6x2 +9+9x2 −18x−2x2 −x2
= 81
R1
4
0
0
dx
(−12x + 9) dx
= 18 [-6x2 + 9x]10
= 38
2. Find fX (x).
fX (x)
=
R 3−3x x+y
2
0
dy
2
y 3−3x
= [ xy
2 + 4 ]0
2
2
= 3x−3x
+ 9+9x4−18x
2
2
= 3x −12x+9
=fX (x)
4
N ote : x ∈ (0, 1)
3. Find fY (y).
5
(3)
fY (y)
=
R 3−y
x+y
3
2
0
dx
3−y
2
= 21 [ x2 + xy]0 3
2
2
= 21 [ 9+y18−6y + 3y−y
]
3
1
= 36
[9+y2 − 6y + 18y − 6y 2 ]
2
= −5y +12y+9
=fY (y)
36
N ote : y ∈ (0, 3)
4. Are X and Y independent?
X and Y are independent if fX (x) ∗ fY (y) = fX,Y (x, y)
fX (x) ∗ fY (y)
2
2
* −5y +12y+9
= 3x −12x+9
4
36
2 2
2
2
2
2
= −15x y +36x y+27x +60xy144−144xy−108x−25y +60y+45
6= x+y
2 = fX,Y (x, y)
Hence X and Y are not independent.
14.
Let X and Y be random variables with joint PDF:
(
y
x ≥ 1, 0 ≥ y ≥ 1
2
fX,Y (x, y) = ax
0
otherwise
1. What ensures that fX,Y (x, y) is a valid pdf ?
Normalisation would mean
= a1
R1
0
R1R∞
0
1
y
ax2
dx dy = 1
R∞
R1
∞
y( 1 x12 dx) dy = a1 0 y[ −1
x ]1 dy
6
(4)
R1
= a1
0
y dy
2
y 1
= [ 2a
]0 = 1
=> 1 = 2a
=> a = 12
This ensures that the given pdf is valid.
2. Find fX|Y (x|y) and fY |X (y|x).
fX|Y (x|y) =
fX,Y (x,y)
fY (y)
fY (y)
=
R ∞ 2y
1
x2 dx
∞
= 2y [ −1
x ]1
= 2y
1
fX|Y (x|y) = x2y2 ∗ 2y
= x12
fY |X (y|x) =
fX,Y (x,y)
fX (x)
fX (x)
=
R 1 2y
dy
0 x2
2
= x22 [ y2 ]10 = x12
fY |X (y|x) = x2y2 *x2
= 2y
3. Compute the expectations of X and Y.
E[X]
=
R∞ x
1
x2
dx
7
= [ln x]∞
1
=∞−0
= not def ined
E[Y ]
=
R1
=
R1
0
0
y ∗ 2y dy
2y 2 dy
3
= [ 2y3 ]10
= 32
4. What are the conditional expectations of X given Y and Y given X?
EX|Y [x|y]
=
R∞ x
x2
1
dx
= [ln x]∞
1
=∞−0
= not def ined
EY |X [y|x]
=
R1
=
R1
0
0
y ∗ 2y dy
2y 2 dy
3
= [ 2y3 ]10
= 32
Note that as X and Y are independent, their conditional expectations match
their individual expectations.
8