Login
📚 Online Statistics Education
Chapters ▾
⇩ Download ▾

1.10 Distributions

Distributions of Discrete Variables

I recently purchased a bag of Plain M&M's. The M&M's were in six different colors. A quick count showed that there were 55 M&M's: 17 brown, 18 red, 7 yellow, 7 green, 2 blue, and 4 orange. These counts are shown below in Table 1.

Table 1. Frequencies in the Bag of M&M's

Color Frequency
Brown
Red
Yellow
Green
Blue
Orange
17
18
7
7
2
4

This table is called a frequency table and it describes the distribution of M&M color frequencies. Not surprisingly, this kind of distribution is called a frequency distribution. Often a frequency distribution is shown graphically as in Figure 1.

Bar chart of the 55 M&M's in one bag by color: Brown 17, Red 18, Yellow 7, Green 7, Blue 2, Orange 4, on a frequency axis from 0 to 20 — a frequency distribution of a discrete variable.

The distribution shown in Figure 1 concerns just my one bag of M&M's. You might be wondering about the distribution of colors for all M&M's. The manufacturer of M&M's provides some information about this matter, but they do not tell us exactly how many M&M's of each color they have ever produced. Instead, they report proportions rather than frequencies. Figure 2 shows these proportions. Since every M&M is one of the six familiar colors, the six proportions shown in the figure add to one. We call Figure 2 a probability distribution because if you choose an M&M at random, the probability of getting, say, a brown M&M is equal to the proportion of M&M's that are brown (0.30).

Bar chart of the manufacturer's proportions for all M&M's: Brown 0.30, Red 0.20, Yellow 0.20, Green 0.10, Blue 0.10, Orange 0.10. The six proportions add to 1, making this a probability distribution rather than a frequency distribution.
Figure 2. Distribution of all M&M's.

Notice that the distributions in Figures 1 and 2 are not identical. Figure 1 portrays the distribution in a sample of 55 M&M's. Figure 2 shows the proportions for all M&M's. Chance factors involving the machines used by the manufacturer introduce random variation into the different bags produced. Some bags will have a distribution of colors that is close to Figure 2; others will be further away.

Continuous Variables

The variable "color of M&M" used in this example is a discrete variable, and its distribution is also called discrete. Let us now extend the concept of a distribution to continuous variables.

The data shown in Table 2 are the times it took one of us (DL) to move the cursor over a small target in a series of 20 trials. The times are sorted from shortest to longest. The variable "time to respond" is a continuous variable. With time measured accurately (to many decimal places), no two response times would be expected to be the same. Measuring time in milliseconds (thousandths of a second) is often precise enough to approximate a continuous variable in psychology. As you can see in Table 2, measuring DL's responses this way produced times no two of which were the same. As a result, a frequency distribution would be uninformative: it would consist of the 20 times in the experiment, each with a frequency of 1.

Table 2. Response Times

The solution to this problem is to create a grouped frequency distribution. In a grouped frequency distribution, scores falling within various ranges are tabulated. Table 3 shows a grouped frequency distribution for these 20 times.

Table 3. Grouped frequency distribution

RangeFrequency
500-600
600-700
700-800
800-900
900-1000
1000-1100
3
6
5
5
0
1

Grouped frequency distributions can be portrayed graphically. Figure 3 shows a graphical representation of the frequency distribution in Table 3. This kind of graph is called a histogram. A later chapter contains an entire section devoted to histograms.

Histogram of 20 cursor-movement response times grouped in 100-millisecond ranges labeled by their midpoints 550 to 1050: frequencies 3, 6, 5, 5, 0, and 1. The single value above 1000 msec sits apart from the rest.
Figure 3. A histogram of the grouped frequency distribution shown in Table 3. The labels on the X-axis are the middle values of the range they represent.

Probability Densities

The histogram in Figure 3 portrays just DL's 20 times in the one experiment he performed. To represent the probability associated with an arbitrary movement (which can take any positive amount of time), we must represent all these potential times at once. For this purpose, we plot the distribution for the continuous variable of time. Distributions for continuous variables are called continuous distributions. They also carry the fancier name probability density. Some probability densities have particular importance in statistics. A very important one is shaped like a bell, and called the normal distribution. Many naturally-occurring phenomena can be approximated surprisingly well by this distribution. It will serve to illustrate some features of all continuous distributions.

An example of a normal distribution is shown in Figure 4. Do you see the "bell"? The normal distribution doesn't represent a real bell, however, since the left and right tips extend indefinitely (we can't draw them any further so they look like they've stopped in our diagram). The Y-axis in the normal distribution represents the "density of probability." Intuitively, it shows the chance of obtaining values near corresponding points on the X-axis. In Figure 4, for example, the probability of an observation with value near 40 is about half of the probability of an observation with value near 50. (For more information, please see the chapter on normal distributions.)

