You are on page 1of 6

Stat 366 Lab 3 Solutions (September 26, 2006) page 1

TA: Yury Petrachenko, CAB 484, yuryp@ualberta.ca, http://www.ualberta.ca/∼yuryp/

Bivariate and Multivariate Probability Distributions

5.1 Contracts for two construction jobs are randomly assigned to one or more of three firms, A,
B, and C. Let Y1 denote the number of contracts assigned to firm A, and Y2 the number of
contracts assigned to firm B. Recall that each firm can receive 0, 1, or 2 contracts.

(a) Find the joint probability function for Y1 and Y2 .

(b) Find F (1, 0).

Solution. (a) Let’s list all nine possible assignments of construction jobs to the three firms:
AA, AB, AC, BA, BB, BC, CA, CB, CC. (The first symbol signifies the selection for the
first job, the second — for the second one). These assignments are equally likely. Hence, the
probability of each of them is 1/9. Now, let’s determine the values of Y1 and Y2 in each case:
Assignment (y1 , y2 ) p(y1 , y2 )
AA (2, 0) 1/9
AB (1, 1) 1/9
AC (1, 0) 1/9
BA (1, 1) 1/9
BB (0, 2) 1/9
BC (0, 1) 1/9
CA (1, 0) 1/9
CB (0, 1) 1/9
CC (0, 0) 1/9
To find the joint probability function for Y1 and Y2 , we need to rearrange these data into the
following table:
y1
0 1 2
0 1/9 2/9 1/9
y2 1 2/9 2/9 0
2 1/9 0 0
(b) Compute

2 1 1
F (1, 0) = P (Y1 ≤ 1, Y2 ≤ 0) = p(0, 0) + p(1, 0) = + = . ¤
9 9 3
Stat 366 Lab 3 Solutions (September 26, 2006) page 2

5.6 Let Y1 and Y2 have the joint probability density function given by

 k y1 y2 , 0 ≤ y1 ≤ 1, 0 ≤ y2 ≤ 1,
f (y1 , y2 ) =
 0, elsewhere.

(a) Find the value of k that makes this a probability density function.
(b) Find the joint distribution function for Y1 and Y2 .
(c) Find P (Y1 ≤ 1/2, Y2 ≤ 3/4).

Solution. (a) We must have


Z ∞ Z ∞
f (y1 , y2 ) dy1 dy2 = 1.
−∞ −∞

Let’s compute:
Z Z Z µ ¶ Z
1 1 1
y12 ¯¯1 k 1 k
1=k y1 y2 dy1 dy2 = k y2 ¯ dy2 = y2 dy2 = .
0 0 0 2 y1 =0 2 0 4

So, k = 4 makes f a probability density function.


(b) By definition, if 0 ≤ y1 ≤ 1 and 0 ≤ y2 ≤ 1:
Z y1 Z y2 Z y1 Z y2
y12 y22
F (y1 , y2 ) = 4 t1 t2 dy2 dy1 = 4 t1 dy1 t2 dy2 = 4 = y12 y22 .
0 0 0 0 2 2

So, overall 

 1, y1 ≥ 1, y2 ≥ 1,





 y2y2, 0 ≤ y1 ≤ 1, 0 ≤ y2 ≤ 1,

 1 2
F (y1 , y2 ) = y12 , 0 ≤ y1 ≤ 1, y2 ≥ 1,





 y22 , 0 ≤ y2 ≤ 1, y1 ≥ 1,



 0, y1 ≤ 0, y2 ≤ 0.
¡ 1 ¢2 ¡ 3 ¢2 9
(c) We have P (Y1 ≤ 1/2, Y2 ≤ 3/4) = F (1/2, 3/4) = 2 4
= 64
. ¤
Stat 366 Lab 3 Solutions (September 26, 2006) page 3

5.12 Suppose that the random variables Y1 and Y2 have joint probability density function f (y1 , y2 )
given by 
 6y 2 y2 , 0 ≤ y1 ≤ y2 , y1 + y2 ≤ 2,
