16.1 Straigh Line Relationship

Created with Highcharts 8.1.2Temperature (ºF)Fuel (tons of coal)x = 43.975y = 10.2125TEMPERATURE vs FUELFit28303234363840424446485052545658606267891011121314
Created with Highcharts 8.1.2AdvertisingSales Volumex = 9.5y = 108.3ADVERTISING vs SALESFit567891011121314708090100110120130140


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,

  1. μi=β0+β1xi is the mean value of the dependent variable when the value of the independent variable X is xi
  2. ϵi is an error term that describes the effects on yi of all factors other than the value xi of the independent variable X
  3. β0 (the y-intercept) is the mean value of the dependent variable when the value of the independent variable X is zero.
  4. β1 (the slope) is the change in the mean value of the dependent variable.
  5. 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).
  6. 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).