The uniform distribution is a continuous probability distribution and is concerned with events that are equally likely to occur. When working out problems that have a uniform distribution, be careful to note if the data is inclusive or exclusive of endpoints.

### Example 5.2

The data in Table 5.1 are 55 smiling times, in seconds, of an eight-week-old baby.

10.4 | 19.6 | 18.8 | 13.9 | 17.8 | 16.8 | 21.6 | 17.9 | 12.5 | 11.1 | 4.9 |

12.8 | 14.8 | 22.8 | 20.0 | 15.9 | 16.3 | 13.4 | 17.1 | 14.5 | 19.0 | 22.8 |

1.3 | 0.7 | 8.9 | 11.9 | 10.9 | 7.3 | 5.9 | 3.7 | 17.9 | 19.2 | 9.8 |

5.8 | 6.9 | 2.6 | 5.8 | 21.7 | 11.8 | 3.4 | 2.1 | 4.5 | 6.3 | 10.7 |

8.9 | 9.4 | 9.4 | 7.6 | 10.0 | 3.3 | 6.7 | 7.8 | 11.6 | 13.8 | 18.6 |

The sample mean = 11.49 and the sample standard deviation = 6.23.

We will assume that the smiling times, in seconds, follow a uniform distribution between zero and 23 seconds, inclusive. This means that any smiling time from zero to and including 23 seconds is equally likely. The histogram that could be constructed from the sample is an empirical distribution that closely matches the theoretical uniform distribution.

Let *X* = length, in seconds, of an eight-week-old baby's smile.

The notation for the uniform distribution is

*X* ~ *U*(*a*, *b*) where *a* = the lowest value of *x* and *b* = the highest value of *x*.

The probability density function is
*f*(*x*) = $\frac{1}{b\xe2\u02c6\u2019a}$ for *a* â‰¤ *x* â‰¤ *b*.

For this example, *X* ~ *U*(0, 23) and *f*(*x*) = $\frac{1}{23\xe2\u02c6\u20190}$ for 0 â‰¤ *X* â‰¤ 23.

Formulas for the theoretical mean and standard deviation are

$\mathrm{\xce\xbc}=\frac{a+b}{2}$ and $\mathrm{\xcf\u0192}=\sqrt{\frac{{(b\xe2\u02c6\u2019a)}^{2}}{12}}$

For this problem, the theoretical mean and standard deviation are

*Î¼* = $\frac{0\text{}+\text{}23}{2}$
= 11.50 seconds and *Ïƒ* = $\sqrt{\frac{{(23\text{}\xe2\u02c6\u2019\text{}0)}^{2}}{12}}$
= 6.64 seconds.

Notice that the theoretical mean and standard deviation are close to the sample mean and standard deviation in this example.

The data that follow are the number of passengers on 35 different charter fishing boats. The sample mean = 7.9 and the sample standard deviation = 4.33. The data follow a uniform distribution where all values between and including zero and 14 are equally likely. State the values of *a* and *b*. Write the distribution in proper notation, and calculate the theoretical mean and standard deviation.

1 | 12 | 4 | 10 | 4 | 14 | 11 |

7 | 11 | 4 | 13 | 2 | 4 | 6 |

3 | 10 | 0 | 12 | 6 | 9 | 10 |

5 | 13 | 4 | 10 | 14 | 12 | 11 |

6 | 10 | 11 | 0 | 11 | 13 | 2 |

### Example 5.3

a. Refer to Example 5.2. What is the probability that a randomly chosen eight-week-old baby smiles between two and 18 seconds?

*P*(2 < *x* < 18) = (base)(height) = (18 â€“ 2)\left(\frac{1}{23}\right) = \frac{16}{23}.

b. Find the 90^{th} percentile for an eight-week-old baby's smiling time.

b. Ninety percent of the smiling times fall below the 90^{th} percentile, *k*, so *P*(*x* < *k*) = 0.90.

$P(x<k)=0.90$

$\left(\text{base}\right)\left(\text{height}\right)=0.90$

$\text{(}k\xe2\u02c6\u20190\text{)}\left(\frac{1}{23}\right)=0.90$

$k=\left(23\right)\left(0.90\right)=20.7$

c. Find the probability that a random eight-week-old baby smiles more than 12 seconds **KNOWING** that the baby smiles **MORE THAN EIGHT SECONDS**.

c. This probability question is a **conditional**. You are asked to find the probability that an eight-week-old baby smiles more than 12 seconds when you **already know** the baby has smiled for more than eight seconds.

