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 < π¦ < π π/π€. .