Unit 2, lesson 5

Dot Plots, Histograms and Distribution Shape

How dot plots and histograms show the distribution of numerical data, how bins and frequency density work when bin widths differ, and how to describe shape through symmetry, skewness, tails and modality.

  • Video 5
  • Tables, Charts and Distribution Shape

Ten constructed waiting times at a service desk, in minutes, are 1, 2, 2, 3, 3, 4, 5, 6, 7 and 15. Most waits are short and one is much longer, but which picture shows that honestly, and which words describe it? A histogram of the same ten numbers can look quite different depending on how the values are grouped. This lesson builds dot plots and histograms from raw values, explains why bars of unequal width need frequency density, and gives precise words for symmetry, skewness and the number of peaks.

Key terms

Distribution

Definition The distribution of a variable describes which values it takes and how often each value, or each range of values, occurs, as counts or as proportions. The distribution of an observed data set is its empirical distribution. It gives each distinct observed value its relative frequency, so with nn observations each observation contributes 1/n1/n. A population distribution, or a probability model for observations not yet made, is a different object. The empirical distribution of a sample is evidence about the population distribution, and how good that evidence is depends on how the sample was drawn. It does not reveal the population distribution exactly, and in a small sample its pattern can differ from the population’s considerably.

In plain words A distribution is the full pattern of the data, not one summary number. The pattern seen in a sample is evidence about the population, not a copy of it.

Example In the ten waits, the values 2 and 3 each have relative frequency 2/10=0.22/10 = 0.2, and the values 1, 4, 5, 6, 7 and 15 each have relative frequency 0.10.1. These relative frequencies add to 1. They describe these ten waits only, and another ten waits at the same desk could have a different empirical distribution.

Dot plot

Definition A dot plot draws a number line for a numerical variable and places one dot above the value of each observation. Equal values, or values that coincide at the resolution of the plot, are stacked vertically. Since there is one dot per observation, the number of dots is nn, and for a small data set the plot shows every value.

In plain words A dot plot lays the data out on a ruler. Clusters, gaps and isolated values are visible directly, without choosing bins.

Example The ten waits give single dots at 1, 4, 5, 6, 7 and 15 and stacks of two dots at 2 and 3, on an axis labeled in minutes. The plot shows a cluster from 1 to 7, a gap, and one isolated wait of 15 minutes. That value deserves a check of its source, since it could be a recording error or a genuine long wait, for example during a service interruption. Being far from the others is not by itself a reason to delete it.

Histogram and bins

Definition A histogram displays a numerical variable by dividing an interval that contains all the observations into adjacent, non-overlapping subintervals called bins. Over each bin it draws a bar whose base is the bin, so the bars of neighboring bins touch. A boundary rule assigns every observation to exactly one bin. The rule used here puts each bin’s left endpoint in the bin and its right endpoint in the next bin, except that the last bin also contains its right endpoint. When all bins have the same width, the height of each bar can be the bin’s frequency or its relative frequency, and the vertical axis says which.

In plain words A histogram trades the exact values for counts over intervals. Unlike a bar chart of categories, its horizontal axis is a number line, so the bars touch and an empty bin keeps its place as a bar of height zero.

Example With the bins [0,5)[0, 5), [5,10)[5, 10), [10,15)[10, 15) and [15,20][15, 20] minutes, the waits give frequencies 6, 3, 0 and 1. By the boundary rule, the wait of 5 minutes falls in the second bin and the wait of 15 minutes in the last. With only two bins, [0,10)[0, 10) and [10,20][10, 20], the frequencies are 9 and 1, and the empty bin [10,15)[10, 15) that marked the gap in the waits disappears. The data are the same in both histograms and only the grouping differs, so a claim about the shape should hold up under other sensible bins and agree with a dot plot of the raw values.

Frequency density

Definition For a bin of width wjw_j that contains njn_j observations, the frequency density is

hj=njwj,h_j = \frac{n_j}{w_j},

measured in observations per unit of the variable. A histogram drawn with these heights has bar areas hjwj=njh_j w_j = n_j, so area shows the count, and

∑jhjwj=∑jnj=n.\sum_j h_j w_j = \sum_j n_j = n.

Dividing by nn as well gives the relative frequency density nj/(nwj)n_j/(n w_j), whose bar areas are the relative frequencies and add to 1. With unequal bin widths the heights should be densities, because count heights would make wide bins look larger than their share, and the vertical axis should be labeled as frequency density with its units. With equal widths, density heights are the counts divided by one common width, so the shape is the same either way. A density height is not itself a count or a probability, and a relative frequency density histogram, although its total area is 1, describes the sample, not a known population density.

In plain words When bins differ in width, read the area of a bar, not its height. A tall narrow bar can hold fewer observations than a short wide one.

