sta_5325_hw_2_ramin_shamshiri
DESCRIPTION
STA_5325_HW_2_Ramin_ShamshiriTRANSCRIPT
Page 1 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
STA 5325, Homework #2
Due June 01, 2009
Ramin Shamshiri
UFID # 90213353 Note: Problem numbers are according to the 6
th text edition. Selected problem are highlighted.
Assignment for Tuesday, May 26th
, 2009
4.5. Suppose that Y posses the density function
π π¦ = ππ¦, 0 β€ π¦ β€ 20, πππ ππ€ππππ.
a. Find the value of c that makes f(y) a probability density function.
b. Find F(y)
c. Graph f(y) and F(y)
d. Use F(y) to find π(1 β€ π β€ 2).
e. Use f(y) and geometry to find π(1 β€ π β€ 2).
Solution a: According to the properties of density function,
π π¦ β₯ 0
π(π¦)β
ββππ¦ = 1
Therefore:
πΉ β = π(π¦)β
ββ
ππ¦ = ππ¦2
0
ππ¦ = ππ¦2
2
0
2
= 1 => π =1
2
π π¦ =
π¦
2, 0 β€ π¦ β€ 2
0, πππ ππ€ππππ.
Solution b:
According to definition 4.3,
π π¦ =ππΉ(π¦)
ππ¦= πΉβ²(π¦)
So, F(y) can be written as:
πΉ π¦ = π(π‘)π¦
ββ
ππ‘ = π‘
2
π¦
ββ
ππ‘ =π¦2
4
Solution c:
Plots are shown in Figures 4.5a and 4.5b.
Fig 4.5.a Fig 4.5.b
Page 2 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
Solution d:
π 1 β€ π β€ 2 = πΉ(π¦) 12 = π¦
2
4 1
2
= 1 β1
4=
π
π
Solution e:
According to the figure below, the area corresponding to (1 β€ π β€ 2) can be calculated by calculating the area
corresponding to (0 β€ π β€ 2) minus (0 β€ π β€ 1).
Area under 0 β€ π β€ 2 = 2 1
2= 1
Area under 0 β€ π β€ 1 = 1 0.5
2=
1
4
1 β1
4=
π
π
Page 3 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
4.7. A supplier of kerosene has a 150-gallon tank that is filled at the begging of each week. His weekly demand
shows a relative frequently behavior that increases steadily up to 100 gallons and then levels off between 100 and 150 gallons. If Y denotes weekly demand in hundreds of gallons, the relative frequency of demand can be
modeled by
π π¦ = π¦, 0 β€ π¦ β€ 1
1, 0 < π¦ β€ 1.50, πππ ππ€ππππ.
a. Find F(y)
b. Find π(1 β€ π β€ 0.5).
c. Find π(0.5 β€ π β€ 1.2).
Solution a:
πΉ π¦ = π π‘ π¦
ββ
ππ‘
For (π¦ < 0), πΉ π¦ = π(π β€ π¦) = π
For (0 β€ π¦ β€ 1), πΉ π¦ = π‘π¦
0ππ‘ = π‘
2
2
0
π¦
=ππ
π
For 1 β€ π¦ β€ 1.5 , πΉ π¦ = π π‘ 1
0ππ‘ + π π‘
π¦
1ππ‘
= π‘1
0
ππ‘ + 1π¦
1
ππ‘ =1
2+ π¦ β 1 = π β
π
π
For π¦ β₯ 1.5 , πΉ π¦ = 1
πΉ π¦ =
0, π¦ < 0
ππ
π, 0 β€ π¦ β€ 1
π βπ
π, 1 β€ π¦ β€ 1.5
1, π¦ > 1.5
Solution b:
π 1 β€ π β€ 0.5 = πΉ 0.5 =1
8
Solution c:
π 0.5 β€ π β€ 1.2 = πΉ 1.2 β πΉ 0.5 = 1.2 β 0.5 β 1
8 = 0.575
Page 4 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
4.14. If, as in Exercise 4.10, Y has density function
π π₯ = 1/2 2 β π¦ , 0 β€ π¦ β€ 20, πππ ππ€ππππ.
find the mean and variance of Y.
Solution:
The mean of Y is the expected value of Y:
π = πΈ π = π¦.β
ββ
π π¦ ππ¦ =1
2 π¦.
2
0
2 β π¦ ππ¦ =π
π
The variance can be calculated as:
π2 = πΈ π2 β π2
πΈ π2 = π¦2.β
ββ
π π¦ ππ¦ =1
2 π¦2.
2
0
2 β π¦ ππ¦ =2
3
π2 = πΈ π2 β π2 =2
3β
2
3
2
=π
π
4.16. If, as in Exercise 4.12, Y has density function
π π₯ = 0.2, β 1 β€ π¦ β€ 0
0.2 + 1.2 π¦, 0 < π¦ β€ 10, πππ ππ€ππππ.
find the mean and variance of Y.
Solution:
π = πΈ π = π¦.β
ββ
π π¦ ππ¦ = π¦.0
β1
0.2 ππ¦ + π¦.1
0
0.2 + 1.2 π¦ ππ¦ = π. π
π2 = πΈ π2 β π2
πΈ π2 = π¦2.0
β1
0.2 ππ¦ + π¦2.1
0
0.2 + 1.2 π¦ ππ¦ = 0.4333
π2 = πΈ π2 β π2 = 0.4333 β 0. 42 = π. ππππ
Page 5 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
Assignment for Wednesday, May 27th
, 2009
4.36. If a point is randomly located in an interval (a,b) and if Y denotes the location of the point, then Y is
assumed to have a uniform distribution over (a,b). A plant efficiency expert randomly selects a location along a
500-foot assembly line from which to observe the work habits of the workers on the line. What is the probability that the point she selects
a. is whiting 25 feet of the end of the line?
b. is within 25 feet of the beginning of the line? c. is closer to the beginning of the line that to the end of the line?
Solution: According to the definition of uniform probability distribution, a random variable Y is said to have a
continuous uniform probability distribution on the interval (π1, π2) if and only if the density function of Y is:
π π¦ =1
π2βπ1 π1<y<π2
Here we have: π1 = 0 and π2 = 500, therefore π π¦ =1
500
Solution a: Probability that the selected point is within 25 of the end of the line means P(475<y<500), so we have:
= π π¦ 500
475
ππ¦ = 1
500
500
475
ππ¦ = 1 β475
500= 0.05
Solution b:
Probability that the selected point is within 25 of the beginning of the line means P(0<y<25), so we have:
= π π¦ 25
0
ππ¦ = 1
500
25
0
ππ¦ =25
500= 0.05
Solution c: P(0<y<250),
= π π¦ 250
0
ππ¦ = 1
500
250
0
ππ¦ = 250/500 = 0.5
Page 6 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
4.38. Beginning at 12:00 midnight, a computer center is up for 1 hour and then down for 2 hours on a regular
cycle. A person who is unaware of this schedule dials the center at a random time between 12:00 midnight and 5:00 AM. What is the probability that the center is up when the personβs call comes in?
Solution:
Let 12:00 midnight be π1 = 0, then we will have π2 = 5, therefore π π¦ =1
5
Beginning at π1 = 0, the computer is up for 1 hour, so: P(0<Y<1)
The computer is down for 2 hours and then up for another one hour, so P(3<Y<4)
The probability that the center is up when the person call is: P(0<Y<1) + P(3<Y<4)
= π π¦ 1
0
ππ¦ + π π¦ 4
3
ππ¦
= 1
5
1
0
ππ¦ + 1
5
4
3
ππ¦ =1
5+
4
5β
3
5=
π
π
4.49. A company that manufactures and bottles apple juice uses a machine that automatically fills 16-ounces bottles. There is some variation, however, in the amounts of liquid dispensed into the bottles that are filled. The
amount dispensed has been observed to be approximately normally distributed with mean 16 ounces and
standard deviation 1 ounce. What portion of bottles will have more than 17 ounces dispenses into them?
Solution:
Mean = 16
Standard deviation=1
Transforming normal random variable Y to a standard normal random variable Z:
π§ =π¦ β π
π=
17 β 16
1= 1
Using Table 4, page 792, P(Z>1)=0.1587
Page 7 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
4.57. Wires manufacture for use in a computer system are specified to have resistance of between 0.12 and 0.14 ohms. The actual measured resistances of the wires produced by company A have a normal probability
distribution with mean 0.13 ohm and standard deviation 0.005 ohm.
a. What is the probability that a randomly selected wire from company Aβs production will meet the
specifications?
b. If four of these wires are used in each computer system and all are selected from company A, what is
the probability that all four in a randomly selected system will meet the specifications?
Solution a:
Mean=0.13 SD=0.005
Probability to meet the specification, P(0.12<Z<0.14)
Transforming
π§1 =π¦ β π
π=
0.12 β 0.13
0.005= β2
π§2 =π¦ β π
π=
0.14 β 0.13
0.005= 2
Using table 4;
P(-2<Z<2)=2[0.5-P(Z>2)]=2[0.5-0.0228]=0.9544
Solution b:
Probability that all four meet the specifications is (0.9544)4=0.829
4.61. A soft-drink machine can be regulated so that it discharges and average of π ounces per cup. If the ounces
of fill are normally distributed with standard deviation 0.3 ounce, give the setting for π so that 8-ounce cups will
overflow only 1% of the time.
Solution:
Y is a normal random variable with (π, π = 0.3)
From table 4.1, P(Z>z)=0.01, so z should be 2.33.
π§ =π¦ β π
π=
8 β π
0.3= 2.33
Therefore π = π. πππ
Page 8 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
Assignment for Thursday, May 28th
, 2009
4.74. One-hour carbon monoxide concentrations in air samples from a large city have an approximately
exponential distribution with mean 3.6 parts per million.
a. Find the probability that the carbon monoxide concentration exceeds 9 parts per million during a
randomly selected 1-hour period.
b. A traffic control strategy reduced the mean to 2.5 parts per million. Now find the probability that the
concentration exceeds 9 parts per million.
Solution
This is an exponential distribution with Mean= π½= 3.6. The density function of random variable Y in
exponential distribution is:
π π¦ =
1
π½π
βπ¦π½ , 0 β€ π¦ < β
0, πππ ππ€ππππ
Solution a:
Probability of exceeding 9 means P(Y>9), therefore we will have:
π π > 9 = 1
π½π
βπ¦π½
β
9
ππ¦ = 1
3.6πβ
π¦3.6
β
9
ππ¦ = βπβπ¦
3.6 9
β
= 0.0821
Solution b:
π½= 2.5
π π > 9 = 1
π½π
βπ¦π½
β
9
ππ¦ = 1
2.5πβ
π¦2.5
β
9
ππ¦ = βπβπ¦
2.5 9
β
= 0.0273
4.76. Suppose that a random variable Y has a probability density function given by
π π¦ = ππ¦3πβπ¦2 , π¦ > 0
0, πππ ππ€ππππ.
Find the value of k that makes f(y) a density function.
Solution:
From definition of gamma distribution:
A random variable Y is said to have gamma distribution with parameters πΌ > 0 and π½ > 0 if and only if the
density function of Y is:
π π¦ = π¦πΌβ1πβπ¦/π½
π½πΌΞ(πΌ) 0 β€ π¦ < β
0, πππ ππ€ππππ.
Comparing this with the given probability density function;
πΌ β 1 = 3 => πΌ = 4
π½ = 2
Ξ π = π β 1 ! => Ξ 4 = 6
π½πΌ = 24 = 16 Therefore:
π =1
π½πΌΞ(πΌ)=
1
6 Γ 16=
π
ππ
Page 9 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
4.78. Consider the plant of exercise 4.77. How much of the bulk product should be stocked so that the plantβs
chance of running out of the product is only 0.05?
Solution:
From problem 4.77, the amount of product used in one day can be modeled by an exponential distribution with
π½ = 4.
Plantβs chance of running out of the product is 0.05, which means P(Y>x)=0.05
P Y > π₯ = 1
π½π
βπ¦π½
β
π₯
ππ¦ = 1
4πβ
π¦4
β
π₯
ππ¦ = βπβπ¦4
π₯
β
= πβπ₯4 = 0.05
πΏπ(πβπ₯4) = πΏπ(0.05)
βπ₯
4= β2.995
=> π = ππ. πππ
4.88. If Y has a probability density function given by
π π¦ = 4π¦2πβ2π¦ , π¦ > 0
0, πππ ππ€ππππ.
Obtain E(Y) and V(Y) by inspection.
Solution:
Comparing the given density function with gamma distribution function, π¦πΌβ1πβπ¦ /π½
π½πΌΞ(πΌ)
πΌ β 1 = 2 => πΆ = π
π· =π
π
According to Theorem 4.8, the mean and variance of gamma distribution is:
π = πΈ π = πΌπ½
π2 = π π = πΌπ½2
Therefore:
π = (3) 1
2 =
π
π
π π = 3 . 1
2
2
=π
π
Page 10 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
4.101. The proportion of time per day that all checkout counters in a supermarket are busy is a random variable
Y with a density function given by
π π¦ = ππ¦2 1 β π¦ 4, 0 β€ π¦ β€ 10, πππ ππ€ππππ.
a. Find the value of c that makes f(y) a probability density function.
b. Find E(Y).
Solution a:
A random variable Y is said to have a beta probability distribution with parameters πΌ > 0 and π½ > 0 if and only if the density function of Y is:
π π¦ = π¦πΌβ1 1 β π¦ π½β1
π΅(πΌ, π½), 0 β€ π¦ β€ 1
0, πππ ππ€ππππ.
π΅ πΌ, π½ =Ξ Ξ± Ξ(Ξ²)
Ξ(Ξ± + Ξ²)
Comparing the given density function with beta probability distribution function:
πΌ β 1 = 2 => πΌ = 3
π½ β 1 = 4 => π½ = 5 and
π =1
π΅ πΌ, π½ =
Ξ Ξ± + Ξ²
Ξ Ξ± Ξ Ξ²
=> π =1
π΅ 3,5 =
Ξ(3 + 5)
Ξ 3 Ξ(5)=
7.6.5
2=
210
2= πππ
Knowing that Ξ π = π β 1 !
Solution b: According to Theorem 4.11, the mean of beta distribution is:
π = πΈ π =πΌ
πΌ + π½=
3
8= π. πππ
Page 11 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
Assignment for Friday, May 29th
, 2009
4.104. Suppose that the waiting time for the first customer to enter a retail shop after 9:00 AM is a random
variable Y with an exponential density function given by
π π¦ = 1
π πβπ¦/π , π¦ > 0
0, πππ ππ€ππππ.
a. Find the moment-generating function for Y.
b. Use the answer from (a) to find E(Y) and V(Y).
Solution a:
As an special case of gamma-distributed random variables, the gamma density function in which πΌ = 1 is
called the exponential density function. A random variable is said to have an exponential distribution with
parameter π½ > 0 if and only if the density function Y is:
π π¦ =
1
π½π
βπ¦π½ , 0 β€ π¦ < β
0, πππ ππ€ππππ
Comparing the given density function with exponential density function: π½ = π
The moment-generating function for a gamma distributed random variable, according to example 4.13, page
190 of the text book is:
π π‘ =1
1 β π½π‘ πΌ
Replacing π½ = π and πΌ = 1, we will have:
π π =π
π β π½π
Solution b:
πΈ π = π = ππ(π‘)
ππ‘ π‘=0
= π
1 β ππ‘ 2 π‘=0
= π½
πΈ π2 = π2π(π‘)
ππ‘2 π‘=0
= 2π2
1 β ππ‘ 3 π‘=0
= 2π2
π π = πΈ π2 β π2 = 2π2 β π2 = π½π
Page 12 of 12
Ramin Shamshiri STA 5325, HW #2 Due 06/01/09
4.107. The moment generating function of a normally distributed random variable, Y, with mean π and variance
π2 was shown in Exercise 4.106 to be π π‘ = πππ‘ +1
2π‘2π2
. Use the result in Exercise 4.105 to derive the moment
generating function of = β3π + 4 . What is the distribution of X? Why?
Solution:
Solving exercise 4.105 for π = β3π + 4, (π = β3, π = 4)
According to the theorem 4.12, the moment generating function of g(Y) is given by:
π π‘ = πΈ ππ‘π π Let π π¦ = π = β3π + 4, then:
ππ π‘ = πΈ π(β3π+4)π‘ = πΈ πβ3π‘π+4π‘ = π4π‘πΈ πβ3π‘π
=> ππΏ π = πππππ(βππ)
Solving exercise 4.106,
According to Example 4.16, if we let π π¦ = π β π, where Y is a normally distributed random variable with
mean π and variance π2, the moment generating function for g(Y) is:
ππβπ π‘ = π π‘2
2 π2
In the other words,
ππβπ π‘ = πΈ π(πβπ)π‘ = πΈ πππ‘βππ‘ = πβππ‘ πΈ ππ‘π = πβππππ(π)
Therefore we have:
π π‘2
2 π2
= πβππ‘ ππ(π‘)
Which leads to:
ππ π = πππ. π ππ
π ππ
Or
ππ π = πππ+
ππ
π ππ
Now, having ππ π‘ = π4π‘ππ(β3π‘)
ππ π‘ = π4π‘ππ (β3π‘)+
(β3π‘)2
2 π2
=> ππΏ π = π(πβππ)ππ ππ
π πππ
X has a normal distribution with mean equal to 4 β 3π and variance of 9π2.
This is because of the uniqueness of moment generating function.