Sub topic 11
Testing whether the model works: calibration and back-testing
This chapter assumes you know how a weighted scorecard maps factor scores to Low, Medium and High bands, and how override rules work. You should also be comfortable reading short Python scripts. Here we ask whether the ratings are any good, and what to do when they are not.
What "works" means for a rating model
A scorecard can run without errors and still rate customers badly. Weights and thresholds are usually set by expert judgment, so they need evidence behind them. Validation checks three things:
- Conceptual soundness. The factors, weights and overrides make sense for the institution's products, customers and geographies.
- Outcomes analysis. The ratings line up with what later happens to customers. This is where calibration and back-testing sit.
- Ongoing monitoring. The model keeps working as customers, data and typologies change.
Customer risk models have a weak point. Most customers are never proven to be launderers, so there is no clean "default" label like there is in credit scoring. You must pick proxies for "this customer was risky", and every test in this chapter depends on that choice.
Calibration: setting weights and thresholds on purpose
Calibration is choosing the weights, scales and band thresholds so that ratings match the risk you actually see. The thresholds in a scorecard (for example, below 2.5 is Low and 3.5 or above is High) are only starting guesses until you have tested them.
Start with two simple questions.
- How many customers land in each band? If 60% of customers are High, the High band is no longer useful. Enhanced due diligence staff cannot review that many, and the rating no longer separates anyone. If almost nobody is High, the model may be too lenient. There is no correct split. The question is whether the split matches the institution's risk appetite and review capacity.
- How sensitive is the distribution to small changes? Move a threshold by 0.1 and count how many customers change band. A large jump means many customers sit near the boundary, so their ratings are unstable.
Calibration should also include the overrides. Count how many High ratings come from the numeric score and how many from an override such as PEP status. If overrides produce most High ratings, the numeric score is doing little work. That may be acceptable, but you should know it.
Back-testing: comparing ratings with outcomes
Back-testing takes ratings assigned at a past date and compares them with what happened afterwards. The question is: did customers rated High turn out to be riskier than customers rated Low?
Choosing outcome proxies
Common proxies include:
- A suspicious activity report (SAR) or suspicious transaction report filed on the customer.
- A confirmed alert, meaning one that investigators judged worth escalating.
- Account exit for financial crime reasons.
- A law enforcement request or subpoena.
Each proxy is biased. SAR filing depends partly on how closely the customer was monitored, and High customers are monitored more, so they generate more alerts. This is a feedback loop, and it can make a model look better than it is. Use more than one proxy, and say which ones you used in the validation report.
The core test
Fix a snapshot date and take each customer's rating on that date. Then count outcomes in a follow-up window, commonly 12 months. Compute the outcome rate for each band. A working model shows monotonic rates: Low is below Medium, and Medium is below High.
from collections import Counter
BANDS = ["Low", "Medium", "High"]
def build_records():
"""Return (rating, had_sar) pairs for a sample of 1,000 customers."""
spec = {"Low": (600, 3), "Medium": (300, 9), "High": (100, 18)}
records = []
for rating, (n, hits) in spec.items():
records += [(rating, i < hits) for i in range(n)]
return records
def backtest(records):
totals, hits = Counter(), Counter()
for rating, flagged in records:
totals[rating] += 1
hits[rating] += flagged
return {b: (totals[b], hits[b], hits[b] / totals[b]) for b in BANDS}
def is_monotonic(results):
rates = [results[b][2] for b in BANDS]
return all(a < b for a, b in zip(rates, rates[1:]))
results = backtest(build_records())
for b in BANDS:
n, h, r = results[b]
print(f"{b:<7}{n:>5}{h:>5}{r:>8.1%}")
print("monotonic:", is_monotonic(results))
total_hits = sum(results[b][1] for b in BANDS)
total_customers = sum(results[b][0] for b in BANDS)
capture = results["High"][1] / total_hits
share = results["High"][0] / total_customers
print(f"High holds {share:.0%} of customers and {capture:.0%} of SAR cases")The output shows SAR rates of 0.5%, 3.0% and 18.0% for the three bands. The script prints monotonic: True, then reports that High holds 10% of customers and 60% of SAR cases. The monotonic check passes, and the model concentrates risk in a band small enough to review closely.
Reading the results
Look at these measures together:
| Measure | Question it answers | Warning sign |
|---|---|---|
| Outcome rate per band | Does risk rise from Low to High? | Rates flat or out of order |
| Capture rate | What share of outcomes sit in High? | High is large but captures little |
| Low-band outcomes | Are risky customers hiding in Low? | Confirmed cases rated Low |
| Band size | Can the institution act on each band? | High band too large to review |
Pay particular attention to confirmed bad outcomes in the Low band. Each one is a miss, and a few misses can show a pattern, such as a product or channel the model underweights.
Sample sizes
Suspicious outcomes are rare, so some cells will have very few cases. A High band with 5 SARs cannot support firm conclusions. Gather a longer window or more snapshots before changing the model on thin evidence, and report counts alongside rates.
Sampling and independent re-rating
Statistics on outcomes miss rating errors that never lead to an outcome. Add a sampling test: draw customers from each band, including some just below each threshold, and have an experienced analyst rate them independently from the KYC file. Then compare the two ratings.
Track these results:
- Agreement rate between model and analyst, by band.
- Direction of disagreement. Systematic under-rating is more serious than over-rating.
- Root causes. Wrong data, a missing factor, a bad weight, or an analyst error.
Sample customers whose ratings were overridden by an analyst or the system. Manual downgrades need a documented reason, and a high downgrade rate in one team deserves a closer look.
Below-the-line testing
Customers just under a threshold are never reviewed at the higher level. Below-the-line testing takes a sample of customers rated just under the Medium and High cut-offs and reviews them more deeply. If many of them turn out to deserve the higher band, the threshold is too high or a factor is mis-scored. Testing only above the line cannot reveal this.
The validation cycle
Back-testing feeds changes, and changes need re-testing.
Common errors
- Tuning on the test data. If you adjust weights until the back-test looks good, then report that same back-test as proof, the result is overfitted. Keep a holdout period for final testing.
- Ignoring population drift. A model calibrated on retail customers may fail after the institution adds a business banking line.
- Treating the feedback loop as proof. High customers produce more alerts because they are watched more. Compare with outcomes found by other means, such as external law enforcement requests.
- Testing the score but not the data. A model fed with blank country fields rates customers as lower risk. Check completeness alongside accuracy.
- No action on findings. A report that lists issues without owners and dates will draw the same criticism at the next examination.
What to record
Keep the data, code and results needed to repeat each test: snapshot dates, outcome definitions, sample selection method, and the decision taken on each finding. The next chapter covers governance and documentation in detail.
Exercise
A back-test shows 12-month SAR outcomes of Low: 10 of 2,000 customers, Medium: 25 of 500 customers, High: 5 of 100 customers. Compute the rate for each band. What do you conclude, and what would you do next?
Show answer
The rates are Low 0.5%, Medium 5.0% and High 5.0%. Low is clearly separated from the other two, but High is no riskier than Medium, so the rates are not strictly increasing. The High band holds only 5 cases, so the sample is too small to be sure. Next, extend the window or add earlier snapshots to get more cases, check whether High customers were reviewed differently (which could suppress or inflate SARs), and sample High and Medium customers for independent re-rating. If the pattern holds, review the weights and thresholds that separate Medium from High.