What is logistic regression?

Quick Overview

Explain what logistic regression computes, how its weights are learned and how to interpret its coefficients. It tests your understanding of the sigmoid, log-odds, log loss, threshold choice and the practical limits of a linear classifier.

What is logistic regression?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is logistic regression? Explain what the model computes, how its weights are learned, and how its coefficients are interpreted. ```hint Start from a linear model Ask what has to change about a linear model's output before it can be read as a probability. ``` ### What a Strong Answer Covers - The model: a linear score passed through a function that maps it to a class probability - The log-odds reading of the linear part and of each coefficient - How the weights are fit and why that needs iterative optimization - How a threshold turns probabilities into labels, and how to choose it - The main limits, such as the linear decision boundary, perfect separation and class imbalance ### Follow-up Questions - Why not fit ordinary linear regression to a 0/1 target? - A coefficient is 0.8. What does that mean for the odds, and for the probability? - What happens to the weights when the two classes are perfectly separable? - How would you choose the threshold when a false negative costs much more than a false positive?

Overview: Explain what logistic regression computes, how its weights are learned and how to interpret its coefficients. It tests your understanding of the sigmoid, log-odds, log loss, threshold choice and the practical limits of a linear classifier.

Nov 25, 2026
easyData ScientistOtherMachine Learning
0
0

What is logistic regression? Explain what the model computes, how its weights are learned, and how its coefficients are interpreted.

What a Strong Answer Covers Guidance

  • The model: a linear score passed through a function that maps it to a class probability
  • The log-odds reading of the linear part and of each coefficient
  • How the weights are fit and why that needs iterative optimization
  • How a threshold turns probabilities into labels, and how to choose it
  • The main limits, such as the linear decision boundary, perfect separation and class imbalance

Follow-up Questions Guidance

  • Why not fit ordinary linear regression to a 0/1 target?
  • A coefficient is 0.8. What does that mean for the odds, and for the probability?
  • What happens to the weights when the two classes are perfectly separable?
  • How would you choose the threshold when a false negative costs much more than a false positive?