TactivergeLite

Lite / Engineering Complex Systems / Week 35

Figures that tell the truth, including the uncertainty

Two bars, one taller. Are those error bars standard deviations, standard errors or 95% intervals? Your reader can't tell, and it changes everything.

About 35 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Most readers look at the figures first. A good figure lets them judge your claim in seconds; a careless one can make a 1% noise blip look like a breakthrough.

Predict

Two means with 95% confidence intervals that overlap slightly. Is the difference definitely not real?

  1. Yes: overlapping intervals mean no difference
  2. No: intervals can overlap a little even when the difference itself is clearly non-zero
  3. Yes, always
  4. Overlap means the data are wrong
Guess first, then reveal

The interval on the difference uses √(SE_A² + SE_B²), which is smaller than SE_A + SE_B. Two 95% intervals can overlap by up to about a quarter of their length while the difference is still distinguishable from zero. Plot or compute the difference directly.

Discover

Treat the 20 intervals as a figure. Change n and the confidence level and ask: what would a reader conclude from one interval alone? Then write the caption you would need for this exact figure (what the bars are, n, σ, the true value).

What the interactive shows (text version)

The coverage simulator draws 20 confidence intervals as bars around a true value of 50, marking misses. It shows that any single interval may miss, that bars shrink as n grows and widen with confidence level, and therefore that a figure's caption must state what the bars are, the sample size and the method.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Notice how the video phrases what an interval means; borrow that precision for your captions.

A second angle on what a 95% interval does and does not promise, including the common wrong reading.

“Confidence Intervals: Crash Course Statistics #20” by CrashCourse (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

Show the data when you can

With fewer than about 30 points per group, plot every point (a dot or strip plot) with the mean or median and its interval on top. Bar charts hide the distribution and can hide outliers, two-hump shapes and tiny samples. For many runs, histograms, box plots or violin plots show the shape.

Say what the bars are

SD shows run-to-run spread; SE shows uncertainty of the mean; a 95% CI is about twice the SE. The same data can look decisive or hopeless depending on which you draw. The caption must say which, plus n, the conditions and the statistic (mean or median).

Axes and comparisons

Bar charts should start at zero, because bar length encodes value. Point plots may zoom in, but mark the axis clearly. Put compared conditions next to each other on the same axis. For ratios such as speed-ups, a log axis treats 2× faster and 2× slower symmetrically.

No cherry-picking

Show all runs or say exactly which were excluded and why (the rule set in advance). Don't choose the seed or the run that looks best. If you show an example time series, say how it was chosen ('first run' or 'median run'). A figure regenerated from a script with a fixed seed can be checked by anyone.

Explain it another way

Intuitive

A figure is a witness. It should tell the whole truth, including how unsure it is, in a way that even a hurried reader can't misread.

Technical

Caption checklist: what is plotted, units, n per group, centre statistic, error-bar definition (SD, SE, CI and its level), conditions, data source or script, any exclusions.

Applied

Many journals now require that bar charts of small samples be replaced by plots showing individual data points, after studies showed bar charts often concealed very different underlying data.

Worked example 1

Write a caption for a plot of energy per night for P, PI and thermostat controllers.

'Heater energy per simulated night (kWh) for three controllers; dots are individual nights (n = 5 each, noise seeds 1–5), horizontal lines are means, bars are 95% CIs (normal approximation). Same weather file and comfort limits throughout. Generated by plot_energy.py at commit a1b2c3d.'

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. A figure shows error bars but the caption doesn't say what they are. Why is that a problem?

ms

Practice 3. A bar chart of speed-up starts its y-axis at 0.95, making 1.02 look twice the height of 0.99. What's wrong?

W

Apply it

Make the main figure for your term project from a script with a fixed seed. Write its full caption using the checklist. Ask a classmate what they conclude from the figure alone; if it differs from your conclusion, fix the figure.

Reflect

Which of your past charts would change most if you added honest uncertainty?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Anatomy of a technical manuscriptReviewing and revising: answer the critic →