liveBook · Manning

Customer churn

As explained in Software Engineering for Data Scientists

Churn is the ending of a customer's relationship with a service or company.

Customer churn is the ending of a customer's relationship with a service or company. In a data science workflow, churn commonly becomes a prediction target, such as whether an e-commerce customer will leave within the next 30 days. section 1.2.7 section 1.3.1

A churn-prediction workflow typically moves through these steps:

  • Gather transaction, login, and customer information from databases, documents, webpages, or APIs. section 1.2.7 section 1.3.1
  • Explore and validate the data by checking distributions, missing values, correlations, descriptive statistics, and domain consistency. section 1.2.7
  • Clean the inputs and engineer features before developing the model. section 1.2.7 section 1.3.1

Predicting churn from customer data

An e-commerce dataset can combine transaction amounts and item counts with login timestamps, landing pages, age, and deactivation timestamps. Instead of passing age directly to a model, preprocessing can convert it into categories such as under 18, 18–24, 25–30, and 31–40. section 1.3.1

How Software Engineering for Data Scientists covers it

How deep it goes
Traces churn from target definition through data gathering, validation, cleaning, feature engineering, and dataset preparation, without detailing model internals.
Examples
Uses transaction, login, and customer tables plus age bucketing to illustrate churn-feature construction.
What it assumes
Assumes basic data science workflow familiarity while introducing SQL extraction, exploratory checks, validation, cleaning, and feature preparation.
What you can do after
Build a finalized churn-prediction dataset from multiple sources and prepare features for model development.
How it connects
Connects customer churn with exploratory data analysis, data validation, data cleaning, feature engineering, SQL, and machine learning pipelines.

Also explained in

Compare how 5 books explain customer churn →

Related concepts

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