Although this text does not discuss the concept of probability density in detail, you should keep the following ideas in mind about the curve that describes a continuous distribution (like the normal distribution). First, the area under the curve equals 1. Second, the probability of any exact value of X is 0. Finally, the area under the curve and bounded between two given points on the X-axis is the probability that a number chosen at random will fall between the two points. Let us illustrate with DL's hand movements. First, the probability that his movement takes some amount of time is one! (We exclude the possibility of him never finishing his gesture.) Second, the probability that his movement takes exactly 598.956432342346576 milliseconds is essentially zero. (We can make the probability as close as we like to zero by making the time measurement more and more precise.) Finally, suppose that the probability of DL's movement taking between 600 and 700 milliseconds is one tenth. Then the continuous distribution for DL's possible times would have a shape that places 10% of the area below the curve in the region bounded by 600 and 700 on the X-axis.

A symmetric bell-shaped normal density curve peaking at 50 on an x-axis marked 20, 40, 60, and 80. The tails fall away smoothly on both sides and never quite reach the axis; the y-axis (probability density) is unlabeled.
Figure 4. A normal distribution.

Shapes of Distributions

Distributions have different shapes; they don't all look like the normal distribution in Figure 4. For example, the normal probability density is higher in the middle compared to its two tails. Other distributions need not have this feature. There is even variation among the distributions that we call "normal." For example, some normal distributions are more spread out than the one shown in Figure 4 (their tails begin to hit the X-axis further from the middle of the curve -- for example, at 10 and 90 if drawn in place of Figure 4). Others are less spread out (their tails might approach the X-axis at 30 and 70). More information on the normal distribution can be found in a later chapter completely devoted to them.

The distribution shown in Figure 4 is symmetric; if you folded it in the middle, the two sides would match perfectly. Figure 5 shows the discrete distribution of scores on a psychology test. This distribution is not symmetric: the tail in the positive direction extends further than the tail in the negative direction. A distribution with the longer tail extending in the positive direction is said to have a positive skew. It is also described as "skewed to the right."

Histogram of 642 psychology test scores at midpoints 45 through 165: frequencies rise from about 3 and 9 to 53 at 65, 108 at 75, a peak of about 147 at 85, then fall through 130, 78, 59, 36, 14, 5 to about 1 at 155 and 165. The right tail is longer than the left — a positive skew.
Figure 5. A distribution with a positive skew.

Figure 6 shows the salaries of major league baseball players in 1974 (in thousands of dollars). This distribution has an extreme positive skew.

Histogram of 1974 major league baseball salaries in thousands of dollars, midpoints 25 to 625: about 368 players in the lowest bar at 25, about 119 at 75, then about 45, 30, 36, 36, a secondary bump of about 52 at 325, and a long thin tail of about 27, 19, 13, 11 down to nearly 0 by 625 — an extreme positive skew.
Figure 6. A distribution with a very large positive skew.

A continuous distribution with a positive skew is shown in Figure 7.

A continuous density curve with a positive skew: it rises steeply to a peak near the left edge, then falls away slowly, trailing a long tail to the right. The axes carry no numbers.
Figure 7. A continuous distribution with a positive skew.

Although less common, some distributions have a negative skew. Figure 8 shows the scores on a 20-point problem on a statistics exam. Since the tail of the distribution extends to the left, this distribution is skewed to the left.

Histogram of scores on a 20-point statistics exam question, midpoints 7.5 to 19.5: frequencies of about 1, 1, 4, 6, 13, 15, and 19 — the bars grow steadily toward the maximum score, leaving the long tail on the left, a negative skew.
Figure 8. A distribution with negative skew. This histogram shows the frequencies of various scores on a 20-point question on a statistics test.

A continuous distribution with a negative skew is shown in Figure 9.

A continuous density curve with a negative skew: a long thin tail rises slowly from the left, climbs to a peak near the right edge, then drops almost vertically. The axes carry no numbers.
Figure 9. A continuous distribution with a negative skew.

The distributions shown so far all have one distinct high point or peak. The distribution in Figure 10 has two distinct peaks. A distribution with two peaks is called a bimodal distribution.

Histogram of times between eruptions of the Old Faithful geyser, midpoints 1.75 to 4.75: frequencies about 23, 6, 3, 5, 23, 29, and 18. Two distinct peaks — one at 1.75 and a taller one at 4.25, separated by a near-empty middle — make the distribution bimodal.
Figure 10. Frequencies of times between eruptions of the
Old Faithful geyser. Notice the two distinct peaks: one at
1.75 and the other at 4.25.

Distributions also differ from each other in terms of how large or "fat" their tails are. Figure 11 shows two distributions that differ in this respect. The upper distribution has relatively more scores in its tails; its shape is called leptokurtic. The lower distribution has relatively fewer scores in its tails; its shape is called platykurtic.

Two histograms on the same 1-to-8 scale, drawn one above the other and differing in kurtosis. The top distribution has a tall narrow spike at 4 and 5 with small but visible bars out at 2 and 7 — relatively long tails, called leptokurtic. The bottom distribution is lower and broader, with most of its area between 3 and 6 and almost nothing at 2 and 7 — short tails, called platykurtic. The frequency axes are unlabeled.
Figure 11. Distributions differing in kurtosis. The top
distribution has long tails. It is called "leptokurtic."
The bottom distribution has short tails. It is called
"platykurtic."

Adapted from Online Statistics Education: A Multimedia Course of Study (onlinestatbook.com), Project Leader: David M. Lane, Rice University. Developed with NSF support. The original work is in the public domain; it is cited here at the authors' request. Changes were made: reformatted as an accessible XYZ web edition with native MathML. License: Public-Domain.