Regression Analysis
Fit a relationship between a numerical outcome variable and a set of predictors
Variables
Linear Regression Model
Arranged in, or extending, along a straight or nearly straight line
Single vs Multiple Linear Regression Model
Single: One independent prediction, i.e., single variable X
Multiple: two or more predictors, i.e., X1, X2, …
Intuition for Single Linear Regression
Intuition for Multiple Linear Regression
Linear Regression Model
Graphical visualisation of Linear Regression
Ordinary Least Squares (OLS)
Ordinary Least Square (OLS) pt2
Objectives for single/multiple regression
Explanatory objective - in single/multiple regression
Generate statements useful for decision making
E.g. a unit increase in X is associated with an average increase of 2 points in Y
Predictive objective - in single/multiple regression
Given an ew value for X, estimate the value for Y
Overfitting
Underfitting
Complete Linear Regression Python example
Quiz 1
Quiz 2
Quiz 3