liveBook · Manning

Logistic regression

As explained in Data Without Labels

A classification method that models class-event probabilities using a logistic or sigmoid transformation of input variables.

Logistic regression is a supervised classification method for estimating whether an event occurs. In a telecom churn problem, revenue, service duration, average cost, and monthly usage act as independent variables, while churn status is the target. section 1.5.1

The model fits an equation and passes its result through a sigmoid function, producing a probability between 0 and 1. Binary logistic regression addresses yes/no outcomes; multiple logistic regression extends the classification setting. section 1.5.1

Interpret the core terms as follows:

  • The logit is log(p/(1 − p)), and the odds are p/(1 − p). section 1.5.1
  • The intercept β0 and coefficients such as β1 connect input variables to the logit. section 1.5.1
  • Linear regression is unsuitable for probability scores because it can produce values below 0 or above 1. section 1.5.1

Telecom churn

Historical records label subscribers such as 1001 and 1004 as churned and 1002 and 1003 as not churned. A logistic model uses their attributes to generate a churn probability for a new customer. section 1.5.1

Figure 1.14 A linear regression model will not be able to do justice (left); hence, we have logistic regression for classification. Linear regression can generate probability scores more than 1 or less than 0 too, which is mathematically incorrect, whereas the sigmoid function generates probability scores between 0 and 1 only (right).
figure

Compare the invalid probability range produced by a linear model with the sigmoid curve’s bounded output. section 1.5.1

How Data Without Labels covers it

How deep it goes
Defines the sigmoid, logit, odds, intercept, and coefficient equations, but does not detail model fitting or evaluation procedures.
Examples
Uses a structured telecom dataset containing revenue, service duration, average cost, usage, and churn labels.
What you can do after
Evaluate customer churn probabilities from historical labeled attributes and distinguish bounded logistic outputs from linear predictions.
How it connects
Connects supervised learning, linear regression, sigmoid functions, logits, odds, and binary classification.

Also explained in

Compare how 12 books explain logistic regression →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Without Labels. The section links point to the parts of the book it draws on.