sta_5325_hw_3_ramin_shamshiri

20
Page 1 of 20 Ramin Shamshiri STA 5325, HW #3 Due 06/15/09 STA 5325, Homework #3 Due June 15, 2009 Ramin Shamshiri UFID # 90213353 Note: Problem numbers are according to the 6 th text edition. Selected problem are highlighted. Assignment for Monday, June 1 st , 2009 5.4. Given here is the joint probability function associated with data obtained in a study of automobile accidents in which a child (under age 5) was in the car and at least one fatality occurred. Specifically, the study focused on whether or not the child survived and what type of seatbelt (if any) he or she used. Define: 1 = 0, 1, and 1 = 0, no belt used 1, adult belt used 2, car βˆ’ seat belt used. Notice that Y 1 is the number of fatalities per child and, since children’s car seats usually utilize two belts, Y 2 is the number of seatbelts in use at the time of accident. y 2 y 1 0 1 0 0.38 0.17 0.55 1 0.14 0.02 0.16 2 0.24 0.05 0.29 0.76 0.24 1.00 a. Verify that the preceding probability function satisfies theorem 5.1. b. Find F(1,2). What is the interpretation of this value? Solution a: Theorem 5.1 states that if Y1 and Y2 are discrete random variables with joint probability function p(y1,y2), then ( 1 , 2 ) β‰₯ 0 for all y 1 ,y 2 1 , 2 =1 1 , 2 , where the sum is over all values (y 1 ,y 2 ) that are assigned nonzero probabilities. It can be seen from the table values that all of the probabilities are at least 0 and sum of them are 1. Solution b: According to definition 5.2, for any random variable Y1 and Y2, the joint distribution function F(y1,y2) is given by: 1 , 2 = ( 1 ≀ 1 , 2 ≀ 2 ). Therefore, 1,2 = 1 ≀ 1, 2 ≀ 2 = 0,0 + 0,1 + 0,2 + 1,0 + 1,1 + (1,2) = 0.38 + 0.14 + 0.24 + 0.17 + 0.02 + 0.05 = . + . = It means that every child in the experiment either survived or didn’t and use either 0,1 or 2 seatbelts.

Upload: raminshamshiri

Post on 16-Apr-2015

5.096 views

Category:

Documents


9 download

DESCRIPTION

STA_5325_HW_3_Ramin_Shamshiri

TRANSCRIPT

Page 1: STA_5325_HW_3_Ramin_Shamshiri

Page 1 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

STA 5325, Homework #3

Due June 15, 2009

Ramin Shamshiri

UFID # 90213353 Note: Problem numbers are according to the 6

th text edition. Selected problem are highlighted.

Assignment for Monday, June 1st , 2009

5.4. Given here is the joint probability function associated with data obtained in a study of automobile accidents

in which a child (under age 5) was in the car and at least one fatality occurred. Specifically, the study focused

on whether or not the child survived and what type of seatbelt (if any) he or she used. Define:

π‘Œ1 = 0, 𝑖𝑓 𝑑𝑕𝑒 𝑐𝑕𝑖𝑙𝑑 π‘ π‘’π‘Ÿπ‘£π‘–π‘£π‘’π‘‘1, 𝑖𝑓 π‘›π‘œπ‘‘

and π‘Œ1 =

0, 𝑖𝑓 no belt used1, 𝑖𝑓 adult belt used2, 𝑖𝑓 car βˆ’ seat belt used.

Notice that Y1 is the number of fatalities per child and, since children’s car seats usually utilize two belts, Y2 is

the number of seatbelts in use at the time of accident.

y2

y1

0 1

0 0.38 0.17 0.55

1 0.14 0.02 0.16

2 0.24 0.05 0.29

0.76 0.24 1.00

a. Verify that the preceding probability function satisfies theorem 5.1.

b. Find F(1,2). What is the interpretation of this value?

Solution a:

Theorem 5.1 states that if Y1 and Y2 are discrete random variables with joint probability function p(y1,y2),

then

𝑃(𝑦1, 𝑦2) β‰₯ 0 for all y1,y2

𝑝 𝑦1, 𝑦2 = 1𝑦1 ,𝑦2, where the sum is over all values (y1,y2) that are assigned nonzero probabilities.

It can be seen from the table values that all of the probabilities are at least 0 and sum of them are 1.

Solution b:

According to definition 5.2, for any random variable Y1 and Y2, the joint distribution function F(y1,y2) is

given by: 𝐹 𝑦1, 𝑦2 = 𝑃(π‘Œ1 ≀ 𝑦1, π‘Œ2 ≀ 𝑦2).

Therefore,

𝐹 1,2 = 𝑃 π‘Œ1 ≀ 1, π‘Œ2 ≀ 2 = 𝑃 0,0 + 𝑃 0,1 + 𝑃 0,2 + 𝑃 1,0 + 𝑃 1,1 + 𝑃(1,2)

= 0.38 + 0.14 + 0.24 + 0.17 + 0.02 + 0.05 = 𝟎. πŸ•πŸ” + 𝟎. πŸπŸ’ = 𝟏

It means that every child in the experiment either survived or didn’t and use either 0,1 or 2 seatbelts.

Page 2: STA_5325_HW_3_Ramin_Shamshiri

Page 2 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.8. An environment engineer measures the amount (by weight) of particular pollution in air samples of a

certain volume collected over two smokestacks at a coal-operated power plant. One of the stacks is equipped with a cleaning device. Let Y1 denote the amount of pollutant per sample collected above the stack that has no

cleaning device, and let Y2 denote the amount of pollutant per sample collected above the stack that is equipped

with the cleaning device. Suppose that the relative frequency behavior of Y1 and Y2 can be modeled by

𝑓(𝑦1, 𝑦2) = π‘˜, 0 ≀ y1 ≀ 2, 0 ≀ y2 ≀ 1, 2y2 ≀ y1

0, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

That is, Y1 and Y2 are uniform distributed over the region inside the triangle bounded by y1=2, y2=0, and

