Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

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 Y=β0+β1X1++βpXp+εY = \beta_0 + \beta_1X_1 + \cdots + \beta_pX_p + \varepsilon. 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 η\eta, and a link function g(μ)g(\mu).

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 Y=β0+β1X1++βpXp+εY = \beta_0 + \beta_1X_1 + \cdots + \beta_pX_p + \varepsilon, where ε\varepsilon is the random error term.
  • The coefficient βj\beta_j in multiple regression estimates the expected change in YY for a one-unit increase in XjX_j, holding the other predictors constant.
  • The fitted value in linear regression is Y^=b0+b1X1++bpXp\hat{Y} = b_0 + b_1X_1 + \cdots + b_pX_p, and the residual is ei=yiy^ie_i = y_i - \hat{y}_i.
  • Logistic regression for a binary outcome uses log(p1p)=β0+β1X1++βpXp\log\left(\frac{p}{1-p}\right) = \beta_0 + \beta_1X_1 + \cdots + \beta_pX_p.
  • In logistic regression, the odds ratio for a one-unit increase in XjX_j is eβje^{\beta_j} when all other predictors are held constant.
  • A generalized linear model has three parts: a response distribution, a linear predictor η=Xβ\eta = X\beta, and a link function g(μ)=ηg(\mu) = \eta.
  • 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, R2R^2, adjusted R2R^2, 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 g(μ)g(\mu) that connects the mean response μ\mu to the linear predictor η=Xβ\eta = X\beta.
Odds Ratio
A multiplicative change in the odds of success, usually calculated as eβje^{\beta_j} for predictor XjX_j 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 βj\beta_j is a partial effect adjusted for the other predictors in the model.
  • Treating logistic regression coefficients as probability changes is wrong because βj\beta_j changes the log odds, while eβje^{\beta_j} changes the odds.
  • Using ordinary linear regression for a binary outcome is often wrong because predicted values may fall outside 00 to 11 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 R2R^2 or low AIC is incomplete because diagnostics, assumptions, prediction performance, and scientific interpretability also matter.

Practice Questions

  1. 1 A multiple regression model is Y^=12+3X12X2\hat{Y} = 12 + 3X_1 - 2X_2. What is the predicted value when X1=4X_1 = 4 and X2=5X_2 = 5?
  2. 2 A logistic regression coefficient is β1=0.7\beta_1 = 0.7. Compute the odds ratio e0.7e^{0.7} and interpret it for a one-unit increase in X1X_1.
  3. 3 For the logistic model log(p1p)=1+0.5X\log\left(\frac{p}{1-p}\right) = -1 + 0.5X, find the log odds when X=6X = 6.
  4. 4 Explain why a Poisson GLM with log link is usually more appropriate than ordinary linear regression for modeling count data.