Linear regression is a technique in statistics that is used to predict values of a dependent variable (y) with an independent variable (x) with given data.
We can study the weight of a vehicle and it’s relationship to how many miles per gallon (mpg) it gets and use that to predict MPG values of varying weights.
Scatterplot of Weight vs. MPG