Sub topic 13
Scatterplots, Histograms, and Frequency Distributions
This chapter assumes you can read a bar graph, compute a mean and a median of a small list, and work with percents. It covers three graphics that appear less often than tables and bar graphs but carry traps of their own. Each one answers a different question: how two variables relate (scatterplot), how values are spread (histogram), and how many observations fall in each group (frequency distribution).
Scatterplots
A scatterplot is a graph in which each dot is one item, such as one city or one student, placed by two measurements. The horizontal axis gives one measurement and the vertical axis gives the other.
Before answering anything, read both axis labels and both scales. Then find which questions the graph can support.
- Reading a single point. Trace straight up or across from the point to each axis. Estimate the value from the nearest tick marks.
- Comparing points. A point that is higher has a larger vertical value. A point farther right has a larger horizontal value.
- Describing the overall pattern. Dots rising from lower left to upper right show a positive association. Dots falling from upper left to lower right show a negative association. A shapeless cloud shows little or no association.
- Using a line of best fit. Some scatterplots include a straight line drawn through the cloud. Points above the line have actual values larger than the line predicts. Points below have smaller values.
Ratios on a scatterplot
Questions often ask which point has the greatest ratio of y to x. The ratio y/x equals the slope of the line from the origin to that point. The point with the steepest line from the origin has the greatest ratio. You do not need to compute every ratio.
Association is not causation
A scatterplot can show that two variables move together. It cannot show that one causes the other. If an answer choice states that a change in x produces a change in y, it is unsupported unless the passage says so. This is a common wrong answer.
A line of best fit also applies only within the range of the data. Reading it far past the last dot is an extrapolation, and the GRE usually treats that as unsupported.
Histograms
A histogram is a bar graph of a frequency distribution for numerical data. The horizontal axis is split into consecutive intervals called bins, such as 0 to under 10, 10 to under 20, and so on. The height of each bar is the number of observations in that bin. Sometimes the height is a percent or a relative frequency, so check the vertical axis label.
Two features separate a histogram from an ordinary bar graph.
- The bars touch, because the bins run continuously along a number line.
- The order of the bars is fixed by the numbers. You cannot rearrange them.
What a histogram does and does not tell you
A histogram tells you how many values fall in each bin. It does not tell you the exact values inside a bin. This limit drives most of the questions.
- Total count. Add all the bar heights. If heights are percents, they should sum to about 100.
- Count in a range. Add the bars whose bins lie entirely inside the range.
- Percent of the total. Divide the count in the chosen bins by the total count.
- Median. Find the position of the middle observation, then find the bin where the running count first reaches it. You can name the bin, but not the exact value.
- Mean. The exact mean is not determined, because you do not know where values sit within each bin. You can only bound it or estimate it.
Locating the median bin
If the total count is n, the median sits at position (n + 1)/2 in sorted order. For an even total, it is the average of the two middle values. Add counts from the left until the running total reaches that position.
Suppose the histogram shows these counts of students by quiz score.
| Score bin | Students |
|---|---|
| 0–19 | 3 |
| 20–39 | 7 |
| 40–59 | 15 |
| 60–79 | 12 |
| 80–100 | 3 |
The total is 3 + 7 + 15 + 12 + 3 = 40. With 40 students, the median is the average of the 20th and 21st values. The running totals are 3, 10, 25, 37, 40. Position 20 and position 21 both fall in the 40–59 bin, because that bin covers positions 11 through 25. So the median lies in the 40–59 bin.
The mean cannot be found exactly. It could be estimated by treating each bin as if all its values sat at the midpoint, but that is an approximation. A GRE question will usually ask for something the data does determine.
Bin width
Check that all bins have the same width. If the bins have unequal widths, the heights can mislead the eye. Always read the numbers, not the visual area.
Frequency distributions in tables
A frequency distribution can also appear as a table. Each row lists a value or a group and how many observations it has. A relative frequency table lists the share of the total instead, and a cumulative table lists the running total.
The calculations are the same as for a histogram. For a table of exact values rather than bins, the mean can be computed exactly, as a weighted average.
The table below gives the number of items per customer order.
| Items in order | Orders |
|---|---|
| 1 | 10 |
| 2 | 20 |
| 3 | 15 |
| 4 | 5 |
The number of orders is 10 + 20 + 15 + 5 = 50. The total number of items is 1(10) + 2(20) + 3(15) + 4(5) = 10 + 40 + 45 + 20 = 115. The mean is 115/50 = 2.3 items per order. The median is the average of the 25th and 26th orders. The running totals are 10, 30, 45, 50, so both fall in the group with 2 items, and the median is 2.
Notice that the mean (2.3) is larger than the median (2). The distribution has a longer tail on the high side, and the mean is pulled toward that tail. This pattern is a quick way to compare mean and median without computing.
values = [1] * 10 + [2] * 20 + [3] * 15 + [4] * 5
n = len(values)
mean = sum(values) / n
ordered = sorted(values)
if n % 2 == 1:
median = ordered[n // 2]
else:
median = (ordered[n // 2 - 1] + ordered[n // 2]) / 2
print(n, mean, median)This prints 50 2.3 2.0, matching the hand calculation.
Shape and the mean versus the median
The shape of a distribution tells you how the mean and median compare.
| Shape | Description | Mean versus median |
|---|---|---|
| Symmetric | Left and right sides mirror each other | About equal |
| Skewed right | Long tail toward larger values | Mean greater than median |
| Skewed left | Long tail toward smaller values | Mean less than median |
Use this table when an answer choice compares the two without giving exact numbers.
Common traps
- Reading the wrong axis. In a scatterplot, swapping x and y changes the answer.
- Counting a bin that is only partly in range. If the question asks for scores above 50, the 40–59 bin is split and the exact count is unknown.
- Confusing counts with percents. Check whether bar heights are numbers of items or shares of the total.
- Claiming exact values from binned data. The histogram gives bin counts, not individual values.
- Concluding cause from correlation. A scatterplot supports association only.
Practice
Exercise
A histogram shows the ages of 60 volunteers in these bins: 18–27 has 6, 28–37 has 18, 38–47 has 21, 48–57 has 12, 58–67 has 3. In which bin is the median age, and can the exact mean be found?
Show answer
The median is the average of the 30th and 31st values. The running totals are 6, 24, 45, 57, 60. Positions 30 and 31 fall in the 38–47 bin, which covers positions 25 through 45. So the median lies in the 38–47 bin. The exact mean cannot be found, because the histogram does not show where ages fall inside each bin.
Exercise
A scatterplot has points A at (2, 6), B at (5, 10), and C at (8, 12). Which point has the greatest ratio of y to x, and what is that ratio?
Show answer
The ratios are A: 6/2 = 3, B: 10/5 = 2, C: 12/8 = 1.5. Point A has the greatest ratio, which is 3.
Exercise
In a frequency table, 8 households have 0 pets, 12 have 1 pet, 6 have 2 pets, and 4 have 3 pets. Find the mean number of pets and say whether the mean is greater or less than the median.
Show answer
There are 8 + 12 + 6 + 4 = 30 households. The total number of pets is 0(8) + 1(12) + 2(6) + 3(4) = 36, so the mean is 36/30 = 1.2. The median is the average of the 15th and 16th values. The running totals are 8, 20, 26, 30, so both fall in the group with 1 pet, and the median is 1. The mean (1.2) is greater than the median (1), which fits a distribution with a tail toward larger values.