Sub topic 13
Beyond scorecards: statistical and machine learning models
This chapter assumes you have read the earlier chapters on weighted scorecards, override rules and model validation. It also assumes you can read short Python programs.
Why look beyond a scorecard
A weighted scorecard uses weights chosen by experts. Those weights are judgments, and nothing in the data checks them. Statistical and machine learning (ML) models estimate the weights from past outcomes instead. They can also capture interactions that a sum of factors misses. One example is a cash-intensive business combined with a high-risk country. The two together may be riskier than the weights suggest.
Common model types
| Approach | What it does | Main strength | Main weakness |
|---|---|---|---|
| Logistic regression | Estimates the probability of a bad outcome from factor values | Coefficients are easy to explain | Misses non-linear effects unless you add features |
| Decision trees and gradient boosting | Split customers into groups through learned rules | Capture interactions and thresholds | Harder to explain, easy to overfit |
| Unsupervised methods (clustering, anomaly detection) | Group customers or flag unusual ones without labels | Find patterns no one has defined | Unusual does not mean risky |
Logistic regression is the usual first step. It keeps the scorecard structure, with one weight per factor, but fits the weights to data.
import math
INTERCEPT = -6.0
COEFS = {"customer": 0.5, "geography": 0.6, "product": 0.4, "channel": 0.3}
def probability(factors):
z = INTERCEPT + sum(COEFS[n] * factors[n] for n in COEFS)
return 1 / (1 + math.exp(-z))
def reason_codes(factors, top=2):
"""Return the factors that pushed the score up the most."""
contrib = {n: COEFS[n] * factors[n] for n in COEFS}
return sorted(contrib, key=contrib.get, reverse=True)[:top]
factors = {"customer": 2, "geography": 4, "product": 3, "channel": 2}
print(round(probability(factors), 2)) # 0.31
print(reason_codes(factors)) # ['geography', 'product']The reason_codes function matters as much as the probability. An analyst or auditor needs to see why a customer received a rating.
The label problem
Supervised models need labels, meaning a known outcome for each past customer. AML has no clean ground truth. Typical proxies are suspicious activity reports filed, accounts closed for financial crime, or confirmed investigation outcomes. Each proxy has bias:
- Customers who were never monitored closely have few alerts. The model may learn that they are safe when they were simply unobserved.
- Past reporting reflects past rules. The model can learn to repeat the old scorecard instead of finding real risk.
- Confirmed cases are rare, so the data is heavily imbalanced.
A hybrid design
Most institutions do not replace the scorecard outright. They use the model to produce a score and keep the rules around it. Sanctions matches and PEP status stay as fixed rules because the law or policy requires them, whatever a model predicts.
Extra validation requirements
Everything from the validation chapter still applies, and more is needed:
- Test on data the model has not seen, such as a later time period. Random splits can hide drift.
- Check stability. Retraining on new data should not change many ratings for no reason.
- Compare against the scorecard as a challenger. If the model adds little, the simpler tool is the better choice.
- Test for proxy bias. A feature such as postcode can stand in for protected characteristics.
Decision criteria
Choose a scorecard when you have little outcome data or need full transparency. Consider a model when you have enough reliable labels and a validation team that can challenge it. Use unsupervised methods mainly to suggest new risk factors or to prioritize reviews. Do not use them as the sole source of a rating.
Exercise
A bank trains a model on past suspicious activity reports (SARs) and finds that customers in a low-monitoring segment have almost no SARs, so the model rates them Low. What is the likely problem, and how would you address it?
Show answer
The label is biased. Few SARs in that segment may reflect little monitoring, not low risk. Address it by sampling and reviewing customers in that segment, using more than one outcome measure, and comparing the model against the scorecard before relying on it. Keep fixed override rules in place for sanctions and PEPs.