Sub topic 12
Adding Trendlines and Error Bars
Assume you already know how to insert a chart, select a data range, and use the Setup and Customize tabs in the chart editor. This chapter uses a scatter chart because it makes the relationship between two numeric variables easy to see.
What trendlines and error bars show
A trendline is a calculated line that summarizes the relationship between variables. It can show whether values generally increase, decrease, or follow a curve. A trendline does not replace the original data points.
An error bar shows uncertainty or variation around a data point. It can represent a fixed amount, a percentage, or a statistical measure such as standard deviation.
Add a trendline
- Select a chart and open the chart editor.
- Select Customize, then Series.
- Choose the series to which you want to add the trendline.
- Turn on Trendline.
- Choose a trendline type.
| Trendline type | Use it when |
|---|---|
| Linear | The values change at a fairly steady rate. |
| Exponential | The values grow or fall by changing percentages. |
| Polynomial | The pattern bends and has one or more curves. |
| Moving average | You want to smooth short-term fluctuations. |
For a linear trendline, you can display the equation and the R² value. R² describes how closely the line fits the data. A value closer to 1 indicates a closer fit, but it does not prove that one variable causes the other.
Use a trendline only when the chart has a meaningful numeric relationship. A line through unrelated categories can suggest a pattern that does not exist.
Add error bars
- Select the chart and open Customize > Series.
- Choose the series.
- Turn on Error bars.
- Choose a type:
- Constant adds the same amount to every point.
- Percent uses the same percentage of each value.
- Standard deviation shows variation based on the series.
The correct choice depends on how the data was collected. For example, a constant error bar might represent an instrument with a known measurement tolerance. Standard deviation is useful when repeated observations vary around an average.
Error bars need a clear explanation in the chart or its surrounding text. Readers should know whether they represent measurement uncertainty, a confidence interval, or variation in the observations.
> callout note > A trendline describes a fitted pattern. An error bar describes uncertainty or spread. Do not use one as a substitute for the other.
Common problems
- If Trendline is unavailable, change to a supported chart type or select a numeric series.
- If the line looks misleading, check that the horizontal axis contains numeric values rather than text labels.
- If error bars appear too large, verify the unit and type of error. A percentage and a standard deviation can produce very different results.
- Avoid comparing trendline equations from datasets with different scales or time periods without explaining the difference.
Exercise
Monthly website visits are 100, 120, 150, 180, and 210. Which trendline type should you try first, and what should you check before interpreting it?
Show answer
Try a linear trendline first because the values rise at a roughly steady amount. Check the plotted points, the equation, and the R² value, and remember that the trendline shows association rather than proof of cause.