Track T11
Regression & GLMs
Linear and generalized models, diagnostics and interpretation.
Unit 1Linear models
- 1Simple regression: the line that predictsFit a line by hand, see why least squares picks the one it does, and read slope, intercept and R² on a real result card.
- 2Multiple regression: holding other things constantAdd predictors and each coefficient changes meaning. Learn what "holding others constant" really means, why adjusted R² exists, and how to read the full card.
- 3Categorical predictors and reference levelsA category becomes a set of 0/1 columns measured against a reference level. Read those coefficients correctly, test a whole factor at once, and report marginal means.
- 4Interactions: when one effect depends on anotherWeight may cost automatic and manual cars different amounts of mileage. Interactions model that, and change what every other coefficient means.
- 5Curves in a straight-line model: polynomials and splinesLinear regression means linear in the coefficients, not straight. Transform a predictor, or expand it into a spline basis, to fit a curve with the same machinery.
- 6Coefficient t tests and the partial F testOne coefficient gets a t test; several together get a partial F. See how both come from one idea, what they assume, and why a t squared equals an F.
Unit 2Is the model adequate?
- 7Reading residual plots: what the model missedBefore you trust any coefficient, look at what the model left behind. Four residual plots catch most problems faster than any test.
- 8Heteroskedasticity: Breusch–Pagan, White, Goldfeld–Quandt and Harrison–McCabeWhen the spread of errors changes, classical standard errors go wrong. Five tests look for it in different ways, and two of them depend on the order of your rows.
- 9Robust standard errors: HC3, clusters and Newey–WestYou can keep the coefficients and fix their uncertainty. Choose among HC3, cluster-robust and Newey–West based on how your data depart from independence and constant variance.
- 10Serial correlation: Durbin–Watson, Breusch–Godfrey and ARCHWhen each residual carries over into the next, your standard errors are too small. Test for it, and choose between Newey–West errors and an AR(1) model.
- 11Influence and outliers: which rows are driving the fit?A point can be unusual in its predictors, its outcome, or both. Learn what leverage and Cook's distance measure, and how to investigate instead of deleting.
- 12Multicollinearity and VIF: when predictors overlapOverlapping predictors don't hurt prediction, but they make individual coefficients unstable. Learn what a VIF measures and when it's worth acting on.
- 13Is the model's form right? RESET, Harvey–Collier and RainbowA model can have a high R² and the wrong shape. Three tests look for a misspecified mean, and each one looks somewhere different.
Unit 3Comparing models
- 14Comparing nested models: LR, Wald, score, AIC and BICDo the added predictors earn their place? Three classic tests answer the same question in different ways, and two information criteria answer a related one.
- 15Rival models: J, Cox, encompassing, PE and Vuong testsWhen neither model contains the other, an F test can't choose. These tests pit rival models against each other, and sometimes reject both.
- 16Choosing predictors: penalized regression versus stepwiseAutomated selection is seductive and dangerous. See what lasso, ridge and stepwise each do, why p-values after selection mislead, and when to use which.
Unit 4Beyond a numeric outcome
- 17Logistic regression: modeling yes or noA straight line can predict impossible probabilities. Logistic regression models the log-odds instead. Learn to read odds ratios and spot separation.
- 18Calibration and the Hosmer–Lemeshow testDoes a predicted 30% risk mean 30% of such cases have the event? Calibration asks that. Learn to read a calibration plot, and why Hosmer–Lemeshow is only a partial answer.
- 19Multinomial logistic regression: more than two categoriesWhen the outcome has several unordered categories, you fit one set of coefficients per non-reference category. See how to read them and how quickly they use up your data.
- 20Ordinal regression: ordered outcomes and proportional oddsLow, medium, high is more than three labels. Ordinal logistic regression uses the order with one set of slopes, provided the proportional-odds assumption holds.
- 21Count outcomes: Poisson, overdispersion and negative binomialCounts are whole numbers with a floor at zero. Model them on the log scale, read rate ratios, add exposure when units differ, and check whether the variance has outrun the mean.
- 22Too many zeros: zero-inflated, hurdle and censored modelsA pile of zeros can come from overdispersion, from a second process, from a decision, or from a limit. Each points to a different model, and the zero part reads differently in each.
Unit 5Beyond the standard model
- 23GAMs: smooth curves with a built-in brakeA generalized additive model fits a smooth curve for each predictor and lets a penalty decide how much it bends. Learn to read effective degrees of freedom, check the basis size, and interpret the curve itself.
- 24Endogeneity: Hausman, Durbin–Wu–Hausman, Sargan, Hansen J and Anderson–RubinWhen a predictor is tangled with the error term, more data won't help and residual plots won't warn you. Learn which test answers which question once you have an instrument.
Unit 6Using the model
- 25Marginal effects, predictions and their intervalsCoefficients are rarely what people ask about. Turn a model into changes in probability, adjusted means and predictions, and pick the interval that answers the question you were asked.
- 26Reporting a regressionA good report lets a reader judge your answer and repeat your work. Give the effect in useful units with its interval, say what you checked and how you chose the model, and don't claim more than the design supports.