2y2=y1

a. Find the value of k that makes this function a probability density function.

b. Find 𝑃(π‘Œ1 β‰₯ 3π‘Œ2). That is, find the probability that the cleaning device reduces the amount of pollutant by one-their or more.

Solution a:

π‘˜2

2𝑦2

1

0

𝑑𝑦1𝑑𝑦2 = 1

π‘˜(2 βˆ’ 2𝑦2)1

0

𝑑𝑦2 = 1

2π‘˜π‘¦2 βˆ’ 𝑦22

0

1= 1

2π‘˜ βˆ’ 1 = 1 => π’Œ = 𝟏

Solution b:

𝑦2 =1

3𝑦1

𝑃 π‘Œ1 β‰₯ 3π‘Œ2 = 1

13𝑦1

0

2

0

𝑑𝑦2𝑑𝑦1 = 1

3𝑦1

2

0

𝑑𝑦1

= 𝑦12

6

0

2

=4

6=

𝟐

πŸ‘

Page 3: STA_5325_HW_3_Ramin_Shamshiri

Page 3 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.13. The management at a fast-food outlet is interested in the joint behavior of the random variables Y1,

defined as the total time between a customer’s arrival at the store and departure from the service window, and Y2, the time a customer waits in line before reaching the service windows. Because Y1 includes the time a

customer waits in line, we must have π‘Œ1 β‰₯ π‘Œ2. The relative frequency distribution of observed values of Y1 and

Y2 can be modeled by the probability density function

𝑓(𝑦1, 𝑦2) = π‘’βˆ’π‘¦1 , 0 ≀ y2 ≀ y1 < ∞

0, elsewhere

With time measured in minutes.

a. Find 𝑃(π‘Œ1 < 2, π‘Œ2 > 1). b. Find 𝑃(π‘Œ1 β‰₯ 2π‘Œ2). c. Find 𝑃(π‘Œ1 βˆ’ π‘Œ2 β‰₯ 1). (Notice that Y1-Y2 denotes the time spent at the service window)

Solution a:

𝑃 π‘Œ1 < 2, π‘Œ2 > 1 = π‘’βˆ’π‘¦1

2

𝑦2

2

1

𝑑𝑦1𝑑𝑦2

Or we could say 𝑃 π‘Œ1 < 2, π‘Œ2 > 1 = π‘’βˆ’π‘¦1𝑦1

1

2

1𝑑𝑦2𝑑𝑦1

Both are the same. Solving the integral,

𝑃 π‘Œ1 < 2, π‘Œ2 > 1 = π‘’βˆ’1 βˆ’ 2π‘’βˆ’2

Solution b:

𝑃 π‘Œ1 β‰₯ 2π‘Œ2 = π‘’βˆ’π‘¦1

∞

2𝑦2

∞

0

𝑑𝑦1𝑑𝑦2

Or we could say:

𝑃 π‘Œ1 β‰₯ 2π‘Œ2 = π‘’βˆ’π‘¦1

∞

0

∞

2𝑦2

𝑑𝑦2𝑑𝑦1

Both are the same. Solving the integral

𝑃 π‘Œ1 β‰₯ 2π‘Œ2 =1

2

Solution c:

𝑃 π‘Œ1 βˆ’ π‘Œ2 β‰₯ 1 = π‘’βˆ’π‘¦1

∞

𝑦2+1

∞

0

𝑑𝑦1𝑑𝑦2 = π‘’βˆ’1

Page 4: STA_5325_HW_3_Ramin_Shamshiri

Page 4 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.20. In exercise 5.4, you were given the following joint probability function for

π‘Œ1 = 0, 𝑖𝑓 𝑑𝑕𝑒 𝑐𝑕𝑖𝑙𝑑 π‘ π‘’π‘Ÿπ‘£π‘–π‘£π‘’π‘‘1, 𝑖𝑓 π‘›π‘œπ‘‘

and π‘Œ1 =

0, 𝑖𝑓 no belt used1, 𝑖𝑓 adult belt used2, 𝑖𝑓 car βˆ’ seat belt used.

y2

y1

0 1

0 0.38 0.17 0.55

1 0.14 0.02 0.16

2 0.24 0.05 0.29

0.76 0.24 1.00

a. Give the marginal probability function for Y1 and Y2. b. Give the conditional probability function for Y2 given Y1=0.

c. What is the probability that a child survived given that he or she was in a car-seat belt?

Solution a:

𝑃1 𝑦1 = 𝑝(𝑦1, 𝑦2)

𝑦2

P1(Y1=0)=P(0,0)+P(0,1)+P(0,2)=0.38+0.14+0.24=0.76 P1(Y1=1)=P(1,0)+P(1,1)+P(1,2)=0.17+0.02+0.05=0.24

So:

𝑃1(π‘Œ1) = 0.76, 𝑦1 = 00.24, 𝑦1 = 1

𝑃2 𝑦2 = 𝑝(𝑦1, 𝑦2)

𝑦1

𝑃2(π‘Œ2) = 0.55, 𝑦0 = 00.16, 𝑦1 = 10.29, 𝑦2 = 2

Solution b:

𝑃 π‘Œ2 π‘Œ1 = 0 =𝑃(𝑦1 = 0, 𝑦2)

𝑃1(𝑦1 = 0)=

𝑃 0,0 = 0.38

0.76= 0.5 , 𝑦2 = 0

𝑃 0,1 = 0.14

0.76= 0.184, 𝑦2 = 1

𝑃 0,2 = 0.24

0.76= 0.315, 𝑦2 = 2

Solution c:

𝑃 π‘Œ1 = 0 π‘Œ2 = 2 =𝑃(0,2)

𝑃2(2)=

0.24

0.29= 0.827

Page 5: STA_5325_HW_3_Ramin_Shamshiri

Page 5 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.21. In example 5.4 and exercise 5.5 we considered the joint density of Y1, the proportion of the capacity of the

tank that is stocked at the beginning of the week, and Y2, the proportion of the capacity sold during the week, given by

