SECTION 1
Where Did This Idea Come From?
People have been collecting data for thousands of years. Farmers tracked rainfall. Traders recorded prices. But for a long time, nobody had a good way to see patterns hiding inside all those numbers.
Drawing a line through data points is one of the simplest and most powerful tools in all of math and science. It lets you summarize messy, real-world information with a single straight line. That line can then help you make predictions about things you haven't measured yet.
1600s • Early Data Tables
1686 • First Scatter Plot
1805 • Least Squares Method
Today • Lines of Fit Everywhere
The big question this lesson answers is: How do you draw a reasonable line through a cloud of data points, and what does that line actually tell you?
SECTION 2
Core Ideas You Need to Know
Before you start drawing lines, let's make sure you understand a few key ideas. These are the building blocks for the whole lesson.
Scatter Plot
Line of Fit
Slope
Y-Intercept
Trend
KEY TAKEAWAY
SECTION 3
Seeing the Line in a Scatter Plot
The best way to understand a line of fit is to see one in action. Below is a scatter plot that shows how many hours students studied and the test scores they earned. Notice how the dots roughly follow an upward pattern.
Look at the diagram above. The dots are not in a perfect line. Some are a little above the pink line, and some are a little below it. That's totally normal! Real data is messy. The line of fit just captures the overall direction the data is heading.
How to Draw a Line of Fit by Hand
SECTION 4
The Equation Behind the Line
Every straight line can be described by a simple equation. Once you know this equation, you can plug in any x-value and predict the matching y-value.
SLOPE-INTERCEPT FORM
y = the output (what you predict) • m = slope (rate of change) • x = the input • b = y-intercept (starting value)
SLOPE FORMULA
Pick two points on your line (not data points—points on the line). Subtract the y-values, then subtract the x-values. Divide.
The slope tells you the speed of change. In our study-hours example, a slope of 8 would mean that for every extra hour a student studies, their test score goes up by about 8 points.
The y-intercept tells you the starting point. If b = 55, that means a student who studies 0 hours would score about 55 on the test. It's the score you "start with" before studying kicks in.
Does the y-intercept always make sense?
SECTION 5
What Slope and Intercept Look Like
Slope and intercept aren't just numbers—they tell a story. Let's see what different slopes look like on a graph and what they mean in real life.
| Real-World Example | Slope Meaning | Y-Intercept Meaning |
|---|---|---|
| Hours studied → Test score | Points gained per extra hour | Score with zero hours of study |
| Age of a car → Value in dollars | Dollars lost per year (negative!) | The price when the car was brand new |
| Minutes exercising → Calories burned | Calories burned per minute | Calories burned at rest (before exercising) |
Interpreting slope and y-intercept in everyday situations
SECTION 6
Step-by-Step: Fitting a Line and Interpreting It
A lemonade stand owner tracked the temperature outside and how many cups of lemonade she sold. Here is her data:
| Temperature (°F) | Cups Sold |
|---|---|
| 60 | 10 |
| 70 | 18 |
| 75 | 20 |
| 80 | 25 |
| 90 | 35 |
| 95 | 38 |
Lemonade Stand: Fitting a Line
- 1
Step 1 — Plot the Points
Put temperature on the x-axis and cups sold on the y-axis. Plot each pair as a dot on graph paper or a coordinate plane. - 2
Step 2 — Draw a Line of Fit
Use a ruler to draw a straight line through the middle of the dots. Try to have about the same number of points above and below the line. Our line passes close to the points (60, 10) and (90, 34). - 3
Step 3 — Find the Slope
Pick two points on the line (not necessarily data points). We'll use (60, 10) and (90, 34). Slope = (34 − 10) ÷ (90 − 60) = 24 ÷ 30 = 0.8m = 0.8 cups per degree - 4
Step 4 — Find the Y-Intercept
Use the slope and one point in y = mx + b. Plug in (60, 10): 10 = 0.8 × 60 + b → 10 = 48 + b → b = 10 − 48 = −38.b = −38 - 5
Step 5 — Write the Equation
Our line of fit is y = 0.8x − 38.y = 0.8x − 38 - 6
Step 6 — Interpret in Context
Slope: For every 1°F increase in temperature, the stand sells about 0.8 more cups of lemonade. Y-intercept: At 0°F, the model predicts −38 cups, which doesn't make sense. This tells us the model only works for temperatures near the data we collected.
SECTION 7
When Lines of Fit Work—and When They Don't
A line of fit is an awesome tool, but it isn't magic. Let's compare what it does well and where it falls short.
| Strengths ✅ | Limitations ⚠️ |
|---|---|
| Quick to draw—you only need a ruler | Different people may draw slightly different lines |
| Good for making predictions within the data range | Predictions far outside the data range can be wild (like −38 cups!) |
| Easy to interpret slope and intercept in context | Only works when the data actually follows a straight-line pattern |
| Summarizes a lot of data with one equation | It ignores outliers (unusual data points) that might matter |
Strengths vs. Limitations of informal line fitting
KEEP THIS IN MIND
SECTION 8
From Informal Lines to Formal Methods
You just learned how to fit a line informally—by eyeballing it with a ruler. In later math courses, you'll learn a formula that finds the absolute best line through the data. Here's a quick preview.
| Feature | Informal Line of Fit (This Lesson) | Least-Squares Regression (Future Course) |
|---|---|---|
| How you draw it | By eye, using a ruler | Calculated with a formula or computer |
| Accuracy | Good estimate | Mathematically the best possible line |
| Everyone gets the same answer? | No—lines will vary slightly | Yes—the formula gives one answer |
| Tools needed | Pencil and ruler | Calculator or software |
Informal vs. formal line fitting
The skills you're building right now—understanding slope, intercept, and trend—are the foundation for all of that future work. You're learning the thinking; the formulas come later.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
A scatter plot shows the relationship between two variables as a cloud of dots. When the dots follow a roughly straight pattern, you can draw a line of fit through the middle of them. This line is described by the equation y = mx + b, where m (the slope) tells you the rate of change—how much y changes for each 1-unit increase in x—and b (the y-intercept) tells you the starting value when x equals zero.
Always interpret slope and intercept in context—use the real-world units from the problem. A positive slope means the line rises, a negative slope means it falls, and a slope of zero means no change. Remember, your line is an estimate—predictions are most trustworthy within the range of your original data.