1
f (y1 , y2 ) =
 0, elsewhere.

(a) Verify that this is a valid joint density function.

(b) What is the probability that Y1 + Y2 is less than 1?

Solution. Let’s integrate the density:


Z 1 Z 2−y1 Z 1 Z 1
¡ ¢
6y12 y22 dy2 dy1 = 3y12 (2 − y1 ) −2
y12 dy1 = 3y12 (4 − 4y1 ) dy1
0 y1 0 0
Z 1 ¯1
¯
= 12 (y12 − y13 ) dy1 = 4y13 − 3y14 ¯ = 4 − 3 = 1.
0 0

Hence, f (y1 , y2 ) ≥ 0 is a valid density function.

Now, to find the probability P (Y1 + Y2 < 1) we need to evaluate the following integral:
Z 1/2 Z 1−y1 Z 1/2 ¡ ¢
6y12 y22 dy2 dy1 = 3y12 (1 − y1 )2 − y12 dy1
0 y1 0
Z 1/2
3 4 ¯¯1/2 1 3 1
= (3y12 − 6y13 ) dy1 = y13 − y1 ¯ = − = . ¤
0 2 0 8 32 32

5.14 Let Y1 and Y2 denote the proportions of time (out of one working day) during which employees
I and II, respectively, perform their assigned tasks. The joint relative frequency behavior of
Y1 and Y2 is modeled by the density function

 y1 + y2 , 0 ≤ y1 ≤ 1, 0 ≤ y2 ≤ 1,
f (y1 , y2 ) =
 0, elsewhere.

(a) Find P (Y1 < 1/2, Y2 > 1/4).

(b) Find P (Y1 + Y2 ≤ 1).


Stat 366 Lab 3 Solutions (September 26, 2006) page 4

Solution. This is almost a pure integration technique problem. For the first probability
consider the integral
Z 1 Z 1/2 Z 1 Z 1/2 Z 1 Z 1/2
(y1 + y2 ) dy1 dy2 = y1 dy1 dy2 + y2 dy1 dy2
1/4 0 1/4 0 1/4 0
Z Z
3 1/2
1 1
3 1 ³ 1 ´2 1 1 ³ ³ 1 ´2 ´ 21
= y1 dy1 + y2 dy2 = · · + · · 1− = .
4 0 2 1/4 4 2 2 2 2 4 64

Now, the second probability:


Z 1 Z 1−y2 Z 1 ³ y2 ¯1−y2 ´
³ (1 − y )2Z ´ 1
1 ¯ 2
(y1 + y2 ) dy1 dy2 = + y1 y2 ¯ dy2 = + (1 − y2 )y2 dy2
0 0 2 y1 =0 2
Z0 1 ³1 1 ´ ³
0
3 ¯1 ´
1 y ¯ 1
= − y22 dy2 = · y2 − 2 ¯ = . ¤
0 2 2 2 3 0 3

Marginal and Conditional Probability Distributions

5.17 Continuing Exercise 5.1.

(a) Find the marginal probability distribution of Y1 .


(b) According to results in Chapter 4, Y1 has a binomial distribution with n = 2 and p = 1/3.
Is there any conflict between this result and the answer you provided in (a)?

Solution. (a) Refer to the table in the solution to Exercise 5.1 (a) above. To find the marginal
probability distribution of Y1 , we just need to add up numbers in respective columns of that
table. We have

P (Y1 = 0) = P (Y1 = 0, Y2 = 0) + P (Y1 = 0, Y2 = 1) + P (Y1 = 0, Y2 = 2)


4
= p(0, 0) + p(0, 1) + p(0, 2) = ,
9

4 1
P (Y1 = 1) = , P (Y2 = 2) = .
9 9
¡ 2 ¢ ¡ 1 ¢y1 ¡ 2 ¢2−y1
(b) If Y1 is binomial with such parameters, then it must be p(y1 ) = y1 3 3
. We can
easily check that this equality holds for y1 = 0, 1, 2. Hence, no conflict. ¤
Stat 366 Lab 3 Solutions (September 26, 2006) page 5