Find *P*(*x* > 12|*x* > 8) There are two ways to do the problem. **For the first way**, use the fact that this is a **conditional** and changes the sample space. The graph illustrates the new sample space. You already know the baby smiled more than eight seconds.

**Write a new** *f*(*x*): *f*(*x*) = \frac{1}{23\text{}\xe2\u02c6\u2019\text{8}} = \frac{1}{15}
for 8 < *x* < 23

*P*(*x* > 12|*x* > 8) = (23 âˆ’ 12)\left(\frac{1}{15}\right) = \frac{11}{15}

**For the second way**, use the conditional formula from Probability Topics with the original distribution *X* ~ *U* (0, 23):

*P*(*A*|*B*) = $\frac{P(A\text{AND}B)}{P(B)}$

For this problem, *A* is (*x* > 12) and *B* is (*x* > 8).

So, *P*(*x* > *12*|*x* > 8) = $\frac{(x>12\text{AND}x8)}{P(x8)}=\frac{P(x12)}{P(x8)}=\frac{\frac{11}{23}}{\frac{15}{23}}=\frac{11}{15}$

A distribution is given as *X* ~ *U* (0, 20). What is *P*(2 < *x* < 18)? Find the 90^{th} percentile.

### Example 5.4

The amount of time, in minutes, that a person must wait for a bus is uniformly distributed between zero and 15 minutes, inclusive.

a. What is the probability that a person waits fewer than 12.5 minutes?

a. Let *X* = the number of minutes a person must wait for a bus. *a* = 0 and *b* = 15.
*X* ~ *U*(0, 15). Write the probability density function. *f* (*x*) = \frac{1}{15\text{}\xe2\u02c6\u2019\text{}0} = \frac{1}{15}
for 0 â‰¤ *x* â‰¤ 15.

Find *P* (*x* < 12.5). Draw a graph.

$P(x<k)=(\text{base})(\text{height})=(12.5-0)\left(\frac{1}{15}\right)=0.8333$

The probability a person waits less than 12.5 minutes is 0.8333.

b. On the average, how long must a person wait? Find the mean, *Î¼*, and the standard deviation, *Ïƒ*.

b. *Î¼* = $\frac{a\text{}+\text{}b}{2}$
= $\frac{15\text{}+\text{}0}{2}$
= 7.5. On the average, a person must wait 7.5 minutes.

*Ïƒ* = $\sqrt{\frac{(b-a{)}^{2}}{12}}=\sqrt{\frac{(\mathrm{15}-0{)}^{2}}{12}}$ = 4.3. The Standard deviation is 4.3 minutes.

c. Ninety percent of the time, the time a person must wait falls below what value?

^{th}percentile.

c. Find the 90^{th} percentile. Draw a graph. Let *k* = the 90^{th} percentile.

$P(x<k)=(\text{base})(\text{height})=(k\xe2\u02c6\u20190)(\frac{1}{15})$

$0.90=\left(k\right)\left(\frac{1}{15}\right)$

$k=(0.90)(15)=13.5$

*k* is sometimes called a critical value.

The 90^{th} percentile is 13.5 minutes. Ninety percent of the time, a person must wait at most 13.5 minutes.

The total duration of baseball games in the major league in the 2011 season is uniformly distributed between 447 hours and 521 hours inclusive.

- Find
*a*and*b*and describe what they represent. - Write the distribution.
- Find the mean and the standard deviation.
- What is the probability that the duration of games for a team for the 2011 season is between 480 and 500 hours?
- What is the 65
^{th}percentile for the duration of games for a team for the 2011 season?

### Example 5.5

Suppose the time it takes a nine-year old to eat a donut is between 0.5 and 4 minutes, inclusive. Let *X* = the time, in minutes, it takes a nine-year old child to eat a donut. Then *X* ~ *U* (0.5, 4).

a. The probability that a randomly selected nine-year old child eats a donut in at least two minutes is _______.

a. 0.5714

b. Find the probability that a different nine-year old child eats a donut in more than two minutes given that the child has already been eating the donut for more than 1.5 minutes.

The second question has a conditional probability. You are asked to find the probability that a nine-year old child eats a donut in more than two minutes given that the child has already been eating the donut for more than 1.5 minutes. Solve the problem two different ways (see Example 5.3). You must reduce the sample space. **First way**: Since you know the child has already been eating the donut for more than 1.5 minutes, you are no longer starting at *a* = 0.5 minutes. Your starting point is 1.5 minutes.

**Write a new f(x):**

*f*(*x*) = $\frac{1}{4\xe2\u02c6\u20191.5}$ = $\frac{2}{5}$ for 1.5 â‰¤ *x* â‰¤ 4.

