Back to Modeling: Regression and Beyond

Logistic Regression and the GLM Family

The link between linear regression and binary classification. Plus the GLM framework that generalizes to counts, proportions, durations. FIND_VIDEO: search 'logistic regression GLM tutorial' — recommended channel: StatQuest. Aim for 11 min or under.

9 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.

Ready to continue?

Mark this lesson as complete when you're ready to proceed.

Key moments

  1. Linear Regression Review — Linear regression models continuous outcomes by fitting a straight line and uses R^2 for performance assessment.
  2. Defining Logistic Regression — Logistic regression predicts binary outcomes using the S-shaped Sigmoid function to output probabilities between 0 and 1.
  3. Classification and Flexibility — A probability threshold converts the continuous probability estimate into a hard binary classification, and the model accepts mixed data types.
  4. Feature Significance Tests — Feature importance is determined using statistical tests like Wald’s test because standard residual analysis and R^2 are not applicable.
  5. Maximum Likelihood Fitting — Model parameters are estimated by iteratively maximizing the joint probability (likelihood) of observing the given data points.
PDF notes

Frequently asked questions

Why can't I use R^2 to compare logistic models?

R^2 relies on minimizing squared residuals, which is invalid when the outcome is binary and the model estimates probability.

What does the Sigmoid function output represent?

It represents the estimated probability that the observation belongs to the positive class (Y=1), ranging from 0 to 1.

How do I know if a predictor is important in a logistic model?

You use statistical tests like Wald's test to check if the predictor's coefficient is significantly different from zero.

Is Logistic Regression a type of Linear Regression?

No. While it uses a linear combination of predictors, it is fundamentally a classification algorithm using a non-linear link function (Sigmoid).

How was this lesson?

Your feedback helps us refine explanations and catch bugs.