𝑓(𝑦1, 𝑦2) = 3𝑦1, 0 ≀ y2 ≀ y1 < 1

0, elsewhere

a. Find the marginal density function for Y2.

b. For what values of y2 is the conditional density 𝑓( 𝑦1 𝑦2) defined?

c. What is the probability that more than half of a tank is sold given that three-fourths of a tank is stocked?

Solution a:

𝑓2 𝑦2 = 𝑓(𝑦1, 𝑦2)∞

βˆ’βˆž

𝑑𝑦1 = 3𝑦1

1

𝑦2

𝑑𝑦1 = 3𝑦12

2 𝑦2

1

=3

2βˆ’

3𝑦22

2

hence:

𝑓2 𝑦2 = 3

2βˆ’

3𝑦22

2, 0 ≀ y2 ≀ 1

0, elsewhere

Solution b: Denominator should not be zero,

𝑓 𝑦1 𝑦2 =𝑓(𝑦1, 𝑦2)

𝑓2(𝑦2) β‰  0

Therefore, 0 ≀ y2 ≀ 1

Solution c:

𝑓1 𝑦1 = 𝑓(𝑦1, 𝑦2)∞

βˆ’βˆž

𝑑𝑦2 = 3𝑦1

𝑦1

0

𝑑𝑦2 = 3𝑦1𝑦2 0𝑦1 = 3𝑦1

2

𝑃 π‘Œ2 >1

2 π‘Œ1 =

3

4 = 𝑓 0.5 0.75 =

𝑓(0.75,0.5)

𝑓1(0.75)=

3𝑦1

𝑓1(0.75)=

94

3𝑦12 𝑦1=0.75

=

94

3 34

2 =πŸ’

πŸ‘

Page 6: STA_5325_HW_3_Ramin_Shamshiri

Page 6 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

Assignment for Tuesday, June 2nd

, 2009

5.42. In exercise 5.4 you were given the following joint probability function for

π‘Œ1 = 0, 𝑖𝑓 𝑐𝑕𝑖𝑙𝑑 π‘ π‘’π‘Ÿπ‘£π‘–π‘£π‘’π‘‘1, 𝑖𝑓 π‘›π‘œπ‘‘

and π‘Œ2 =

0, 𝑖𝑓 π‘›π‘œ 𝑏𝑒𝑙𝑑 𝑒𝑠𝑒𝑑1, 𝑖𝑓 π‘Žπ‘‘π‘’π‘™π‘‘ 𝑏𝑒𝑙𝑑 𝑒𝑠𝑒𝑑2, 𝑖𝑓 π‘π‘Žπ‘Ÿ βˆ’ π‘ π‘’π‘Žπ‘‘ 𝑏𝑒𝑙𝑑 𝑒𝑠𝑒𝑑

y2

y1

0 1

0 0.38 0.17 0.55

1 0.14 0.02 0.16 2 0.24 0.05 0.29

0.76 0.24 1.00

Are Y1 and Y2 independent? Why or why not?

Solution: We should check P(y1,y2)=P1(y1).P2(y2)

Lets pick examine P(0,1), from table, we can see that P(0,1)=0.14. P1(0)=0.76 and P2(1)=0.16

Since 0.14β‰ 0.76)(0.16), we conclude that Y1 and Y2 are not independent. So they are dependent.

5.43. In example 5.4 and exercise 5.5 we considered the joint density of Y1, the proportion of the capacity of

the tank that is stocked at the beginning of the week and Y2, the proposition of the capacity sold during the week, given by

𝑓(𝑦1, 𝑦2) = 3𝑦1, 0 ≀ 𝑦2 ≀ 𝑦1 ≀ 1

0, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

Show that Y1 and Y2 are dependent.

Solution: Quick check:

We examine the joint density function and see if it satisfies:

a. The region in which the joint density is positive must be a rectangle (possibly infinite) b. The function equation must factor into a product of two functions-one depends only on y1 and the other

depends only on y2. (One or both could be constant)

Since the region in which the joint density is positive is not a rectangle (it is triangle), then part (a) fails and we

conclude that Y1 and Y2 are dependent. (However part (b) holds)

Detailed solution:

𝑓2 𝑦2 = 𝑓(𝑦1, 𝑦2)∞

βˆ’βˆž

𝑑𝑦1 = 3𝑦1

1

𝑦2

𝑑𝑦1 = 3𝑦12

2 𝑦2

1

=3

2βˆ’

3𝑦22

2

hence:

𝑓2 𝑦2 = 3

2βˆ’

3𝑦22

2, 0 ≀ y2 ≀ 1

0, elsewhere

𝑓1 𝑦1 = 𝑓(𝑦1, 𝑦2)∞

βˆ’βˆž

𝑑𝑦2 = 3𝑦1

𝑦1

0

𝑑𝑦2 = 3𝑦1𝑦2 0𝑦1 = 3𝑦1

2

𝑓1 𝑦1 = 3𝑦1

2, 0 ≀ y1 ≀ 10, elsewhere

𝑓 𝑦1, 𝑦2 = 3𝑦1 β‰  𝑓1 𝑦1 . 𝑓2 𝑦2

Hence, Y1 and Y2 are dependent.

Page 7: STA_5325_HW_3_Ramin_Shamshiri

Page 7 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.44. In exercise 5.6, we derived the fact that

𝑓(𝑦1, 𝑦2) = 4𝑦1𝑦2, 0 ≀ 𝑦1 ≀ 1, 0 ≀ 𝑦2 ≀ 1

0, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

is a valid joint probability density function. Are Y1 and Y2 independent?

Quick check: We examine the joint density function and see if it satisfies:

a. The region in which the joint density is positive must be a rectangle (possibly infinite)

b. The function equation must factor into a product of two functions-one depends only on y1 and the other depends only on y2. (One or both could be constant)

Since the region in which the joint density is positive is a rectangle and since the function equation can be

factored into a product of two functions 4y1 and y2m both criteria hold and we conclude that Y1 and Y2 are

