Every problem in the chapter beside the book’s answer, a chapter at a time as you scroll.

Chapter 5: Important Distributions and Densities

17 problems · 0 figures

Exercise 5.2.1 §5.2 source ↗

Choose a number U from the unit interval [0,1] with uniform distribution. Find the cumulative distribution and density for the random variables

(a) Y=U+2⁠.

(b) Y=U3⁠.

Answer

(a) f(x)=1 on [2,3]⁠; F(x)=x−2 on [2,3]⁠.

(b) f(x)=13x−2/3 on [0,1]⁠; F(x)=x1/3 on [0,1]⁠.

Exercise 5.2.2 §5.2 source ↗

Choose a number U from the interval [0,1] with uniform distribution. Find the cumulative distribution and density for the random variables

(a) Y=1/(U+1)⁠.

(b) Y=log⁡(U+1)⁠.

Answer

(a) F(x)=2−1x⁠, f(x)=1x2 on [12,1]⁠.

(b) F(x)=ex−1⁠, f(x)=ex on [0,log⁡2]⁠.

Exercise 5.2.5 §5.2 source ↗

Choose a number U from the interval [0,1] with uniform distribution. Find the cumulative distribution and density for the random variables

(a) Y=|U−1/2|⁠.

(b) Y=(U−1/2)2⁠.

Answer

(a) F(x)=2x⁠, f(x)=2 on [0,12]⁠.

(b) F(x)=2x⁠, f(x)=1x on [0,14]⁠.

Exercise 5.2.7 §5.2 source ↗

