Quantitative Methods in Social Science 360-300 • CEGEP, Montreal
Corrected exercises: frequency distributions and graphs (360-300)
These ten corrected exercises for Quantitative Methods, 360-300, the mathematics course of CEGEP Social Science programs, are about presenting data: the frequency distribution table, class intervals, the histogram and all the graphs that betray their author. This is the part of the course where you build what the reader will see, and so the part where you can lie without writing a single wrong number.
The thread of the set fits in one sentence: the eye reads an AREA, not a height or a length, and an honest graph is one whose area is proportional to the frequency. That is as true of a histogram with unequal classes as of an enlarged pictograph.
Three pitfalls are named outright: cumulative frequencies computed on a nominal variable, a wide class drawn at the height of its frequency, and a truncated vertical axis on a bar chart.
Self-checking setType your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.
•Relative frequency =nni. You only CUMULATE on an ordered variable: cumulating nominal categories depends on an arbitrary order.
•Classes: mutually exclusive, exhaustive, of equal width unless an explicit decision is made. Convention: closed on the left, open on the right.
•Sturges' rule: k=1+3.322log10(n), then class width =krange rounded UP to a convenient value.
•HISTOGRAM: touching bars, continuous variable. BAR CHART: separated bars, discrete or qualitative variable. The gap between bars is a sign, not decoration.
•Unequal classes: the height is the DENSITY =class widthfrequency, so that the AREA represents the frequency.
•Frequency polygon: the midpoints of the tops of the bars, plus an empty class on each side to bring the line back to zero.
•Mean from grouped data: x=n∑cini with ci the class midpoint, assuming the values are spread uniformly within each class.
•Median from grouped data, by interpolation: lower limit+frequency of the class2n−previous cumulative frequency×class width.
•On BARS, the vertical axis starts at zero: a bar encodes a length, hence a quantity. On a line graph, truncation is acceptable if it is visible.
•Doubling the height of a pictograph quadruples its area. To double the area, multiply the dimensions by 2; better still, repeat the pictograph.
•Proportional circles: the ratio of the RADII is the square root of the ratio of the values, since the area is πr2.
•Dual vertical axis: the point where the two curves cross means nothing, because it depends entirely on the bounds chosen for each axis.
Part A: the basics (/50)
Exercise 1: From raw data to a frequency distribution
Raw data teaches nothing: it has to be compressed into a table, and how to compress depends on the measurement scale. The distribution table is the most manufactured and least discussed object in a research report.
For 200 students, the main means of transportation and the number of courses failed since the start of their studies were recorded.
Transportation
Frequency
Courses failed
Frequency
Public transit
96
0
104
Walking or cycling
42
1
52
Car
50
2
28
Other
12
3 or more
16
a) For transportation, compute the relative frequencies as percentages. Why do CUMULATIVE frequencies make no sense here?
b) For courses failed, build the complete table: frequencies, relative frequencies, cumulative frequencies, cumulative relative frequencies.
c) What proportion of students failed at most one course? At least two?
d) The last category is “3 or more”. Name the type of class this creates and say what is lost.
e) A report states “on average 0.78 courses failed per student”. Check whether this number can be computed from the table, and conclude.
Show the solution
Answers
a)48.0%, 21.0%, 25.0%, 6.0%; no cumulation, the variable is nominal
c)At most one: 78.0%, that is 156 students. At least two: 22.0%, that is 44 students
d)An open class: exact values are lost, hence the mean and variance, but rare cases are protected
e)Not computable: the mean is AT LEAST 200108+48=0.78, and the report took that bound for the value
a)
Relative frequencies: 20096=48.0%, 20042=21.0%, 20050=25.0%, 20012=6.0%, summing to 100%. Cumulative frequencies make no sense because the variable is NOMINAL: cumulating assumes an order, and “public transit, then walking” is not a progression. Adding these frequencies amounts to adding categories, which only an order would make legitimate. Cumulation is reserved for ordinal variables, ordered discrete variables and continuous variables.
b)
Frequencies 104, 52, 28, 16, summing to 200. Relative frequencies: 52.0%, 26.0%, 14.0%, 8.0%. Cumulative frequencies: 104, 156, 184, 200. Cumulative relative frequencies: 52.0%, 78.0%, 92.0%, 100.0%. Two checks to make every time: the sum of the frequencies gives back n, and the last cumulative relative frequency is exactly 100%. If either fails, there is a rounding error or a missing value, and it must be settled before going any further.
c)
At most one course failed: this is the cumulative relative frequency at rank 1, that is 78.0%, which corresponds to 156 students. At least two: the complement, 100−78=22.0%, that is 44 students. Going through the complement is almost always faster than the direct sum, and it avoids the boundary error of including or excluding the pivot category.
d)
“3 or more” is an OPEN class, with no upper bound. What is lost is the exact value of the observations it contains, hence the possibility of computing a mean, a variance or a class midpoint for this group. It is kept all the same because it protects the anonymity of rare cases and avoids a tail of the table with frequencies of 1 or 2. It is a deliberate compromise, and it must be noted under the table rather than discovered during the analysis.
e)
The number is NOT computable from the table alone. The first three categories give 0×104+1×52+2×28=108 failures for 184 students; the 16 students of the open class contribute at least 3×16=48 failures, with no upper bound. The mean is therefore at least 200108+48=0.78 and could be much larger. The stated value coincides exactly with the LOWER bound, which gives away a computation done by assigning 3 to the entire open class. The correct wording would be “at least 0.78 courses failed on average”, or better, a return to the raw data.
Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.
Exercise 2: Cutting a continuous variable into classes
A continuous variable cannot be counted value by value: you have to build classes, and this division is a decision by the researcher, not a property of the data. Three rules are enough, and a fourth, Sturges' rule, gives the starting point.
The weekly income of 120 students who work was recorded. The minimum is 42 dollars, the maximum 486 dollars.
The figure below shows the situation.
a) Compute the range, then the number of classes suggested by Sturges' rule k=1+3.322log10(n).
b) Deduce a convenient class width and propose the class limits.
c) State the three rules that every division into classes must respect.
d) One colleague proposes 3 classes instead, another 25. What happens in each case?
e) The midpoint of the class [100,150) is 125. What assumption is made by using it to compute a mean, and when does it fail?
Show the solution
Answers
a)Range 444 dollars; Sturges gives k≈7.91, rounded to 8 classes
b)8444=55.5, rounded up to 60: from [40,100) to [460,520)
c)Mutually exclusive, exhaustive, of equal width unless explicitly decided otherwise
d)Three classes erase the shape; twenty-five give 4.8 observations per class and false peaks
e)Uniformity within the class; false as soon as the internal distribution is skewed, as with incomes
a)
Range: 486−42=444 dollars. Sturges' rule with n=120: log10(120)≈2.0792, so k=1+3.322×2.0792≈7.91, which is rounded to 8 classes. The rule is not compulsory: it proposes a compromise between too much detail and too much smoothing, and it grows slowly, as a logarithm, which reflects a fact: a sample four times larger deserves only two more classes.
b)
Raw width: 8444=55.5 dollars, which is rounded UP to a convenient value, here 60 dollars. Limits: [40,100), [100,160), and so on up to [460,520), that is 8 classes covering 40 to 520 dollars. We check that the first contains the minimum, 42, and the last the maximum, 486. Rounding up rather than down is what guarantees that k classes are enough to cover everything; rounding down would force us to add a ninth.
c)
First rule, the classes are MUTUALLY EXCLUSIVE: an observation falls in only one, hence the convention of limits closed on the left and open on the right. Second rule, they are EXHAUSTIVE: their union covers all the observed values, with no gap. Third rule, they have EQUAL WIDTH, unless an explicit decision is made, which then forces us to reason with density. In practice we add a readability requirement: round limits, chosen for the reader and not for the software.
d)
With 3 classes, the smoothing is so heavy that the shape disappears: a bimodal distribution, for example part-time and full-time students, will appear as a single block, and all the information about spread is lost. With 25 classes for 120 observations, there are fewer than 5 observations per class on average: the histogram becomes an irregular comb where chance in the sample creates false peaks, and the reader sees a structure that does not exist. Between the two, good practice is to try two or three divisions and keep the one whose shape stays stable.
e)
The assumption is that the observations are spread UNIFORMLY within the class, so that their mean coincides with the midpoint. It fails as soon as the internal distribution is strongly skewed, which typically happens in the last income class, where almost everyone is near the lower limit, and in wide classes. The consequence is a slightly biased mean computed from grouped data: it is therefore presented as an approximation, and we go back to the raw data whenever they exist.
Exercise 3: The histogram and the frequency polygon
The histogram is the graph of the continuous variable, and the only one whose bars touch. The polygon that crowns it serves another purpose: comparing two distributions on the same drawing.
The weekly study hours of 86 students were grouped into six classes of 5 hours.
a) Read the six frequencies off the histogram and check that their sum is 86.
b) Why do the bars of a histogram touch, while those of a bar chart do not?
c) Describe how to build the frequency polygon, including its two ends.
d) Estimate the modal class and the median class. What can be said about the shape of the distribution?
e) We want to compare this distribution with that of another CEGEP with 240 students. What change must be made to the graph?
Show the solution
Answers
a)8+18+26+20+10+4=86
b)Continuous: the classes follow each other edge to edge. Discrete or qualitative: emptiness between the categories
c)Points (2.5,8) to (27.5,4), plus two empty fictitious classes at −2.5 and 32.5 brought back to zero
d)Modal class and median class: [10,15); unimodal distribution, slightly skewed to the right
e)Switch to relative frequencies and superimpose the POLYGONS, not the histograms
a)
The frequencies read 8, 18, 26, 20, 10 and 4, with sum 8+18+26+20+10+4=86. This check is not a formality: on a histogram read by eye, an error of one gradation is common, and the sum of the frequencies is the only check available when the original table does not accompany the figure.
b)
Because the variable is CONTINUOUS: between 9.9 and 10.1 hours there is no gap, the value 10 exists, and the classes follow each other edge to edge, covering the whole interval. A bar chart represents a discrete or qualitative variable, where the categories are separated by emptiness: between 2 and 3 courses failed, no value exists, and leaving a space says so visually. The difference in the drawing therefore reflects a difference in nature, and it is exactly the kind of detail on which a marker takes off points.
c)
A point is placed at the MIDDLE of the top of each bar, at the class midpoint on the horizontal axis and at the frequency on the vertical axis: here (2.5,8), (7.5,18), (12.5,26), (17.5,20), (22.5,10) and (27.5,4). These points are joined by segments. At both ends, an empty fictitious class is added on each side, here with midpoints −2.5 and 32.5, and the polygon is brought back to zero: this closes the line and gives the area under the polygon the same value as the area of the histogram. Many students forget this closure, and the graph then floats with no reference.
d)
The MODAL class is [10,15), the one with the highest frequency, 26 students. For the median, we cumulate: 8, then 26, then 52; the 43rd and 44th observations, which surround the middle of 86, fall in the class [10,15), which is therefore also the median class. The distribution is unimodal and SLIGHTLY SKEWED TO THE RIGHT: the right tail, from 20 to 30 hours, is longer than the left one, which is the usual shape for the time spent on an activity, bounded by zero with no upper limit.
e)
We must switch from FREQUENCIES to RELATIVE FREQUENCIES, as percentages or proportions. Without that, the histogram of the second CEGEP would swamp the first by its size alone, and we would be comparing populations rather than shapes. Once both distributions are expressed as percentages, the two POLYGONS are superimposed rather than the two histograms, precisely because two overlapping sets of bars are unreadable while two lines are easy to tell apart.
Exercise 4: Unequal class widths: density
As soon as the classes do not have the same width, the histogram of frequencies lies. What the eye reads is an AREA, so the height must be adjusted for the area to tell the truth.
Distribution of 130 households by annual income, in thousands of dollars.
Class
Width
Frequency
Density
[0,10)
10
20
?
[10,20)
10
30
?
[20,40)
20
40
?
[40,80)
40
40
?
a) Complete the density column, defined as the frequency divided by the class width.
b) On the left histogram, which class looks the largest? And on the right one, which is the DENSEST?
c) Check that in the right histogram, the area of each rectangle is indeed proportional to the frequency of its class.
d) What proportion of households earn less than 20,000 dollars? And between 20,000 and 30,000, assuming uniformity?
e) Why do income statistics almost always use unequal classes?
Show the solution
Answers
a)Densities 2.0, 3.0, 2.0 and 1.0 households per thousand dollars
b)On the left, the last class swamps everything; on the right, the densest is [10,20) with 3.0
c)Areas 20, 30, 40, 40: exactly the frequencies, summing to 130
d)Under 20,000: 13050≈38.5%. Between 20 and 30 thousand: 20 households, that is 15.4%
e)Because the distribution is strongly skewed: fine classes at the bottom, wide ones at the top, and an open last class
a)
Densities: 1020=2.0, 1030=3.0, 2040=2.0 and 4040=1.0 households per thousand dollars. Density is interpreted directly: the class [10,20) concentrates three households per thousand dollars, the last class only one.
b)
On the left histogram, drawn at the height of the frequency, the last two classes look the largest with 40 each, and the last seems overwhelming since it is also the widest: the eye gives it an area more than five times that of the class [10,20) (40×40 against 30×10), although it contains only 33% more households. On the right histogram, the DENSEST class is [10,20), with 3.0, and that is indeed where the bulk of the population lies: the corrected drawing tells the opposite story from the first.
c)
Areas: 10×2.0=20, 10×3.0=30, 20×2.0=40, 40×1.0=40. We recover exactly the four frequencies, and their sum, 130, is the total area. This is the property that defines the correct histogram: the area, not the height, represents the frequency. On a histogram with equal classes, the two coincide up to a factor, which is why it is so easily forgotten.
d)
Less than 20,000 dollars: 13020+30=13050≈38.5%. Between 20,000 and 30,000: the class [20,40) contains 40 households over 20 units of width, so under the uniformity assumption half of the class, that is 20 households, falls in the first half, which gives 13020≈15.4%. We could have gone directly through the density: 10×2.0=20 households. It should be recalled here that uniformity is a convenient and probably false assumption for incomes, where the concentration is stronger near the lower limit.
e)
Because the income distribution is strongly skewed to the right: the great majority of households are concentrated in a narrow interval, while a small minority is spread over a very wide range. Equal classes fine enough to describe the bottom of the distribution would require hundreds of classes to reach the top, almost all empty. So we tighten the classes where the people are and widen them where there are none, even if it means reasoning with density. This is also why the last class is almost always open, of the type “200,000 and over”: its upper limit would be both useless and indiscreet.
Exercise 5: Choosing the graph that the scale allows
The choice of graph is not aesthetic: each type assumes a measurement scale, and using it outside its domain produces a drawing that claims more than the data do.
a) Match each of the following variables with the appropriate graph: language spoken at home, satisfaction level from 1 to 5, number of children, annual income, change in the unemployment rate over twelve years.
b) Why is a pie chart discouraged beyond five or six sectors, and forbidden for multiple-response questions?
c) A researcher draws a continuous curve joining the frequencies of the categories “single, married, separated, widowed”. What is wrong with that?
d) Which graph should be chosen to compare the age distribution of two populations, and why?
e) We want to show both the level and the spread of study hours in five programs. Which graph, and what exactly does it show?
Show the solution
Answers
a)Bar chart, ordered bar chart, separated bars, histogram, line graph
b)The eye compares angles poorly; and a disk encodes a WHOLE, incompatible with a total above 100%
c)A line encodes continuity and order; a nominal variable has neither, permuting changes everything
d)A population pyramid, as a PERCENTAGE of each population
e)The box plot: level and spread together, but not the fine shape of the distribution
a)
Language spoken at home, a nominal variable: BAR CHART, or pie chart if the categories are few and form a whole. Satisfaction level from 1 to 5, ordinal: bar chart in which the ORDER of the categories is respected, or 100% stacked bars if groups are compared. Number of children, discrete quantitative: also a bar chart, with separated bars. Annual income, continuous quantitative: HISTOGRAM, possibly with density. Change in the unemployment rate over twelve years: LINE GRAPH, because time is continuous and the line rightly suggests the intermediate values.
b)
Beyond five or six sectors, the human eye compares neighbouring angles very poorly: it easily tells two bars that differ by 3% apart, but hardly two sectors. The pie chart is therefore reserved for the case where we want to show that one share dominates, not where we want to compare shares with each other. It is flatly forbidden for multiple-response questions, where a respondent may tick several categories: the total then exceeds 100% and the disk, which represents a WHOLE that is shared out, becomes false by construction. In that case we use bars, each read on the basis of the respondents.
c)
The variable is NOMINAL: joining its categories with a line suggests a continuous passage from one to the next, as if there were intermediate states between married and separated, and as if the chosen order were the right one. But this order is arbitrary: by permuting the categories, we get an entirely different curve, which is enough to show that the shape means nothing. The technical objection fits in one sentence: a line encodes continuity and order, and a nominal variable has neither.
d)
A POPULATION PYRAMID, that is, two horizontal histograms back to back sharing the axis of age classes, or failing that two superimposed frequency polygons. The important point is to express the frequencies as a PERCENTAGE of each population, otherwise the larger one swamps the other. The pyramid has the advantage of making generation gaps and imbalances immediately readable, which two tables side by side would never reveal as quickly.
e)
The BOX PLOT, one box per program, aligned on a common axis. It shows at once the median, the central line, the quartiles, the edges of the box, the range of the non-outlying data by the whiskers, and the outliers by isolated points. It is the only compact graph that gives both level and spread, and it lets us see immediately that a program with a high but very spread-out median is not comparable to a homogeneous program with the same median. What it does NOT show, on the other hand, is the fine shape of the distribution: a bimodal distribution and a flat one can give exactly the same box.
Part B: problems and reasoning (/50)
Exercise 6: The truncated axis and misleading scales
The two graphs below show exactly the same five numbers. Only one figure was changed in the code: the lower bound of the vertical axis.
a) The values are 41.2, then 41.5, then 41.8, then 42.0, then 42.4. Compute the total change in points and as a percentage.
b) On the left graph, measure the ratio of the heights of the last bar to the first. Compare with the actual ratio of the values.
c) Is a truncated axis always dishonest? Give a case where it is legitimate and a case where it is not.
d) Another technique is to choose the TIME INTERVAL. How can a single rate that fluctuates be used to show a rise and then a fall?
e) Formulate three questions to ask in front of any published graph.
Show the solution
Answers
a)1.2 points, that is 41.21.2≈2.9%
b)Heights 0.2 and 1.4, ratio 7, against an actual ratio of 1.03
c)No: legitimate without a meaningful zero (index, temperature); dishonest on bars of quantities
d)By choosing the bounds of the window: from a trough to a peak, or the reverse, both being accurate
e)Where the axis starts, what unit and what base, and what data are outside the frame
a)
Change in points: 42.4−41.2=1.2 points. Relative change: 41.21.2≈0.0291, that is about 2.9%. This is a real but modest rise, of the kind that sampling noise can produce by itself if the values come from successive polls of a thousand respondents, where the margin is three points.
b)
On the left graph, the axis starts at 41: the first bar measures 41.2−41=0.2 units of height, the last 42.4−41=1.4, a ratio of 7. The eye therefore reads a multiplication by SEVEN where the values change by 2.9%. On the right graph, with a full axis, the ratio of the heights is 41.242.4≈1.03, exactly the ratio of the values. The distortion is thus enormous: the rise seen on the left (from 1 to 7, that is +600%) is about 200 times the real rise of 2.9%.
c)
No, not always. It is LEGITIMATE when the variable has no meaningful zero or when a zero would make reading impossible: a body temperature, a stock index, a pH, a year. It becomes DISHONEST when the variable is a quantity or a proportion whose zero has a meaning and the reader will interpret the height of the bars as a quantity, which is exactly the case for a percentage of support or a sales figure. Practical rule: on BARS, the axis must start at zero, because a bar encodes a length, hence a quantity; on a LINE GRAPH, truncation is acceptable provided it is visible and flagged.
d)
By choosing the BOUNDS of the time window. A rate that fluctuates around a stable value periodically reaches troughs and peaks: starting from a trough and stopping at a peak shows a spectacular rise, doing the opposite shows a collapse, and both graphs are accurate. This is the temporal variant of the same device, and it is harder to spot because nothing is visibly truncated. The defence is to demand the full series available, and to be wary of any window whose bounds fall exactly on a local minimum or maximum.
e)
First question: where does the vertical axis start, and does the variable have a zero that means something? Second question: what is the unit, and are these frequencies or percentages, computed on what base? Third question: what data were left outside the frame, before or after the period shown, and why that one? A fourth question can be added, often decisive: where do the data come from and who paid for the figure?
Exercise 7: When the size of the drawing lies
Second family of misleading graphs: those where the data are encoded by a length but read as an area, or worse, as a volume.
The figure below shows the situation.
a) A budget doubles from 2015 to 2025. Does a pictograph whose height doubles have a doubled area? Compute.
b) Some software draws pictographs in three dimensions. What happens to the perceived ratio?
c) How can the pictograph be corrected to be honest? Give the exact scale factor.
d) A pie chart is presented “in perspective”, with the disk tilted backwards. What effect does this have on the reading of the sectors?
e) A newspaper compares two countries with proportional circles: the first has 8 million inhabitants, the second 32 million. What must the ratio of the RADII be?
Show the solution
Answers
a)No: the area is multiplied by 2×2=4, three times the real change
b)23=8 if the reader interprets the volume; 2, 4 or 8 for the same figure
c)Multiply each dimension by 2≈1.414, or better, repeat the pictograph
d)The tilt breaks proportionality: the sectors at the front look larger
e)r1r2=4=2, a DOUBLE radius, not a quadruple one
a)
No: doubling the height of a figure while keeping its proportions also doubles its width, so the area is multiplied by 2×2=4. The reader, who spontaneously perceives the amount of drawing, that is the area, reads a multiplication by four where the budget doubled. The reader sees an increase of 300% where the real increase is 100%, and the exaggeration is all the more effective because it rests on no false number.
b)
In three dimensions, the perceived ratio becomes 23=8 if the reader interprets the volume, since all three dimensions are multiplied by two. Depending on whether the reader looks at the height, the face or the volume, the same figure suggests a ratio of 2, 4 or 8. A graph whose reading depends this much on the reader's eye is no longer a measuring instrument, which is why visualization textbooks forbid relief effects.
c)
For the AREA to double, each dimension must be multiplied by 2≈1.414, not by 2. The truly robust solution, however, is not to resize at all: the pictograph is repeated, two identical silhouettes instead of one, which encodes the quantity by a COUNT rather than a size. This is the form used by serious infographics, and it has the advantage of staying readable even when the ratio is not a whole number, the last silhouette then being cut off.
d)
The tilt squashes the disk into an ellipse and breaks the proportionality between angle and visible area: the sectors at the FRONT look clearly larger than those at the back, for the same angle. Two sectors of 20% will occupy different areas depending on their position, and the order of the shares itself may seem reversed. Since the position in the disk is a choice of the designer, perspective gives a convenient way of putting forward the share one wants to highlight.
e)
The ratio of the populations is 832=4. Since the area of a disk is πr2, we need r12r22=4, hence r1r2=2. The second circle must have a DOUBLE radius, not a quadruple one. Quadrupling the radius would produce an area sixteen times larger, four times the real gap; this is one of the most frequent errors in infographics, and it is spotted by checking that the ratio of the radii is the square root of the ratio of the values.
Exercise 8: Five statements to correct
Each of the following five statements is FALSE. Say why and give the correct statement.
1) “The bars of my histogram are separated by a space, it is more readable and changes nothing.”
2) “The cumulative frequencies of the variable means of transportation do reach 100%, so the table is correct.”
3) “My last class is twice as wide, so I drew a bar twice as tall so that people notice it.”
4) “I have 400 observations, so I will use 40 classes in order not to lose any information.”
5) “The pie chart of the answers to the multiple-response question totals 168%, which is normal since people could tick several boxes.”
Show the solution
Answers
1)FALSE: spacing encodes the nature of the variable; in a histogram the bars touch
2)FALSE: the cumulation always reaches 100%, but it depends on an arbitrary order on a nominal variable
3)FALSE: twice as wide and twice as tall, the area QUADRUPLES; the height must be the density
4)FALSE: 10 observations per class reproduce noise; Sturges suggests ≈9.6 classes
5)FALSE: a total above 100% disqualifies the disk; bars read on the respondents are needed
1)
FALSE. Spacing is not a layout choice, it is a sign that encodes the nature of the variable: touching bars for a continuous variable, separated bars for a discrete or qualitative variable. Separating the bars of a histogram visually asserts that impossible values exist between the classes, which is false for an income or a duration. Correct statement: in a histogram, the bars touch, because the classes follow each other edge to edge and cover the whole interval.
2)
FALSE. The fact that the cumulation reaches 100% proves nothing: it will always reach it, whatever the order of the categories, since all the frequencies are being added. The problem is that the variable is NOMINAL: the cumulation depends on an arbitrary order, and swapping two categories changes all the intermediate values. Correct statement: we only cumulate on an ordered variable; for means of transportation, only the simple frequencies make sense.
3)
FALSE, and the effect obtained is exactly the opposite of the one intended. A bar twice as wide AND twice as tall has a QUADRUPLE area, although the class may contain no more observations than the others. Correct statement: when classes have unequal widths, the height must be the DENSITY, frequency divided by class width, so that the area of the rectangle represents the frequency.
4)
FALSE. Forty classes for 400 observations give 10 observations per class on average, with purely random irregularities that will make peaks and troughs appear that do not exist in the population. The histogram then stops summarizing and starts reproducing noise. Correct statement: Sturges' rule suggests here 1+3.322log10(400)≈9.6, so about ten classes; we may go a little above if the distribution is very structured, never up to forty.
5)
FALSE. The explanation for the total exceeding 100% is correct, but it disqualifies precisely the choice of graph: a disk represents a whole divided into exclusive shares, and it cannot display 168%. Correct statement: for a multiple-response question, we use a bar chart in which each category is read independently, as a percentage of the RESPONDENTS, and we state under the figure that the total exceeds 100% because several answers were allowed.
Exercise 9: Problem: taking apart a newspaper infographic
A daily newspaper publishes a graph with two vertical axes under the headline “More advertising spending, fewer visits: the link is clear”. The solid curve rises, the dashed curve falls, and the two cross in the middle.
The figure below shows the situation.
a) What does a DUAL AXIS allow, and what freedom does it leave the designer?
b) Does the crossing of the two curves have any meaning? Justify.
c) Series A goes from 1.2 to 3.3 million dollars and series B from 3.4 to 2.2 million visits. Compute the relative changes and compare their size.
d) The newspaper headlines a causal link. Name three competing explanations consistent with the same data.
e) Propose an honest presentation of the same data, in two graphs or in one.
Show the solution
Answers
a)Superimposing two units, while letting the bounds of each axis be chosen independently
b)None: it moves wherever you like by shifting one bound, and dollars and visits cannot be compared
c)+175% against −35.3%: the first change is about five times stronger
d)Reverse causation, confounding variable, common trend over six annual points
e)Two separate graphs starting at zero, or a single one with base 100 indexes: 275 against 64.7
a)
A dual axis lets you superimpose two series with different units, here dollars and visits, on a single drawing. The freedom it leaves is total: the designer chooses the bounds of EACH axis independently, and can therefore make the two curves cross wherever they like, or make them coincide almost perfectly, without changing a single data value. It is the only figure whose visual conclusion can be reversed by changing two numbers that appear nowhere.
b)
None. The crossing point depends solely on the choice of the two scales: by moving the lower bound of the right axis by a few tenths, it moves anywhere, disappears, or appears twice. Comparing an amount in dollars with a number of visits makes no dimensional sense anyway: saying that they “cross in year 3” is like saying that a weight crosses a length. What the eye reads as a tipping point is merely an artifact of the drawing.
c)
Series A: 1.23.3−1.2=1.22.1=1.75, a rise of 175%. Series B: 3.42.2−3.4≈−0.353, a fall of 35.3%. The two changes are therefore of very different size, the first being about five times stronger than the second, which the graph hides entirely by giving the two curves visually comparable slopes. This is a third effect of the dual axis, independent of the crossing.
d)
First competing explanation: REVERSE CAUSATION, visits fall for their own reasons, and the company reacts by increasing its advertising; the correlation would then be the trace of a reaction, not of an effect. Second explanation: a CONFOUNDING VARIABLE, for example the opening of a competitor or an economic situation that at the same time makes visits drop and pushes spending up. Third explanation: the COMMON TREND, or spurious time correlation: two series, one rising and the other falling over six points, are mechanically correlated, and six annual observations almost never allow chance to be ruled out.
e)
Two SEPARATE graphs, one for spending, the other for visits, each with its axis starting at zero and the same time span: the reader then sees the two changes without an arbitrary scale staging them. In a single graph, the correct solution is to express both series as INDEXES with base 100 at year 1, which makes them comparable in the same, dimensionless unit: we would then read 100 then 275 for spending and 100 then 65 for visits, and the difference in size would become immediately visible. In all cases, the caption must say that six annual points do not allow a causal link to be asserted.
Exercise 10: Problem: from raw data to the page of the report
Last step: produce the table and the graph yourself, with all the decisions already met. A survey of 150 students recorded the number of hours of paid work per week.
Hours of work
Frequency
[0,5)
39
[5,10)
24
[10,15)
30
[15,20)
27
[20,30)
24
[30,50)
6
a) Complete the table: relative frequencies, cumulative relative frequencies, densities.
b) What height should each bar of the histogram have? Which of the six classes is the densest?
c) Estimate the mean and the median from the grouped data, then say what comparing them indicates.
d) The report must state the share of students who work 20 hours or more. Give it, then say why this threshold is the one used in research on persistence.
e) Write the title of the graph and its note under the figure.
b)The density; the densest is [0,5) with 7.8, which is also the modal class
c)Mean 1501965=13.1 h, median 10+3012×5=12.0 h: skewed to the right
d)15030=20.0%; the 20 h threshold is where the effect of work changes sign
e)Title: who, what, when. Note: density histogram, area = frequency, source and response rate
a)
Relative frequencies: 26.0%, 16.0%, 20.0%, 18.0%, 16.0% and 4.0%, summing to 100%. Cumulative relative frequencies: 26.0, 42.0, 62.0, 80.0, 96.0 and 100.0%. Densities, frequency divided by class width: 539=7.8, 524=4.8, 530=6.0, 527=5.4, 1024=2.4 and 206=0.3 students per hour.
b)
The height must be the DENSITY, since the last two classes are wider than the first four. The densest class is [0,5) with 7.8, and it is also the modal class. Drawn at the height of the frequency, the class [20,30) would look as important as [5,10) although its density is half as large.
c)
Mean from class midpoints: 1502.5(39)+7.5(24)+12.5(30)+17.5(27)+25(24)+40(6)=15097.5+180+375+472.5+600+240=1501965=13.1 hours. Median: the 75th observation falls in [10,15), since the cumulative frequency goes from 63 to 93; by interpolation, 10+3075−63×5=10+2.0=12.0 hours. The mean, 13.1, exceeds the median, 12.0: the distribution is SKEWED TO THE RIGHT, pulled by the minority who work more than 30 hours. The honest summary of such a profile is the median.
d)
The last two classes together hold 24+6=30 students, that is 15030=20.0%. The 20-hour threshold is the one used in most research on persistence because that is around where the effects change sign: below it, paid work is neutral or even favourable, giving structure to the schedule and financing studies; above it, it competes directly with study time and with participation in school life, and the association with dropping out becomes clear. A relevant threshold is always one justified by the literature, never a round number chosen for convenience.
e)
Title: “Distribution of the 150 students by weekly hours of paid work, winter 2026”. Note under the figure: “Density histogram; the last two classes have widths of 10 and 20 hours, the height of the bars represents the number of students per hour of work, the area of each bar represents the frequency. Source: student life survey, n equals 150, response rate of 32%.” The title says who, what, when; the note says how to read it and where the figure comes from. These are the only two things a reader in a hurry will read, and they must be enough to avoid being misled.
Something missing from this set?A type of exercise your teacher gives, a problem you are stuck on, 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.
Looking for a quantitative methods tutor in Montreal?
Get in touch for a first session. Quantitative Methods is the only compulsory mathematics course in Social Science, and it is also the one that most often decides the R score of a semester.