18-Linear Regression
18-Linear Regression
Here,
•Y is a dependent variable.
•X is an independent variable.
•β0 and β1 are the regression coefficients.
•β0 is the intercept or the bias that fixes the
offset to a line.
•β1 is the slope or weight that specifies the
factor by which X has an impact on Y.
2. Multiple Linear Regression-
In multiple linear regression, the dependent
variable depends on more than one independent
variables.
For multiple linear regression, the form of the
model is-
Y = β0 + β1X1 + β2X2 + β3X3 + …… + βnXn
Here,
•Y is a dependent variable.
•X1, X2, …., Xn are independent variables.
•β0, β1,…, βn are the regression coefficients.
•βj (1<=j<=n) is the slope or weight that specifies
the factor by which Xj has an impact on Y.
Linear Regression Line
A linear line showing the relationship between the dependent and independent variables is called
a regression line. A regression line can show two types of relationship: