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. IntroductionLogistic Regression is a technique used for both traditional statistics and machine learning.
  2. Linear Regression ReviewLinear Regression predicts continuous outcomes, fits a line, and uses R^2 and P-values for evaluation, including in multiple regression.
  3. Comparing ModelsSimple linear models can be compared to complicated ones to determine if extra predictors are necessary.
  4. Logistic Regression BasicsLogistic Regression predicts binary outcomes, fits an S-shaped curve from 0 to 1, and the output probability is used for classification.
  5. Predictor VariablesLogistic Regression can use both continuous data like weight and discrete data like genotype.
  6. Variable SignificanceWald's test is used to determine if individual variables significantly contribute to the prediction.
  7. Maximum LikelihoodLogistic Regression uses Maximum Likelihood to fit the curve by finding the parameters that maximize the probability of observing the entire dataset.
PDF notes

Frequently asked questions

Why can't Logistic Regression use R^2 like Linear Regression?

R^2 relies on minimizing and measuring residuals, which are not defined in the context of the S-shaped logistic function.

How is the probability output of LogR used for classification?

The probability is compared against a threshold (typically 0.5 or 50%); if higher, the sample is classified as positive.

What is the purpose of Wald's test in Logistic Regression?

It determines if an individual predictor variable contributes significantly to the model, meaning its effect is different from zero.

Is Linear Regression considered a form of machine learning?

Yes, using data to predict an outcome, even with simple linear models, falls under the category of machine learning.