Allday Education

Trend Lines: Predictions & Equations

A trend line is a straight line drawn through the middle of a scatter plot's point cloud — roughly as many points above the line as below it. It follows the overall pattern of the data, and it lets you do something the raw points cannot: predict values the data doesn't show.

Because a trend line is just a line, everything you know about y=mx+by = mx + b applies. You can read a prediction straight off the graph, or write the line's equation and calculate the prediction exactly.

Predicting with the line

To predict yy for some xx: find that xx on the horizontal axis, go straight up to the trend line, then straight across to the yy-axis. Use the height of the line, not the height of a nearby data point — the line is the pattern, and predictions come from the pattern.

In the scatter plot below the points scatter on both sides of the straight trend line. To predict, you follow the line, not the dots.

Predictions are estimates. The trend line says what the data tends to do, so a prediction of 1616 means about 1616, not exactly 1616.

012345678246810121416

Writing the equation

Read a trend line the same way you read any line. The yy-intercept bb is where the line crosses the yy-axis. The slope mm comes from two points that sit on the line, using y2y1x2x1\displaystyle \frac{y_2 - y_1}{x_2 - x_1}. Pick spots where the line crosses grid intersections — the data points themselves usually do not sit on the line.

Always check the sign of the slope against the picture. A line that falls from left to right must have a negative slope, and it goes with a negative association in the data.

Working backward from a prediction

Sometimes you know the output and need the input — the trend line predicts 1919 free throws, so how many hours of practice is that? Substitute the known value for yy in the equation and solve for xx. It is a two-step equation from there.

Worked examples

Example 1: predict from the equation

A trend line has the equation y=3x+5y = 3x + 5. Predict yy when x=4x = 4.

Start with the trend line's equationy=3x+5y = 3x + 5
Substitute 44 for xxy=3(4)+5y = 3(4) + 5
Simplifyy=17y = 17

Answer: y=17y = 17 (about 1717 — a trend-line prediction is an estimate)

Example 2: write the equation from the graph

A trend line crosses the yy-axis at 44 and passes through the point (5,14)(5, 14). Write its equation.

Read the yy-intercept where the line crosses the yy-axisb=4b = 4
Use two points on the line, (0,4)(0, 4) and (5,14)(5, 14), in y2y1x2x1\displaystyle \frac{y_2 - y_1}{x_2 - x_1}m=14450=2m = \dfrac{14 - 4}{5 - 0} = 2
Write the equation in slope-intercept formy=2x+4y = 2x + 4

Answer: y=2x+4y = 2x + 4

Example 3: work backward from a prediction

A trend line has the equation y=2x+4y = 2x + 4. For what xx-value does the line predict y=18y = 18?

Substitute 1818 for yy18=2x+418 = 2x + 4
Subtract 44 from both sides14=2x14 = 2x
Divide both sides by 22x=7x = 7

Answer: x=7x = 7

Try one yourself

012345678246810121416182022

Common questions

Do the data points have to be on the trend line?

No. A good trend line passes through the middle of the cloud with points scattered on both sides. Often not a single data point sits exactly on it — that is normal.

My prediction is different from an actual data point at that x-value. Which is right?

For a prediction question, use the line. A data point is one real measurement; the trend line is the overall pattern. The question is asking what the pattern predicts, not what one point happened to be.

Which two points should I use to find the slope?

Two points that are actually on the line, ideally where it crosses grid intersections, and reasonably far apart. Far-apart points make the rise and run easier to count and small reading errors matter less.

Can I use the trend line to predict values way past the data?

Be careful. Close to the data, predictions are reasonable. Far beyond it, you are assuming the pattern keeps going — a sunflower's growth line cannot climb forever. Extend predictions a little past the data, not a lot.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1