Lecture 4 Linear Regression 1 07032024 082032pm
Lecture 4 Linear Regression 1 07032024 082032pm
Lecture 4
AGENDA
Introduction to regression and linear regression.
2
REGRESSION (SUPERVISED MACHINE
LEARNING)
REGRESSION
In analyzing business and economic data, we often want
to know the relationship between two variables. The
correlation coefficient will give you information about the
nature and extent of the relationship. However, sometimes
we want to know by how much one variable changes because
of changes in other variables.
4
REGRESSION
Regression analysis can also be used to predict the value
of one variable based on another variable.
5
LINEAR REGRESSION
Linear regression is a fundamental statistical method used to
model the relationship between a dependent variable and one or
more independent variables by fitting a linear equation to
observed data.
It assumes that there is a linear relationship between the
independent variables and the dependent variable.
Equation: Y = mX+b
UNDERSTANDING OF LINEAR REGRESSION
SCENARIO 1
Predicting Pizza Prices
Step #1 : Data Collection
Step #2 : Data Cleaning
Step #3 : Calculations
Step #4 : Prediction
Step #5 : Visualization
UNDERSTANDING OF LINEAR REGRESSION
SCENARIO 2
Predicting Home Prices
Step #1 : Data Collection
Step #2 : Data Cleaning
Step #3 : Calculations
Step #4 : Prediction
Step #5 : Visualization
UNDERSTANDING LINEAR REGRESSION