FigureΒ 3.5.2 shows a few different hollow histograms for the heights of US adults. How does changing the number of bins allow you to make different interpretations of the data?
Section 3.5 Continuous distributions
So far in this chapter weβve discussed cases where the outcome of a variable is discrete. In this section, we consider a context where the outcome is a continuous numerical variable.
Example 3.5.1. US adult heights histograms.

Example 3.5.3. Probability from histogram.
What proportion of the sample is between 180 cm and 185 cm tall (about 5β11" to 6β1")?
Solution.
We can add up the heights of the bins in the range 180 cm and 185 cm and divide by the sample size. For instance, this can be done with the two shaded bins shown in FigureΒ 3.5.4. The two bins in this region have counts of 195,307 and 156,239 people, resulting in the following estimate of the probability:
\begin{equation*}
\frac{195307 + 156239}{3,000,000} = 0.1172
\end{equation*}
This fraction is the same as the proportion of the histogramβs area that falls in the range 180 to 185 cm.

Subsection 3.5.1 From histograms to continuous distributions
Examine the transition from a boxy hollow histogram in the top-left of FigureΒ 3.5.2 to the much smoother plot in the lower-right. In this last plot, the bins are so slim that the hollow histogram is starting to resemble a smooth curve. This suggests the population height as a continuous numerical variable might best be explained by a curve that represents the outline of extremely slim bins.
This smooth curve represents a probability density function (also called a density or distribution), and such a curve is shown in FigureΒ 3.5.5 overlaid on a histogram of the sample. A density has a special property: the total area under the densityβs curve is 1.

Subsection 3.5.2 Probabilities from continuous distributions
We computed the proportion of individuals with heights 180 to 185 cm in ExampleΒ 3.5.3 as a fraction:
\begin{equation*}
\frac{\text{number of people between 180 and 185}}{\text{total sample size}}
\end{equation*}
We found the number of people with heights between 180 and 185 cm by determining the fraction of the histogramβs area in this region. Similarly, we can use the area in the shaded region under the curve to find a probability (with the help of a computer):
\begin{equation*}
P(\text{height between 180 and 185}) = \text{area between 180 and 185} = 0.1157
\end{equation*}
The probability that a randomly selected person is between 180 and 185 cm is 0.1157. This is very close to the estimate from ExampleΒ 3.5.3: 0.1172.

Checkpoint 3.5.7.
Three US adults are randomly selected. The probability a single adult is between 180 and 185 cm is 0.1157.
-
What is the probability that all three are between 180 and 185 cm tall?
-
What is the probability that none are between 180 and 185 cm?
Example 3.5.8.
What is the probability that a randomly selected person is exactly 180 cm? Assume you can measure perfectly.
Checkpoint 3.5.9.
Suppose a personβs height is rounded to the nearest centimeter. Is there a chance that a random personβs measured height will be 180 cm?
Solution.
This has positive probability. Anyone between 179.5 cm and 180.5 cm will have a measured height of 180 cm. This is probably a more realistic scenario to encounter in practice versus ExampleΒ 3.5.8.
Exercises 3.5.3 Exercises
1. Cat weights.
The histogram shown below represents the weights (in kg) of 47 female and 97 male cats.

-
What fraction of these cats weigh less than 2.5 kg?
-
What fraction of these cats weigh between 2.5 and 2.75 kg?
-
What fraction of these cats weigh between 2.75 and 3.5 kg?
2. Income and gender.
The relative frequency table below displays the distribution of annual total personal income (in 2009 inflation-adjusted dollars) for a representative sample of 96,420,486 Americans. These data come from the American Community Survey for 2005-2009. This sample is comprised of 59% males and 41% females.
| Income | Total |
|---|---|
| $1 to $9,999 or loss | 2.2% |
| $10,000 to $14,999 | 4.7% |
| $15,000 to $24,999 | 15.8% |
| $25,000 to $34,999 | 18.3% |
| $35,000 to $49,999 | 21.2% |
| $50,000 to $64,999 | 13.9% |
| $65,000 to $74,999 | 5.8% |
| $75,000 to $99,999 | 8.4% |
| $100,000 or more | 9.7% |
-
Describe the distribution of total personal income.
-
What is the probability that a randomly chosen US resident makes less than $50,000 per year?
-
What is the probability that a randomly chosen US resident makes less than $50,000 per year and is female? Note any assumptions you make.
-
The same data source indicates that 71.8% of females make less than $50,000 per year. Use this value to determine whether or not the assumption you made in part (c) is valid.