independent. (However part (b) holds)

Detailed solution:

𝑓2 𝑦2 = 𝑓(𝑦1, 𝑦2)∞

βˆ’βˆž

𝑑𝑦1 = 4𝑦1𝑦2

1

0

𝑑𝑦1 = 2𝑦12𝑦2

0

1= 2𝑦2

hence:

𝑓2 𝑦2 = 2𝑦2, 0 ≀ y2 ≀ 1

0, elsewhere

𝑓1 𝑦1 = 𝑓(𝑦1, 𝑦2)∞

βˆ’βˆž

𝑑𝑦2 = 4𝑦1𝑦2

1

0

𝑑𝑦2 = 2𝑦1𝑦22

0

1= 2𝑦1

𝑓1 𝑦1 = 2𝑦1, 0 ≀ y1 ≀ 1

0, elsewhere

𝒇 π’šπŸ, π’šπŸ = πŸ’π’šπŸπ’šπŸ = π’‡πŸ π’šπŸ . π’‡πŸ π’šπŸ

Page 8: STA_5325_HW_3_Ramin_Shamshiri

Page 8 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.65. In exercise 5.7, we determined that

𝑓(𝑦1, 𝑦2) = 6(1 βˆ’ 𝑦2), 0 ≀ 𝑦1 ≀ 𝑦2 ≀ 1

0, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

is a valid joint probability density function.

a. Find E(Y1) and E(Y2).

b. Find V(Y1) and V(Y2).

c. Find E(Y1-3 Y2).

Solution a:

𝐸 π‘Œ1 = 𝑦1

∞

βˆ’βˆž

∞

βˆ’βˆž

𝑓(𝑦1, 𝑦2)𝑑𝑦1𝑑𝑦2

𝑦1

𝑦2

0

1

0

6 βˆ’ 6𝑦2 𝑑𝑦1𝑑𝑦2 =𝟏

πŸ’

𝐸 π‘Œ2 = 𝑦2

∞

βˆ’βˆž

∞

βˆ’βˆž

𝑓(𝑦1, 𝑦2)𝑑𝑦1𝑑𝑦2

𝑦2

𝑦2

0

1

0

6 βˆ’ 6𝑦2 𝑑𝑦1𝑑𝑦2 =𝟏

𝟐

Solution b:

𝑉 π‘Œ1 = 𝐸 π‘Œ12 βˆ’ 𝐸(π‘Œ1) 2

𝐸 π‘Œ12 = 𝑦1

2𝑦2

0

1

0

6 βˆ’ 6𝑦2 𝑑𝑦1𝑑𝑦2 =𝟏

𝟏𝟎

𝑉 π‘Œ1 =1

10βˆ’

1

4

2

=3

80

𝑉 π‘Œ2 = 𝐸 π‘Œ22 βˆ’ 𝐸(π‘Œ2) 2

𝐸 π‘Œ22 = 𝑦2

2𝑦2

0

1

0

6 βˆ’ 6𝑦2 𝑑𝑦1𝑑𝑦2 =πŸ‘

𝟏𝟎

𝑉 π‘Œ2 =3

10βˆ’

1

2

2

=1

20

Solution c:

𝐸 π‘Œ1 βˆ’ 3π‘Œ2 = 𝐸 π‘Œ1 βˆ’ 3𝐸 π‘Œ2 =1

4βˆ’

3

2= βˆ’

πŸ“

πŸ”

Page 9: STA_5325_HW_3_Ramin_Shamshiri

Page 9 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.70. In exercise 5.32 we determined that the joint density function for Y1, the weight in tons of a bulk item

stocked by a supplier, and Y2, the weight of the item sold by the supplier, has joint density

𝑓(𝑦1, 𝑦2) =

1

𝑦1, 0 ≀ 𝑦2 ≀ 𝑦1 ≀ 1

0, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

In this case, the random variable Y1-Y2 measures the amount of stock remaining at the end of the week, a quantity of great importance to the supplier. Find E(Y1-Y2).

Solution:

𝐸 π‘Œ1 βˆ’ π‘Œ2 = 𝐸 π‘Œ1 βˆ’ 𝐸 π‘Œ2

𝐸 π‘Œ1 = 𝑦1

∞

βˆ’βˆž

∞

βˆ’βˆž

𝑓 𝑦1, 𝑦2 𝑑𝑦1𝑑𝑦2

= 11

𝑦2

1

0

𝑑𝑦1𝑑𝑦2 =1

2

𝐸 π‘Œ2 = 𝑦2

∞

βˆ’βˆž

∞

βˆ’βˆž

𝑓 𝑦1, 𝑦2 𝑑𝑦1𝑑𝑦2

= 𝑦2

𝑦1

1

𝑦2

1

0

𝑑𝑦1𝑑𝑦2 =1

4

𝐸 π‘Œ1 βˆ’ π‘Œ2 =1

2βˆ’

1

4=

𝟏

πŸ’

Page 10: STA_5325_HW_3_Ramin_Shamshiri

Page 10 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

Assignment for Wednesday, June 3rd

, 2009

5.75. In Exercise 5.1 we determined that the joint distribution of Y1, the number of contracts awarded to firm A,

and Y2, the number of contracts awarded to firm B, is given by the entries in the following table

y2

y1

0 1 2

0 1/9 2/9 1/9 1 2/9 2/9 0

2 1/9 0 0

Find Cov(Y1, Y2). Does it surprise you that Cov(Y1, Y2) is negative? Why?

Solution:

Cov(Y1, Y2) = E(Y1Y2)-E(Y1).E(Y2)

𝐸 π‘Œ1π‘Œ2 = 𝑦1𝑦2𝑝 𝑦1, 𝑦2 =

𝑦2𝑦1

0 0 1

9 + 1 0

2

9 + 2 0

1

9 + 0 1

2

9 + 1 1

2

9

+ 0 2 1

9 =

2

9

E(Y1)= E(Y2)=2(1/3)=2/3 since Y1 and Y2 are both binomial with n=2 and p=1/3

