01Chapter 1: Why models fail after deploymentA model that passed offline evaluation can still fail in production. This chapter explains the main reasons and the failure patterns you will see. Later chapters cover how to detect each one.3 min read
02Chapter 2: What to monitor: operational, data, prediction and performance layersThis chapter assumes you can train and evaluate a supervised model, read basic Python, and have deployed a model as a batch job or an API. It gives you a working model for what to watch in production. Later chapters cover each layer's tests in detail.3 min read
03Chapter 3: Operational health: latency, errors and throughputThis chapter covers the first monitoring layer: whether the serving system is up and responding. It assumes you can deploy a model as a batch job or an API, and that you know basic Python. Statistical drift comes in later chapters. A model with perfect data can still fail if the service that hosts i2 min read
04Chapter 4: Catching broken inputs: schema, missing values and rangesThis chapter assumes you can write basic Python with pandas, and that you have deployed a model as a batch job or an API. Data quality checks are the cheapest monitoring layer. They catch pipeline bugs before you spend time on drift statistics.2 min read
05Chapter 5: Covariate shift, label shift and concept driftThis chapter assumes you can train and evaluate a supervised model and that you know what a distribution and a hypothesis test are. Drift is a change between the data the model was trained on and the data it sees in production. Three kinds of change matter, and each one calls for a different check a3 min read
06Chapter 6: Choosing reference data and comparison windowsThis chapter assumes you can train and evaluate a supervised model, run a hypothesis test, and read basic NumPy code. Every drift score compares two samples. The first is the reference, the data you treat as normal. The second is the current window, the recent production data you want to check. A dr2 min read
07Chapter 7: Testing one feature at a time: KS and chi-squareThis chapter assumes you know basic hypothesis tests and p-values, can use NumPy and SciPy, and have already chosen a reference window and a current window (see the previous chapter). Here you test each feature on its own to see whether its distribution changed.2 min read
08Chapter 8: Scoring drift with the Population Stability IndexThis chapter assumes you know basic NumPy and histograms, and that you have seen the KS and chi-square tests from the previous chapter. Those tests return a p-value. With large samples, a p-value flags tiny shifts that do not matter. The Population Stability Index (PSI) returns an effect size instea2 min read
09Chapter 9: Watching prediction and score distributionsThis chapter assumes you can run a two-sample test and read a p-value, and that you know the Kolmogorov-Smirnov (KS) test and the Population Stability Index (PSI) from the earlier chapters. It also assumes you have a deployed classifier or regressor that logs its outputs.2 min read
10Chapter 10: Tracking model performance once labels arriveThis chapter assumes you can train and evaluate a supervised model, and that you know the basics of Python, NumPy and pandas. Drift tests tell you the inputs changed. Performance monitoring tells you whether the model is still right. It is the only layer that measures the thing you care about, and i2 min read
11Chapter 11: Monitoring when labels are late or missingThis chapter assumes you can compute drift scores on features and predictions, and that you know metrics such as ROC AUC. Here the question changes. Performance metrics need ground truth, and ground truth often arrives weeks later or never.2 min read
12Chapter 12: When drift matters and when it does notThis chapter assumes you can run the KS test and compute PSI on a feature, as covered earlier. It covers how to decide whether a drift signal calls for action.2 min read
13Chapter 13: Detecting multivariate drift with a domain classifierThis chapter assumes you can train a scikit-learn classifier, read a ROC AUC score, and have already run per-feature tests such as KS and chi-square on a reference window and a current window.2 min read
14Chapter 14: Setting thresholds and limiting false alarmsThis chapter assumes you can compute a KS statistic, a chi-square p-value and a PSI score, as covered in the earlier chapters on univariate tests and PSI. It also assumes you know what a p-value is. The question here is what to do with those numbers: at what value should a person be paged?3 min read
15Chapter 15: Responding to drift: investigate, retrain or roll backThis chapter assumes you can already compute drift scores (KS, chi-square, PSI), you have data quality checks in place, and you know how your team deploys and versions models. It covers what to do after an alert fires.2 min read