Download Chapter #5 - Continuous Random Variables

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

History of statistics wikipedia , lookup

Statistics wikipedia , lookup

Probability wikipedia , lookup

Transcript
Chapter #5 – Continuous Random Variables
Question #1: Let X be a random variable with the following probability density function
𝑐(1 βˆ’ π‘₯ 2 ) 𝑖𝑓 π‘₯ ∈ (βˆ’1,1)
𝑓(π‘₯) = {
. (a) What is the value of the constant c in the PDF given by
0
π‘œ/𝑀
𝑓(π‘₯)? (b) What is the cumulative distribution function (CDF) of X?
∞
1
1
a) To find constant, we have that 1 = βˆ«βˆ’βˆž 𝑓(π‘₯) 𝑑π‘₯ = βˆ«βˆ’1 𝑐(1 βˆ’ π‘₯ 2 ) 𝑑π‘₯ = 𝑐[π‘₯ βˆ’ 3 π‘₯ 3 ]1βˆ’1 =
1
1
1
1
2
4
𝑐 [(1 βˆ’ 3) βˆ’ (βˆ’1 + 3)] = 𝑐 (1 βˆ’ 3 + 1 βˆ’ 3) = 𝑐 (2 βˆ’ 3) = 𝑐 3. Since we have found
3
3
that 1 = 𝑐 4, it follows that the constant 𝑐 = 4.
π‘₯
3
π‘₯
3
1
π‘₯
b) We have that 𝐹(π‘₯) = 𝑃(𝑋 ≀ π‘₯) = βˆ«βˆ’βˆž 𝑓(𝑑) 𝑑𝑑 = 4 βˆ«βˆ’1(1 βˆ’ 𝑑 2 ) 𝑑𝑑 = 4 [𝑑 βˆ’ 3 𝑑 3 ]βˆ’1
=
3
1
1
3
1
1
3
1
2
[(π‘₯ βˆ’ 3 π‘₯ 3 ) βˆ’ (βˆ’1 + 3)] = 4 (π‘₯ βˆ’ 3 π‘₯ 3 + 1 βˆ’ 3) = 4 (π‘₯ βˆ’ 3 π‘₯ 3 + 3). We can express
4
𝑖𝑓 π‘₯ ∈ (βˆ’βˆž, βˆ’1]
0
3
1
2
the CDF as 𝐹(π‘₯) = { 4 (π‘₯ βˆ’ 3 π‘₯ 3 + 3)
.
𝑖𝑓 π‘₯ ∈ (βˆ’1,1)
𝑖𝑓 π‘₯ ∈ [1, ∞)
1
Question #4: The probability density function of X, the lifetime of a certain type of electronic
10
𝑖𝑓 π‘₯ > 10
device (measured in hours) is given by 𝑓(π‘₯) = {π‘₯ 2
. (a) Calculate the 𝑃{𝑋 > 20}.
0 𝑖𝑓 π‘₯ ≀ 10
(b) What is the cumulative distribution function (CDF) of X? (c) What is the probability that,
of 6 such types of devices, at least 3 will function for at least 15 hours?
∞
∞
𝑑
a) We find as follows 𝑃(𝑋 > 20) = ∫20 𝑓(π‘₯) 𝑑π‘₯ = 10 ∫20 π‘₯ βˆ’2 𝑑π‘₯ = 10 π‘™π‘–π‘š ∫20 π‘₯ βˆ’2 𝑑π‘₯ =
π‘‘β†’βˆž
1
10 π‘™π‘–π‘š [βˆ’ π‘₯]𝑑20
π‘‘β†’βˆž
b) We
have
1
1
1
1
10
1
= 10 π‘™π‘–π‘š (βˆ’ 𝑑 + 20) = 20 = 2 = 0.5.
π‘‘β†’βˆž
π‘₯
that
10 (βˆ’ π‘₯ + 10) = 1 βˆ’
π‘₯
1
π‘₯
𝐹(π‘₯) = 𝑃(𝑋 ≀ π‘₯) = βˆ«βˆ’βˆž 𝑓(𝑑) 𝑑𝑑 = 10 ∫10 𝑑 βˆ’2 𝑑𝑑 = 10[βˆ’ 𝑑 ]10
=
10
. We can express the CDF as 𝐹(π‘₯) = {
π‘₯
𝑖𝑓π‘₯ ∈ (βˆ’βˆž, 10]
0
1βˆ’
10
π‘₯
𝑖𝑓 π‘₯ ∈ (10, ∞)
.
c) Let 𝐴 be the event that a single device works for at least 15 hours. We thus have that
10
10
2
𝑃(𝐴) = 1 βˆ’ 𝐹(15) = 1 βˆ’ (1 βˆ’ 15) = 15 = 3. If we let 𝐴3 denote the event that at least
2 𝑖
1 6βˆ’π‘–
three will work for at least 15 hours, then we have 𝑃(𝐴3 ) = βˆ‘6𝑖=1(6𝑖) (3) (3)
.
Question #7: The density function of X is given by 𝑓(π‘₯) = {
π‘Ž + 𝑏π‘₯ 2 𝑖𝑓 π‘₯ ∈ [0,1]
. (a) If we
0
π‘œ/𝑀
3
are given that the expected value is 𝐸(𝑋) = 5, find the constants π‘Ž and 𝑏. (b) Find the CDF.
a) We will create a system of two equations in terms of π‘Ž and 𝑏 so we can solve for them.
∞
3
The first is obtained from the fact that we know 𝐸(𝑋) = 5 = βˆ«βˆ’βˆž π‘₯𝑓(π‘₯) 𝑑π‘₯ =
1
π‘Ž
𝑏
π‘Ž
𝑏
π‘Ž
𝑏
3
∫0 π‘₯(π‘Ž + 𝑏π‘₯ 2 ) 𝑑π‘₯ = [2 π‘₯ 2 + 4 π‘₯ 4 ]10 = 2 + 4. Thus, we have that 2 + 4 = 5. The second
equation is found from the fact the probability density function over its domain must
∞
1
𝑏
𝑏
sum to 1 = βˆ«βˆ’βˆž 𝑓(π‘₯) 𝑑π‘₯ = ∫0 π‘Ž + 𝑏π‘₯ 2 𝑑π‘₯ = [π‘Žπ‘₯ + 3 π‘₯ 3 ]10 = π‘Ž + 3, implying that we
𝑏
3
6
have π‘Ž + 3 = 1. These two equations allow us to solve for π‘Ž = 5 and 𝑏 = 5.
π‘₯
π‘₯3
b) We calculate that 𝐹(π‘₯) = 𝑃(𝑋 ≀ π‘₯) = βˆ«βˆ’βˆž 𝑓(𝑑) 𝑑𝑑 = ∫0
5
3
2
3
6
𝑖𝑓 π‘₯ ∈ (βˆ’βˆž, 0]
0
3
6
+ 5 𝑑 2 𝑑𝑑 = [5 𝑑 + 15 𝑑 3 ]0π‘₯ =
5
2
π‘₯ + 5 π‘₯ 3 . Thus, we have that 𝐹(π‘₯) = { 5 π‘₯ + 5 π‘₯ 3
.
𝑖𝑓 π‘₯ ∈ (0,1)
𝑖𝑓 π‘₯ ∈ [1, ∞)
1
Question #10: Trains headed for destination A arrive at the train station at 15-minute
intervals starting at 7 AM, whereas trains headed for destination B arrive at 15-minute
intervals starting at 7:05 AM. (a) If a certain passenger arrives at the station at a time
uniformly distributed between 7 and 8 AM and then gets on the first train that arrives, what
proportion of time does he or she go to destination A? (b) What if the passenger arrives at a
time uniformly distributed between 7:10 and 8:10 AM?
a) 𝑃(𝐴) = 𝑃{(5 < 𝑋 < 15) βˆͺ (20 < 𝑋 < 30) βˆͺ (35 < 𝑋 < 45) βˆͺ (50 < 𝑋 < 60)} =
𝑃(5 < 𝑋 < 15) + 𝑃(20 < 𝑋 < 30) + 𝑃(35 < 𝑋 < 45) + 𝑃(50 < 𝑋 < 60) =
15βˆ’0
5βˆ’0
30
20
45
35
60
50
40
2
[(60βˆ’0) βˆ’ (60βˆ’0)] + [(60) βˆ’ (60)] + [(60) βˆ’ (60)] + [(60) βˆ’ (60)] = 60 = 3. Here, we
calculated each probability using the CDF of 𝑋~π‘ˆπ‘πΌπΉ(π‘Ž, 𝑏), which is given by the
π‘₯βˆ’π‘Ž
formula 𝐹(π‘₯) = π‘βˆ’π‘Ž for all π‘₯ ∈ (π‘Ž, 𝑏). Note that the CDF of 𝑋 is equal to zero for every
π‘₯ ∈ (βˆ’βˆž, π‘Ž] and is equal to 1 for every π‘₯ ∈ [𝑏, ∞). (Draw clock to get four intervals.)
b) The answer is identical to the one given above.
Question #13: You arrive at a bus stop at 10 o’clock, knowing that the bus will arrive at some
time uniformly distributed between 10 and 10:30. (a) What is the probability that you will
have to wait longer than 10 minutes? (b) If, at 10:15, the bus has not yet arrived, what is the
probability that you will have to wait at least an additional 10 minutes?
a) If we let 𝑋 be the random variable equal to the arrival time of the bus, then we have
30
that 𝑋~π‘ˆπ‘πΌπΉ(0,30). Thus, 𝑃(𝑋 > 10) = ∫10
b) 𝑃(𝑋 > 25|𝑋 > 15) =
𝑃(π‘₯>25 ∩ 𝑋>15)
𝑃(𝑋>15)
1
π‘₯
2
30
𝑑π‘₯ = [30]10
= 3.
30βˆ’0
30 1
𝑃(π‘₯>25)
= 𝑃(𝑋>15) =
∫25 30𝑑π‘₯
30 1
∫15 30𝑑π‘₯
5/30
5
1
= 15/30 = 15 = 3.
Question #16: The annual rainfall (in inches) in a certain region is normally distributed with
πœ‡ = 40 and 𝜎 = 4. What is the probability that, starting with this year, it will take over 10
years before a year occurs having a rainfall of over 50 inches?
ο‚·
If we let 𝑋 be the random variable equal to the annual rainfall in the region, then we
have that 𝑋~𝑁(40,4). The probability that rainfall is over 50 inches in any year is
π‘‹βˆ’40
𝑃(𝑋 > 50) = 𝑃 (
4
>
50βˆ’40
10
4
4
) = 𝑃 (𝑍 >
) = 𝑃(𝑍 > 2.5) = 1 βˆ’ Ξ¦(2.5) = 0.0062.
If we let 𝐴 denote the event that the rainfall is less than 50 in ten consecutive years,
then we see that 𝑃(𝐴) = (1 βˆ’ 0.0062)10 = 0.993810 .
Question #19: Let X be a normal random variable with mean 12 and variance 4. Find the
value of 𝑐 such that 𝑃{𝑋 > 𝑐} = 0.10.
ο‚·
π‘‹βˆ’12
We have that 𝑋~𝑁(12,2), so 𝑃(𝑋 > 𝑐) = 𝑃 (
2
>
π‘βˆ’12
π‘βˆ’12
2
2
) = 𝑃 (𝑍 >
) = 0.1. From
the z-table, we have that 𝑃(𝑍 < 1.28) = Ξ¦(1.28) = 0.9, which thus implies that
𝑃(𝑍 > 1.28) = 0.1, so we must solve the equation
π‘βˆ’12
2
= 1.28, which gives 𝑐 = 14.56.
Question #22: The width of a slot of a duralumin forging is (in inches) normally distributed
with πœ‡ = 0.9 and 𝜎 = 0.003. The specification limits were 0.9 ± 0.005. (a) What percentage
of forgings will be defective? (b) What is the maximum value of 𝜎 that will permit no more
than 1 in 100 defectives when the widths are normally distributed with πœ‡ = 0.9 and 𝜎?
a) We
have
0.895βˆ’0.9
𝑃(
0.003
that
<
π‘Šβˆ’0.9
0.003
𝑃(0.9 βˆ’ 0.005 < π‘Š < 0.9 + 0.005) = 𝑃(0.895 < π‘Š < 0.905) =
<
0.905βˆ’0.9
0.003
0.005
0.005
) = 𝑃 (βˆ’ 0.003 < 𝑍 < 0.003) = 𝑃(βˆ’1.67 < 𝑍 < 1.67) =
Ξ¦(1.67) βˆ’ Ξ¦(βˆ’1.67) = 0.905. Thus, 1 βˆ’ 0.905 = 0.095 = 9.5% are defective.
b) We start with 𝑃 (βˆ’
0.005
𝜎
<𝑍<
0.005
Thus, we must solve the equation
) = 0.99 when 𝑃(βˆ’2.575 < 𝑍 < 2.575) = 0.99.
𝜎
0.005
𝜎
= 2.575, which gives 𝜎 = 0.0019.
Question #31: (a) A fire station is to be located along a road of length 𝐴 < ∞. If fires occur
at points uniformly chosen on (0, 𝐴), where should the station be located so as to minimize
the expected distance from the fire? That is, choose π‘Ž so as to minimize 𝐸[|𝑋 βˆ’ π‘Ž|] when X
is uniformly distributed over (0, 𝐴). (b) Now suppose that the road is of infinite length β€”
stretching from point 0 outward to ∞. If the distance of a fire from point 0 is exponentially
distributed with rate πœ†, where should the fire station now be located? That is, we want to
minimize 𝐸[|𝑋 βˆ’ π‘Ž|], where X is now exponential with rate πœ†.
∞
π‘Ž
𝐴
1
1
a) We have that 𝐸[|𝑋 βˆ’ π‘Ž|] = βˆ«βˆ’βˆž(π‘₯ βˆ’ π‘Ž)𝑓(π‘₯)𝑑π‘₯ = ∫0 (π‘Ž βˆ’ π‘₯) 𝐴 𝑑π‘₯ + βˆ«π‘Ž (π‘₯ βˆ’ π‘Ž) 𝐴 𝑑π‘₯ =
π‘Ž
π‘Ž
1
1
π‘Ž
𝐴
π‘Ž2
π‘Ž2
𝐴2
[𝐴 π‘₯ βˆ’ 2𝐴 π‘₯ 2 ] + [2𝐴 π‘₯ 2 βˆ’ 𝐴 π‘₯] = ( 𝐴 βˆ’ 2𝐴) + ((2𝐴 βˆ’
0
𝐴2 βˆ’2π΄π‘Žβˆ’π‘Ž2 +2π‘Ž2
2𝐴
π‘Ž
=
2π‘Ž2 βˆ’2π΄π‘Ž+𝐴2
2𝐴
𝑑
and set equal to zero: π‘‘π‘Ž (
π‘Ž2
π΄π‘Ž
) βˆ’ (2𝐴 βˆ’
𝐴
π‘Ž2
)) =
𝐴
2π‘Ž2 βˆ’π‘Ž2
2𝐴
+
. Since we want to minimize this, we take the derivative
2π‘Ž2 βˆ’2π΄π‘Ž+𝐴2
2𝐴
1
) = 2𝐴 (4π‘Ž βˆ’ 2𝐴) =
2π‘Ž
𝐴
𝐴
βˆ’ 1 = 0 β†’ π‘Ž = 2. Thus, we
can minimize the expected value by choosing the midpoint of the interval (0, 𝐴).
∞
b) Using integration by parts we can find that 𝐸[|𝑋 βˆ’ π‘Ž|] = ∫0 (π‘₯ βˆ’ π‘Ž)𝑓(π‘₯)𝑑π‘₯ =
π‘Ž
∞
∫0 (π‘Ž βˆ’ π‘₯)πœ†π‘’ βˆ’πœ†π‘₯ 𝑑π‘₯ + βˆ«π‘Ž (π‘₯ βˆ’ π‘Ž)πœ†π‘’ βˆ’πœ†π‘₯ 𝑑π‘₯ = π‘Ž(1 βˆ’ 𝑒 βˆ’πœ†π‘Ž ) + π‘Žπ‘’ βˆ’πœ†π‘Ž +
π‘Žπ‘’ βˆ’πœ†π‘Ž +
𝑒 βˆ’πœ†π‘Ž
πœ†
𝑒 βˆ’πœ†π‘Ž
πœ†
1
βˆ’πœ†+
βˆ’ π‘Žπ‘’ βˆ’πœ†π‘Ž . After differentiating and setting equal to zero, we discover that
1
2
𝑒 βˆ’πœ†π‘Ž βˆ’ 2 = 0, which gives the minimum value at π‘Ž = 𝑙𝑛 (πœ†).
Question #34: Jones figures that the total number of thousands of miles that an auto can be
driven before it would need to be junked is an exponential random variable with parameter
1
. Smith has a used car that he claims has been driven only 10,000 miles. a) If Jones
20
purchases the car, what is the probability that she would get at least 20,000 additional miles
out of it? b) Repeat under the assumption that the lifetime mileage of the car is not
exponentially distributed, but is (thousands of miles) uniformly distributed over (0, 40).
a) If 𝑋 is the continuous random variable equal to the total number of thousands of miles
that a car can be driven before it must be junked, then we know 𝑋~𝐸𝑋𝑃(20). The PDF
1
π‘₯
𝑒 βˆ’πœ†
πœ†
of 𝑋 is 𝑓(π‘₯) = {
0
𝑖𝑓 π‘₯ β‰₯ 0
𝑖𝑓 π‘₯ < 0
1
π‘₯
π‘₯
while the CDF of 𝑋 is 𝐹(π‘₯) = βˆ«βˆ’βˆž 𝑓(𝑑)𝑑𝑑 = 1 βˆ’ 𝑒 βˆ’πœ† .
1
We also know that 𝐸(𝑋) = πœ† while the π‘‰π‘Žπ‘Ÿ(𝑋) = πœ†2 . By the memoryless property of
the exponential distribution, we have that 𝑃(𝑋 β‰₯ 𝑠 + 𝑑 | 𝑋 β‰₯ 𝑑) = 𝑃(𝑋 β‰₯ 𝑠). Thus, we
want to find 𝑃(π‘₯ β‰₯ 20 + 10 | 𝑋 β‰₯ 10) = 𝑃(𝑋 β‰₯ 20) = 1 βˆ’ 𝑃(𝑋 < 20) = 1 βˆ’ 𝐹(20) =
20
1 βˆ’ (1 βˆ’ 𝑒 βˆ’20 ) = 𝑒 βˆ’1 = 0.37. Thus, the probability of getting 20 more miles is 37%.
b) We now have that 𝑋~π‘ˆπ‘πΌπΉ(0,40) and wish to calculate the conditional probability
𝑃(𝑋 β‰₯ 30 | 𝑋 β‰₯ 10) =
𝑃(𝑋β‰₯30 ∩ 𝑋β‰₯10)
𝑃(𝑋β‰₯10)
40 1
𝑃(𝑋β‰₯30)
= 𝑃(𝑋β‰₯10) =
∫30 40𝑑π‘₯
40 1
∫10 40𝑑π‘₯
=
40βˆ’30
40
40βˆ’10
40
10
1
= 30 = 3.
1
Question #37: If X is uniformly distributed over (βˆ’1,1), find (a) 𝑃{|𝑋| > 2} and (b) the
density function of the random variable |𝑋|.
1
1
1
a) We have that 𝑋~π‘ˆπ‘πΌπΉ(βˆ’1,1) and wish to calculate 𝑃 (|𝑋| > 2) = 𝑃 (βˆ’ 2 > 𝑋 > 2) =
𝑃 (𝑋 < βˆ’
1
2
1
1
1
1
βˆ’ 1
2
2
2
2
11
βˆͺ 𝑋 > ) = 𝑃 (𝑋 < βˆ’ ) + 𝑃 (𝑋 > ) = βˆ«βˆ’12 𝑑π‘₯ + ∫1
2
2
1
1
1
4
4
2
𝑑π‘₯ = + = .
b) We begin by finding the CDF of π‘Œ = |𝑋|, where we have 𝐹𝑋 (|𝑋|) = 𝑃(|𝑋| ≀ π‘₯) =
π‘₯ 1
1
𝑃(βˆ’π‘₯ ≀ 𝑋 ≀ π‘₯) = βˆ«βˆ’π‘₯ 2 𝑑𝑑 = [2 𝑑]
π‘₯
βˆ’π‘₯
=
2π‘₯
2
= π‘₯ for all π‘₯ ∈ (0,1). We then differentiate
𝑑
𝑑
the CDF to obtain the PDF as 𝑓|𝑋| (π‘₯) = 𝑑π‘₯ 𝐹𝑋 (|𝑋|) = 𝑑π‘₯ (π‘₯) = 1 for all π‘₯ ∈ (0,1).
Therefore, we have found that π‘Œ = |𝑋|~π‘ˆπ‘πΌπΉ(0,1).
Question #40: If X is uniformly distributed over (0,1), find the density function of π‘Œ = 𝑒 𝑋 .
ο‚·
First we start with the cumulative density function πΉπ‘Œ (𝑦), since we want to find the
PDF for π‘Œ. We have πΉπ‘Œ (𝑦) = 𝑃(π‘Œ ≀ 𝑦) = 𝑃(𝑒 𝑋 ≀ 𝑦) = 𝑃(𝑋 ≀ 𝑙𝑛(𝑦)) = 𝐹𝑋 (𝑙𝑛(𝑦)),
which is the CDF with respect to 𝑋. After taking the derivative to get the PDF we obtain
𝑑
1
π‘“π‘Œ (𝑦) = 𝑑𝑦 𝐹𝑋 (𝑙𝑛(𝑦)) = 𝑓𝑋 (ln(𝑦)) βˆ— 𝑦 by the chain rule. But since 𝑋~π‘ˆπ‘πΌπΉ(0,1), we
know that 𝑓𝑋 (ln(𝑦)) = 1 and the domain changes to 𝑒 0 < 𝑒 𝑋 < 𝑒 1 = 1 < 𝑦 < 𝑒, so we
1
have that the PDF of π‘Œ = 𝑒 is π‘“π‘Œ (𝑦) =
𝑋
{𝑦
0
𝑖𝑓 1 < 𝑦 < 𝑒
π‘œ/𝑀.
.