hw5 Sol
hw5 Sol
Problems
5.6 (6 points)
Compute E[X] if X has a density function given by
1 −x/2
(
xe x>0
(a) f (x) = 4 ;
0 otherwise
c(1 − x2 ) −1 < x < 1
(b) f (x) = ;
0 otherwise
( 5
x>5
(c) f (x) = x2 .
0 x≤5
Solution.
(a) Note that limx→∞ xn e−x/2 = 0 for all n ∈ N.
Z ∞
E[X] = xf (x) dx
−∞
Z ∞
1 2 −x/2
= xe dx
0 4
∞ Z ∞
1 2 −x/2
=− xe − −xe−x/2 dx
2 0 0
∞ Z ∞
1 2 −x/2 −x/2 ∞
=− xe + (−2xe )0 − −2e−x/2 dx
2 0 0
∞
= −4e−x/2 0
=4
(b)
Z ∞ Z 1
E[X] = xf (x) dx = c(x − x3 ) dx = 0
−∞ −1
3
The last equality holds since x − x is an odd function of x.
1
(c)
Z ∞
E[X] = xf (x) dx
Z−∞
∞
5
= dx = 5 ln x|∞
5 = ∞
5 x
5.7 (4 points)
The density function of X is given by
a + bx2 0 ≤ x ≤ 1
f (x) =
0 otherwise
Hence
3a + b = 3
10a + 5b = 12
We have a = 3/5 and b = 6/5.
5.8 (4 points)
The lifetime in hours of an electronic tube is a random variable having a
probability density function given by
2
Solution.
Z ∞
xf (x) dx
Z−∞
∞
= x2 e−x dx
0
Z ∞
2 −x ∞
= −x e 0 − −2xe−x dx
0
Z ∞
2 −x ∞ −x ∞
= −x e 0
+ (−2xe ) 0 − −2e−x dx
0
∞
= −2e−x 0
=2
5.21 (6 points)
Suppose that the height, in inches, of a 25-year-old man is a normal random
variable with parameters µ = 71 and σ 2 = 6.25. What percentage of 25-
year-old men are over 6 feet, 2 inches tall? What percentage of men in the
6-footer club are over 6 feet, 5 inches?
Solution. Let X be the normal random variable with parameters µ = 71 and
σ 2 = 6.25, and Z be the√standard normal random variable. Note that 1 inch
equals to 12 feets, σ = 6.25 = 2.5. Then the first problem is to compute
P (X > 6 · 12 + 2).
X − 71 74 − 71
P (X > 74) = P > = P (Z > 1.2) = 1 − Φ(1.2) ≈ 0.1151
2.5 2.5
Hence,
P (X > 77)
P (X > 77|X > 72) =
P (X > 72)
P (Z > 2.4)
=
P (Z > 0.4)
1 − P (Z < 2.4) 1 − Φ(2.4)
= = ≈ 0.0238
1 − P (Z < 0.4) 1 − Φ(0.4)
3
5.24 (4 points)
The lifetimes of interactive computer chips produced by a certain semicon-
ductor manufacturer are normally distributed with parameters µ = 1.4 × 106
hours and σ = 3 × 105 hours. What is the approximate probability that
a batch of 100 chips will contain at least 20 whose lifetimes are less than
1.8 × 106 .
Solution. Let X be the normal random variable with parameters µ = 1.4×106
hours and σ = 3 × 105 hours.
X − 1.4 × 106 1.8 × 106 − 1.4 × 106
6
P (X < 1.8 × 10 ) = P <
3 × 105 3 × 105
4 4
=P Z < =Φ ≈ 0.9088
3 3
Let N be the number of chips that will have a lifetime less than 1.8 × 106 .
Then N is a binomial random variable with parameters n = 100 and p =
0.9088. The normal approximation yields that
P (N ≥ 20) = P (N ≥ 19.5)
!
N − (100)(0.9088) 19.5 − (100)(0.9088)
=P p ≥p
100(0.9088)(0.0912) 100(0.9088)(0.0912)
N − 90.88
=P √ ≥ −24.8
8.288256
≈ 1 − Φ(−24.8) ≈ 1
5.34 (6 points)
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/20. Smith has a used car that he claims has been driven
only 10,000 miles. If Jones purchases the car, what is the probability that
she would get at least 20,000 additional miles out of it? Repeat under the as-
sumption that the lifetime mileage of the car is not exponentially distributed,
but rather is (in thousands of miles) uniformly distributed over (0, 40).
Solution. Let X denote the exponetial random variable with parameter 1/20,
U denote the uniform random variable with parameters 0 and 40. The prob-
ability function of an exponential random variable with parameter 1/20 is
4
The desired probability is P (X > 30|X > 10). Since exponential random
variables have memoryless property, we have
5.35 (6 points)
The lung cancer hazard rate λ(t) of a t-year-old male smoker is such that
Assuming that a 40-year-old male smoker survives all other hazards, what
is the probability that he survives to (a) age 50 and (b) age 60 without
contracting lung cancer?
Solution. Let X denote the lifetime distribution. We can compute the prob-
ability function by
(
0 t < 40
Z t
1 − F (t) = exp λ(u) du = Rt
0 exp − 40 λ(u) du t ≥ 40
where
0.00025
Z
λ(u) du = 0.027t + (t − 40)3
3
Hence
P (X ≥ 40) = 1 − F (40) = exp(−0) = 1
(a) The probability that he survives to age 50 is
P (X ≥ 50) = 1 − F (50)
!
50
0.00025
= exp − 0.027t − (t − 40)3
3 40
= exp(−0.3533) ≈ 0.7024
5
(b) The probability that he survives to age 60 is
P (X ≥ 60) = 1 − F (60)
!
60
0.00025
= exp − 0.027t − (t − 40)3
3 40
= exp(−1.2067) ≈ 0.2992
5.36 (6 points)
Suppose that the life distribution of an item has the hazard rate function
λ(t) = t3 , t > 0. What is the probability that
(a) the item survives to age 2?
(b) the item’s lifetime is between .4 and 1.4?
(c) a 1-year-old item will survive to age 2?
Solution. Let X denote the life distribution. First we compute the probabil-
ity function of the life distribution.
Z t
F (t) = 1 − exp − λ(u) du
0
1 4
= 1 − exp − t
4
(a) It is to compute P (X ≥ 2)
P (X ≥ 2) = 1 − P (X < 2) = 1 − F (2) = e−4 ≈ 0.0183
6
Theoretical Exercises
5.11 (9 points)
Let Z be a standard normal random variable Z, and let g be a differnetiable
function with derivative g ′.
(a) Show that E[g ′(Z)] = E[Zg(Z)]
(b) Show that E[Z n+1 ] = nE[Z n−1 ]
(c) Find E[Z 4 ].
Solution. Let f (z) denote the probability density function of Z. Hence
1 2
f (z) = √ e−z /2
2π
(a)
Z ∞
′
E[g (Z)] = g ′ (z)f (z) dz
Z−∞
∞
1 2
= √ e−z /2 g ′(z) dz
−∞ 2π
Z ∞
1 2
=√ e−z /2 g ′ (z) dz
2π −∞
Z ∞
1 −z 2 /2
∞
−z 2 /2
=√ e g(z) − −ze g(z) dz
2π −∞ −∞
2 /2
If g(x) ≺ e−x , the last equation becomes
Z ∞
1 2
√ ze−z /2 g(z) dz = E[Zg(Z)]
2π −∞
2 /2
Then E[g ′(Z)] = E[Zg(Z)] when g(x) ≺ e−x .
2 /2
(b) Let g(x) = xn ≺ e−x , then g ′(x) = nxn−1 . By (a), we have
E[Z 4 ] = E[Z 3+1 ] = 3E[Z 3−1 ] = 3E[Z 1+1 ] = 3E[Z 1−1 ] = 3E[1] = 3
Hence E[Z 4 ] = 3.
7
5.17 (4 points)
If X has hazard rate function λX (t), compute the hazard rate function of aX
where a is a positive constant.
Solution. Since
We have
d d 1
faX (t) = FaX (t) = FX (t/a) = fX (t/a) ·
dt dt a
Then the hazard rate function of aX is
faX (t) fX (t/a) · a1 1
λaX (t) = = = λX (t/a)
1 − FaX (t) 1 − FX (t/a) a
5.22 (4 points)
Compute the hazard rate function of a gamma random variable with pa-
rameters (α, λ) and show it is increasing when α ≥ 1 and decreasing when
α ≤ 1.
Solution. Let X be a gamma random variable with parameters (α, λ). Then
( −λx α−1
λe (λx)
x≥0
f (x) = Γ(α)
0 x<0
8
If α − 1 ≥ 0, for t1 ≤ t2 , y > 0, we have
α−1 α−1
y y
1+ ≥ 1+
t1 t2
Hence
1
λX (t1 ) = R α−1
∞ y
0
e−λy 1 + t1
dy
1
≤R α−1 = λX (t2 )
∞ y
0
e−λy 1 + t2
dy
5.28 (9 points)
Consider the beta distribution with parameters (a, b). Show that
(a) when a > 1 and b > 1, the density is unimodal (that is, it has a unique
mode) with mode equal to (a − 1)/(a + b − 2).
9
We can attain that f ′ (x) = 0 when x = (a − 1)/(a + b − 2). Since a > 1
and b > 1, we note that
a−1 a−1 a−1
0< = < =1
a+b−2 (a − 1) + (b − 1) a−1
When 0 < x < (a−1)/(a+ b−2), 1 −x > 0 and (a−1) −(a+ b−2)x > 0,
hence
a−1
f ′ (x) > 0, 0<x<
a+b−2
Similarly, f (x) < 0 when (a − 1)/(a + b − 2) < x < 1.
′
a−1
x 0 a+b−2
1
f (x)
′
+ 0 −
f ′ (x) ր 0 ց
10
When 0 < x < (a−1)/(a+ b−2), 1 −x > 0 and (a−1) −(a+ b−2)x < 0,
hence
a−1
f ′ (x) < 0, 0<x<
a+b−2
Similarly, f (x) > 0 when (a − 1)/(a + b − 2) < x < 1.
′
a−1
x 0 a+b−2
1
f (x)
′
− 0 +
f ′ (x) ց 0 ր
Hence, f (x) is a U-shaped when a < 1 and b < 1. If f (0) 6= f (1), then
f (x) has mode at x = 0 or x = 1. If f (0) = f (1), then f (x) is U-shaped
with mode at both 0 and 1.
That is, f (x) is a contant function. Then all points in [0, 1] are modes.
11