Lite / Intelligent Robotic Systems / Week 8
Charts that lie without a single false number
A chart shows jams falling by two-thirds after a fix. The data shows 6%. Nobody changed a number. What did they change?
Why should I care?
Engineers make decisions from charts: which supplier, which design, whether a fix worked. A chart can mislead through choices alone. Learning to spot those choices protects you from other people's charts, and your reports from your own wishful thinking.
- Identify truncated axes, cherry-picked ranges and missing spread as ways charts mislead.
- Compute a lie factor comparing the effect shown with the effect in the data.
- Fix a misleading chart and write an honest caption.
Predict
A bar chart's y-axis runs from 36 to 48. Bars show 41.5 and 39. How many times taller does the first bar look than it 'should'?
- About the same
- The difference looks about 13 times bigger than it is
- Exactly twice
Guess first, then reveal
Measured from 36, the bars are 5.5 and 3 units tall: an 83% difference on screen for a 6.4% difference in the data. 83 ÷ 6.4 ≈ 13: a lie factor of about 13.
Discover
Start with the chart as it opens and read the lie factor. Fix one problem at a time: start the axis at zero, show the whole year, add the error bars. After each fix, what does the chart now say about whether the new belt guide worked?
What the interactive shows (text version)
The critique opens with jams for May to September on an axis from 36: before about 41.5, after about 39, which looks like an 83% drop (lie factor about 13). Starting the axis at zero brings the lie factor to 1; showing all twelve months gives 41.8 before and 39.2 after (about 6.8%); error bars of ±4.2 show the change is within day-to-day spread.
Watch (optional)
Watch for: Watch for each trick (axes, ranges, scales) and say which one the chart critique starts with.
A short guide to truncated axes, cherry-picked ranges and other chart tricks, so you can avoid them in your own reports.
“How to spot a misleading graph - Lea Gaslowitz” by TED-Ed (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
Understand
Truncated axes
Bar length encodes the value, so a bar axis that doesn't start at zero exaggerates differences. Line charts can zoom to show small changes, but the axis numbers must be visible and the caption should say so.
Cherry-picked windows
Showing only the months that support a story hides what happened around them. Show the whole record, or explain why a window was chosen before looking at the results. Mark when an intervention happened.
Change versus spread
A 2.5-jam drop means little if daily counts vary by ±4. Error bars, raw points or a histogram of the noise let readers compare the change with the natural variation. 'Promising but not yet convincing' is an honest and useful conclusion.
Explain it another way
Intuitive
A photo can make a puddle look like a lake by zooming in and cropping out the edges. Charts can do the same with axes and ranges.
Technical
Common distortions: non-zero bar baselines, dual y-axes with arbitrary scaling, area or 3D effects that scale values quadratically, uneven time intervals, and smoothing that hides outliers. Each changes the visual effect without changing the data.
Mathematical
Lie factor = (visual relative change)/(data relative change). For a baseline b and values y₁ > y₂: L = y₂/(y₂ − b). As b approaches y₂ the lie factor grows without bound.
Applied
Many engineering organisations require full axes, units and uncertainty on charts in design reviews, because a single exaggerated chart can push a team into an expensive wrong decision.
Derivation: The lie factor
Effect in the data: the relative change (before − after)/after. For 41.5 → 39: 2.5/39 ≈ 0.064 (6.4%).
Effect in the graphic: bars are drawn from the axis baseline b, so the relative change in bar height is ((before − b) − (after − b))/(after − b) = (before − after)/(after − b).
With b = 36: 2.5/3 ≈ 0.83 (83%).
Lie factor = graphic effect ÷ data effect = (after)/(after − b) = 39/3 = 13.
With b = 0 the lie factor is exactly 1. That is why bar charts start at zero; line charts may zoom in, as long as the axis is clearly labelled and the zoom is the point.
Worked example 1
Compute the lie factor for three baselines.
def lie_factor(before, after, baseline):
data_change = (before - after) / after
visual_change = (before - after) / (after - baseline)
return visual_change / data_change
for b in [0, 30, 36, 38]:
print(b, round(lie_factor(41.5, 39, b), 2))
# 0 1.0
# 30 4.33
# 36 13.0
# 38 39.0Common mix-ups
A chart can only mislead if the numbers are wrong.
✓ Axes, ranges, scales and omissions can mislead with perfectly correct numbers.Error bars make charts look messy, so leave them out.
✓ They show whether a change is bigger than the natural variation: often the most important thing on the chart.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Find (or make) a misleading chart of engineering data. Redraw it honestly in Python, compute the original's lie factor, and write a two-sentence caption for the honest version that states the change and its uncertainty.
Reflect
Have you ever been convinced by a chart you now think was misleading? What gave it away?
Write your answer on paper or in your own notes. Lite never stores what you write.