LINEAR
REGRESSION
PRESENTED BY,
SUJI JOSE
ASSISTANT PROFESSOR
DDUKK,CUSAT
Regression is a method of modelling a
target value based on independent
predictors.
This method is mostly used for forecasting
and finding out cause and effect
REGRESSION relationship between variables.
Regression techniques mostly differ based
on the number of independent variables
and the type of relationship between the
independent and dependent variables.
INDEPENDENT AND DEPENDENT
VARIABLES
INDEPENDENT AND DEPENDENT
VARIABLES
NUMERICAL AND CATEGORICAL VALUE
LINEAR REGRESSION
REGRESSION EQUATION
Y -Intercept
LINEAR
REGRESSION
IMPLEMENTATION
USING
PYTHON
For generality, we define:
x as feature vector, i.e x = [x_1, x_2, …., x_n],
y as response vector, i.e y = [y_1, y_2, …., y_n]
for n observations (in above example, n=10).
TESTING USING
BOSTON
DATASET