2. Measuring in money#

A cost matrix on its own is not a number. A strategy decides how it becomes one, and the pair becomes a Metric you can call like any scikit-learn scoring function.

If your problem is customer churn, acquisition or credit scoring, the last three pages ship the standard cost matrix for that domain — you may not need to write one at all.

Choosing a strategy

The six strategies, what each one assumes about your scores, and which models can train on them.

Choosing a strategy
Working with metric objects

What a Metric can do beyond returning a score: optimal thresholds and rates, missing parameters, LaTeX.

Working with metric objects
Customer Churn Metrics

The standard retention cost matrix, and the ready-made EMPC and MPC metrics built on it.

Customer Churn Metrics
Customer Acquisition Metrics

The standard acquisition cost matrix, and the EMPA and MPA metrics built on it.

Customer Acquisition Metrics
Credit Scoring Metrics

The standard credit scoring cost matrix, and the EMPCS and MPCS metrics built on it.

Credit Scoring Metrics