Quantitative Methods in Social Science 360-300 • CEGEP, Montreal
Revision sheet: frequency distributions and graphs (360-300)
This sheet does not repeat the definitions of the chapter: it deals with the precise places where a correct table turns into a wrong graph, and where a quick reading costs you the critique question. The thread is always the same: in a graph, the eye measures a physical quantity, length or area, and that quantity has to be exactly the one in the data.
It is written for CEGEP Social Science students taking the compulsory Quantitative Methods course, 360-300. The corrected exercise set on the same chapter puts each reflex to work, up to the complete demolition of a newspaper infographic.
Mark this sheet as read or add it to your favourites: a free account, no password, keeps your read sheets and favourites from one visit to the next, tells you which chapter to tackle next and lets you ask for the method or exercise you are missing. Create your space, an email is enough.
A graph is not an illustration of the table, it is a CALCULATION done by eye: the eye measures the length of a bar, the area of a rectangle, the surface of a pictograph. Every deception in this chapter consists in making you read one quantity where the eye is measuring another.
•FREQUENCY ni, RELATIVE FREQUENCY nni, CUMULATIVE frequency, cumulative relative frequency. The relative frequencies sum to 1, up to rounding.
•You only CUMULATE on an ordered variable: cumulating nominal categories amounts to adding in an arbitrary order.
•Classes must be mutually EXCLUSIVE and EXHAUSTIVE, of equal width unless an explicit decision is made. Convention: closed on the left, open on the right.
•Sturges' rule for the number of classes: k=1+3.322log10(n), then class width =krange rounded UP to a convenient value.
Classes of width 5, closed on the left and open on the right: a 20-year-old student counts in [20, 25) and in it alone; the classes follow each other with no gap or overlap.
Sturges gives a starting point, not an obligation: an exam accepts 6 or 7 classes for n=60, provided the choice is written down.
What the eye measures in each graph
•BARS: the eye measures a LENGTH, so the vertical axis must start at zero.
•HISTOGRAM: the eye measures an AREA. With classes of unequal widths, the height is the DENSITY =class widthfrequency.
•CIRCLES and PICTOGRAPHS: the eye measures a SURFACE. To double the surface, multiply the dimensions by 2, never by 2.
•LINE GRAPH: the eye measures a SLOPE, and truncating the axis there is acceptable provided it is visible.
Four graphs, four quantities read by the eye: the length of a bar, the area of a rectangle, the surface of a disk, the slope of a segment (in orange).
The critique question is always answered in two steps: what quantity does the eye measure here, and is it proportional to the data?
The two computations on grouped data
•Mean: x=n∑cini with ci the class MIDPOINT, assuming the values are spread uniformly inside.
•Median by interpolation: lower limit+frequency of the class2n−previous cumulative frequency×class width.
•The same formula gives any quantile: replace 2n by 4n for Q1, by 43n for Q3.
•Both results are ESTIMATES: the raw data would give slightly different values, and that is the price of grouping.
Density histogram of the example: the median 38 leaves 30 students on each side (two equal areas), the mean 52 is pulled to the right by the wide class.
Writing “assuming a uniform spread within the class” earns the rigour mark, and takes five seconds.
The mistakes that cost marks
These are the errors I correct most often in session. Each one costs marks on a paper, even when the reasoning behind it is right.
1.Cumulating frequencies on a nominal variable
1 mark, and the whole column is crossed out
What not to write
“Programs: Social Science 30%, Natural Science 25%, Arts 20%... cumulated to 55% for the first two.”
What to write
“The variable is nominal: the cumulative column makes no sense, since it would depend on the order in which I wrote the programs.”
The same four programs written in two orders: the “cumulation” at the second rank is 55% or 50%, depending on the order chosen. It measures nothing. (Soc. = Social Science, Nat. = Natural Science.)
Why: A cumulative frequency answers the question “how many below this value”. Without an order, “below” means nothing.
2.Drawing the histogram in frequencies when the classes are unequal
2 marks, and the reading of the graph that follows is wrong
What not to write
“The frequencies are 12, 20, 16 and 12: I draw four bars of those heights.”
What to write
“The widths are 20, 20, 40 and 80, so the heights are the DENSITIES 0.6, 1.0, 0.4 and 0.15: the area of each bar must equal the frequency.”
On the left, the last class alone covers more than 40% of the area although it holds only 12 observations out of 60; on the right, each area equals its frequency.
Why: With raw heights, the class from 40 to 80 takes up about 1.6 times as much area as the one from 20 to 40 (16×40 against 20×20) while containing fewer people: the drawing says the opposite of the table.
3.A truncated vertical axis on a bar chart
the whole critique question, which almost always turns on this
What not to write
“The graph shows it clearly: candidate C is far ahead.”
What to write
“The axis starts at 50%. The three values are 52, 55 and 58%: the real gap is six points, but the bar for C looks four times as long as the one for A.”
The same three percentages, on the left on an axis starting at zero, on the right on an axis cut at 50: the bar for C becomes four times that of A.
Why: On bars, the eye compares LENGTHS. Cutting off the bottom of the axis multiplies the length ratios without touching the data: it is the most common deception in the press.
4.Doubling the height of a pictograph to double the value
1 mark, and more if the question asks you to correct the graph
What not to write
“The value doubled, so I draw the figure twice as big.”
What to write
“Doubling both dimensions QUADRUPLES the surface. To double the area, I multiply the dimensions by 2≈1.41, or better, I repeat the same pictograph twice.”
The large square has a side twice as long and a surface four times as large: it is this surface that the reader compares, without knowing it.
Why: The eye reads the surface, not the height. The same trap governs proportional circles: the ratio of the RADII is the square root of the ratio of the values.
5.Joining the bars of a qualitative variable
0.5 mark per graph, systematically deducted
What not to write
“I draw the histogram of the study programs.”
What to write
“The programs form a qualitative variable: it is a BAR CHART, with separated bars. The histogram is reserved for continuous variables grouped into classes.”
A qualitative variable: separated bars, because between two programs nothing exists. Touching, they would suggest a continuous variable. (Soc. = Social Science, Nat. = Natural Science.)
Why: The gap between bars is a sign and not a decoration: it says that between two categories, nothing exists. On a continuous variable, between two classes, values do exist.
6.Computing the grouped mean on the class limits
2 marks, since the whole mean is wrong
What not to write
“Class [20,40), frequency 20: I take 20×20.”
What to write
“The representative of a class is its MIDPOINT: c=220+40=30, so 30×20=600.”
The class [20, 40) is represented by its midpoint 30; the limit 20 shifts every class down by half a width, and the whole mean with it.
Why: Systematically taking the lower limit underestimates the mean by half a class width, here 10 dollars: the error is regular and therefore invisible to a plausibility check.
7.Giving the median class instead of the median
1.5 marks, half the question
What not to write
“The median lies in the class [20,40), so the median is 30.”
What to write
“The median class is [20,40); by interpolation, M=20+2030−12×20=38.”
Polygon of cumulative frequencies: the ordinate 30 is reached at 38 (green), not at the midpoint 30 of the median class (red), because 12 students are already counted before 20.
Why: The midpoint of the median class is the median only if exactly half of the observations lie before the class. The interpolation is there precisely to account for the cumulative frequency already reached.
8.Interpreting the crossing of two curves on a dual axis
the whole conclusion of the question
What not to write
“The two curves cross in 2019: that is the year unemployment caught up with inflation.”
What to write
“The two axes have different units and bounds: the crossing point depends entirely on those bounds and means nothing.”
The same two series; only the scale of the right axis changes, and the crossing (circled in red) jumps from one year to another.
Why: Changing the upper bound of one of the two axes moves the crossing wherever you like. On a dual axis, only the SHAPES of the two curves can be compared, never their relative position.
Which method to choose
Which graph does the scale allow?
Look at the TYPE of the variable and the number of categories before choosing a graph, never the other way round.
The five shapes of the tree: pie chart for a shared whole, grouped bars, histogram with equal classes, histogram of densities, cumulative frequency curve.
If qualitative variable, few categories, and the total means something → pie chart or bar chart
Example: respondents by program
beyond five or six shares, the pie chart becomes unreadable
If qualitative or discrete variable, several groups to compare → GROUPED bar chart, separated bars, axis starting at zero
Example: satisfaction by program
If continuous variable grouped into classes of EQUAL width → histogram of frequencies, touching bars
Example: ages in five-year bands
If continuous variable grouped into classes of UNEQUAL width → histogram of DENSITIES: height =class widthfrequency
Example: incomes, whose last class is always very wide
If you want to compare two distributions, or read quantiles → frequency polygon, or cumulative frequency curve
Example: two cohorts superimposed on the same axis
If the variable is nominal, no branch leads to a histogram or to a cumulative curve: that is where the question expects the mistake.
What deception does this graph hide?
On an infographic to critique, go through this list in order: the first flaw you find is the one the question expects.
The five flaws, in the order of the tree: cut axis, wide class in frequency, quadrupled surface, dual-axis crossing, unevenly spaced years.
If the vertical axis does not start at zero although these are bars → TRUNCATED AXIS: recompute the real gaps and compare them with the drawn lengths
Example: three bars of 52, 55 and 58% on an axis starting at 50
If the classes of a histogram do not have the same width → DENSITY FORGOTTEN: recompute the heights
Example: a last class “80 and over”
If drawings or circles have been enlarged proportionally → SURFACE: the ratio of the areas is the SQUARE of the ratio of the lengths
Example: a banknote twice as tall
If two series share a graph with two vertical axes → DUAL AXIS: compare only the shapes, never the positions or the crossings
Example: unemployment on the left, inflation on the right
If the horizontal axis skips periods or changes its step → UNEVEN TIME AXIS: the drawn slope is not the real speed
Example: 2010, 2011, 2015, 2016 equally spaced
A graph can carry two flaws at once: name both, each is worth its mark.
How the answer is expected to be written
A marker ticks steps. Here they are in order, with the concluding sentence expected word for word.
Building a distribution table with classes
When to use it: When the question gives raw data and asks for a table, a histogram or grouped statistics.
1Find the minimum, the maximum and the range, and write them down.
2Propose a number of classes with Sturges, k=1+3.322log10(n), then state the number RETAINED and why.
3Compute the class width krange and round it UP to a convenient value.
4Write the limits following the convention closed on the left, open on the right, and check that the last class contains the maximum.
5Build the four columns, then check that the sum of the frequencies gives back n and that the last cumulative relative frequency equals 1.
Concluding sentence
“For n=60 observations with a range of 155 dollars, Sturges' rule gives k≈6.9: I retain 7 classes of width 25 dollars, the first starting at 0.”
The trap: Rounding the width down: the last class then no longer contains the maximum and the table is not exhaustive.
Marking: 1 mark for Sturges, 1 mark for the width rounded up, 2 marks for the columns, 1 mark for the checks.
Computing the median from grouped data
When to use it: As soon as the question gives a table of classes and asks for the median, a quartile or a percentile.
1Build the column of cumulative frequencies, if it is not already there.
2Compute the rank sought: 2n for the median, 4n for Q1, 43n for Q3.
3Find the class where the cumulative frequency reaches this rank, and note its lower limit, its frequency and its width.
4Apply the interpolation and write the unit of the result.
5Check that the result does fall inside the class found.
Concluding sentence
“The median class is [20,40): M=20+2030−12×20=38 dollars, assuming a uniform spread within the class.”
The trap: Using the cumulative frequency of the median class itself instead of that of the PREVIOUS class: the formula then returns a value outside the class.
Marking: 1 mark for the class found, 2 marks for the interpolation, 1 mark for the assumption written down.
Check before you hand in
Five minutes of checking recover more marks than one more problem started in a hurry.
The relative frequencies sum to 1
Add up the column of relative frequencies: a total of 0.98 or 1.02 comes from rounding, a total of 0.80 comes from a forgotten class.
A total of 1.15 signals that two classes overlap, so that observations were counted twice.
The median falls in its class
After the interpolation, check that the result lies between the two limits of the median class.
A median of 44 reported for the class [20,40) almost always comes from the wrong cumulative frequency in the numerator.
The total area of the histogram equals the frequency
Multiply each height by its class width and add: you must get back n.
0.6×20+1.0×20+0.4×40+0.15×80=60: the densities are right.
The two-second test on a published graph
Put a finger on the origin of the vertical axis and read the first tick. If it is not zero on bars, the critique is found.
An axis that starts at 50% on a bar chart: the drawn gap has nothing to do with the real gap.
The typical problem, taken apart
From raw data to the histogram, with unequal classes
Sixty students report their weekly transportation spending, in dollars. The grouping used is: [0,20) with 12 students, [20,40) with 20, [40,80) with 16, [80,160) with 12.
The question asks for the histogram, the mean and the median, then a comment on the shape of the distribution.
The grouping in the question: four classes of widths 20, 20, 40 and 80, and their frequencies.
The cumulative frequencies serve for the median and the relative frequencies for comparison with another cohort: both columns are done at the same time, never in two passes.
Step 2
Sturges would give k=1+3.322log10(60)≈6.9, so 7 equal classes. The proposed grouping has only 4, of unequal widths.
Why
You have to say so, and say why it is legitimate: spending is spread out toward the top, and equal classes would leave three empty classes on the right.
This is the step that earns the most marks and the one skipped most often. Without it, the drawing says that the last class is the most populated when it is the least dense of all.
The midpoint, not the limit: taking the lower limits would give 33.33 dollars instead of 52, an underestimate of nearly 19 dollars on an average expense.
Step 5
Rank 260=30; the cumulative frequency reaches 30 in [20,40), so M=20+2030−12×20=38 dollars.
Why
The cumulative frequency used is that of the PREVIOUS class, 12, and not 32. This is the only difficulty of the formula and it is where the mark is lost.
Step 6
Check: 0.6(20)+1.0(20)+0.4(40)+0.15(80)=60, and M=38<x=52.
Why
The total area gives back the frequency, so the densities are right. The median being below the mean confirms the spread toward the right, consistent with the very wide class at the end.
The conclusion, written out
“The median spending is 38 dollars and the mean spending is 52 dollars. The gap between the two, and the density collapsing to 0.15 in the last class, describe a distribution spread out to the right: a minority of students spend a lot.”
The classic mistake on this problem: Drawing four bars of heights 12, 20, 16 and 12: the last class then takes up over 40% of the area of the graph for a fifth of the students.
Learn by heart
•You only CUMULATE on an ordered variable. On a nominal one, the cumulative column does not exist.
•HISTOGRAM: touching bars, continuous variable. BAR CHART: separated bars, qualitative or discrete variable.
•Unequal classes: height =class widthfrequency, so that the AREA equals the frequency.
•On bars, the vertical axis starts at ZERO. On a line graph, a visible truncation is acceptable.
•Doubling the dimensions QUADRUPLES the surface. To double the area, multiply by 2.
•Grouped mean: the class MIDPOINT, never the limit. Grouped median: the cumulative frequency of the PREVIOUS class.
•On a dual vertical axis, the point where the two curves cross means nothing.
Frequently asked questions
How do you compute the height of the bars of a histogram with unequal classes?
The height is the density, that is the frequency of the class divided by its width. A class of 40 units containing 16 observations gives a height of 0.4. We do this so that the area of each bar, not its height, represents the frequency: it is the area that the eye compares on a histogram.
What is the difference between a histogram and a bar chart?
The histogram is for continuous variables grouped into classes and its bars touch, because between two classes there are values. The bar chart is for qualitative or discrete variables and its bars are separated, because between two categories there is nothing. The gap between the bars is therefore information.
How do you find the median from a table of classes?
Find the class where the cumulative frequency reaches half of the total frequency, then interpolate: start from the lower limit of that class and add the class width multiplied by the gap between half the total frequency and the cumulative frequency of the previous class, divided by the frequency of the class. The result must fall inside the class found.
Why is an axis that does not start at zero misleading?
On a bar chart, the reader compares lengths. If the axis starts at 50, a value of 52 becomes a bar two units long and a value of 58 a bar eight units long: the second looks four times the first although the real gap is six points out of fifty-eight. Truncation multiplies the ratios without touching the data.
How many classes should you use to group data?
Sturges' rule gives a starting point: one plus 3.322 times the base 10 logarithm of the number of observations, which gives about seven classes for sixty observations. It is not an obligation: you round to a convenient number and choose a round width, provided you write down the choice and check that the last class contains the maximum.
Corrected exercises: Frequency distributions and graphs, 360-300
A method is proved on a paper, not on a sheet. The set for the same chapter takes each of these traps into a problem, with the solution written out step by step.
Something missing from this sheet?A method, a trap, an exercise to practise it, a mistake you spotted: tell me, I read every request.
Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space.
Rather not create an account? Write to me directly.
Get in touch for a first session. We go back over the choices that cost marks in Quantitative Methods, from the density of a wide class to the truncated axis, then we test them on exercises at the level of real CEGEP tests.