Appendix — Legacy Notes
R-squared
is used to quantify how much of variance in the data is explained by a relationship.
One major drawback of is that it never decreases as we add more features/predictors to our model. This is why we use Adjusted R-squared. See full R² section above.
Gauss-Markov Assumptions
The Gauss–Markov assumptions are the conditions under which the Ordinary Least Squares (OLS) estimator is guaranteed to be BLUE (Best Linear Unbiased Estimator). These assumptions only work for OLS estimators and not all regression models.
- Linearity - The model must be linear in the coefficients.
- Homoscedasticity - must be constant for all values of .
- No autocorrelation in errors - .
- Normality of errors - . Not needed for BLUE, but needed for t-test, F-test.
- No perfect multicollinearity - must be invertible.
- Exogeneity - — omitted factors must not be correlated with features.
Variance Inflation Factor (VIF)
VIF checks for multicollinearity. Treat each feature as a dependent variable predicted by the others; compute ; then:
If or Tolerance , the feature is redundant.