# Graphs, Means and Error Bars

> Pick the graph by what sits on the horizontal axis (the x-axis), and build it so a reader can check every point: how far a mean can be trusted depends on how much the values vary and how many there are, and ±2 standard error bars show whether two means are likely different or whether the data cannot tell. Charles Darwin's 15 pairs of corn plants set the puzzle: is the gap between their two means real? Along the way you calculate mean, standard deviation, standard error, rate and percent change from the equations sheet, and read unknown DNA sizes from a simulated semi-log standard curve. Afterwards you can build a complete graph, calculate summary statistics, judge error-bar overlap, and describe data with numbers and units.

Course: AP® Biology exam preparation (Unit 2 Cells). Level: grades 7–12. About 25 minutes.
Lesson page (link this one when citing): https://stemhop.com/lessons/ap-graphs-error-bars/
Note: parts of this lesson are still being checked ("Under review").

## What you'll learn

- Choose a graph type from the x-axis variable (bar, line, scatter, histogram, box-and-whisker, pie, log-scale or dual y-axis) and build it with labelled axes, units, uniform scales, legends, accurate points and error bars.
- Calculate mean, sample standard deviation, standard error of the mean, mode, median, range, rate and percent change from the equations sheet, and separate centre, spread and precision.
- Use ±2 SE error bars to judge whether two sample means are likely different or whether the data cannot tell, and check the legend before reading any bar.
- Describe trends, specific points and relationships with numbers and units, and read unknown DNA fragment sizes from a semi-log standard curve.

**Charles Darwin grew 15 pairs of corn plants (*Zea mays*) in four pots, one cross-fertilised and one self-fertilised per pair. Measured to the nearest eighth of an inch, cross-fertilised plants averaged 20.19 inches and self-fertilised plants averaged 17.58 inches.**

That is a gap of about 2.6 inches. Did crossing make them taller, or could chance and individual variation produce it? Answering takes two AP® Biology tools: picking the right graph, and adding error bars to the means.

> **The one idea.** Pick the graph by the horizontal axis (**x-axis**), and build it so a reader can check every point. How far you can trust a **mean** (average) depends on how much the individual values vary (the **sample standard deviation**) and how many independent values there are (the **sample size**). The **standard error of the mean** divides that spread by the square root of the sample size. Draw **error bars** reaching two standard errors above and below each mean. When two means’ bars do not overlap, the difference is unlikely to be chance alone; when they overlap, these data cannot tell.
>
> *Scope:* the ±2 standard error rule compares independent groups, and it approximates a 95% confidence interval (explained below) only with 10 or more values per group. Tests such as the t-test are not on the equations sheet, and how a gel is run is not tested on the AP® Biology exam.

