Sub topic 5
Weighting and Combining Factor Scores
This chapter assumes you know the four customer risk factor categories (customer, geography, product, channel) and that each factor already has a score on a 1 to 5 scale, where 1 is low risk and 5 is high risk. It also assumes you can read short Python functions. Here you will learn how to turn those four numbers into one score, and where the usual errors occur.
Why combine scores at all
An institution cannot apply controls factor by factor. A customer needs one rating that sets the depth of due diligence, the monitoring intensity and the review cycle. Aggregation is the step that reduces several factor scores to a single number. That number is then mapped to a Low, Medium or High band, which a later chapter covers.
Aggregation is also where the institution's view of risk becomes explicit. Giving geography 30% of the score and channel 15% is a documented judgment about which factors matter most. Examiners and auditors will ask you to justify it.
The weighted sum
The most common method is a weighted sum. Each factor score is multiplied by its weight, and the products are added together:
score = wcustomer × scustomer + wgeography × sgeography + wproduct × sproduct + wchannel × schannel
Three rules keep the result interpretable:
- Weights are non-negative.
- Weights add up to exactly 1.0 (100%).
- Every factor score uses the same scale.
If the weights sum to 1.0 and every score runs from 1 to 5, the combined score also runs from 1 to 5. The band thresholds then mean the same thing as the factor scales. If weights sum to 1.1, every customer drifts upward and the thresholds quietly stop meaning what the documentation says.
The example below uses illustrative weights. It validates the inputs, rounds the result, and assigns a band.
import math
WEIGHTS = {"customer": 0.30, "geography": 0.30, "product": 0.25, "channel": 0.15}
ALT_WEIGHTS = {"customer": 0.25, "geography": 0.40, "product": 0.20, "channel": 0.15}
def validate_weights(weights):
if any(w < 0 for w in weights.values()):
raise ValueError("weights must be non-negative")
if not math.isclose(sum(weights.values()), 1.0):
raise ValueError("weights must sum to 1.0")
def weighted_score(factors, weights=WEIGHTS):
"""factors maps each factor name to a score from 1 (low risk) to 5 (high risk)."""
validate_weights(weights)
for name in weights:
value = factors.get(name)
if value is None:
raise ValueError(f"missing score for {name}")
if not 1 <= value <= 5:
raise ValueError(f"score for {name} must be between 1 and 5")
return round(sum(weights[name] * factors[name] for name in weights), 2)
def band(score):
if score < 2.5:
return "Low"
if score < 3.5:
return "Medium"
return "High"
typical = {"customer": 2, "geography": 4, "product": 3, "channel": 2}
score = weighted_score(typical)
print(score, band(score)) # 2.85 MediumTwo details matter here. The function rounds before the band lookup, so floating-point noise such as 2.4999999999 cannot push a customer into the wrong band. It also raises an error on a missing or out-of-range score. A silent default would hide a data problem inside a rating.
Choosing the weights
Weights are a policy decision, and there are three common ways to set them.
- Expert judgment. A working group of compliance, business and risk staff agrees the weights after reviewing the institution's own risk assessment. This is the most common starting point. Document the reasoning for each weight, not only the numbers.
- Alignment with the enterprise risk assessment. If the business-wide risk assessment finds that cross-border payments are the largest exposure, geography and product deserve more weight than channel.
- Statistical estimation. With enough labeled outcomes, such as confirmed suspicious activity reports, you can fit weights to data. Few institutions have enough confirmed cases to do this well. A later chapter covers it.
Whichever method you use, review the weights when the business changes. A new product line or a new market can make a weighting that was reasonable last year inappropriate.
Weights decide who lands in which band
Weights look like a minor technical detail, but they change ratings. Take a customer who is low risk on three factors and the highest risk on geography. The block below scores that customer under two weightings. It repeats the definitions so it runs on its own.
import math
WEIGHTS = {"customer": 0.30, "geography": 0.30, "product": 0.25, "channel": 0.15}
ALT_WEIGHTS = {"customer": 0.25, "geography": 0.40, "product": 0.20, "channel": 0.15}
def weighted_score(factors, weights):
assert math.isclose(sum(weights.values()), 1.0)
return round(sum(weights[name] * factors[name] for name in weights), 2)
def band(score):
if score < 2.5:
return "Low"
if score < 3.5:
return "Medium"
return "High"
masked = {"customer": 1, "geography": 5, "product": 1, "channel": 1}
for label, weights in [("current", WEIGHTS), ("alternative", ALT_WEIGHTS)]:
score = weighted_score(masked, weights)
print(label, score, band(score))
# current 2.2 Low
# alternative 2.6 MediumMoving 10 points of weight to geography, and taking them from customer, product and channel, changes this customer from Low to Medium. When you propose new weights, run the current customer population through both versions and count how many customers change band. That count is a quick measure of the change's impact. It tells reviewers how many extra enhanced reviews to expect before the change goes live.
Compensation: the main weakness of a weighted sum
The previous example also shows the main weakness of weighted sums. They are compensatory, which means a low score on one factor offsets a high score on another. A customer with a maximum geography score of 5 can still be rated Low if the other factors are all 1.
Sometimes this is acceptable. Often it is not, because one severe risk, such as a link to a high-risk jurisdiction, should not be diluted by a simple product. The table compares the main aggregation approaches.
| Method | How it works | Strength | Weakness |
|---|---|---|---|
| Weighted sum | Multiply each score by its weight, then add | Transparent, easy to explain and tune | One severe factor can be masked by low scores elsewhere |
| Maximum | Take the highest factor score | Never hides a severe factor | Ignores everything else, so many customers end up High |
| Weighted sum plus floor | Compute the weighted sum, then raise the rating if any factor reaches a set level | Keeps the transparency and limits masking | Needs extra rules to document and test |
Most programs use the third approach. The floor is a form of override rule, which a later chapter covers in full. For now, the point is that aggregation should be designed with masking in mind. For the customer above, a rule such as "any factor scored 5 means the rating is at least Medium" would catch the case.
Handling missing data
Real customer files have gaps. The scoring function has to decide what a missing factor means, and the two main policies give different answers.
- Conservative default. Treat the missing factor as high risk (a 5). The customer is rated cautiously until the data is collected. This also creates an incentive to fix the gap.
- Renormalize. Drop the missing factor and rescale the remaining weights so they sum to 1.0. This treats the unknown as average, which can understate risk.
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 score_conservative(factors, default=5):
return round(
sum(w * (factors[n] if factors[n] is not None else default)
for n, w in WEIGHTS.items()),
2,
)
def score_renormalised(factors):
known = {n: w for n, w in WEIGHTS.items() if factors[n] is not None}
total = sum(known.values())
return round(sum(w * factors[n] for n, w in known.items()) / total, 2)
gap = {"customer": 3, "geography": 4, "product": None, "channel": 2}
for name, fn in [("conservative", score_conservative), ("renormalised", score_renormalised)]:
s = fn(gap)
print(name, s, band(s))
# conservative 3.65 High
# renormalised 3.2 MediumThe same file produces two different ratings. Choose the policy deliberately, record it in the methodology, and count how often it triggers. If many customers rely on defaults, the problem is data collection, and no aggregation formula can fix that.
Common errors
- Weights that do not sum to 1.0. This often happens after someone adds a fifth factor without rebalancing. Validate in code and in tests.
- Mixed scales. If one factor is scored 1 to 3 and another 1 to 5, the weights no longer express relative importance. Normalize all factors to one scale first.
- Banding on unrounded scores. Customers near a threshold can flip bands because of floating-point noise. Round, then band.
- Double counting. If a high-risk country appears both in the geography score and in a separate "country rule", that risk is counted twice. Decide which mechanism owns each risk.
- Hidden weights. Weights buried in code or a vendor system that compliance cannot see are hard to defend. Keep them in a configuration that is reviewed and version-controlled.
- False precision. A score of 2.85 is not meaningfully different from 2.80. The inputs are coarse judgments, so avoid presenting small differences as evidence of different risk.
Summary of the working model
A weighted score takes validated factor scores on one scale, multiplies each by a documented weight, adds the products, rounds, and maps the result to a band. The method's strength is transparency. Its weakness is that low scores can mask a severe one, which you handle with floors and overrides. Data gaps need an explicit policy. Any change to weights should be tested against the live portfolio before release.
Exercise
Using the weights customer 0.30, geography 0.30, product 0.25 and channel 0.15, and the bands Low below 2.5, Medium from 2.5 to below 3.5, and High from 3.5 up, rate a customer scored customer 4, geography 2, product 3, channel 1. Then say what changes if a data gap forces the conservative policy on the product factor (product treated as 5).
Show answer
The score is 0.30×4 + 0.30×2 + 0.25×3 + 0.15×1 = 1.2 + 0.6 + 0.75 + 0.15 = 2.7, which is Medium. With product treated as 5, the score is 1.2 + 0.6 + 1.25 + 0.15 = 3.2, which is still Medium, but it is 0.5 closer to the High threshold of 3.5. A second gap on another factor could push the customer to High.
Exercise
A team adds a fifth factor, "transaction behavior", with weight 0.10, but leaves the other four weights unchanged. What is wrong, what is the effect on ratings, and how would you fix it?
Show answer
The weights now sum to 1.10 instead of 1.0. Every score is inflated by up to 10%, so more customers cross the Medium and High thresholds, and the thresholds no longer match the 1 to 5 scale. Fix it by rebalancing so the five weights sum to 1.0, for example by reducing the existing weights proportionally. Add a check such as validate_weights that fails when the sum is not 1.0, and run the portfolio through the old and new weights to measure how many customers change band before release.