Find *P*(*x* > 2|*x* > 1.5). Draw a graph.

*P*(*x* > *2*|*x* > 1.5) = (base)(new height) = (4 âˆ’ 2)$\left(\frac{2}{5}\right)=\frac{4}{5}$

b. $\frac{4}{5}$

The probability that a nine-year old child eats a donut in more than two minutes given that the child has already been eating the donut for more than 1.5 minutes is $\frac{4}{5}$.

**Second way:** Draw the original graph for *X* ~ *U* (0.5, 4). Use the conditional formula

*P*(*x* > 2|*x* > 1.5) = $\frac{P(x2\text{AND}x1.5)}{P(x\text{1}\text{.5})}=\frac{P(x2)}{P(x1.5)}=\frac{\frac{2}{3.5}}{\frac{2.5}{3.5}}=\text{0}\text{.8}=\frac{4}{5}$

Suppose the time it takes a student to finish a quiz is uniformly distributed between six and 15 minutes, inclusive. Let *X* = the time, in minutes, it takes a student to finish a quiz. Then *X* ~ *U* (6, 15).

Find the probability that a randomly selected student needs at least eight minutes to complete the quiz. Then find the probability that a different student needs at least eight minutes to finish the quiz given that she has already taken more than seven minutes.

### Example 5.6

Ace Heating and Air Conditioning Service finds that the amount of time a repairman needs to fix a furnace is uniformly distributed between 1.5 and four hours. Let *x* = the time needed to fix a furnace. Then *x* ~ *U* (1.5, 4).

- Find the probability that a randomly selected furnace repair requires more than two hours.
- Find the probability that a randomly selected furnace repair requires less than three hours.
- Find the 30
^{th}percentile of furnace repair times. - The longest 25% of furnace repair times take at least how long? (In other words: find the minimum time for the longest 25% of repair times.) What percentile does this represent?
- Find the mean and standard deviation

a. To find *f*(*x*): *f* (*x*) = $\frac{1}{4\text{}\xe2\u02c6\u2019\text{}1.5}$ = $\frac{1}{2.5}$ so *f*(*x*) = 0.4

*P*(*x* > 2) = (base)(height) = (4 â€“ 2)(0.4) = 0.8

b. *P*(*x* < 3) = (base)(height) = (3 â€“ 1.5)(0.4) = 0.6

The graph of the rectangle showing the entire distribution would remain the same. However the graph should be shaded between *x* = 1.5 and *x* = 3. Note that the shaded area starts at *x* = 1.5 rather than at *x* = 0; since *X* ~ *U* (1.5, 4), *x* can not be less than 1.5.

c.

*P* (*x* < *k*) = 0.30

*P*(*x* < *k*) = (base)(height) = (*k* â€“ 1.5)(0.4)
**0.3 = ( k â€“ 1.5) (0.4)**; Solve to find

*k*:

0.75 =

*k*â€“ 1.5, obtained by dividing both sides by 0.4

**, obtained by adding 1.5 to both sides**

*k*= 2.25The 30

^{th}percentile of repair times is 2.25 hours. 30% of repair times are 2.25 hours or less.

d.

*P*(*x* > *k*) = 0.25

*P*(*x* > *k*) = (base)(height) = (4 â€“ *k*)(0.4)
**0.25 = (4 â€“ k)(0.4)**; Solve for

*k*:

0.625 = 4 âˆ’

*k*,

obtained by dividing both sides by 0.4

âˆ’3.375 = âˆ’

*k*,

obtained by subtracting four from both sides:

*k*= 3.375The longest 25% of furnace repairs take at least 3.375 hours (3.375 hours or longer).

**Note:**Since 25% of repair times are 3.375 hours or longer, that means that 75% of repair times are 3.375 hours or less. 3.375 hours is the

**75**of furnace repair times.

^{th}percentilee. $\mathrm{\xce\xbc}=\frac{a+b}{2}$ and $\mathrm{\xcf\u0192}=\sqrt{\frac{{(b\xe2\u02c6\u2019a)}^{2}}{12}}$

$\mathrm{\xce\xbc}=\frac{1.5+4}{2}=2.75$
hours and $\mathrm{\xcf\u0192}=\sqrt{\frac{{(4\xe2\u20ac\u201c1.5)}^{2}}{12}}=0.7217$ hours

The amount of time a service technician needs to change the oil in a car is uniformly distributed between 11 and 21 minutes. Let *X* = the time needed to change the oil on a car.

- Write the random variable
*X*in words.*X*= __________________. - Write the distribution.
- Graph the distribution.
- Find
*P*(*x*> 19). - Find the 50
^{th}percentile.