Applied Mathematics for Science
CoreStatistics: correlation & regression

Correlation & Line of Best Fit

Read a scatter plot, describe how two measured variables move together (direction and strength), and use a line of best fit to predict without confusing correlation with cause.

Why this matters

Science almost never studies one number at a time. It asks whether two things move together: does more exercise go with lower resting heart rate, does a higher dose go with a bigger effect, does more screen time go with less sleep. A scatter plot puts the pairs on a graph, the correlation coefficient r turns the pattern into one number from -1 to +1 (direction and strength), and a line of best fit lets you predict a value you did not measure. Epidemiologists use correlation to spot links between exposures and disease, then design studies to test them. Biostatisticians fit regression lines to clinical data to estimate how much an outcome changes per unit of treatment. Lab scientists build standard curves (a line of best fit) to turn a machine reading into a concentration. Doctors reading a study need to know the one rule that keeps all of this honest: correlation does not prove causation, because a hidden third variable can make two unrelated things rise together.

Standards this builds
  • Common Core · HSS-ID.B.6Represent two quantitative variables on a scatter plot and describe how they are related, including fitting a function such as a line to the data.
  • Common Core · HSS-ID.C.8Compute (using technology) and interpret the correlation coefficient of a linear fit as a measure of the direction and strength of the relationship.
  • Common Core · HSS-IC.B.6Evaluate reports based on data, including whether a claimed relationship is causal or only a correlation.
  • Ohio · Ohio HS S.ID.6Fit a linear model to bivariate data shown on a scatter plot and use it to solve problems and make predictions.
  • NGSS · SEP-4Analyzing and Interpreting Data: identify relationships in data, including trends and correlations, and distinguish correlation from causation.
Builds on (2 levels back)inferred · high confidence
  • Plot ordered pairs on a coordinate grid: A scatter plot is just many (x, y) points, so students must place a point from its two coordinates before they can read a cloud of them.
  • Read slope and use y = mx + b: A line of best fit is a linear equation; predicting from it means substituting an x value and computing y.
  • Read values off a graph's axes: Direction, strength, and predictions are all read from the axes, so students must trace a point to its x and y values.

Prerequisites are inferred: pending teacher review.

Re-learn the skill with worked practice and clear examples.

Describe a scatter plot in three moves: name the direction (do points rise, fall, or drift with no pattern), judge the strength with r (how tightly the points hug a line, from -1 to +1), and, when there is a clear trend, draw a line of best fit and use it to predict. A rising cloud is positive, a falling cloud is negative, and a shapeless cloud is near zero.

Step 1: Name the direction
Scan the cloud left to right. If the points tend to rise, the correlation is positive; if they tend to fall, it is negative; if there is no clear up-or-down drift, it is near zero (no correlation).
Three small scatter plots: a rising positive cloud, a falling negative cloud, and a shapeless no-correlation cloud
Step 2: Judge the strength with r
The correlation coefficient r runs from -1 to +1. The sign gives direction (plus for rising, minus for falling); the size gives strength. r near 1 or -1 means the points hug a line tightly; r near 0 means the points barely follow any line. So r = -0.9 is a strong negative link, and r = 0.1 is a weak one.
Step 3: Draw a line of best fit and predict
When the points show a clear trend, the line of best fit is the straight line that comes closest to all of them. If that line is y = 2x + 3, you predict for a new x by substituting it: at x = 6, y = 2(6) + 3 = 15. That is a prediction for a subject you did not measure.
Practice

Using the scatter plot shown, how would you describe the correlation between the two variables?

Reviewed
A scatter plot whose points rise steadily from lower left to upper right
  1. A.Strong positive correlation
  2. B.Strong negative correlation
  3. C.No correlation
  4. D.The point at the top is an error
Show the worked solution ▾

Answer: A. Strong positive correlation

  1. Step 1: Scan left to right: As x increases, the points move steadily upward, so the direction is positive.
  2. Step 2: Judge the tightness: The points hug a rising line closely with no scatter against it, so the relationship is strong.

Why it's right: The points climb tightly from lower left to upper right, which is a strong positive correlation.

Why the others miss:
  • B: Negative means the points fall as x rises; here they rise.
  • C: No correlation would be a shapeless cloud, not a clear rising line.
  • D: The top point continues the same rising pattern, so it is not an error.

Aligned to Common Core HSS-ID.C.8: interpret direction and strength · reading level ~grade 9

A study reports a correlation coefficient of r = -0.85 between hours of screen time and hours of sleep. What does this tell you?

Reviewed
  1. A.A weak link, because the number is negative
  2. B.A strong link where more screen time goes with less sleep
  3. C.A strong link where more screen time goes with more sleep
  4. D.No relationship, because r is below zero
Show the worked solution ▾

Answer: B. A strong link where more screen time goes with less sleep

  1. Step 1: Read the sign: The sign is negative, so as one variable goes up the other goes down: more screen time goes with less sleep.
  2. Step 2: Read the size: The size is 0.85, which is close to 1, so the relationship is strong.