Cov(Y1, Y2) = 2/9-(2/3)(2/3)= -2/9

The covariance is negative; it means that the Y2 decreases as the value of Y1 increases.

5.78. In Exercise 5.7, we determined that

𝑓 𝑦1, 𝑦2 = 6(1 βˆ’ 𝑦2), 0 ≀ 𝑦1 ≀ 𝑦2 ≀ 1

0, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

is a valid joint probability density function. Find Cov(Y1,Y2). Are Y1 and Y2 independent?

Solution:

From Exercise 5.65, E(Y1)=1/4 and E(Y2)=1/2

𝐸 π‘Œ1π‘Œ2 6𝑦1𝑦2 1 βˆ’ 𝑦2 𝑑𝑦1𝑑𝑦2

𝑦2

0

1

0

= 3 𝑦23 βˆ’ 𝑦2

4 𝑑𝑦2 =3

4βˆ’

3

5=

3

20

1

0

Cov(Y1, Y2) = 3/20-1/8=1/40

Since Cov(Y1, Y2) β‰  0, Y1 and Y2 are not independent.

Page 11: STA_5325_HW_3_Ramin_Shamshiri

Page 11 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.87. Assume that Y1,Y2 and Y3 are random variables, with

E(Y1)=2 E(Y2)= -1 E(Y3)= 4

V(Y1)=4 V(Y2)=6 V(Y3)= 8

Cov(Y1,Y2)= 1 Cov(Y1,Y3)= -1 Cov(Y2,Y3)= 0

Find E(3Y1+4Y2-6Y3) and V(3Y1+4Y2-6Y3)

Solution:

If U=a1Y1+a2Y2+…+anYn Then

E U = π‘Žπ‘– . 𝐸[π‘Œπ‘–]

𝑛

𝑖=1

E(3Y1+4Y2-6Y3) = E (3Y1)+E(4Y2)+E(-6Y3)

= 3E (Y1)+4E(Y2)-6E(Y3) =3(2)+4(-1)-6(4)=-22

V U = π‘Žπ‘–2. 𝑉[π‘Œπ‘–]

𝑛

𝑖=1

+ 2 π‘Žπ‘–π‘Žπ‘—πΆπ‘œπ‘£[π‘Œπ‘– , π‘Œπ‘— ]

V(3Y1+4Y2-6Y3)= 9(4)+16(6)+36(8)+2.3.4.1+2.3.6(-1)+0=480

Page 12: STA_5325_HW_3_Ramin_Shamshiri

Page 12 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.92. If Y1 is the total time between a customer’s arrival in the store and departure from the service window and

if Y2 is the time spent in line before reaching the window, the joint density of these variables was given in Exercise 5.13 to be

𝑓 𝑦1, 𝑦2 = π‘’βˆ’π‘¦1, 0 ≀ 𝑦2 ≀ 𝑦1 ≀ 1

0, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

The random variable Y1-Y2 represents the time spent at the service window. Find E(Y1-Y2) and V(Y1-Y2). Is it

highly likely that a randomly selected customer would spend more than 4 minutes at the service window?

Solution:

From exercise 5.29,

𝑓1 𝑦1 = 𝑦1π‘’βˆ’π‘¦1 is a gamma distribution with 𝛼 = 2, 𝛽 = 1.

Hence E(Y1)=2(1)=2 and V(Y1)= 𝛼𝛽2 = 2.

𝑓2 𝑦2 = π‘’βˆ’π‘¦1

∞

𝑦2

𝑑𝑦1 = βˆ’π‘’βˆ’π‘¦1 𝑦2∞ = π‘’βˆ’π‘¦2

Which has a gamma distribution with 𝛼 = 𝛽 = 1. Hence E(Y2)=V(Y2)=1.

𝐸 π‘Œ1π‘Œ2 = 𝑦1𝑦2π‘’βˆ’π‘¦1𝑑𝑦2𝑑𝑦1

𝑦1

0

1

0

= 𝑦1

3

2π‘’βˆ’π‘¦1𝑑𝑦1 =

Ξ“ 4 4

2= 3

∞

0

Cov(Y1, Y2) = 3-(1)(2)=1

E(Y1-Y2) = 2-1=1

V(Y1-Y2) = 2+1-2(1)=1

Page 13: STA_5325_HW_3_Ramin_Shamshiri

Page 13 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

Assignment for Monday, June 8th

, 2009

5.99. A learning experiment requires a rat to run a maze (a network of pathways) until it locates one of three

possible exists. Exit 1 presents a reward of food, but exit 2 and 3 do not. (If the rat eventually select exit 1

almost every time, learning may have taken place.) Let Yi denote the number of times exit i is chosen in successive runnings. For the following, assume that the rat chooses an exit at random on each run.

a. Find the probability than n=6 runs result in Y1=3, Y2=1 and Y3=2.

b. For general n, find E(Y1) and V(Y1). c. Find Cov(Y2,Y3) for general n.

d. To check for the rat’s preference between exit 2 and 3, we may look at Y2-Y3. Find E(Y2-Y3) and V(Y2-

Y3) for general n.

Solution:

Y1 denote the number of times that exit 1 is chosen. The probability that exit 1, 2 or 3 is chosen is equal and is 1/3.

Solution a:

𝑃 𝑦1, 𝑦2, 𝑦3 = 𝑃 3,1,2 =6!

3! .1! .2!

1

3

3

. 1

3

1

. 1

3

2

= 0.823

Solution b:

𝑃 π‘Œπ‘– = 𝑛𝑃𝑖 => 𝐸 π‘Œ1 = 𝑛𝑃1 =1

3𝑛

𝑉 π‘Œπ‘– = 𝑛𝑝𝑖 . π‘žπ‘– => 𝑉 𝑃1 = 𝑛 1

3

2

3 =

2

9𝑛

Solution c:

πΆπ‘œπ‘£ π‘Œπ‘  , π‘Œπ‘‘ = βˆ’π‘›. 𝑝𝑠𝑝𝑑