Explain how you can generate a random variable whose cumulative distribution function is F(x)={0,if x<0,x2,if 0≤x≤1,1,if x>1.

Answer

Using Corollary 5.2, we see that the expression rnd will simulate the given random variable.

Exercise 5.2.9 §5.2 source ↗

Let U⁠, V be random numbers chosen independently from the interval [0,1] with uniform distribution. Find the cumulative distribution and density of each of the variables

(a) Y=U+V⁠.

(b) Y=|U−V|⁠.

Answer

(a) F(y)={y22,0≤y≤1;1−(2−y)22,1≤y≤2,f(y)={y,0≤y≤1;2−y,1≤y≤2. (b) F(y)=2y−y2⁠, f(y)=2−2y⁠, 0≤y≤1⁠.

Exercise 5.2.13 §5.2 source ↗

Find the cumulative distribution function F and the density function f for each of the random variables R⁠, S⁠, and T in Exercise 12.

Exercise 5.2.12 in the book ↗

A number U is chosen at random in the interval [0,1]⁠. Find the probability that

(a) R=U2<1/4⁠.

(b) S=U(1−U)<1/4⁠.

(c) T=U/(1−U)<1/4⁠.

Answer

(a) F(r)=r⁠, f(r)=12r⁠, on [0,1]⁠.

(b) F(s)=1−1−4s⁠, f(s)=21−4s⁠,on [0,14]⁠.

(c) F(t)=t1+t⁠, f(t)=1(1+t)2⁠, on [0,∞]⁠.

Exercise 5.2.15 §5.2 source ↗

In Exercise 14 find the cumulative distribution F and density f for the random variable D⁠.

Exercise 5.2.14 in the book ↗

A point P in the unit square has coordinates X and Y chosen at random in the interval [0,1]⁠. Let D be the distance from P to the nearest edge of the square, and E the distance to the nearest corner. What is the probability that

(a) D<1/4⁠?

(b) E<1/4⁠?

Answer

F(d)=1−(1−2d)2⁠, f(d)=4(1−2d) on [0,12]⁠.

Exercise 5.2.17 §5.2 source ↗

Let X be a random variable with cumulative distribution function F(x)={0,if x<0,sin2⁡(πx/2),if 0≤x≤1,1,if 1<x.

(a) What is the density function fX for X⁠?

(b) What is the probability that X<1/4⁠?

Answer

(a) f(x)={12πsin⁡(πx),0≤x≤1;0,otherwise. (b) sin2⁡(π8)=.146⁠.

Exercise 5.2.19 §5.2 source ↗

Let X be a random variable with density function fX⁠, and let Y=X+b⁠, Z=aX⁠, and W=aX+b⁠, where a≠0⁠. Find the density functions fY⁠, fZ⁠, and fW⁠. (See Exercise 18.)

Exercise 5.2.18 in the book ↗

Let X be a random variable with cumulative distribution function FX⁠, and let Y=X+b⁠, Z=aX⁠, and W=aX+b⁠, where a and b are any constants. Find the cumulative distribution functions FY⁠, FZ⁠, and FW⁠. Hint: The cases a>0⁠, a=0⁠, and a<0 require different arguments.

Answer

a≠0: fW(w)=1|a|fX(w−ba)⁠, a=0: fW(w)=0 if w≠0⁠.

Exercise 5.2.21 §5.2 source ↗

Let X be a random variable with cumulative distribution function F strictly increasing on the range of X⁠. Let Y=F(X)⁠. Show that Y is uniformly distributed in the interval [0,1]⁠. (The formula X=F−1(Y) then tells us how to construct X from a uniform random variable Y⁠.)

Answer

P(Y≤y)= P(F(X)≤y)= P(X≤F−1(y))= F(F−1(y))= y on [0,1]⁠.

Exercise 5.2.23 §5.2 source ↗

Let X be a random variable with density function fX⁠. The mean of X is the value μ=∫xfx(x)dx⁠. Then μ gives an average value for X (see Section 6.3). Find μ if X is distributed uniformly, normally, or exponentially, as in Exercise 22.

Exercise 5.2.22 in the book ↗

Let X be a random variable with cumulative distribution function F⁠. The median of X is the value m for which F(m)=1/2⁠. Then X<m with probability 1/2 and X>m with probability 1/2. Find m if X is

(a) uniformly distributed over the interval [a,b]⁠.

(b) normally distributed with parameters μ and σ⁠.

(c) exponentially distributed with parameter λ⁠.

Answer

The mean of the uniform density is (a+b)/2⁠. The mean of the normal density is μ⁠. The mean of the exponential density is 1/λ⁠.

Exercise 5.2.25 §5.2 source ↗

Let X be a random variable normally distributed with parameters μ=70⁠, σ=10⁠. Estimate

(a) P(X>50)⁠.

(b) P(X<60)⁠.

(c) P(X>90)⁠.

(d) P(60<X<80)⁠.

Answer

(a) .9773⁠, (b) .159⁠, (c) .0228⁠, (d) .6827⁠.

Exercise 5.2.27 §5.2 source ↗

A final examination at Podunk University is constructed so that the test scores are approximately normally distributed, with parameters μ and σ⁠. The instructor assigns letter grades to the test scores as shown in Table 5.10 (this is the process of “grading on the curve").

Test ScoreLetter grade
μ+σ<xA
μ<x<μ+σB
μ−σ<x<μC
μ−2σ<x<μ−σD
x<μ−2σF

Grading on the curve.

What fraction of the class gets A, B, C, D, F?

Table 5.10 in the book ↗
Test ScoreLetter grade
μ+σ<xA
μ<x<μ+σB
μ−σ<x<μC
μ−2σ<x<μ−σD
x<μ−2σF

Grading on the curve.

Answer

A: 15.9%⁠, B: 34.13%⁠, C: 34.13%⁠, D: 13.59%⁠, F: 2.28%⁠.

Exercise 5.2.29 §5.2 source ↗

Suppose that the time (in hours) required to repair a car is an exponentially distributed random variable with parameter λ=1/2⁠. What is the probability that the repair time exceeds 4 hours? If it exceeds 4 hours what is the probability that it exceeds 8 hours?

Answer

e−2⁠, e−2⁠.

Exercise 5.2.31 §5.2 source ↗

Let U be a uniformly distributed random variable on [0,1]⁠. What is the probability that the equation x2+4Ux+1=0 has two distinct real roots x1 and x2⁠?

Answer

12⁠.

Exercise 5.2.35 §5.2 source ↗

Consider the simple queueing process of Example 5.7. Suppose that you watch the size of the queue. If there are j people in the queue the next time the queue size changes it will either decrease to j−1 or increase to j+1⁠. Use the result of Exercise 34 to show that the probability that the queue size decreases to j−1 is μ/(μ+λ) and the probability that it increases to j+1 is λ/(μ+λ)⁠. When the queue size is 0 it can only increase to 1. Write a program to simulate the queue size. Use this simulation to help formulate a conjecture containing conditions on μ⁠ and λ that will ensure that the queue will have times when it is empty.

Example 5.7 in the book ↗

(Queues) Suppose that customers arrive at random times at a service station with one server, and suppose that each customer is served immediately if no one is ahead of him, but must wait his turn in line otherwise. How long should each customer expect to wait? (We define the waiting time of a customer to be the length of time between the time that he arrives and the time that he begins to be served.)

Let us assume that the interarrival times between successive customers are given by random variables X1⁠, X2⁠, …, Xn that are mutually independent and identically distributed with an exponential cumulative distribution function given by FX(t)=1−e−λt. Let us assume, too, that the service times for successive customers are given by random variables Y1⁠, Y2⁠, …, Yn that again are mutually independent and identically distributed with another exponential cumulative distribution function given by FY(t)=1−e−μt.

The parameters λ and μ represent, respectively, the reciprocals of the average time between arrivals of customers and the average service time of the customers. Thus, for example, the larger the value of λ⁠, the smaller the average time between arrivals of customers. We can guess that the length of time a customer will spend in the queue depends on the relative sizes of the average interarrival time and the average service time.

It is easy to verify this conjecture by simulation. The program Queue simulates this queueing process. Let N(t) be the number of customers in the queue at time t⁠. Then we plot N(t) as a function of t for different choices of the parameters λ and μ (see Figure 5.7).

Figure 5.7: Queue sizes.
Figure 5.7: Queue sizes.

We note that when λ<μ⁠, then 1/λ>1/μ⁠, so the average interarrival time is greater than the average service time, i.e., customers are served more quickly, on average, than new ones arrive. Thus, in this case, it is reasonable to expect that N(t) remains small. However, if λ>μ then customers arrive more quickly than they are served, and, as expected, N(t) appears to grow without limit.

We can now ask: How long will a customer have to wait in the queue for service? To examine this question, we let Wi be the length of time that the i⁠th customer has to remain in the system (waiting in line and being served). Then we can present these data in a bar graph, using the program Queue, to give some idea of how the Wi are distributed (see Figure 5.8). (Here λ=1 and μ=1.1⁠.) Figure 5.8: Waiting times.
Figure 5.8: Waiting times.

We see that these waiting times appear to be distributed exponentially. This is always the case when λ<μ⁠. The proof of this fact is too complicated to give here, but we can verify it by simulation for different choices of λ and μ⁠, as above.

Figure 5.7 in the book ↗

Figure 5.7: Queue sizes.
Figure 5.7: Queue sizes.

Figure 5.8 in the book ↗

Figure 5.8: Waiting times.
Figure 5.8: Waiting times.

Exercise 5.2.34 in the book ↗

Jones puts in two new lightbulbs: a 60 watt bulb and a 100 watt bulb. It is claimed that the lifetime of the 60 watt bulb has an exponential density with average lifetime 200 hours (λ=1/200⁠). The 100 watt bulb also has an exponential density but with average lifetime of only 100 hours (λ=1/100⁠). Jones wonders what is the probability that the 100 watt bulb will outlast the 60 watt bulb.

If X and Y are two independent random variables with exponential densities f(x)=λe−λx and g(x)=μe−μx⁠, respectively, then the probability that X is less than Y is given by P(X<Y)=∫0∞f(x)(1−G(x))dx, where G(x) is the cumulative distribution function for g(x)⁠. Explain why this is the case. Use this to show that P(X<Y)=λλ+μ and to answer Jones’s question.

Answer

P(size increases)= P(Xj<Yj)= λ/(λ+μ)⁠.

P(size decreases)= 1− P(size increases)= μ/(λ+μ)⁠.

Exercise 5.2.37 §5.2 source ↗

Let X be a random variable having a normal density and consider the random variable Y=eX⁠. Then Y has a log normal density. Find this density of Y⁠.

Answer

FY(y)=12πye−log2⁡(y)2⁠, for y>0⁠.

Loading chapter 6…

Exercises and answers are adapted from Grinstead and Snell's Introduction to Probability by The CHANCE Project, which is free to read and download, and are used under the GNU FDL licence. They are taken from the GNU version’s LaTeX source (4 July 2006), with answers from the authors’ published answers to the odd-numbered exercises, and set for the web, so they may differ slightly from the printed page. This adaptation is released under the same licence and is neither affiliated with nor endorsed by Grinstead and Snell or American Mathematical Society. Copyright (C) 2006 Peter G. Doyle. This work is a version of Grinstead and Snell's ‘Introduction to Probability, 2nd edition’, published by the American Mathematical Society, Copyright (C) 2003 Charles M. Grinstead and J. Laurie Snell.