Population stability index

On this page 7

The population stability index (PSI) is a symmetric divergence score that quantifies how much the distribution of a variable has shifted between a baseline sample and a current sample. In MLOps & deployment, it is one of the most widely used metrics for monitoring deployed models, because it turns a comparison of two histograms into a single number that can be tracked, plotted and alerted on.

PSI originated in credit risk scorecard validation, where regulators and model risk teams needed a simple test of whether the applicant population still resembled the population used to build the model. Today it is applied to input features, model scores and predicted probabilities across many domains of artificial intelligence, usually as a first line of drift detection.

How the population stability index is calculated

PSI is calculated by binning both samples into the same intervals and summing a weighted log ratio of the bin proportions. For each bin, the difference between the actual share and the expected share is multiplied by the natural logarithm of their ratio, and the results are added across all bins.

In formula form, PSI equals the sum over bins of (A_i - E_i) * ln(A_i / E_i), where E_i is the expected proportion in the baseline and A_i is the actual proportion in the current window. Every term is non-negative, so PSI is zero only when the distributions match bin for bin and grows as they diverge.

Mathematically, PSI is the symmetrized Kullback-Leibler divergence, also called the Jeffreys divergence, computed on discretized data. The symmetry matters in practice: the score does not depend on which sample is labeled the baseline, which makes it easier to interpret than plain KL divergence. The following table summarizes the calculation steps.

StepWhat happensTypical choice
Define the baselineSelect the reference sampleTraining or validation data
Create binsSplit the baseline into intervals10 deciles or 20 quantiles
Compute proportionsShare of records per bin in each sampleCounts divided by sample size
Handle empty binsReplace zero shares with a small constant0.0001 to 0.001
Sum the termsAdd the weighted log ratiosOne score per variable
Steps in a standard PSI calculation

Interpreting PSI values and thresholds

PSI values are conventionally read against three rule-of-thumb bands that come from credit scoring practice. These thresholds are heuristics rather than statistical tests, so teams should calibrate them to their own data, sample sizes and tolerance for false alarms.

PSI valueUsual readingTypical action
Below 0.10No meaningful shiftContinue routine monitoring
0.10 to 0.25Moderate shiftInvestigate the cause and watch closely
Above 0.25Significant shiftReview the model, consider retraining
Conventional PSI interpretation bands

The score is sensitive to sample size and bin count. With small current windows, random sampling noise alone can push PSI above 0.10, while with millions of records even a trivial shift becomes measurable. Many teams therefore estimate a noise floor by computing PSI between random splits of the baseline and set alert thresholds a margin above it.

PSI compared with other drift metrics

PSI is one of several distribution distance measures used for data drift and prediction drift, and each has different strengths. The choice depends on whether the variable is continuous or categorical, how large the samples are, and whether a statistical test or a magnitude score is needed.

MetricData typeMain strengthMain weakness
Population stability indexBinned numeric or categoricalSimple, symmetric, familiar thresholdsDepends on binning
Kullback-Leibler divergenceProbability distributionsStrong theoretical basisAsymmetric, unbounded with empty bins
Jensen-Shannon distanceProbability distributionsBounded between 0 and 1Less familiar to business users
Kolmogorov-Smirnov testContinuous numericNo binning, gives a p-valueOversensitive on large samples
Wasserstein distanceContinuous numericReflects how far mass movesScale-dependent, harder to threshold
PSI and related drift measures

A related metric, the characteristic stability index, applies the same formula to individual input features rather than to the final score. Together they help separate feature drift from score drift when diagnosing why a model output has moved.

Using PSI in a production monitoring pipeline

In a production setting, PSI is usually computed on a schedule for every monitored feature and for the model output, then written to a metrics store and displayed on an observability dashboard. Tools such as Evidently AI and most cloud ML platforms provide PSI as a built-in drift test.

  • Fix bin edges from the baseline and reuse them for every window, otherwise scores are not comparable over time.
  • Choose window sizes deliberately: daily windows react quickly, while weekly windows reduce noise.
  • Monitor the score distribution as well as features, because prediction drift is often visible before ground truth arrives.
  • Version the baseline together with the model, so that a retrained model is compared with its own training data.

PSI is especially valuable under delayed ground truth, when true labels arrive weeks or months after predictions. In that case, performance metrics cannot yet be computed, and input and output stability become the earliest available warning signals for retraining decisions.

Limitations and common mistakes

PSI measures change in a distribution, not change in model quality. A feature can drift strongly without affecting accuracy, and a model can degrade through concept drift while every input PSI stays low. The table below lists frequent errors and their remedies.

MistakeConsequenceFix
Recomputing bins each windowScores become incomparableFreeze bin edges from the baseline
Ignoring empty binsDivision by zero or infinite PSIApply a small smoothing constant
Too many bins on small samplesInflated scores from noiseUse fewer bins or larger windows
Treating PSI as a performance metricMissed concept driftPair with label-based metrics
One threshold for all featuresAlert fatigue or blind spotsSet per-feature thresholds
Frequent PSI mistakes and fixes

PSI is also univariate: it inspects one variable at a time and cannot detect changes in the joint relationship between features when each marginal distribution looks stable. Multivariate methods, such as domain classifiers that try to distinguish baseline from current records, cover that gap.

The short version

A model learns from one set of data. Later, it works on new data. The population stability index checks whether the new data still looks like the old data.

Think of two bar charts of customer ages, one from last year and one from this month. PSI compares the bars and gives one number for the difference. A small number means little has changed. A large number means the model may be working on unfamiliar data and someone should take a look.

Where it makes a difference

A consumer lender runs a credit approval model trained on two years of applications. The monitoring team computes PSI weekly on the model score and on twenty input features, using ten decile bins fixed from the training data and a 0.20 alert threshold for the score.

After a marketing campaign targets younger applicants through a new mobile channel, the score PSI rises from about 0.04 to 0.31 within three weeks. Feature-level PSI points to applicant age and months at current address as the main drivers. Because loan defaults take months to appear, no performance metric has yet changed.

The team reviews approval rates by segment, confirms that the new population is underrepresented in the training data, and schedules retraining with recent applications. The early PSI alert gives the lender time to adjust credit policy before losses accumulate.