Sub topic 12
Governance, Documentation and Explainability
This chapter assumes you can read simple Python and know how a weighted scorecard and override rules produce a Low, Medium or High rating. It covers what an institution must keep and control so that the model, its changes and each rating decision can be audited.
Why governance matters
A scoring model decides how much scrutiny a customer gets. If no one can say who approved the weights, why a customer was rated Low, or when a threshold changed, the model fails an audit even when its numbers are sensible. Examiners usually ask three things:
- What does the model do, and why was it designed this way?
- Who approved it, and who approved each change?
- Why did this customer get this rating on this date?
Governance answers the first two. Explainability answers the third.
Roles and ownership
Most institutions split responsibility so that no one person builds, approves and tests the same model.
| Role | Typical responsibility |
|---|---|
| Model owner (often AML compliance) | Defines the purpose, weights and thresholds, and keeps the documentation current |
| Developer or analyst | Builds and changes the model and its code |
| Independent validator | Tests the model without having built it |
| Senior management or committee | Approves the model and material changes, and receives reports |
What to document
Model documentation should let a reader who was not involved rebuild the reasoning. A practical set includes:
- The purpose and scope: which customers are rated, and which rating bands exist.
- The risk factors, their scales and the rationale for each weight.
- The override rules, such as PEP and sanctions handling, and who may approve an exception.
- The data sources and known data limitations.
- The mapping from rating to controls and review frequency.
- Validation results and the actions taken on them.
- A change log with version number, date, reason, approver and the effect on existing ratings.
Versioning the model
Keep weights, thresholds and review cycles in one configuration that carries a version label. Then each stored rating can record which version produced it.
Explaining an individual rating
For each decision, store enough to reproduce it later. The function below returns the inputs, the contribution of each factor, the overrides applied and the model version, using the same weights and bands as the scorecard.
from datetime import date
MODEL_VERSION = "2.1"
WEIGHTS = {"customer": 0.30, "geography": 0.30, "product": 0.25, "channel": 0.15}
def band(score):
if score < 2.5:
return "Low"
if score < 3.5:
return "Medium"
return "High"
def explain_rating(factors, is_pep=False, sanctions_match=False):
contributions = {n: round(WEIGHTS[n] * factors[n], 3) for n in WEIGHTS}
score = round(sum(contributions.values()), 2)
rating = band(score)
overrides = []
if is_pep:
rating = "High"
overrides.append("PEP: rated High regardless of score")
if sanctions_match:
rating = "Escalate"
overrides.append("Sanctions match: escalated to compliance")
return {
"date": date.today().isoformat(),
"model_version": MODEL_VERSION,
"inputs": factors,
"contributions": contributions,
"score": score,
"overrides": overrides,
"rating": rating,
}
record = explain_rating(
{"customer": 2, "geography": 4, "product": 3, "channel": 2}, is_pep=True
)
print(record["score"], record["rating"], record["overrides"])
# 2.85 High ['PEP: rated High regardless of score']The record shows that the numeric score was 2.85 (Medium) and that the PEP rule raised it to High. A reviewer sees both facts instead of only the final label.
Overrides by people
Analysts sometimes change a rating by hand. Allow it, but require a written reason, an approver and a timestamp. Report the share of manual changes. A high share suggests the model does not fit the customer base.
Common gaps
- Weights that exist in code but have no written rationale.
- Changes made to thresholds without an approval record.
- Ratings stored without the inputs that produced them.
- Documentation that describes an older version of the model.
Exercise
A reviewer asks why a customer with a numeric score of 2.85 was rated High. Which fields in a stored rating record answer this, and what should the manual-override process require if an analyst later lowers the rating?
Show answer
The overrides field (for example "PEP: rated High regardless of score"), together with the score, the factor contributions and the model version, shows that the PEP rule raised a Medium score to High. If an analyst lowers the rating by hand, the process should require a written reason, a named approver and a timestamp, and it should keep the earlier rating in the history.