This cheat sheet summarizes the core ideas behind multiple linear regression, logistic regression, and generalized linear models. These models help students connect predictors to outcomes, interpret coefficients, and evaluate how well a statistical model fits data. It is useful for reviewing assumptions, choosing a model, and comparing common regression outputs in applied statistics courses.
Multiple regression models a quantitative response using several predictors through an equation such as . Logistic regression models a binary response by applying the logit link to the probability of success. Generalized linear models extend regression by combining a random component, a linear predictor , and a link function .
The most important skills are matching the model to the response type, interpreting parameters correctly, and checking assumptions or diagnostics.
Key Facts
- Multiple linear regression uses the model , where is the random error term.
- The coefficient in multiple regression estimates the expected change in for a one-unit increase in , holding the other predictors constant.
- The fitted value in linear regression is , and the residual is .
- Logistic regression for a binary outcome uses .
- In logistic regression, the odds ratio for a one-unit increase in is when all other predictors are held constant.
- A generalized linear model has three parts: a response distribution, a linear predictor , and a link function .
- Common GLM choices include normal with identity link for continuous data, binomial with logit link for binary data, and Poisson with log link for counts.
- Model fit can be assessed with tools such as residual plots, , adjusted , deviance, AIC, likelihood ratio tests, and cross-validation.
Vocabulary
- Multiple Regression
- A regression model that predicts one response variable using two or more explanatory variables.
- Logistic Regression
- A regression model used for binary outcomes that models the log odds of success as a linear function of predictors.
- Generalized Linear Model
- A framework that models a response variable using a probability distribution, a linear predictor, and a link function.
- Link Function
- A function that connects the mean response to the linear predictor .
- Odds Ratio
- A multiplicative change in the odds of success, usually calculated as for predictor in logistic regression.
- Deviance
- A GLM fit measure based on likelihood that compares a fitted model with a saturated model.
Common Mistakes to Avoid
- Interpreting a multiple regression coefficient without holding other variables constant is wrong because is a partial effect adjusted for the other predictors in the model.
- Treating logistic regression coefficients as probability changes is wrong because changes the log odds, while changes the odds.
- Using ordinary linear regression for a binary outcome is often wrong because predicted values may fall outside to and the error structure is not normally distributed.
- Choosing a GLM link function without considering the response type is wrong because the link must match the mean structure and valid range of the outcome.
- Comparing models only by a high or low AIC is incomplete because diagnostics, assumptions, prediction performance, and scientific interpretability also matter.
Practice Questions
- 1 A multiple regression model is . What is the predicted value when and ?
- 2 A logistic regression coefficient is . Compute the odds ratio and interpret it for a one-unit increase in .
- 3 For the logistic model , find the log odds when .
- 4 Explain why a Poisson GLM with log link is usually more appropriate than ordinary linear regression for modeling count data.