πΆπ‘œπ‘£ π‘Œ2, π‘Œ3 = βˆ’π‘›. 1

3

1

3 =

1

9𝑛

Solution d:

𝐸 π‘Œ2 βˆ’ π‘Œ3 = 𝐸 π‘Œ2 βˆ’ 𝐸 π‘Œ3 = 𝑛𝑃2 βˆ’ 𝑛𝑃3 =𝑛

3βˆ’

𝑛

3= 0

𝑉 π‘Œ2 βˆ’ π‘Œ3 = 𝑉 π‘Œ2 + 𝑉 π‘Œ3 + 2πΆπ‘œπ‘£ π‘Œ2, π‘Œ3 =2

9𝑛 +

2

9𝑛 βˆ’ 2 βˆ’

1

9𝑛 =

6

9𝑛

Page 14: STA_5325_HW_3_Ramin_Shamshiri

Page 14 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.103. The National Fire Incident Reporting Service stated that, among residential fires, 73% are in family

homes, 20% are in apartments, and 7% are in other types of dwellings. If four residential fires are independently reported on a single day, what is the probability that two are in family homes, one is in an apartment, and one is

in another type of dwelling?

Solution:

n=4

𝑃 𝑦1, 𝑦2, 𝑦3 = 𝑃 2,1,1 =4!

2! .1! .1! 0.73 2. 0.2 1. 0.07 1 = 0.08953

5. 115. In Exercise 5.35, we considered a quality control plan that calls for randomly selecting three items from

the daily production (assumed large) of a certain machine and observing the number of defectives. The

proportion 𝜌 of defectives produced by the machine varies from day to day and has a uniform distribution on

the interval (0,1).

a. Find the expected number of defectives observed among the three samples items.

b. Find the variance of the number of defectives among the three sampled.

Solution:

Y=(# of defectives)

P= (Proportion of defectives)

n=3

P is uniform on interval (0,1), 𝑓 𝑝 = 1, 0 ≀ 𝑝 ≀ 10, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

E[P]=1/2

Solution a:

𝐸 π‘Œ = 𝐸[𝐸[ π‘Œ 𝑃]], given that n=3, 𝐸[ π‘Œ 𝑃]=np=3p

𝐸 π‘Œ =E[3P]=3E[P]=3(1/2)=3/2

Solution b:

𝑉 π‘Œ = 𝑉 𝐸 π‘Œ 𝑃 + 𝐸[𝑉[ π‘Œ 𝑃]] 𝑉[ π‘Œ 𝑃]=np(1-p)=3p(1-p)

𝑉 π‘Œ =V[3p]+E[3P(1-P)]=9V[P]+3[E(P)-E(P2)]

E[P]=1/2 and V[P]=1/12 (since P is uniform (0,1)) and E[P2]=V[P]+(E[P])

2=1/12+(1/2)

2=1/3

Therefore,

𝑉 π‘Œ = 9 1

12 + 3

1

2βˆ’

1

3 = 𝟏. πŸπŸ“

Page 15: STA_5325_HW_3_Ramin_Shamshiri

Page 15 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

5.118. Assume that Y denotes the number of bacteria per cubic centimeter in a particular liquid and that Y has a

Poisson distribution with parameter πœ†. Further assume that πœ† varies from location to location and has a gamma

distribution with parameters 𝛼 and 𝛽, where 𝛼 is a positive integer. If we randomly select a location,

a. What is the expected number of bacteria per cubic centimeter? b. What is the standard deviation of the number of bacteria per cubic centimeter?

Solution a:

𝑝 𝑦 πœ† =πœ†π‘¦π‘’βˆ’πœ†

𝑦!

𝐸 π‘Œ πœ† = πœ† πœ† has a gamma distribution with parameters 𝛼 and 𝛽. The expected number of bacteria per cubic centimeter is

given by 𝛼𝛽.

Solution b:

𝐸 π‘Œ πœ† = πœ† and 𝑉 π‘Œ πœ† = πœ†.

𝐸 πœ† = 𝛼𝛽

𝑉 πœ† = 𝛼𝛽2

𝑉 π‘Œ = 𝐸 𝑉 π‘Œ πœ† + 𝑉 𝐸 π‘Œ πœ† = 𝐸 πœ† + 𝑉 πœ† = 𝛼𝛽 + 𝛼𝛽2 Therefore:

𝜍 = 𝛼𝛽(1 + 𝛽)

Page 16: STA_5325_HW_3_Ramin_Shamshiri

Page 16 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

6.7. Suppose that a unit of mineral ore contains a proportion Y1 of metal A and a proportion Y2 of metal B.

Experience has shown that the joint probability density function of Y1 and Y2 is uniform over the region

0 ≀ 𝑦1 ≀ 1, 0 ≀ 𝑦2 ≀ 1, 0 ≀ 𝑦1 + 𝑦2 ≀ 1. Let U=Y1+Y2, the proportion of either metal A or B per unit.

a. Find the probability density function for U. b. Find E(U) by using the answer to (a).

c. Find E(U) by using only the marginal density of Y1 and Y2.

Solution: Y1=(Proportional of metal A)

Y2=(Proportional of metal B)

𝑓 𝑦1, 𝑦2 = 2, 0 ≀ 𝑦1 ≀ 1 , 0 ≀ 𝑦2 ≀ 1 , 0 ≀ 𝑦1 + 𝑦2 ≀ 1 0 , π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

Solution a:

The range of U is 0 ≀ π‘ˆ ≀ 1 , taking u such that 0 ≀ 𝑒 ≀ 1 , we will have:

πΉπ‘ˆ 𝑒 = 𝑃 π‘ˆ ≀ 𝑒 = 𝑃 π‘Œ1 + π‘Œ2 ≀ 𝑒 = 𝑃 π‘Œ1 ≀ 𝑒 βˆ’ π‘Œ2 = 𝑃[π‘Œ2 ≀ 𝑒 βˆ’ π‘Œ1]

= 2𝑑𝑦1𝑑𝑦2

π‘’βˆ’π‘Œ2

0

= 2𝑦1 0π‘’βˆ’π‘¦2𝑑𝑦2 = 2 𝑒 βˆ’ 𝑦2 𝑑𝑦2

𝑒

0

𝑒

0

𝑒

0

= 2(𝑒𝑦 βˆ’π‘¦2

2

2)

0

𝑒

= 2 𝑒2 βˆ’π‘’2

2 = 2

𝑒2

2 = π’–πŸ

π‘“π‘ˆ 𝑒 =𝑑

π‘‘π‘’πΉπ‘ˆ 𝑒 =

πŸπ’–, 0 ≀ 𝑒 ≀ 1 𝟎, π’†π’π’”π’†π’˜π’‰π’†π’“π’†

Solution b:

πΉπ‘ˆ = 𝑒. 2𝑒. 𝑑𝑒 = 2𝑒2𝑑𝑒1

0

= 2𝑒3

3

0

1

=𝟐

πŸ‘

1

0

Page 17: STA_5325_HW_3_Ramin_Shamshiri

Page 17 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

6.30. A density function sometimes used by engineers to model lengths of life of electronic components is the

Rayleigh density, given by

𝑓 𝑦 = 2𝑦

πœƒ 𝑒

βˆ’π‘¦2

πœƒ , 𝑦 > 0

0 , π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’.

a. If Y has the Rayleigh density, find the probability density function for U=Y

2.

b. Use the result of (a) to find E(Y) and V(Y)

Solution a:

Y has the Rayleigh density and U=Y2

Let y2=h(y)=u, then 𝑦 = π‘•βˆ’1 𝑒 = 𝑒 and

𝑑

π‘‘π‘’π‘•βˆ’1 𝑒 =

1

2π‘’βˆ’

1

2

π‘“π‘ˆ 𝑒 = π‘“π‘Œ π‘•βˆ’1 𝑒 𝑑

π‘‘π‘’π‘•βˆ’1 𝑒 =

2 𝑒

πœƒ 𝑒

βˆ’ 𝑒

2

πœƒ 1

2π‘’βˆ’

12 =

2𝑒12

πœƒ

π‘’βˆ’12

2 𝑒

βˆ’π‘’πœƒ

𝒇𝑼 𝒖 = 𝟏

πœ½π’†

βˆ’π’–πœ½ , 𝑒 β‰₯ 0

𝟎 , π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’.

This is an exponential density with mean πœƒ

Solution b:

𝐸 π‘Œ = 𝐸 π‘ˆ = 𝑒.𝑒

βˆ’π‘’πœƒ

πœƒ

∞

0

𝑑𝑒 =Ξ“

32 πœƒ3/2

πœƒ 𝑒.

π‘’βˆ’π‘’πœƒ

Ξ“ 32 πœƒ3/2

∞

0

𝑑𝑒 = Ξ“ 3

2 πœƒ1/2 =

1

2Ξ“

1

2 πœƒ1/2

Ξ“ 1

2 = πœ‹

∴ 𝑬 𝒀 = π…πœ½

𝟐

𝐸 π‘Œ2 = 𝐸 π‘ˆ = πœƒ

𝐸 π‘Œ = 𝐸 π‘Œ2 βˆ’ 𝐸 π‘Œ 2 = πœƒ βˆ’πœ‹πœƒ

4= 𝜽(𝟏 βˆ’

𝝅

πŸ’)

Page 18: STA_5325_HW_3_Ramin_Shamshiri

Page 18 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

6.46. Let Y1, Y2, …Yn be independent Poisson random variables with means πœ†1, πœ†2, …,πœ†π‘› , respectively.

a. Find the probability function of π‘Œπ‘–π‘›π‘–=1

b. Find the conditional probability function of Y1 given π‘Œπ‘–π‘›π‘–=1 = π‘š

c. Find the conditional probability function of Y1+Y2 given π‘Œπ‘–π‘›π‘–=1 = π‘š

Solution a:

Let π‘ˆ = π‘Œπ‘–π‘›π‘–=1

Since each Yi is Poisson distributed with mean πœ†π‘–; we have: π‘šπ‘Œ1 𝑑 = π‘’πœ†(𝑒 π‘‘βˆ’1). By Theorem 6.2:

π‘šπ‘‰ 𝑑 = π‘šπ‘Œ1 𝑑 . π‘šπ‘Œ2

𝑑 β€¦π‘šπ‘Œπ‘› 𝑑 = π‘šπ‘Œπ‘–

𝑑

𝑛

𝑖=1

= π‘’πœ†1 𝑒 π‘‘βˆ’1 . π‘’πœ†2 𝑒 π‘‘βˆ’1 β€¦π‘’πœ†π‘› 𝑒 π‘‘βˆ’1

= 𝒆(π’†π’•βˆ’πŸ) π€π’Šπ’π’Š=𝟏

This is the moment generating function of a Poisson with mean πœ†π‘–π‘›π‘–=1 .

Solution b: Let k be an arbitrary value for Y1, then:

𝑃 π‘Œ1 = π‘˜ π‘Œπ‘– = π‘š

𝑛

𝑖=1

=𝑃 π‘Œ1 = π‘˜, π‘Œπ‘– = π‘šπ‘›

𝑖=1

𝑃[ π‘Œπ‘– = π‘šπ‘›π‘–=1 ]

=𝑃[π‘Œ1 = π‘˜, π‘Œπ‘– = π‘š βˆ’ π‘˜π‘›

𝑖=2 ]

𝑃[ π‘Œπ‘– = π‘šπ‘›π‘–=1 ]

=𝑃 π‘Œ1 = π‘˜ 𝑃[ π‘Œπ‘– = π‘š βˆ’ π‘˜π‘›

𝑖=2 ]

𝑃[ π‘Œπ‘– = π‘šπ‘›π‘–=1 ]

by independence

=

πœ†1π‘˜π‘’πœ†1

π‘˜!. πœ†π‘–

𝑛𝑖=2 π‘šβˆ’π‘˜π‘’ πœ†π‘–

𝑛𝑖=2

(π‘š βˆ’ π‘˜)!

πœ†π‘–π‘›π‘–=1

π‘šπ‘’ πœ†π‘–

𝑛𝑖=1

π‘š!

=π‘š!

π‘˜! π‘š βˆ’ π‘˜ !.πœ†1

π‘˜ πœ†π‘–π‘›π‘–=2 π‘šβˆ’π‘˜

πœ†π‘–π‘›π‘–=1

π‘š = π‘š

π‘˜ .

πœ†1π‘˜ . πœ†π‘–

𝑛𝑖=2 π‘šβˆ’π‘˜

πœ†π‘–π‘›π‘–=1

π‘˜ πœ†π‘–

𝑛𝑖=1

π‘šβˆ’π‘˜

= π‘š

π‘˜

πœ†1

πœ†π‘–π‘›π‘–=1

π‘˜

πœ†π‘–

𝑛𝑖=2

πœ†π‘–π‘›π‘–=1

π‘šβˆ’π‘˜

This is a binomial probability function with probability of success 𝑃 = πœ†1

πœ†π‘–π‘›π‘–=1

π‘˜

Page 19: STA_5325_HW_3_Ramin_Shamshiri

Page 19 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

Solution c:

Let W= Y1+Y2 and k be an arbitrary value for W. Then:

𝑃 π‘Š = π‘˜ π‘Œπ‘– = π‘š

𝑛

𝑖=1

=𝑃 π‘Š = π‘˜, π‘Œπ‘– = π‘šπ‘›

𝑖=1

𝑃[ π‘Œπ‘– = π‘šπ‘›π‘–=1 ]

=𝑃 π‘Š = π‘˜ 𝑃[ π‘Œπ‘– = π‘š βˆ’ π‘˜π‘›

𝑖=3 ]

𝑃[ π‘Œπ‘– = π‘šπ‘›π‘–=1 ]

by independence

=

πœ†1 + πœ†2 π‘˜π‘’πœ†1+πœ†2

π‘˜!. πœ†π‘–

𝑛𝑖=2 π‘šβˆ’π‘˜π‘’ πœ†π‘–

𝑛𝑖=3

(π‘š βˆ’ π‘˜)!

πœ†π‘–π‘›π‘–=1

π‘šπ‘’ πœ†π‘–

𝑛𝑖=1

π‘š!

=π‘š!

π‘˜! π‘š βˆ’ π‘˜ !. πœ†1 + πœ†2 π‘˜ πœ†π‘–

𝑛𝑖=3 π‘šβˆ’π‘˜

πœ†π‘–π‘›π‘–=1

π‘š

= π‘š

π‘˜ .

πœ†1 + πœ†2 π‘˜ . πœ†π‘–π‘›π‘–=2 π‘šβˆ’π‘˜

πœ†π‘–π‘›π‘–=1

π‘˜ πœ†π‘–

𝑛𝑖=1

π‘šβˆ’π‘˜

= π‘š

π‘˜

πœ†1 + πœ†2

πœ†π‘–π‘›π‘–=1

π‘˜

πœ†π‘–

𝑛𝑖=3

πœ†π‘–π‘›π‘–=1

π‘šβˆ’π‘˜

This is a binomial probability function with probability of success 𝑃 = πœ†1+πœ†2 πœ†π‘–

𝑛𝑖=1

Page 20: STA_5325_HW_3_Ramin_Shamshiri

Page 20 of 20

Ramin Shamshiri STA 5325, HW #3 Due 06/15/09

6.58. Let Y1 and Y2 be independent and uniformly distributed over the interval (0,1).

a. Find the probability density function of U1=min(Y1,Y2)

b. Find E(U1) and V(U1)

Solution:

Given that Y1 and Y2 are independent and each uniformly distributed over the interval (0,1)

𝑓 𝑦 = 1, 0 < 𝑦 < 10, π‘’π‘™π‘ π‘’π‘€π‘•π‘’π‘Ÿπ‘’

𝐹 𝑦 = 0, 𝑦 < 0𝑦, 0 ≀ 𝑦 ≀ 11, 𝑦 > 0

Solution a:

U1=min(Y1,Y2)

𝐺1 𝑒 = 𝑃 π‘ˆ1 ≀ 𝑒 = 1 βˆ’ 𝑃[π‘ˆ ≀ 𝑒] = 1 βˆ’ 𝑃[π‘Œ1 > 𝑒, π‘Œ2 > 𝑒] = 1 βˆ’ 𝑃 π‘Œ1 > 𝑒 𝑃[π‘Œ2 > 𝑒] (by independence)

The density function of U1 is:

𝑔1 𝑒 = 2 1 βˆ’ 𝐹 𝑒 βˆ’ 𝑓 𝑒 = 𝟐(𝟏 βˆ’ 𝒖), 0 ≀ 𝑒 ≀ 1

𝟎, π’†π’π’”π’†π’˜π’‰π’†π’“π’†

Solution b:

𝐸[π‘ˆ1] = 𝑒. 2 1 βˆ’ 𝑒 𝑑𝑒1

0

= 2 𝑒 βˆ’ 𝑒2 𝑑𝑒 = 2 𝑒2

2βˆ’

𝑒3

3

0

1 1

0

= 1 βˆ’2

3=

𝟏

πŸ‘

𝐸[π‘ˆ12] = 𝑒2 . 2 1 βˆ’ 𝑒 𝑑𝑒

1

0

= 2 𝑒2 βˆ’ 𝑒3 𝑑𝑒 = 2 𝑒3

3βˆ’

𝑒4

4

0

1 1

0

=2

3βˆ’

1

2=

𝟏

πŸ”

Thus

𝑉[π‘ˆ1] = 𝐸[π‘ˆ12] βˆ’ 𝐸[π‘ˆ1] 2 =

1

6βˆ’

1

3

2

=𝟏

πŸπŸ–