Why it's right: r = -0.85 has a negative sign (more screen time, less sleep) and a large size (0.85 is close to 1), so it is a strong negative relationship.

Why the others miss:
  • A: A negative sign does not mean weak; strength comes from how close the size is to 1.
  • C: The negative sign means the variables move in opposite directions, not the same direction.
  • D: A negative r is a real relationship; only r near 0 means little to no relationship.

Aligned to Common Core HSS-ID.C.8: interpret the correlation coefficient · reading level ~grade 9

The line of best fit for a data set is y = 2x + 3. Use the figure to predict y when x = 6.

Reviewed
A scatter plot with the line of best fit y = 2x + 3 drawn through the rising points
  1. A.9
  2. B.11
  3. C.15
  4. D.18
Show the worked solution ▾

Answer: C. 15

  1. Step 1: Substitute x: Put x = 6 into the line: y = 2(6) + 3.
  2. Step 2: Compute: 2 times 6 is 12, and 12 + 3 = 15.

Why it's right: Substituting x = 6 into y = 2x + 3 gives y = 2(6) + 3 = 12 + 3 = 15.

Why the others miss:
  • A: This is 2(3) + 3; it uses x = 3, not x = 6.
  • B: This is 2(4) + 3; it uses x = 4, not x = 6.
  • D: This adds 6 to 2(6) instead of adding the constant 3.

Aligned to Ohio HS S.ID.6: use a linear model to predict · reading level ~grade 9

Where you'd see this
  • A nurse-researcher describes a scatter plot of dose vs. blood level as a strong positive correlation before trusting a prediction from it.
  • A student uses the line of best fit y = 2x + 3 to predict a value at x = 6 that was never measured directly.
  • A lab reads r = -0.85 for screen time vs. sleep and reports it as a strong negative link, not proof that screens cause sleep loss.
Video library
Watch: reading a scatter plot and its trend
Constructing a scatter plot | Regression | Probability and Statistics | Khan Academy
Khan Academy · 2:31
Watch: what r means and correlation vs. causation
Correlation Doesn't Equal Causation: Crash Course Statistics #8
CrashCourse · 12:18
Extension: fitting a line and using it to predict
Graphing Data by Hand
Bozeman Science · 5:39
Guided notes

Fill these in as you work through the lesson.

Big idea: A scatter plot shows how two measured variables move together; the correlation coefficient r (from -1 to +1) gives the direction and strength, a line of best fit lets you predict, and a correlation never proves causation on its own.
Key terms: write the meaning
  • Scatter plot (one point per subject, from two measurements):  
  • Correlation coefficient (r) (a number from -1 to +1: direction and strength):  
  • Line of best fit (the line closest to all the points; used to predict):  
  • Correlation is not causation (a hidden third variable can link two things):  
The rule

The correlation coefficient r runs from   to  ; its sign gives the   and its size gives the  , and a strong correlation still does not prove  .

Check yourself
  1. How do you tell a positive correlation from a negative one just by looking at the cloud of points? 
  2. Which is stronger, r = 0.5 or r = -0.9, and why does the sign not decide strength? 
  3. Give an example of two variables that are correlated because of a hidden third variable, not because one causes the other. 
Work one example

The line of best fit is y = 2x + 3. To predict y at x = 6, substitute: y = 2(6) + 3 = 12 + 3 = ____.

 
Illustrated glossary

The vocabulary of this topic, shown in the way you will meet it.

Scatter plot
A graph that plots one point for each subject, using two measured values as the x and y coordinates, to show how the two variables relate.
A scatter plot with labeled x and y axes and six points, each standing for one subject
In context: A researcher plots each student as a point (hours of sleep on the x-axis, test score on the y-axis) so the whole class becomes a cloud of points on one scatter plot.
Correlation coefficient (r)
A single number from -1 to +1 that tells the direction (sign) and strength (how close to a line) of a straight-line relationship between two variables.
A number line for r running from -1 (perfect negative) through 0 (none) to +1 (perfect positive)
In context: An r of +0.9 tells the scientist the points climb tightly along a rising line, while an r near 0 tells her the two variables barely track each other.
Positive vs. negative correlation
Positive means the two variables rise together (as x goes up, y goes up); negative means one goes up as the other goes down.
In context: Height and shoe size show positive correlation, while outdoor temperature and heating cost show negative correlation.
Line of best fit (linear regression)
The single straight line drawn through a scatter plot that comes closest to all the points, used to summarize the trend and to predict.
In context: Reading up from x = 6 to the line of best fit and across to the y-axis gives the predicted y value for a subject you did not actually measure.
Correlation is not causation
Two variables moving together does not prove one causes the other; a hidden third variable, or pure chance, can create the link.
In context: Ice cream sales and drowning both rise in the same months, but neither causes the other: hot weather is the third variable that drives both.