5.22 Continuing Exercise 5.6.

(a) Find the marginal density functions for Y1 and Y2 .


(b) Find P (Y1 ≤ 1/2 | Y2 ≥ 3/4).
(c) Find the conditional density function of Y1 given Y2 = y2 .
(d) Find the conditional density function of Y2 given Y1 = y1 .
(e) Find P (Y1 ≤ 3/4 | Y2 = 1/2).

Solution. (a) Let’s integrate for all y2 :


Z 1
f1 (y1 ) = 4y1 y2 dy2 = 2y1 , 0 ≤ y1 ≤ 1.
0

Because the joint density is symmetric in y1 and y2 , the other marginal density is

f2 (y2 ) = 2y2 , 0 ≤ y2 ≤ 1.

(b) Let’s use the definition of the conditional probability:


R 1/2 R 1
P (Y1 ≤ 1/2 , Y2 ≥ 3/4) 0 3/4
4y1 y2 dy2 dy1
P (Y1 ≤ 1/2 | Y2 ≥ 3/4) = = R1
P (Y2 ≥ 3/4) 2y2 dy2
3/4
³R ´ ³R ´
1/2 1
2y1 dy1 · 3/4 2y2 dy2 Z 1/2 ¯1/2 1
0 ¯
= R1 = 2y1 dy1 = y12 ¯ = .
2y2 dy2 0 0 4
3/4

(c)&(d) Again, by definition

f (y1 , y2 ) 4y1 y2
f1 (y1 |Y2 = y2 ) = f1 (y1 |y2 ) = = = 2y1 .
f (y2 ) 2y2
f (y1 , y2 ) 4y1 y2
f2 (y2 |Y1 = y1 ) = f2 (y2 |y1 ) = = = 2y2 .
f (y1 ) 2y1

(e) Since we already know the conditional density f1 (y1 |y2 ), we can use it now:

³ Z ¯ Z 3/4
3 1´ 3/4 ³
¯ 1´ 9
P Y1 ≤ | Y2 = = f1 y1 ¯ Y2 = dy1 = 2y1 dy1 = . ¤
4 2 0 2 0 16
Stat 366 Lab 3 Solutions (September 26, 2006) page 6

5.28 Continuing Exercise 5.12.

(a) Show that the marginal density of Y1 is a beta density with α = 3 and β = 2.
(b) Derive the marginal density of Y2 .
(c) Derive the conditional density of Y2 given Y1 = y1 .
(d) Find P (Y2 < 1.1 | Y1 = .60).

Solution. (a) Compute


Z 2−y1
f1 (y1 ) = 6y12 y2 dy2 = 12y12 (1 − y1 ), 0 ≤ y1 ≤ 1.
y1

This is indeed a Beta(2,3) random variable: α = 2, β = 3 in y α−1 (1 − y)β−1 .


(b) We should consider two separate cases. First, 0 ≤ y2 ≤ 1:
Z y2
6y12 y2 dy1 = 2y24 .
0

Second, 1 ≤ y2 ≤ 2: Z 2−y2
6y12 y2 dy1 = 2y2 (2 − y2 )3 .
0

Combine the two: 



 2y24 , 0 ≤ y2 ≤ 1,

f2 (y2 ) = 2y2 (2 − y2 )3 , 1 ≤ y2 ≤ 2,



0, elsewhere.

(c) We have 
y2
f (y1 , y2 ) 
, y 1 ≤ y2 ≤ 2 − y1 ,
f2 (y2 |y1 ) = = 2 − 2y1
f1 (y1 ) 
0, elsewhere.

(d) Let’s use the result in (c): we know that y1 = .60. So,

y2
f2 (y2 |y1 = .60) = , .6 ≤ y2 ≤ 1.4.
.8

To compute the probability we should integrate with this density:


Z 1.1
y2 (1.12 − .62 ) 17
P (Y2 < 1.1 | Y1 = .60) = dy2 = = . ¤
.6 .8 1.6 32

You might also like