Sub topic 4
Turning each factor into a score
This chapter assumes you know the four factor categories (customer, geography, product or service, delivery channel), the idea of a risk-based approach, and basic KYC data. You should be comfortable reading short Python functions. Here you will learn how to convert raw customer attributes into the 1 to 5 factor scores that the weighted scorecard in the next chapter combines.
Why a scale is needed
A KYC file holds many kinds of facts. Some are categories (country of residence, occupation). Some are numbers (expected monthly turnover). Some are yes or no answers (does the customer hold bearer shares?). A scorecard can only add and weight values that share one scale. A factor score is the step that puts all of these facts on the same scale.
In this tutorial, each factor receives an integer from 1 (low risk) to 5 (high risk). The weighted scorecard code later in the chapter uses exactly this convention.
Choosing the scale
The most common choices are 3-point, 5-point and 10-point scales.
| Scale | Strength | Weakness |
|---|---|---|
| 3 points (Low, Medium, High) | Easy to explain and apply consistently | Little separation between customers; most land in the middle |
| 5 points | Enough detail to separate customers, still easy to define | Needs written definitions for each level |
| 10 points or more | Fine ranking in theory | Analysts cannot reliably tell a 6 from a 7, so the extra detail is false precision |
A 5-point scale is a common compromise and is the one used here. Whatever you choose, apply it to all factors so that a 4 in geography means the same degree of concern as a 4 in product.
Define every level in writing. A scale with only "1 is low, 5 is high" invites each analyst to read it differently. A scale anchored by concrete descriptions gives repeatable results.
Scoring methods
There are three common ways to turn an attribute into a score.
Lookup tables for categories
For categorical data, a table maps each value to a score. This is the usual method for country, occupation, customer type and product.
| Customer type | Score | Rationale (illustrative) |
|---|---|---|
| Salaried individual, verified employer | 1 | Transparent source of funds |
| Sole trader | 2 | Cash use is possible, but ownership is simple |
| Private company, simple ownership | 3 | Corporate vehicle, but owners are identified |
| Company with multi-layer or foreign ownership | 4 | Ownership hard to verify |
| Trust or company with bearer shares | 5 | Ownership can be concealed |
The values above are illustrations. Each institution sets its own, based on its risk assessment of the business it actually does.
Thresholds for numbers
For numeric data, you cut the range into bands. Expected monthly turnover for a retail account might be scored like this:
| Expected monthly turnover | Score |
|---|---|
| Under 2,000 | 1 |
| 2,000 to under 10,000 | 2 |
| 10,000 to under 50,000 | 3 |
| 50,000 to under 250,000 | 4 |
| 250,000 or more | 5 |
Cut-offs should relate to the customer segment. A turnover of 50,000 a month is unremarkable for a trading company and unusual for a student account. Many institutions therefore use different tables for different segments.
Rules combining several attributes
Sometimes one attribute alone says little, but a combination does. A cash-intensive business that also receives payments from abroad deserves a higher score than either feature suggests. Express these as explicit rules, and keep each one documented.
A worked implementation
The following code scores a customer factor and a geography factor from KYC attributes, then builds the factor dictionary that the scorecard expects. The lookup values are illustrative.
CUSTOMER_TYPE_SCORE = {
"salaried": 1,
"sole_trader": 2,
"private_company": 3,
"complex_ownership": 4,
"trust_or_bearer_shares": 5,
}
COUNTRY_SCORE = {
"DE": 1,
"FR": 1,
"ZA": 3,
"XX": 5, # placeholder for a country the institution treats as very high risk
}
TURNOVER_BANDS = [ # (upper limit exclusive, score)
(2_000, 1),
(10_000, 2),
(50_000, 3),
(250_000, 4),
]
def turnover_score(monthly_turnover):
for limit, score in TURNOVER_BANDS:
if monthly_turnover < limit:
return score
return 5
def customer_score(customer_type, monthly_turnover, cash_intensive=False):
base = max(CUSTOMER_TYPE_SCORE[customer_type], turnover_score(monthly_turnover))
if cash_intensive:
base += 1
return min(base, 5) # never exceed the top of the scale
def geography_score(residence, other_countries):
countries = [residence] + list(other_countries)
return max(COUNTRY_SCORE[c] for c in countries)
factors = {
"customer": customer_score("private_company", 30_000, cash_intensive=True),
"geography": geography_score("DE", ["ZA"]),
"product": 3,
"channel": 2,
}
print(factors)Running it prints {'customer': 4, 'geography': 3, 'product': 3, 'channel': 2}. The company type gives 3, turnover of 30,000 gives 3, the cash-intensive flag adds 1, and the geography factor takes the highest score among the countries involved.
Three design choices in this code matter.
maxacross sub-attributes. The customer type and turnover each suggest a score. Taking the higher one means a low-risk attribute cannot hide a high-risk one.- A capped adjustment. Adding 1 for cash intensity is clipped by
min(base, 5), so the score stays on the scale. - Highest country wins. A customer with links to several countries is as risky as the riskiest link, not the average.
Combining sub-attributes inside a factor
A factor often has several inputs. You have three main options.
- Maximum. The highest sub-score becomes the factor score. This is conservative and easy to explain. Its weakness is that a single high attribute always dominates.
- Average. Sub-scores are averaged. This smooths results but can dilute a serious red flag, such as one high-risk country among three low-risk ones.
- Maximum plus adjustment. Take the maximum, then add or subtract for aggravating or mitigating features, as in the code above.
Whichever you choose, apply it consistently and write it down. Choosing "maximum" for geography and "average" for customer is fine if there is a reason, but the reason should be on file.
Where the scores come from
Scoring rules should rest on evidence, not on instinct. Typical sources are:
- the institution's own enterprise-wide risk assessment, which shows where its actual exposure lies
- national risk assessments and typologies published by authorities
- lists of high-risk and monitored jurisdictions issued by international bodies, and published corruption and secrecy indices
- internal experience, such as which products and segments have generated suspicious activity reports
Geography is the clearest case. Country scores are usually built from several external sources and then adjusted, and they need a named owner who updates them when the sources change.
Edge cases
Missing data
A missing value is a decision, not a neutral fact. There are three options.
| Treatment | Effect | Risk |
|---|---|---|
| Score as 1 | Customer looks safe | Incomplete files get the lowest rating |
| Score as the middle value | Neutral | Hides the gap |
| Score as high, or block the rating | Forces the data to be collected | Can inflate high-risk counts if data quality is poor |
Many programs treat missing mandatory data as a reason to stop onboarding or to flag the file, rather than silently scoring it. At minimum, report how many ratings rely on defaults.
Unmapped values
In the code above, an unknown country raises a KeyError. This is deliberate. A new country code, a misspelling, or a new product that has no score should fail loudly and be reviewed, not fall back to an unseen default.
Boundary values
A turnover of exactly 10,000 must land in one band only. The code uses "less than the limit", so 10,000 scores 3. State boundary rules in the documentation, because analysts will otherwise disagree on borderline cases.
Clustering and compression
If almost every customer scores 2 or 3 on a factor, that factor does not separate risk. Check the distribution of scores per factor. A factor where 90 percent of customers get the same score adds little information, and it suggests the scale or thresholds need rework.
Static versus dynamic inputs
Some inputs are fixed at onboarding, such as legal form. Others change, such as turnover and countries transacted with. Decide for each input whether it is the declared value at onboarding or an observed value from behavior. Mixing them without saying so makes later reviews hard to interpret.
Common mistakes
- Defining scores without written anchors, so analysts rate the same customer differently.
- Using false precision, such as a 10-point scale nobody can apply consistently.
- Letting a missing value default to the lowest score.
- Scoring identical attributes differently across business lines with no stated reason.
- Averaging away a serious red flag.
- Changing a lookup table without recording who changed it, when and why.
What comes next
Each factor now has a score from 1 to 5. The next chapter assigns a weight to each factor and combines the scores into a single number.
Exercise
Using the code in this chapter, what does customer_score("sole_trader", 60_000) return, and what does it return with cash_intensive=True? Explain why a missing country code in geography_score should be treated differently from a country with a low score.
Show answer
A sole trader scores 2 by type. Turnover of 60,000 falls in the band 50,000 to under 250,000, which scores 4. The function takes the maximum, so the base is 4 and the result is 4. With cash_intensive=True, 1 is added to give 5, which is within the cap. An unmapped country code raises a KeyError, which is intended: it signals that the table has no entry and a person must decide the score. A low score is a reviewed decision that the country is low risk, while a missing code is the absence of any decision, and silently defaulting it could give an unreviewed jurisdiction a low rating.
Exercise
A bank scores geography as the average of the scores of all countries linked to a customer. A customer lives in a country scoring 1, and sends most payments to two countries scoring 1 and one country scoring 5. What is the average, what does the maximum method give, and which would you prefer and why?
Show answer
The scores are 1, 1, 1 and 5. The average is 8 / 4 = 2, a low-to-medium score. The maximum method gives 5. The maximum is usually preferred for geography because a single link to a very high-risk jurisdiction is a real risk signal, and averaging dilutes it. An alternative is the maximum plus an adjustment based on how much of the activity goes to that country. Whichever is chosen, the choice and its rationale should be documented.