Equation for line: \(y = \beta_0 + \beta_1 x\)
Have cloud of points
Fit line to cloud of points
Infer slope from fitted line
Inference:
Equation for a 2-d plane: \[ y = \beta_0 + \beta_1 x_1 + \beta_2 x_2 \]
When \(x_1\) is fixed (not changing), \(y = \beta_0 + \beta_1 x_1 + \beta_2 x_2\) is the equation for a line with slope \(\beta_2\) and \(y\)-intercept \(\beta_0 + \beta_1 x_1\).
When \(x_2\) is fixed (not changing), \(y = \beta_0 + \beta_1 x_1 + \beta_2 x_2\) is the equation for a line with slope \(\beta_1\) and \(y\)-intercept \(\beta_0 + \beta_2 x_2\).
So a plane can be interpreted as a line when you fix all predictors but one.
Have a cloud of points:
Fit plane to cloud of points:
Infer slopes from fitted plane.
Inference:
The above procedures assume that:
We typically need to transform the data or try out a few models.
Steps:
Many statistical procedures are special cases of (or approximations to) linear regression.
Understanding linear regression really well will give you a deeper understanding of statistics in general.
Procedures that are special cases of linear regression, or can be well approximated by linear regression: