Teacher Guide: Linear Regression
Learn how to find the line of best fit for data and use it to make predictions.
Use this lesson with your class
Free, no student accounts needed.
Share with students
Students open the lesson and practise with instant feedback.
Class quiz
10 questions on Regression. Students join with a name, you see everyone's score.
For Teachers
- Understand the concept of linear regression and line of best fit
- Calculate slope and y-intercept using the least squares method
- Interpret the meaning of slope and y-intercept in context
- Use the regression equation to make predictions
- Recognize limitations of linear regression including extrapolation risks
- • Understanding of scatter plots and correlation
- • Knowledge of linear equations in slope-intercept form
- • Basic understanding of mean and summation notation
- • Familiarity with coordinate graphing
- 1. Why do you think the method is called 'least squares'? What are we making 'least'?
- 2. Can you think of a real situation where two variables are related but one doesn't cause the other?
- 3. When would it be dangerous to extrapolate a regression line far beyond your data?
- 4. How would you decide if linear regression is a good fit for your data?
The regression line must pass through at least two data points
Remediation: Show examples where the line doesn't pass through any points. Emphasize that the line minimizes total error, not individual distances.
A strong correlation means we can predict perfectly
Remediation: Even with strong correlation, there's always some error. Discuss residuals and why perfect prediction is rarely possible.
The y-intercept always has a meaningful interpretation
Remediation: Discuss cases where x=0 is meaningless or outside the data range. For example, predicting height at age 0 or weight at height 0.
For Struggling Students:
- • Start with simple data sets (3-4 points) with nice numbers
- • Provide graphing technology to calculate regression automatically
- • Focus on interpretation before calculation
- • Use visual representations to show what 'best fit' means
For On-Level Students:
- • Calculate regression by hand for small data sets
- • Make predictions and compare to actual values
- • Analyze residuals to evaluate fit quality
- • Apply regression to real-world scenarios
For Advanced Students:
- • Explore the derivation of least squares formulas
- • Calculate and interpret coefficient of determination ()
- • Compare regression lines from different data sets
- • Investigate when residual plots indicate a poor linear fit
- 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
- visualInteractive Regression Tool
Students plot points and see the best fit line calculated in real time
- activityData Collection Project
Collect real data (height vs. arm span, study time vs. grades) and find regression lines
- worksheetRegression Calculation Practice
Practice calculating slope, intercept, and making predictions
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Lesson Content
Everything students see: definition, examples, common mistakes, applications. Tap to open.
Definition
- is the slope (how much changes for each unit increase in )
- is the y-intercept (the value of when )
Glossary
- Linear regression
- A statistical method for finding the straight line that best fits a set of data points
- Line of best fit
- The regression line that minimizes the sum of squared residuals
- Slope
- The rate of change; how much increases for each unit increase in
- Y-intercept
- The value of when ; where the line crosses the y-axis
- Residual
- The difference between an actual data point and its predicted value on the regression line
- Least squares
- The method that finds the line minimizing the sum of squared residuals
- Extrapolation
- Using a regression equation to predict values outside the range of the original data
Formula Card
Regression Line
The equation of the line of best fit where m is slope and b is y-intercept
Slope Formula
Calculate the slope from data points using means and deviations
Y-Intercept
Calculate the y-intercept using the slope and the means of x and y
Residual
The difference between actual and predicted values for each point