🌊  PSI (Population Stability Index)

PSI (Population Stability Index)#

A widely used score measuring how much a distribution has shifted.

Important

✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.

What it is#

The Population Stability Index measures how much a variable’s distribution has shifted between a reference (“expected”) sample and a current (“actual”) one — usually training vs production. It bins the variable and sums the per-bin discrepancy:

\[\text{PSI} = \sum_{b} (A_b - E_b)\,\ln\!\frac{A_b}{E_b},\]

over bins \(b\). It is 0 when the distributions match and grows without bound as they diverge.

How it’s computed#

Choose bins (often 10, by quantile or equal width) using the same edges for both samples, take each bin’s proportion in the expected and actual data, and sum the term above across bins. It is closely related to a symmetrized KL divergence.

Reading it#

The rules of thumb are < 0.1 stable, 0.1–0.25 moderate drift (watch), and > 0.25 significant drift (retrain). Two cautions: an empty bin makes PSI undefined or unbounded (so proportions are clipped), and PSI tends to rise with sample size, so thresholds may need tuning.


Theme: Distribution Shift & Drift  ·  All terminology



See also

Source article Adapted (context, re-expressed) in our own words from: PSI (Population Stability Index) (insightful-data-lab.com).

Tags: purpose: reference topic: terminology level: advanced