16.1 Straigh Line Relationship
Let’s use this app Simple Linear Regression to understand what a straight line relationship between two variables is.
Output = Response variable = Dependent Variable = Y
Input = Predictor variable = Regressor = Explanatory = Independent Variable = X
Response variable = Model function + Random error
Y=f(X)+ϵ
Y=β0+β1X+ϵ
yi=β0+β1xi+ϵi
The simple linear regression model is:
yi=μi+ϵi=β0+β1xi+ϵi
Here,
- μi=β0+β1xi is the mean value of the dependent variable when the value of the independent variable X is xi
- ϵi is an error term that describes the effects on yi of all factors other than the value xi of the independent variable X
- β0 (the y-intercept) is the mean value of the dependent variable when the value of the independent variable X is zero.
- β1 (the slope) is the change in the mean value of the dependent variable.
- If β1 is positive, the mean value of the dependent variable increases as the value of the independent variable increases. See Figure @ref(sales-adv-regression).
- If β1 is negative, the mean value of the dependent variable decreases as the value of the independent variable increases.See Figure @ref(fuel-temperature-regression).