Deriving the least squares estimators of the slope and intercept (simple linear regression) @jbstatistics
Deriving the least squares estimators of the slope and intercept (simple linear regression)  @jbstatistics
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.
Deriving the least squares estimators of the slope and intercept (simple linear regression)Inference for Two Means:  To pool or not to pool? (Old, fast version)One-Way ANOVA:  The FormulasInference for One Proportion: An ExampleThe Sampling Distribution of the Sample ProportionAn Introduction to Inference for Two ProportionsSimple Linear Regression: AssumptionsSimple Linear Regression: A Full Example (Old, fast version)Chi-square Tests for One-way TablesFinding the Appropriate z Value for the Confidence Interval Formula (Using a Table)Welch (Unpooled Variance) t Tests and Confidence Intervals: An ExampleInference for Two Proportions: Introduction
jbstatistics |

Deriving the least squares estimators of the slope and intercept (simple linear regression)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER