Module 10
Regression: Predicting Numbers
Fit a line to data, use it to predict a number, and measure honestly how good the predictions are.
2 lessons + quiz3.5 hours
Learning Objectives
- 1Fit a linear regression by hand and with scikit-learn
- 2Interpret a slope and intercept in plain words
- 3Evaluate a regression model with a test set, MAE, and R squared
Lessons
1
Fitting a Line
Linear regression in plain words: find the line that best fits the data, then use it to predict.
2
Evaluating Regression Honestly
Split data, measure error with MAE and R squared, and read residuals to find where a model fails.
Module 10 Quiz: Regression
Passing score: 80% · 5 questions
Quiz