Sub topic 3
The KYC data that feeds a risk score
A risk score can only be as good as the data behind it. This chapter covers which KYC data points feed each risk factor, where they come from, and the quality problems that corrupt a score without anyone noticing. It assumes you know what KYC and customer due diligence (CDD) are at a high level, that you understand the four factor categories (customer, geography, product, channel), and that you can read simple Python.
Why data comes before the model
A scorecard turns inputs into a rating. If an input is wrong, missing, or out of date, the arithmetic still runs and produces a confident-looking number. Nothing in the code tells you the number is wrong.
Three things go wrong most often:
- A field is missing, and the model silently treats it as "no risk."
- A field is stale, so the score describes the customer as they were years ago.
- A field is free text, so the same fact is recorded in many forms and cannot be scored consistently.
Regulators tend to find these problems in examinations. A well-designed weighting scheme does not compensate for them.
Mapping KYC data to risk factors
Each risk factor category needs specific inputs. The table shows typical examples. Your institution's list will differ.
| Factor | Typical KYC inputs | Common source |
|---|---|---|
| Customer | Customer type (individual, company, trust), occupation or industry, ownership structure, PEP status, length of relationship | Onboarding form, registry extracts, screening vendor |
| Geography | Country of residence, country of incorporation, nationality, countries of operation, counterparties' countries | ID documents, registry extracts, transaction data |
| Product | Account type, expected products, cash intensity, cross-border features | Product system, onboarding form |
| Channel | Face-to-face, remote, introduced by a third party, use of an intermediary | Onboarding workflow metadata |
Some inputs are collected once and stay fixed, such as country of incorporation. Others change, such as occupation, products held, and expected activity. The changing ones are where staleness hurts most.
Structured and unstructured data
A scorecard needs structured data: values from a fixed list that a program can compare and map to a score. Compare these two records for the same fact.
| Field | Poor (free text) | Better (coded) |
|---|---|---|
| Occupation | "bizman", "Business owner", "self employed - import/export" | Code from a controlled list, such as `TRADER_IMPORT_EXPORT` |
| Country | "UK", "U.K.", "Great Britain", "England" | ISO 3166 code `GB` |
| Customer type | "Ltd co" | `LEGAL_ENTITY_COMPANY` |
If the country field holds four spellings of one country, a lookup table of country scores will match only some of them. The rest fall through to a default, and the default is usually wrong.
Beneficial ownership
For legal entities, the risk of the customer depends partly on the people behind it. A beneficial owner is a natural person who ultimately owns or controls the entity, commonly through a stated ownership threshold such as 25 percent, though thresholds vary by jurisdiction. Beneficial owners feed the score in two ways:
- Their attributes (residence, PEP status, sanctions status) can raise the entity's rating.
- A complex or opaque ownership chain is itself a risk signal.
If you fail to capture beneficial owners, the score reflects only the shell in front of them.
Data quality dimensions
Data quality is not one property. Check each of these separately.
- Completeness: is the field populated?
- Validity: does the value belong to the allowed set, such as a real country code?
- Accuracy: does the value match reality?
- Timeliness: how recently was it confirmed?
- Consistency: do different systems agree about the same customer?
Completeness and validity are cheap to test automatically. Accuracy is the hardest, because it needs an independent source to compare against.
Handling missing data
Missing data is the most important design decision in this chapter. You have three common options.
- Default to a neutral score. Missing is scored as medium. This is simple, but it can hide gaps and lets incomplete customers look average.
- Default to a high score. Missing is scored as high risk. This is conservative and gives staff a reason to fill the gap, but it can flood the high-risk population with data errors rather than risk.
- Block the rating. The customer cannot be rated, onboarded, or kept active until required fields exist.
For fields that are essential to the rating, such as country of residence or customer type, blocking is the safest choice. For secondary fields, a conservative default combined with a visible flag works well. Whatever you choose, record that a default was used. A rating built on three defaulted fields should be distinguishable from one built on verified data.
A data-completeness check in code
This sketch validates inputs before scoring. It uses a controlled list for countries and refuses to score when required fields are absent or invalid.
REQUIRED_FIELDS = ["customer_type", "country", "product", "channel"]
VALID_COUNTRIES = {"GB", "US", "DE", "NG", "AE"} # illustrative subset of ISO codes
VALID_CHANNELS = {"face_to_face", "remote", "intermediary"}
def validate_kyc(record):
"""Return a list of data-quality problems. An empty list means the record can be scored."""
problems = []
for field in REQUIRED_FIELDS:
if not record.get(field):
problems.append(f"missing: {field}")
country = record.get("country")
if country and country not in VALID_COUNTRIES:
problems.append(f"invalid country code: {country}")
channel = record.get("channel")
if channel and channel not in VALID_CHANNELS:
problems.append(f"invalid channel: {channel}")
return problems
good = {"customer_type": "individual", "country": "GB",
"product": "current_account", "channel": "remote"}
bad = {"customer_type": "individual", "country": "U.K.", "product": "", "channel": "remote"}
print(validate_kyc(good)) # []
print(validate_kyc(bad)) # ['missing: product', 'invalid country code: U.K.']Running this before weighted_score means a bad record produces a work item for an analyst. It does not produce a misleading rating.
Data lineage and provenance
Lineage is the record of where a value came from and when. For each scoring input you should be able to answer:
- Which system holds the authoritative value?
- Was it supplied by the customer, verified against a document, or taken from a third-party source?
- When was it last confirmed?
Self-declared and verified values deserve different confidence. A customer's stated occupation is a claim. An incorporation date taken from a company registry is a verified fact. Some programs store a source flag next to each value so that reviewers and auditors can see which is which.
from dataclasses import dataclass
from datetime import date
@dataclass
class KycValue:
value: str
source: str # "customer_declared", "document_verified", "registry"
confirmed_on: date
def is_stale(item, today, max_age_days=365):
return (today - item.confirmed_on).days > max_age_days
occupation = KycValue("trader_import_export", "customer_declared", date(2023, 3, 1))
print(is_stale(occupation, date(2025, 3, 1))) # TrueThe 365-day limit is illustrative. Institutions set it per field. A country of incorporation rarely needs reconfirming, while expected activity might.
Where the data comes from
Inputs usually arrive from several places, and they can disagree.
- Customer-supplied data. Collected at onboarding and in periodic reviews. It is cheap to get and easy to falsify or misstate.
- Documentary verification. Identity documents, proof of address, and incorporation documents.
- Public and commercial registries. Company registries, beneficial ownership registers where they exist.
- Screening vendors. Lists of PEPs, sanctions, and adverse media. These are covered in a later chapter.
- Internal behavior. Transaction history, product changes, and prior alerts or suspicious activity reports.
Internal behavior deserves special mention. Most KYC fields describe what the customer said at the start. Transaction data describes what they actually do. Some programs feed observed behavior, such as actual cross-border volume, back into the score so that it does not depend only on stated intent.
Common data errors and their effects
| Error | Effect on the score | Mitigation |
|---|---|---|
| Wrong country code | Geography score is wrong in either direction | Controlled list and validation at entry |
| Stale occupation | Customer appears lower risk than they now are | Per-field refresh rules and event triggers |
| Duplicate customer records | Risk split across records, so none looks high | Entity resolution and matching rules |
| Beneficial owner not captured | Entity rated on the shell alone | Mandatory ownership capture for legal entities |
| Default used silently | Score looks verified but is not | Log defaults and show a flag in the rating |
| Name transliteration differences | Screening misses a match | Fuzzy matching and alias fields |
Duplicates are easy to underestimate. If one person has three customer records with different spellings, each record may show modest activity and score Low, while the combined picture would score High. Linking records to one customer entity matters before scoring.
Privacy and proportionality
More data is not always better. Collecting a field you do not need creates storage, security, and data protection obligations, and may be restricted by privacy law. Collect what the risk factors and legal requirements call for, document why each field is needed, and apply retention limits that your jurisdiction requires. Be careful with fields that could produce discriminatory outcomes, such as nationality used as a crude proxy. Where geography matters, tie the score to documented country risk assessments, not to assumptions about individuals.
Putting it together
The path from raw data to a score has stages that each need checks.
The key point is the loop at the validation step. A failed record returns to a person who can fix it, and the score runs only on clean inputs.
Summary
- Each risk factor needs specific, structured KYC inputs, and free text should be converted to coded values.
- Check completeness, validity, accuracy, timeliness, and consistency separately.
- Decide deliberately how to handle missing data. Block for essential fields, and flag any default that is used.
- Keep lineage so you can show where each value came from and how fresh it is.
- Resolve duplicates and capture beneficial owners before scoring.
- Collect only the data you can justify.
Exercise
A customer's country of residence is recorded as "Nigera", which is not in your controlled country list. The scoring code uses a dictionary lookup with a default geography score of 2 (on a 1 to 5 scale) for unknown countries. Explain what goes wrong, and describe two changes that fix it.
Show answer
The lookup fails to match the misspelled value, so the customer silently receives the default of 2, which is low. A customer from a higher-risk country may therefore be under-rated, and no one is alerted. Fixes: (1) validate the country against a controlled ISO code list at entry and reject or route invalid values to an analyst, so the scorer never sees them; (2) change the default for unknown values to a conservative or blocking outcome, and log and flag any use of a default so the rating is visibly marked as incomplete.
Exercise
Three customer records, "J. Smith," "John Smith," and "Jon Smyth," share the same date of birth and address. Each shows moderate monthly transfers that score Low on the product factor. Why can this make a risk score unreliable, and what should be done before scoring?
Show answer
Risk is split across three records, so the combined activity and exposure are never assessed together. Each record may look Low while the single real customer would score higher. Before scoring, run entity resolution or matching on name variants, date of birth, and address to link the records to one customer, then score on the consolidated profile. Also review whether the pattern suggests deliberate splitting.