9. Simple Linear Regression: Simple Linear Regression
Simple Linear Regression
The most basic form of regression analysis is simple linear regression.
Simple Linear Regression
Simple linear regression is a statistical technique used to model the linear relationship between two variables.
It does this by finding the best-fitting straight line through a set of data points.
This best-fitting line is called the regression line and is mathematically described by the following regression equation:
where is the predicted value of .
Usefulness of the Regression Equation
Finding the values of the coefficients of a regression equation serves a dual purpose:
- It helps us understand the relationship between the two variables. The slope of the equation, for instance, allows us to determine the direction and strength of the linear relationship between and .
- It allows us to make predictions about on the basis of . Once we have found the regression equation, we can simply plug in a value for to make a prediction about the value of .
For days, the owner of an ice cream truck kept track of how much ice cream he sold and what the maximum temperature in was that day. He then performed a simple linear regression to construct a regression line in the hopes of finding the relationship between the maximum temperature and the amount of ice cream sold.
Take a look at the scatterplot below. The blue dots represent the that serve as the basis for the regression analysis. The is drawn in orange.
The slope is . This value predicts how much more ice cream will be sold, given that the maximum temperature increases by . For example, if the maximum temperature increases by , the amount of ice cream sold is predicted to increase by .
The intercept is . In this case, the negative value of the intercept holds no particular meaning, since it not possible to sell a negative amount of ice cream.
To calculate the predicted amount of ice cream sold at a particular maximum temperature, we simply enter a value for into the equation. For example, at a maximum temperature of , the predicted amount of ice cream sold is: