Scatter Plots and Trend Lines

April 12, 2026

Problem

Plot height vs weight for 15 students. Show positive correlation trend line with equation.

Explanation

What does a scatter plot show?

A scatter plot displays two variables as points on an x-y plane. The pattern reveals the relationship: positive (up-right), negative (up-left), or no correlation (random cloud).

Trend lines

A trend line (line of best fit) summarizes the relationship. It's computed using least squares regression: y^=mx+b\hat{y} = mx + b.

Interpreting the scatter

  • Positive correlation: Points trend upward. As xx increases, yy tends to increase. (Height vs weight, study time vs grades.)
  • Negative correlation: Points trend downward. As xx increases, yy tends to decrease. (Price vs demand, age of car vs value.)
  • No correlation: Random scatter. No trend. (Shoe size vs GPA.)

The equation tells a story

If height vs weight gives y^=2.3x80\hat{y} = 2.3x - 80: for every 1 cm increase in height, weight increases by about 2.3 kg on average.

Try it in the visualization

Points are plotted with the trend line. The equation, rr-value, and R2R^2 are displayed. Toggle residuals to see the vertical distances minimized by the line.

Interactive Visualization

Parameters

1.50
3.00
1.00
15.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Scatter Plots and Trend Lines | MathSpin