Example Use the bins [0,5)[0, 5), [5,10)[5, 10) and [10,20][10, 20] minutes, with frequencies 6, 3 and 1. The frequency densities are 6/5=1.26/5 = 1.2, 3/5=0.63/5 = 0.6 and 1/10=0.11/10 = 0.1 observations per minute, and the last bar has area 10×0.1=110 \times 0.1 = 1, matching its single wait. Had the heights been the counts 6, 3 and 1, the bar areas would be 30, 15 and 10, and the last bar would cover 10/5510/55, about 18 percent, of the total area while holding 10 percent of the waits. Dividing the densities by n=10n = 10 gives relative frequency densities 0.120.12, 0.060.06 and 0.010.01 per minute, with areas 0.60.6, 0.30.3 and 0.10.1.

Symmetry and skewness

Definition A data set is symmetric about a center cc if reflecting every value through cc, which sends xx to 2c−x2c - x, gives back the same values with the same frequencies. Data are rarely exactly symmetric, so in practice a distribution is called symmetric when the two sides of its display roughly mirror each other. A tail is a thinly populated part of a distribution that stretches away from the bulk of the values. A distribution is skewed to the right, or positively skewed, when its right tail reaches much farther from the bulk than its left tail, and skewed to the left, or negatively skewed, when the left tail does. The direction of skewness is named after the longer tail, not after the side where most observations lie.

In plain words Symmetric means the picture looks about the same in a mirror placed at the center. Skewed means one side trails off much farther than the other, and the skew points the way that long tail points.

Example The first six waits, 1, 2, 2, 3, 3 and 4, are exactly symmetric about 2.52.5, since reflection sends them to 4, 3, 3, 2, 2 and 1, the same values. All ten waits have a long right tail, with most values between 1 and 7 minutes and one at 15, so they are skewed to the right. Most observations sit on the left, yet the skew is to the right. Waiting times often have a right tail, since a wait cannot be shorter than zero but has no fixed upper limit.

Modality

Definition The modality of a distribution is the number of clear peaks it shows. A unimodal distribution has one peak, a bimodal distribution has two, and a multimodal distribution has more than two. A distribution whose display shows no clear peak, with bars of roughly equal height, is called approximately uniform. For data, peaks are judged from a display, so the apparent number of peaks can depend on the bins, and small bumps in a small sample can be chance variation.

In plain words Count the humps. Two clear humps can suggest that the data mix two groups or two processes, which is worth looking into, but the display alone cannot establish that explanation.

Example With bins of width 2 from 0 to 16 minutes, the waits give frequencies 1, 4, 2, 2, 0, 0, 0 and 1. There is one peak, in [2,4)[2, 4), so the waits are unimodal. The bar over [14,16][14, 16] holds a single isolated value, which is better described as an unusual observation than as a second peak. If customers with quick questions were usually served within about 2 minutes while customers with repairs usually waited about 12 minutes for a technician, a larger set of waits could show two peaks.

Check yourself

  1. Constructed delivery times, in minutes, are 10, 12, 15, 15, 18, 20, 21, 25, 30 and 39. Find the frequencies for the bins [10,20)[10, 20), [20,30)[20, 30) and [30,40][30, 40], using the boundary rule of this lesson.
Show the answer

The first bin holds 10, 12, 15, 15 and 18, so its frequency is 5. The value 20 is a left endpoint, so it belongs to the second bin, which holds 20, 21 and 25 for a frequency of 3. The value 30 likewise starts the last bin, which holds 30 and 39 for a frequency of 2. The frequencies 5, 3 and 2 add to 10, so every delivery was counted once.

  1. A histogram has two bins. The first is 2 units wide with frequency density 4 observations per unit, and the second is 8 units wide with frequency density 1.51.5. Which bin contains more observations? If these bins hold all the observations, what are the relative frequency densities?
Show the answer

The frequency of a bin is its area, width times density. The first bin holds 2×4=82 \times 4 = 8 observations and the second holds 8×1.5=128 \times 1.5 = 12. The shorter bar holds more, because it is four times as wide and more than a quarter as tall.

The total is n=20n = 20. Dividing the densities by 20 gives relative frequency densities 0.20.2 and 0.0750.075 per unit. The bar areas are then 2×0.2=0.42 \times 0.2 = 0.4 and 8×0.075=0.68 \times 0.075 = 0.6, the relative frequencies, and they add to 1.

  1. Twelve constructed values are 1, 2, 2, 3, 3, 4, 9, 10, 10, 11, 11 and 12. One histogram uses the bins [0,6)[0, 6) and [6,12][6, 12] and shows two equal bars of height 6. Another uses [0,4)[0, 4), [4,8)[4, 8) and [8,12][8, 12] and shows frequencies 5, 1 and 6. Which features of the data are real, and what display would you show alongside a histogram?
Show the answer

Both histograms count correctly. The raw values form two clusters, 1 to 4 and 9 to 12, with no value strictly between 4 and 9. The wide bins merge each cluster into one bar, so the first histogram looks flat and hides the gap. The second histogram hints at two peaks, and the raw values confirm the two clusters, so that feature does not depend on a convenient choice of bins.

With only 12 values, a dot plot shows every observation and the gap directly, so it is a useful display to show alongside either histogram. The two clusters describe this sample. Whether they reflect two distinct groups in a larger population needs more data or knowledge of how the values arose.

How this lesson connects

It also uses area of a rectangle.