Uploaded March 2019 | Updated September 2026, 2 hours ago
I derive the least squares estimators of the slope and intercept in simple linear regression (Using summation notation, and no matrices.) I assume that the viewer has already been introduced to the linear regression model, but I do provide a brief review in the first few minutes. I assume that you have a basic knowledge of differential calculus, including the power rule and the chain rule.
If you are already familiar with the problem, and you are just looking for help with the mathematics of the derivation, the derivation starts at 3:26.
At the end of the video, I illustrate that sum(X_i-X bar)(Y_i - Y bar) = sum X_i(Y_i - Y bar) =sum Y_i(X_i - X bar) , and that sum(X_i-X bar)^2 = sum X_i(X_i - X bar).
There are, of course, a number of ways of expressing the formula for the slope estimator, and I make no attempt to list them all in this video.
I derive the least squares estimators of the slope and intercept in simple linear regression (Using summation notation, and no matrices.) I assume that the viewer has already been introduced to the linear regression model, but I do provide a brief review in the first few minutes. I assume that you have a basic knowledge of differential calculus, including the power rule and the chain rule.
If you are already familiar with the problem, and you are just looking for help with the mathematics of the derivation, the derivation starts at 3:26.
At the end of the video, I illustrate that sum(X_i-X bar)(Y_i - Y bar) = sum X_i(Y_i - Y bar) =sum Y_i(X_i - X bar) , and that sum(X_i-X bar)^2 = sum X_i(X_i - X bar).
There are, of course, a number of ways of expressing the formula for the slope estimator, and I make no attempt to list them all in this video.








![Finding the Appropriate z Value for the Confidence Interval Formula (Using a Table)
I show how to find the appropriate z value (using the standard normal table) when calculating a confidence interval. The version of the table used in this video gives the area to the left of the z value (and not the area between 0 and z).
For those that use R, below is the R code to find the values (see the video for illustrations).
z value for a 95% interval:
qnorm(.975)
[1] 1.959964
z value for a 75% interval:
qnorm(.875)
[1] 1.150349 Finding the Appropriate z Value for the Confidence Interval Formula (Using a Table)](https://i.ytimg.com/vi/grodoLzThy4/mqdefault.jpg)