**Where this sits.** [Enzymes at Work](https://stemhop.com/lessons/enzymes-at-work/) gives a mean of three tests with a spread (±), and the [Math toolkit](https://stemhop.com/math-toolkit/) reviews rates and log scales. [Designing a Cell Biology Experiment](https://stemhop.com/lessons/cellbio-experimental-design/) shows why sample size counts independent runs, not pooled cells.

## Pick the graph from the x-axis

Choosing and building a graph is AP science practice 4.A, representing data. The **independent variable** (changed on purpose or sorting groups) goes on the **x-axis**; the **dependent variable** (measured outcome) goes on the vertical **y-axis**. What sits on the x-axis picks the graph.

| Data pattern | Graph type | Shows |
| --- | --- | --- |
| Categories on x | **Bar graph** | Group means or totals, with error bars |
| Continuous x or time | **Line graph** | Ordered change, points joined |
| Two continuous variables | **Scatter plot** | Relationship with a **trend line** (best-fit line) |
| One variable in bins | **Histogram** | Count per equal bin; touching bars |
| Group distributions | **Box-and-whisker plot** | Middle value or median (line), middle half (box), spread (whiskers) |
| Parts of one whole | **Pie chart** | Shares summing to 100% |
| Powers-of-ten range | **Log-scale graph** | Equal steps multiply by ten |
| Two y-units, one x | **Dual y-axis graph** | Two outcomes, left and right y-axes |

**Predict.** Look at Darwin’s 15 cross-fertilised and 15 self-fertilised corn plants. Which fits best: a line joining “cross-fertilised” to “self-fertilised”, or a bar graph of both means with error bars?

> **Check your prediction.** A bar graph. Plot both means with error bars. The x-axis holds two discrete categories with nothing between them; a line would wrongly imply intermediate treatments.

*Figure (AI-generated illustration).* Darwin grew 15 pairs of corn plants in four pots, one cross-fertilised and one self-fertilised plant per pair; the two pollination treatments are discrete categories with nothing between them, so their mean final heights belong in a bar graph, not joined by a line. Image: Naturalist line drawing of four terracotta pots on a bench, each holding corn plants in cross-fertilised and self-fertilised pairs marked by slate and sand plant tags, with a zoomed inset of one matched pair of a cross-fertilised and a self-fertilised plant and a gold vertical bracket marking measured final height.

**Misconception check.** “Every x-y table gets a line graph.” No. Lines imply intermediate x-values; joining categories invents data.

## Build it so a reader can check it

Free-response question 2 includes building a graph. Build Darwin’s bar graph so any reader can verify every point:

1. **Type:** two bars matching the categorical x-axis.
2. **Axes, units, legend:** x “Pollination treatment”, y “Final plant height (in)”. Add a **legend** (key matching symbols, lines or colours to groups) whenever multiple series appear.
3. **Uniform scale:** equal spacing for equal steps (0, 5, 10, 15, 20, 25 in). Mark skipped ranges with an **axis break** (zigzag); bar graphs of heights start at zero.
4. **Points and bars:** plot means accurately (20.19 and 17.58 in), add error bars when given, and define them in the legend.
5. **Stay inside the data:** extending a line past the last point is **extrapolation**; draw it dashed and label it a prediction.

**Misconception check.** “Line graphs always start at (0, 0).” Only when zero was measured. Forcing a line to the origin invents a point and warps the slope.

## Mean, spread and precision

[Enzymes at Work](https://stemhop.com/lessons/enzymes-at-work/) reported each result as a mean of 3 tests ± spread (for example, 100 ± 10%). Computing summary numbers is AP science practice 5.A, mathematical routines. The equations sheet answers three questions. Where do values centre (mean, x̄)? How much do individuals vary (sample standard deviation, *s*, often labelled **SD**)? How precisely does the sample mean estimate the true mean (standard error of the mean, **SE**)?

> **Equation card: Sample centre: arithmetic average.**
>
>     x̄ = (1/n) Σ x_i
>
> In words: x bar equals one over n, times the sum of all x sub i.
>
> - x̄: sample mean (data units)
> - n: sample size (observations)
> - Σ: sum of all
> - x_i: each value (data units)
>
> Sanity check: Sits between extremes and keeps data units.
> Try one number Darwin’s 15 cross-fertilised plants sum to 302.875 in: x̄ = 302.875 / 15 = 20.19 in.

> **Equation card: How widely individuals spread around the mean.**
>
>     s = √[ Σ (x_i − x̄)² / (n − 1) ]
>
> In words: s equals the square root of the sum of each value minus x bar, squared, divided by n minus one.
>
> - s: sample standard deviation (data units)
> - x_i: each value (data units)
> - x̄: sample mean (data units)
> - n: sample size (n − 1 adjusts for estimating x̄) (observations)
>
> Sanity check: Identical values give s = 0; squaring stops sign cancellation; the root restores units.
> Try one number Four simulated heights: 16, 19, 21, 24 in (x̄ = 20.0 in). Deviations −4, −1, +1, +4 square to 34 in². s = √(34 / 3) = 3.37 in: heights typically sit about 3.4 in from the mean.

> **Equation card: How precisely the sample mean estimates the true mean.**
>
>     SE_x̄ = s / √n
>
> In words: S E of x bar equals s divided by the square root of n.
>
> - SE_x̄: standard error of the mean (data units)
> - s: sample standard deviation (data units)
> - n: sample size (observations)
>
> Sanity check: SE < s whenever n > 1, and SE keeps the data units.
> Try one number Darwin’s 15 cross-fertilised plants (s = 3.62 in, n = 15): SE_x̄ = 3.62 / √15 = 0.93 in.

Three simpler sheet summaries: **mode** (most frequent value), **median** (middle value of sorted data) and **range** (largest minus smallest).

Summary statistics computed from Darwin’s 1876 heights (15 pairs):

| Group | n | x̄ (in) | s (in) | SE (in) | Range (in) |
| --- | --- | --- | --- | --- | --- |
| Cross-fertilised | 15 | 20.19 | 3.62 | 0.93 | 11.5 |
| Self-fertilised | 15 | 17.58 | 2.05 | 0.53 | 7.625 |

**Predict 2.** Two of Darwin’s 15 cross-fertilised plants stood only 12 in tall, while most sat near 21 to 23 in. Which is pulled down more: the mean or the median?

> **Check your prediction.** The mean. Including both 12-inch plants pulls the cross mean to 20.19 in, below its median of 21.5 in. Without them (n = 13), the mean rises to 21.45 in, nearly matching the median.

A value far from the rest is an **outlier**. Those two short plants widen cross-fertilised *s* (3.62 against 2.05 in). Never delete an outlier because it is inconvenient; check for recording errors, and otherwise keep and report it.

**Film transcript: What Error Bars Can Tell You**

### Film transcript: What Error Bars Can Tell You

Here are Darwin's two corn bars from last time. Cross-fertilised plants stand taller on average than self-fertilised plants. Do these two bars show a real difference, or just chance? A mean alone hides the individual plants. Look behind the bars at all thirty heights.

Plants vary widely, including two short cross-fertilised outliers. Never delete an outlier just because it looks inconvenient. Check for recording errors. If there are none, keep and report it. First, measure how widely individual plants scatter around their mean. That is the sample standard deviation, s. The wider the dots spread out, the larger s becomes. Notice those two short plants widen the cross group's spread. Now ask a different question. How precisely does a sample mean estimate the true average?

Divide s by the square root of sample size, n. That much smaller bracket is the standard error of the mean, SE. Suppose a hypothetical follow-up grows four times as many plants from the same seed stocks. Individual scatter barely changes, so s stays about the same. Because sample size sits under a square root, SE shrinks by half. To compare two independent means, reach two standard errors above and below each bar. With ten or more values per group, those bars approximate a 95% % confidence interval. When they do not overlap, the means are likely different. Now snap back to Darwin's real experiment, with 15 plants per group. His ±2 SE bars overlap slightly.

A classmate concludes that crossing made no difference. Does overlap support that claim? No. Overlapping bars never prove there is no difference. They only mean these bars cannot tell whether the true means differ. Individual spread or a modest sample size can hide a real gap. Here is the guiding idea.

Standard deviation measures individual spread, while standard error measures precision of the mean. Non-overlapping two-standard-error bars point to likely different means; overlapping bars mean these data cannot tell. Before reading any error bar, check the legend.

Identical T-shaped bars can show one standard deviation, one standard error, or two standard errors. Many AP Biology graphs use two standard errors, though some show standard deviation instead. And box-plot whiskers show data spread, never error bars. So read the legend first, every single time. Keep individual spread separate from precision of the mean. No overlap between two-standard-error bars signals a likely difference; overlap means the bars cannot tell.

From the film

- The sample standard deviation, s, measures how widely individual plants spread around their mean; the standard error, SE = s / √n, measures how precisely the sample mean estimates the true mean.
- Growing four times as many independent plants leaves s about the same but halves SE, because n sits under a square root: Darwin's SE of 0.93 and 0.53 in would fall to 0.47 and 0.26 in.
- For independent groups with 10 or more values each, ±2 SE bars approximate a 95% confidence interval: bars that do not overlap mean the means are likely different.
- Darwin's ±2 SE bars (18.32 to 22.06 in and 16.52 to 18.63 in) overlap slightly, so these bars cannot tell whether the means differ; overlap never proves no difference.
- Read the legend first: identical T-shaped bars can show ±1 SD, ±1 SE or ±2 SE, and box-plot whiskers show data spread, not error bars.

## What error bars can tell you

Comparing means with error bars is AP science practice 5.B, using confidence intervals and error bars. Error bars are drawn as T-shaped brackets above and below a mean. Many AP® Biology graphs use **±2 SE** (two standard errors on each side), but some use ±1 SD. For independent groups with n ≥ 10, ±2 SE sits close to a **95% confidence interval**: a range built by a rule that captures the true mean in about 95% of repeated samples.

The AP rule for two independent groups:

- **±2 SE bars do not overlap:** the means are **likely different** (unlikely by chance alone).
- **±2 SE bars overlap:** **these data cannot tell** whether the means differ. Overlap never proves “no difference”.

Darwin’s ±2 SE ranges (from unrounded SE: 2 × SE is 1.87 in cross, 1.06 in self):

| Group | x̄ (in) | x̄ ± 2 SE (in) |
| --- | --- | --- |
| Cross-fertilised | 20.19 | 18.32 to 22.06 |
| Self-fertilised | 17.58 | 16.52 to 18.63 |

**Predict 3.** Compare those ±2 SE ranges. A classmate writes: “Crossing made no difference to corn height.” Is that justified?

> **Check your prediction.** No. Cross reaches down to 18.32 in and self reaches up to 18.63 in, overlapping by about 0.3 in. These bars alone cannot tell whether the means differ; overlap never proves no effect. Going deeper shows what a direct test of the difference finds.

**Predict 4.** Suppose a hypothetical follow-up grows four times as many plants (n = 60 per group) from the same seed stocks. What happens to *s* and to *SE*, and do the ±2 SE bars still overlap?

> **Check your prediction.** Spread *s* stays about the same, *SE* is multiplied by 1/2 (since √4 = 2), and the bars stop overlapping. With *s* still 3.62 and 2.05 in at n = 60, SE falls to 0.47 in (cross) and 0.26 in (self), narrowing ±2 SE to 19.26 to 21.13 in and 17.05 to 18.10 in. More data sharpen precision without shrinking individual spread.

**Read the legend first.** Identical-looking T-bars mean different things.

| Legend | Measures | If n × 4 | AP overlap rule? |
| --- | --- | --- | --- |
| **±1 SD** (*s*) | Individual spread | Unchanged | No |
| **±1 SE** | Precision of mean | × 1/2 | Not directly; small gaps happen by chance |
| **±2 SE** | ~95% CI (n ≥ 10) | × 1/2 | Yes: no overlap = likely different; overlap = cannot tell |
| **Box-plot whiskers** | Data spread | Tracks extremes | No; not error bars |

**Misconception check.** “Error bars show range, and SD equals SE.” Neither holds. Range spans smallest to largest; SD measures individual spread; SE measures precision of the mean.

## Describe what the graph shows

Describing patterns from a graph is AP science practice 4.B, describing data. Use three parts:

1. **Variables and trend:** “As [x] rises from [A] to [B], [y] rises / falls / peaks…”
2. **Specific points with units:** quote at least two values with units.
3. **Comparison or uncertainty:** add percent change or note ±2 SE overlap.

Two sheet routines turn a graph into numbers:

- **Rate = dY/dt** (read “d Y d t”, change in measurement over change in time), the slope on a time graph. Peas consuming 0.40 mL oxygen by minute 2 and 1.60 mL by minute 10 give (1.60 − 0.40) / (10 − 2) = **0.15 mL/min**.
- **Percent change = [(final − initial) / initial] × 100%**. Always divide by the starting or reference value. Darwin’s cross mean (20.19 in) exceeds his self mean (17.58 in) by [(20.19 − 17.58) / 17.58] × 100% = **14.9%**.

Compare two readings of Darwin’s bar graph:

- *Vague:* “Cross-fertilised plants grew taller.”
- *Complete:* “Cross-fertilised corn averaged 20.19 in, 14.9% taller than self-fertilised corn at 17.58 in. Their ±2 SE bars (18.32 to 22.06 in and 16.52 to 18.63 in) overlap by 0.31 in, so these bars alone cannot show that the means differ.”

### Design problem

Simulated potato-core data in four sucrose solutions (n = 6 cores each):

| Sucrose (M) | Mean mass change (%) | ±2 SE (%) |
| --- | --- | --- |
| 0.0 | +14.2 | ±1.8 |
| 0.2 | +5.1 | ±2.0 |
| 0.4 | −3.8 | ±1.9 |
| 0.6 | −11.4 | ±2.2 |

Plan this graph: type, axis labels with units, uniform scales, error bars and trend line.

> **One way to do it.** - **Type:** scatter plot (or line graph) with a trend line (molarity is continuous).
> - **Axes:** x “Sucrose concentration (M)”; y “Mean mass change (%)”.
> - **Scales:** x 0.0 to 0.6 M by 0.2 M; y −15% to +20% by 5%, marking 0%.
> - **Bars and line:** plot all four means with ±2 SE bars (“Error bars = ±2 SE” in legend). Fit the trend line across 0.0 to 0.6 M only; dash any prediction beyond 0.6 M.

## Log scales and the DNA standard curve

Some data span powers of ten, such as DNA fragments from 500 to 10,000 **base pairs** (**bp**, paired nucleotides in double-stranded DNA). Linear axes give equal space to equal *additions* (1,000, 2,000, 3,000). A **logarithmic scale** (**log scale**) gives equal space to equal *multiplications by ten* (100, 1,000, 10,000; see the [Math toolkit](https://stemhop.com/math-toolkit/#log-scales)).

Watch midpoints. Halfway between 1,000 (10³) and 10,000 (10⁴) on a base-10 log axis is not 5,500. It is 10³·⁵, about **3,160**, since log10(3,160) (read “log base ten of 3,160”) is 3.5.

A **semi-log graph** (one linear axis, one log axis) builds a **standard curve** (a reference graph of known sizes used to read unknown values) for DNA fragments. Gel electrophoresis separates DNA by size and charge: smaller fragments move farther. This simulated exercise supports, and does not replace, hands-on lab time.

*Figure (AI-generated illustration).* Gel electrophoresis separates DNA by size and charge, with smaller fragments moving farther, so an unknown band's distance can be set beside a ladder of known sizes; the lesson's exercise is simulated. Image: Top-down schematic of a rectangular gel slab with two loading wells at the top, a left known DNA ladder lane showing six horizontal bands separated from largest near the well to smallest farther down, and a right unknown DNA sample lane with one highlighted gold band and a vertical migration-distance bracket, paired with a zoomed inset aligning the unknown band horizontally between two flanking known ladder bands.

Simulated DNA ladder of known sizes:

| Size (bp) | log10(size) | Simulated distance (mm) |
| --- | --- | --- |
| 500 | 2.70 | 45.9 |
| 1,000 | 3.00 | 39.9 |
| 2,000 | 3.30 | 33.9 |
| 3,000 | 3.48 | 30.8 |
| 5,000 | 3.70 | 26.0 |
| 10,000 | 4.00 | 19.3 |

*Simulated. Real gels give a straight line only over part of their range.*

Plot distance (mm) on a linear x-axis and size (bp) on a base-10 log y-axis. Each 20 mm step marks a tenfold size change, forming a straight downward **trend line**. Draw one straight best-fit line across 500 to 10,000 bp (never zigzag or extrapolate), then read unknown bands from it.

**Predict 5.** On this simulated curve, an unknown band runs 32.0 mm. Roughly what size is it, and why is a log-size axis easier to read than a linear axis?

> **Check your prediction.** About 2,500 bp. Distance 32.0 mm sits between 33.9 mm (2,000 bp) and 30.8 mm (3,000 bp), reading about 2,500 bp on the straight line. On a linear size axis, the 500 to 3,000 bp fragments crowd into a flat stretch near the bottom of a curve, making reading harder.

*Interactive on the lesson page:* Simulated DNA Standard Curve

## Before the exam

- **Darwin’s bars cannot settle it.** Cross-fertilised plants averaged 20.19 in (14.9% above self-fertilised at 17.58 in), yet ±2 SE bars overlap by 0.31 in. No overlap means likely different; overlap means cannot tell. Read the legend first.
- **Let the x-axis pick the graph.** Categories take bars; continuous values take a line or scatter plot with a trend line. Label axes with units, keep scales uniform, add legends, plot error bars, and stay inside measured data unless dashed as a prediction.
- **Separate centre, spread and precision.** Mean (x̄) locates centre; *s* (with *n − 1*) measures spread; *SE = s / √n* measures precision. Multiplying *n* by 4 multiplies *SE* by 1/2 without changing *s*.
- **Quote numbers and multiply on log axes.** Describe trends with units; equal log steps multiply by ten.

## Going deeper

*Beyond the AP® exam.*

### Darwin’s pairs and why overlap did not mean no effect

Darwin grew 15 matched pairs in four pots. In 1935, Ronald Fisher analysed the 15 within-pair differences (cross minus self) in *The Design of Experiments*. Thirteen of 15 pairs favoured cross-fertilisation, with a mean difference of 2.62 in (*s* = 4.72 in, *SE* = 1.22 in). Its ±2 SE range (0.18 to 5.05 in) barely excludes zero. Fisher’s paired *t* of 2.148 (14 degrees of freedom) just exceeds the 5% point: significant, “though barely so” (*p* ≈ 0.0497, computed from *t*). Treating the plants as two independent groups gives *p* ≈ 0.02, so pairing did not sharpen this test. The overlap misled because the standard error of a difference (1.07 in here) is smaller than the two SEs added (1.46 in). Slightly overlapping ±2 SE bars are a conservative check.

### Why ±2 SE breaks down at tiny sample sizes

In 2007, Geoff Cumming, Fiona Fidler and David Vaux set out rules of thumb for reading error bars in biology. For independent groups with *n* ≥ 10, ±2 SE sits close to a 95% confidence interval, and non-overlapping ±2 SE bars imply *p* well below 0.05. At *n* = 3, the true 95% interval exceeds ±4 SE, so ±2 SE looks too narrow. The rule also assumes independent groups, not paired designs.

### What n should count

In *SE = s / √n*, *n* counts independent experimental units (pots or dishes), not subsamples inside one dish. Treating 200 cells from one dish as *n* = 200 shrinks *SE* falsely. See [Designing a Cell Biology Experiment](https://stemhop.com/lessons/cellbio-experimental-design/).

---

From STEMhop (https://stemhop.com), free lessons by Christopher Deppmann. Lesson text © the authors. Practice questions: https://stemhop.com/lessons/ap-graphs-error-bars/
