Back to Lesson

Teacher Guide: Introduction to Regression

Learn how to find the best-fitting line through data points and make predictions using linear regression.

Use this lesson with your class

Free, no student accounts needed.

Share with students

Students open the lesson and practise with instant feedback.

Printable worksheet

All practice problems on paper, with a separate answer key.

Class quiz

10 questions on Regression. Students join with a name, you see everyone's score.

For Teachers

Learning Objectives
  • Define linear regression and explain its purpose
  • Calculate the slope of a line from two points
  • Write the equation of a regression line in the form
  • Use a regression equation to make predictions
  • Interpret the meaning of slope and y-intercept in real-world contexts
Prerequisites
  • Understanding of coordinate planes and plotting points
  • Ability to calculate slope using rise over run
  • Familiarity with linear equations in slope-intercept form
  • Basic understanding of scatter plots
Discussion Starters
  • 1. Why might predicting very far into the future using a regression line be unreliable?
  • 2. Can you think of two variables in your life that might have a linear relationship?
  • 3. What is the difference between correlation and causation? Give an example.
  • 4. How might businesses use regression to make decisions?
Common Misconceptions

The regression line must pass through every data point

A higher slope always means a better relationship

Differentiation Ideas

For Struggling Students:

  • Start with data that perfectly fits a line before introducing scatter
  • Use only positive slopes initially
  • Provide slope formula reference cards
  • Use concrete, relatable examples (height vs. shoe size)

For On-Level Students:

  • Work with realistic scattered data
  • Include negative slopes (inverse relationships)
  • Practice both finding equations and making predictions
  • Analyze the meaning of slope in context

For Advanced Students:

  • Introduce the concept of residuals
  • Discuss interpolation vs. extrapolation
  • Connect to correlation coefficient ()
  • Work with technology to fit regression lines to larger datasets
Standards Alignment
  • HSS.ID.B.6 (CCSS.MATH.CONTENT.HSS.ID.B.6)

    Represent data on two quantitative variables on a scatter plot, and describe how the variables are related

  • HSS.ID.B.6.C (CCSS.MATH.CONTENT.HSS.ID.B.6.C)

    Fit a linear function for a scatter plot that suggests a linear association

  • HSS.ID.C.7 (CCSS.MATH.CONTENT.HSS.ID.C.7)

    Interpret the slope and the intercept of a linear model in the context of the data

Lesson Resources
  • visualInteractive Regression Plotter

    Students plot points and see the line of best fit adjust automatically

  • activityReal Data Analysis

    Analyze real datasets and make predictions using regression

  • worksheetRegression Practice Problems

    Calculate slopes, find equations, and make predictions

Lesson Content

Everything students see: definition, examples, common mistakes, applications. Tap to open.

Definition

Linear regression is a statistical method used to find the straight line that best fits a set of data points. This line is called the line of best fit or regression line.
The equation of a regression line is:
where:
  • is the slope (how steep the line is)
  • is the y-intercept (where the line crosses the y-axis)
  • is the input variable (independent variable)
  • is the predicted output (dependent variable)
The goal of regression is to minimize the total distance between the data points and the line, allowing us to make predictions for new values of .

Worked Examples

A study shows that for every additional hour of studying, test scores increase by 5 points. If a student who studies 0 hours scores 50 points, what is the regression equation?

1

Identify the slope

Score increases by 5 points per hour of studying

2

Identify the y-intercept

When hours, the score is 50 points

3

Write the equation

Substitute and into

Common Mistakes

Confusing the order of subtraction in the slope formula

Why it's wrong: Using instead of gives the reciprocal of the correct slope.

Correct: Remember: slope is 'rise over run' - the change in (vertical) divided by the change in (horizontal).

Extrapolating too far beyond the data

Why it's wrong: The regression line is only reliable within the range of your data. Predicting far outside this range can lead to unrealistic results.

Correct: Be cautious about predictions for values much larger or smaller than your original data points.

Assuming correlation means causation

Why it's wrong: Just because two variables are related (correlated) does not mean one causes the other.

Correct: Regression shows relationships, but additional analysis is needed to establish causation.

Why It Matters

Linear regression is one of the most widely used tools in data science and statistics:
  • Business: Predicting sales based on advertising spending
  • Medicine: Estimating drug dosage based on patient weight
  • Economics: Forecasting GDP growth from various indicators
  • Sports: Projecting athlete performance from training metrics
  • Science: Modeling relationships between variables in experiments
Understanding regression helps you make data-driven decisions and predictions based on real evidence rather than guesswork.

Real World Applications

Predicting House Prices

Real estate analysts use regression to estimate home values based on factors like square footage, number of bedrooms, and location.

Example:

If homes sell for approximately 150 dollars per square foot with a base price of 50000 dollars, the equation might be , where is square footage.

1Try It Yourself

A real estate model shows: , where is square feet and is price in dollars.

What is the predicted price for a 1500 square foot home?

Step 1: Write the mathematical expression

Substitute into the equation:

Fuel Efficiency Analysis

Automotive engineers use regression to understand how car weight affects fuel consumption.

Example:

Data might show that fuel efficiency decreases by 0.005 km/L for every kilogram of additional weight.

2Try It Yourself

A car model shows: , where is weight in kg and is fuel efficiency in km/L.

What efficiency is predicted for a car weighing 1200 kg?

Step 1: Write the mathematical expression

Calculate:

Key Takeaways

  • 1Linear regression finds the straight line that best fits a set of data points
  • 2The regression equation is , where is the slope and is the y-intercept
  • 3Slope is calculated as (rise over run)
  • 4Once you have the equation, you can make predictions by substituting values for
  • 5Regression shows correlation, but correlation does not imply causation

Frequently Asked Questions

What if my data points do not fall exactly on a line?

Real data rarely falls perfectly on a line. The regression line minimizes the total squared distance from all points to the line. Some points will be above the line, some below - this is normal!

How do I know if my regression line is a good fit?

The value (coefficient of determination) measures how well the line fits. It ranges from 0 to 1 - higher values mean better fit. You will learn more about this in the lesson on correlation.

Can regression be used for non-linear relationships?

Linear regression only works for straight-line relationships. For curved relationships, you need polynomial regression or other advanced methods.

Glossary

Linear regression
A statistical method for finding the best-fitting straight line through data points
Line of best fit
The straight line that minimizes the distance between itself and all data points
Slope
The steepness of the line, representing the rate of change ( in )
Y-intercept
The point where the line crosses the y-axis ( in )
Prediction
Using the regression equation to estimate for a given value of
Independent variable
The input variable () that we use to make predictions
Dependent variable
The output variable () that we are trying to predict

More in This Topic