Steps involved in linear regression:
- Aim is to predict the dependent variable Y given the set of independent variable(features) X
2.The regression line equation is given by, Y = b + a*X - where b is the y-intercept and a is the slope
-
Find pearson correlation coefficient(r) The Pearson product-moment correlation coefficient is a measure of the strength of the linear relationship between two variables.
-
Find y-intercept and slope
- Substitute the slope and y-intercept values in regression line and view it.
