Fitting a Line

A straight line through a scatter plot of home sales turns a home's size into a price guess, the intercept plus the slope times the size, and least squares picks the best line, the one whose squared errors add up to the least, which Python's statistics.linear_regression finds for you.

By

Updated

Cheat sheet: Fitting a Line
Category
Machine Learning
Level
Apprentice
Tags
ai, Intercept, Linear Regression, Ordinary Least Squares, python, Slope