Académique Documents
Professionnel Documents
Culture Documents
Fall 2016
Let X and Y be two discrete random variables. The joint probability mass
function p ( x, y ) is defined for each pair of numbers ( x, y ) by
p ( x, y ) = P( X = x and Y = y ).
Let A be any set consisting of pairs of ( x, y ) values. Then
P( ( X, Y ) A ) =
p ( x, y ) .
( x, y ) A
f (x, y ) dx dy .
A
1.
a)
0.15
0.10
0.25
0.30
0.20
Find P( X + Y = 2 ).
P( X + Y = 2 ) = p ( 1, 1 ) + p ( 2, 0 ) = 0.10 + 0.25 = 0.35.
b)
Find P( X > Y ).
P( X > Y ) = p ( 1, 0 ) + p ( 2, 0 ) + p ( 2, 1 ) = 0.15 + 0.25 + 0.30 = 0.70.
The marginal probability mass functions of X and of Y are given by
p X ( x ) = p ( x, y ) ,
all y
p Y ( y ) = p ( x, y ) .
all x
f X ( x ) = f ( x, y ) dy ,
f Y ( y ) = f ( x, y ) dx .
c)
pY( y )
pX( x )
0.40
0.25
0.40
0.75
0.2
continuous
g ( x, y ) p ( x, y )
E ( g( X, Y ) ) =
all x all y
d)
g ( x, y) f ( x, y) dx dy
Find E ( X ), E ( Y ), E ( X + Y ), E ( X Y ).
E ( X ) = 1 0.25 + 2 0.75 = 1.75.
E ( Y ) = 0 0.40 + 1 0.40 + 2 0.20 = 0.8.
E ( X + Y ) = 1 0.15 + 2 0.25 + 2 0.10 + 3 0.30 + 3 0 + 4 0.20 = 2.55.
OR
E ( X + Y ) = E ( X ) + E ( Y ) = 1.75 + 0.8 = 2.55.
E ( X Y ) = 0 0.15 + 0 0.25 + 1 0.10 + 2 0.30 + 2 0 + 4 0.20 = 1.5.
Moment-generating function
M X Y ( t 1, t 2 ) = E ( e
t1 X + t2 Y
M X Y ( t 1 , 0 ) = M X ( t 1 ),
e)
),
M ( t 1 , t 2 ) = 0.15 e
t1
+ 0.25 e
2 t1
+ 0.10 e
t1 + t2
+ 0.30 e
2 t1 + t2
+ 0.20 e
2 t1 + 2 t2
1.5.
t1
+ 0.30 e
2 t2
+ 0.40 e
2 t1 + t2
2.
0.10
0.30
0.20
0.40
a)
0 x 1, 0 y 1, x + y 1
otherwise
f ( x , y ) 0 for all ( x , y ).
2.
f ( x, y ) dx dy =
1 1 x
2
2
60 x 2 y dy dx =
30 x ( 1 x ) dx
0
0 0
( 30 x 2 60 x 3 + 30 x 4 )dx = (10 x 3 15 x 4 + 6 x 5 ) 10
= 1.
b)
Find the probability that the two types of nuts together make up less than 50% of
the can. That is, find the probability P( X + Y < 0.50 ). ( Find the probability that
peanuts make up over 50% of the can.)
P( X + Y < 0.50 ) =
0.5 0.5 x
0.5
2
2
2
dx =
60
y
x
y
d
30 x ( 0.5 x ) d x
0
0
0.5
c)
Find the probability that there are more almonds than cashews in a can. That is,
find the probability P( X > Y ).
y
P( X > Y ) = 60 x 2 y dx dy
0 y
1 2 1
1 y
2
= 20 y 3 x dx dy
y
12
20 y ( (1 y )
12
y 3 dy
20 y (1 3 y + 3 y
12
2y
)dx
( 20 y 60 y
12
+ 60 y 3 40 y 4 dx
= 10 y 2 20 y 3 + 15 y 4 8 y 5
11
) 102 = 16
= 0.6875.
OR
12
1 x
dx
2
2
=
1
60
dx
x
y
dy
30
x
2
y
dy
0
0 x
1 2 1 x
P( X > Y ) = 1
12
= 1
0
12
=1
30 x
( (1 x )
2
3
( 30 x 60 x )dx
)dx
12
= 1
30 x 2 ( 1 2 x ) dx
= 1 10 x 3 15 x 4
11
) 102 = 16
= 0.6875.
OR
1 1 x
2
2
P( X > Y ) = 60 x y dy dx + 60 x y dy dx =
0 0
1 2 0
1 2 x
d)
Find the probability that there are at least twice as many cashews as there are almonds.
That is, find the probability P( 2 X Y ).
P( Y 2 X ) =
1 3 1 x
60 x 2 y dy dx
0 2x
2
2
2
( 30 x [ ( 1 x ) ( 2 x ) ] )dx
13
( 30 x
13
60 x 3 90 x 4 dx
60 x 3 90 x 4 dx =
0
13
( 30 x
(10 x 3 15 x 4 18 x 5 ) 103
e)
10 15 18
1
=
.
27 81 243
9
60 x
f X(x ) =
y dy = 30 x
1 x
2 y dy
f)
0 < x < 1.
60 x
f Y(y ) =
g)
= 30 x 2 ( 1 x ) 2 ,
1 y
2
y dx = 20 y
3x
dx = 20 y ( 1 y ) 3 ,
Find E ( X ), E ( Y ), E ( X + Y ), E ( X Y ).
1
E( X ) =
x 30 x 2 ( 1 x ) 2 dx =
( 30 x
60 x 4 + 30 x 5 dx
0 < y < 1.
( 7.5 x 4 12 x 5 + 5 x 6 ) 10
1
E( Y ) =
y 20 y ( 1 y ) 3 dy =
= 0.5 =
( 20 y
1
.
2
60 y 3 + 60 y 4 20 y 5 dy
1
20
1
20 3
=
y 15 y 4 + 12 y 5 y 6 = .
6
3
3
0
E ( X + Y ) = E( X ) + E( Y ) =
5
.
6
1 1 x
E ( X Y ) = x y 60 x y dy dx = 20 x 3 ( 1 x ) 3 dx
0
0 0
( 20 x
60 x 4 + 60 x 5 20 x 6 dx
20 7 1
1
= 5 x 4 12 x 5 + 10 x 6
=
.
x
7
7
0
h)
OR
E ( Total cost ) = ( 1.00 ) E ( X ) + ( 1.50 ) E ( Y ) + ( 0.60 ) E ( 1 X Y )
1
1
1 1
i)
M(t1, t2 ) =
1 1 x
t x+t y
2
e 1 2 60 x y dy
0 0
dx =