Is logistic regression used to predict the probability of a numerical or categorical dependent variable?

Quick Overview

Asks whether logistic regression models a numerical or a categorical dependent variable. Tests whether you can separate the type of label from the probability the model outputs, explain where the word regression comes from, and contrast the model with linear regression.

Is logistic regression used to predict the probability of a numerical or categorical dependent variable?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Is logistic regression used to predict the probability of a numerical or categorical dependent variable? ```hint Labels versus outputs Separate what the model is trained on (the labels) from the number it outputs, and ask what the word "regression" in its name refers to. ``` ### What a Strong Answer Covers - The type of dependent variable logistic regression models - What the model outputs and how that output becomes a class label - Why it is called a regression, through the linear model on the log-odds - How it extends to more than two categories - The contrast with linear regression for a numeric target ### Follow-up Questions - Why not fit ordinary linear regression to a 0/1 target and threshold the prediction at 0.5? - How would you choose the classification threshold when false positives and false negatives have different costs? - How do you interpret a logistic regression coefficient? - How would you model an outcome with three ordered categories, such as low, medium and high satisfaction?

Overview: Asks whether logistic regression models a numerical or a categorical dependent variable. Tests whether you can separate the type of label from the probability the model outputs, explain where the word regression comes from, and contrast the model with linear regression.

Nov 24, 2026
easyData ScientistOtherMachine Learning
0
0

Is logistic regression used to predict the probability of a numerical or categorical dependent variable?

What a Strong Answer Covers Guidance

  • The type of dependent variable logistic regression models
  • What the model outputs and how that output becomes a class label
  • Why it is called a regression, through the linear model on the log-odds
  • How it extends to more than two categories
  • The contrast with linear regression for a numeric target

Follow-up Questions Guidance

  • Why not fit ordinary linear regression to a 0/1 target and threshold the prediction at 0.5?
  • How would you choose the classification threshold when false positives and false negatives have different costs?
  • How do you interpret a logistic regression coefficient?
  • How would you model an outcome with three ordered categories, such as low, medium and high satisfaction?