Simple Linear Regression Analysis

Estimating the Coefficients of the Linear Regression Model

As you know, the simple linear regression equation is:
y^=bo+b1x
We use the statistics from our sample to infer about the parameter in the population.
The least-squares regression line is an estimate of the true population regression line, which is represented by this formal model:
E(Y)=βo+β1X+ε
Y is the unknown dependent variable.
- All Yi′s are independent of one another.
- Y is assumed to be normally distributed with mean E(Y)=βo+β1Xi and standard deviation σY is constant, regardless of what X is.
What is ε?
The notion ε, the residual or error, is the deviation of the actual values of Y and from their means E(Y).
- The error term includes everything that separates your model from actual reality. This includes:
- Other explanatory variables that are not included in the model.
- Poor fit (e.g. a linear model doesn't fit a quadratic relationship)
- Unpredictable effects
- Random error
- We assume that ε normally distributed with mean 0 and standard deviation σε
The regression line shows how Y changes with X:
X is the known independent variable
βo is the true intercept of the population regression line
β1 is the true slope of the population regression line
Example
Unlike the other variables above (i.e. βo+β1Xi), which are all constant variables, ε a random variable.
- The average values of all the εi′s=0

Measures of Variation in Regression
The coefficient of determination (R Squared) R2 measures how close the data are to the regression model or how much of the variation in the response variable Y could be explained by the explanatory variable X.
Example
X= length of a movie (minutes)
Y= time it takes to edit a movie (days)
If R2=0.63: "About 63% of the variation in the time it takes to edit a movie (Y) can be explained by the length of a movie (X)."
The variation of Y can be broken down by three measures:
- SSR: Sum of Squares (Regression)
- SSE: Sum of Squares (Error)
- SST: Sum of Squares (Total)
SSR: Sum of Squares (Regression)
SSR is the quantified measure of the variation that is attributed to the relationship between X and Y.
- In other words, SSR measures the explained variability in the regression model.
- The explained variation of y is the vertical distance between the predicted value y^i and the sample mean y.
- Therefore, the explained variation for each yi is:
∑(y^i−y)2
- Therefore, the explained variation for each yi is:
y^i−y
→ This is known as the regression.
SSE: Sum of Squares (Error)
SSE is the quantified measure of the variation that is not attributed to the relationship between X and Y. It may be due to:
- Other explanatory variables that are not included in the model.
- Random error
- In other words, SSE measures the unexplained variability in the regression model.
- The unexplained variation of y is the vertical distance between the actual value yi and the predicted value y^i.
∑(yi−y^i)2
- Therefore, the unexplained variation for each yi is:
yi−y^i
→ This is known as the error.
SST: Sum of Squares (Total)
SST is the quantified measure of the variation that is attributed to the relationship between X and Y plus what is not attributed to that relationship.
- In other words, SST measures the explained variability in the regression model PLUS the unexplained variability in the regression model.
- The total variation of y is the sum of the squares of the differences between all actual values yi′s and the sample mean y:
∑(yi−y)2
- Then, for each yi , we get:
yi−y
Thus:
[Total variation of y]=[Explained variation of y]+[Unexplained variation of y]
yi−y=(y^i−y)+(yi−y^i)
Notice that the y^i′s at the right side of the equation cancels each other out. What is left is yi−y.
Square and sum them all, and we get:
[Total variation of y] = [Total variation of y] + [Total unexplained variation of y]
∑(yi− y)2=∑(y^i−y)2+∑(yi−y^i)2
This can be rewritten as:
[Sum of Squares (Total)] = [Sum of Squares (Regression)] + [Sum of Squares (Error)]
or
SST=SSR+SSE
Example
