Lesson 5.3: Information value and variable selection
Compute information value per variable, read it against rules of thumb, allow for noise, and screen candidates for stability, correlation and leakage.
By the end of this lesson you will be able to compute the information value of a variable from its weight of evidence table, rank a list of candidate variables, understand why more bins can inflate the number, estimate how large an information value could arise from pure noise, and run the other checks that decide whether a variable enters a scorecard: stability over time, correlation with other variables, leakage and fairness. You should have read Lessons 5.1 and 5.2, which produced the bins and the weight of evidence used here. The arithmetic is multiplication and addition of numbers you have already computed, and each result is shown in full.
A lender may have forty or four hundred candidate variables from the application form, the credit bureau, the lender's own history and perhaps the borrower's bank statements. A scorecard of fifty variables is hard to explain, expensive to maintain and prone to overfit. A good one has perhaps eight to fifteen. The question of this lesson is how to choose.
Information value
Weight of evidence tells you how strong the evidence is in each bin. Information value, or IV, adds the bins up into one number for the whole variable. For each bin, multiply the weight of evidence by the gap between the share of goods and the share of bads in that bin, and then sum:
> IV = sum over bins of ( share of goods − share of bads ) × WoE
Each term is positive. When a bin is safer than average, the share of goods exceeds the share of bads and the WoE is positive, so the product is positive. When a bin is riskier, both factors are negative and the product is again positive. A bin with no evidence has a WoE of zero and contributes nothing. A variable that separates goods from bads well has bins far from average, so a large IV.
Compute it for the utilisation bins of Lesson 5.2.
Bin · Share of goods · Share of bads · Gap · WoE · Contribution0 to 20% · 0.2122 · 0.0900 · +0.1222 · +0.858 · 0.1048
20 to 40% · 0.2078 · 0.1300 · +0.0778 · +0.469 · 0.0365
40 to 60% · 0.2028 · 0.1750 · +0.0278 · +0.147 · 0.0041
60 to 80% · 0.1944 · 0.2500 · −0.0556 · −0.251 · 0.0140
80% and above · 0.1828 · 0.3550 · −0.1722 · −0.664 · 0.1143
Information value · · · · · 0.2737
The calculation for the first row is 0.1222 × 0.858 = 0.1048. The two end bins contribute most, 0.1048 and 0.1143, because they are the furthest from average. The middle bin adds almost nothing. The total is 0.274.
Home ownership, from the same data, has contributions of 0.0519 (owned), 0.0182 (rented) and 0.0091 (living with family), a total of 0.079. Merging the rented and family bins into one gives 0.0273 for the merged bin and the same total of 0.079, which confirms that merging bins with equal WoE costs nothing.
Set the goods and bads shares equal in every bin and the information value is zero. Push the shares apart and the value climbs quickly, because both the gap and the WoE grow together.
Reading the number
Credit modellers use rules of thumb to interpret IV. They are conventions, not laws, and they depend on the product and the data, but they give a useful first sort.
Information value · Usual readingBelow 0.02 · Not useful for prediction
0.02 to 0.10 · Weak
0.10 to 0.30 · Medium
0.30 to 0.50 · Strong
Above 0.50 · Suspiciously strong: check for leakage or an error
On this scale, utilisation at 0.274 is a medium variable, close to strong, and home ownership at 0.079 is weak. A weak variable can still earn its place in a scorecard if it adds information that the others do not, but it will contribute little on its own.
The top band deserves a warning. In real lending data, very few variables genuinely separate good and bad borrowers with an IV above 0.5. When one does, the cause is usually a mistake: the variable includes information from after the decision, or it is a rewording of the outcome. Treat a very high IV as a question to investigate.
Here is a candidate list for the same 10,000 loans, with illustrative values.
Variable · IV · ReadingDelinquency in the last 12 months · 0.62 · Suspiciously strong: check definition and timing
Credit enquiries in the last 6 months · 0.31 · Strong
Credit utilisation · 0.27 · Medium
Monthly income · 0.12 · Medium
Months at current employer · 0.09 · Weak
Home ownership · 0.08 · Weak
Loan amount · 0.06 · Weak
Age · 0.045 · Weak
PIN code, grouped · 0.021 · Borderline
Marital status · 0.015 · Not useful
Predict first: the analyst sorts the list by IV and the top variable, delinquency in the last 12 months, is far ahead at 0.62. Should she put it first in the model? Think about what could make an IV that high before reading on.
Not yet. A recent delinquency is a genuinely strong predictor of future delinquency, and IVs of 0.3 to 0.5 are not impossible for such a variable. But 0.62 is high enough to check three things. First, timing: is the delinquency measured before the application date, or does the field include months after the loan was made, which would make it a restatement of the outcome? Second, definition: is it counted with the same rule as the bad flag, so that the same event is on both sides of the model? Third, availability: will the data exist at the moment of a decision in production, or does it arrive later? If any of these fails, the variable is useless in practice however well it looks on paper. This is called leakage: information that would not be available when a prediction is needed.
The more bins, the more IV
IV has a bias that catches many beginners. Cut a variable into more bins and the IV almost always rises, even if nothing real has been gained. In Lesson 5.1 the utilisation variable was cut into ten fine bins and then merged into five. The fine bins have an IV of 0.283, and the five coarse bins have an IV of 0.274. The difference, 0.009, is the information the coarse bins gave up. Is that a real loss? Probably not, and the next calculation shows why.
Even a variable with no relationship to default produces a positive IV on a finite sample, because random differences between bins register as evidence. A useful approximation for the size of this noise floor is:
> Expected IV of a pure noise variable ≈ (number of bins − 1) × (1 ÷ number of bads + 1 ÷ number of goods)
With 1,000 bads and 9,000 goods, ten bins give 9 × (0.001 + 0.000111) = 0.010, and five bins give 4 × 0.001111 = 0.0044. So the extra 0.009 that the fine bins gained is almost exactly the amount that ten bins would pick up from noise alone. The detail that was merged away was not signal. This is the strongest argument for coarse classing: it does not discard information, it discards noise.
Drop the number of bads to 200 and ten bins give a floor of 0.046, well above the 0.02 line. In a small sample, a variable with a "weak" IV of 0.04 may be nothing at all. This is why model builders insist on enough bads, and why they check IV on a holdout sample that played no part in the binning.
Beyond IV: the other screens
IV answers one question: how well does this variable separate good from bad borrowers on this sample? A scorecard variable must pass four more tests.
1. Stability over time. Compute the variable's IV and bin shares separately for each year, quarter or recent cohort. A variable whose IV is 0.30 in one year and 0.08 in the next is not reliable. A bin that shifts from 20 per cent to 5 per cent of applicants indicates a changed population or a changed data source. Module 8 introduces the population stability index for this purpose. Variables that change character over time are a leading cause of scorecards that decay quickly.
2. Correlation with other variables. Two variables that measure nearly the same thing give the model nothing extra, and they make the coefficients unstable. Compute correlations between the WoE-transformed variables. A common rule is to inspect any pair above 0.7 in absolute value and keep the one with the higher IV or the clearer business meaning. Here is an illustrative table.
Pair · Correlation · ActionAge and months at employer · 0.61 · Watch: related but different
Enquiries and utilisation · 0.52 · Keep both
Income and loan amount · 0.38 · Keep both
Utilisation and balance-to-limit ratio · 0.93 · Keep the one with higher IV, drop the other
The last pair is the same measure in two guises, and only one should survive. For larger lists, variable clustering groups variables into families and picks one or two from each family.
3. Leakage and availability. Every variable must be known at the moment of the decision, from sources the lender will have in production, and must not contain the outcome. Check the date of each field. Ask whether it is updated after the loan is made. Ask whether a field exists only for loans that were approved. A frequent source of leakage is a field filled by collections staff, such as "customer contactable", which is only completed once a loan has gone bad.
4. Fairness, legality and ethics. A scorecard must not discriminate on grounds the lender is not allowed to use, such as religion, caste or gender, and policy or regulation may restrict other characteristics. A variable can also work as a proxy: a field such as a detailed PIN code can stand in for community or neighbourhood characteristics that the lender may not use directly. A modeller should discuss borderline variables with compliance and document the reasons for including or excluding them. The test is not only whether a variable predicts default, but whether the lender can defend using it.
The selection funnel
Put the screens together and a typical development looks like a funnel. A modeller starts with 40 candidates from the application form and a credit bureau report.
Step · Variables leftCandidate variables · 40
Keep those with IV of at least 0.02 on the development sample · 24
Drop those unstable across years · 20
Drop one of each highly correlated pair · 14
Remove leakage, availability and policy problems · 11
Let the regression keep those that add predictive power · 8
Two features of the funnel are worth noting. The IV screen is a generous first cut, because the aim is only to discard variables that clearly carry no information. And the final step is statistical: with the 11 survivors, a regression with a selection method such as forward selection, or a penalty such as the lasso, keeps those that improve prediction after the others are in. A variable with a medium IV may drop out here because its information is already carried by a stronger variable.
IV in Python
A loop over the candidate list computes IV for each variable, using the weight of evidence code of Lesson 5.2.
python
import numpy as np
import pandas as pd
def ivtable(df, var, target="bad", smooth=0.5):
t = df.groupby(var, observed=True)[target].agg(loans="count", bads="sum")
t["goods"] = t["loans"] - t["bads"]
dg = (t["goods"] + smooth) / (t["goods"].sum() + smooth len(t))
db = (t["bads"] + smooth) / (t["bads"].sum() + smooth len(t))
t["woe"] = np.log(dg / db)
t["iv"] = (dg - db) t["woe"]
return t
df = pd.readcsv("binnedapplications.csv") # every variable already binned
candidates = [c for c in df.columns if c.endswith("bin")]
results = []
for c in candidates:
t = ivtable(df, c)
nbads, ngoods = t["bads"].sum(), t["goods"].sum()
floor = (len(t) - 1) (1 / nbads + 1 / ngoods)
results.append({"variable": c, "iv": t["iv"].sum(), "noisefloor": floor, "bins": len(t)})
ranking = pd.DataFrame(results).sortvalues("iv", ascending=False)
ranking["flag"] = np.where(ranking["iv"] > 0.5, "check for leakage",
np.where(ranking["iv"] < 0.02, "drop", ""))
print(ranking.round(3))
correlation of the WoE-transformed variables
woe = pd.DataFrame({c: df[c].map(ivtable(df, c)["woe"]) for c in candidates})
corr = woe.corr().abs()
pairs = corr.where(np.triu(np.ones(corr.shape), k=1).astype(bool)).stack()
print(pairs[pairs > 0.7].sortvalues(ascending=False))
Run the same loop on a holdout sample and on each year of data, then put the three sets of IVs side by side. A variable that holds up in all of them has earned its place.
A worked example: a long list, three hard calls
An analyst has the ranking table above and must decide on three variables.
Delinquency in the last 12 months (IV 0.62). She checks the data dictionary and finds that the field is refreshed monthly from the bureau, and the extract used in development was pulled six months after disbursal. It therefore includes months after the decision. She re-extracts it as of the application date. The IV falls to 0.38, still strong, and now legitimate. The lesson: the high IV was partly leakage, and the corrected variable is still the best in the model.
PIN code, grouped (IV 0.021). It clears the 0.02 line by a hair, and the noise floor with 30 groups and 1,000 bads is 29 × 0.00111 = 0.032, which is higher than the IV. It is therefore indistinguishable from noise. It also raises a proxy concern. She drops it.
Age (IV 0.045). Weak by IV. But age is cheap, always available, stable across years, and correlated with months at employer at 0.61 only. A regression shows it adds a little power once income is in. She keeps it, with the knowledge that its contribution is modest, and documents the reason.
Three variables, three different outcomes, and in each case the decision rested on more than the IV figure alone.
Common mistakes
Selecting on IV alone. It ignores stability, correlation, leakage and fairness.
Believing a very high IV. Above 0.5, look for leakage first.
Comparing IV across different binnings. More bins give a higher IV, partly from noise.
Ignoring the noise floor in small samples. With few bads, weak variables are not distinguishable from nothing.
Computing IV on the data used to choose the bins. Confirm on a holdout.
Keeping two copies of the same measure. Drop one of each highly correlated pair.
Using fields that are only filled after the decision. Check dates and the process that creates each field.
Skipping the fairness review. A variable that predicts well can still be inappropriate to use.
Key takeaways
Information value sums, over bins, the gap between the share of goods and the share of bads times the WoE. Utilisation scored 0.274 and home ownership 0.079.
Rules of thumb: below 0.02 not useful, 0.02 to 0.1 weak, 0.1 to 0.3 medium, 0.3 to 0.5 strong, above 0.5 suspicious.
More bins raise the IV partly through noise. The expected noise floor is about (bins − 1) × (1 ÷ bads + 1 ÷ goods), which explains why merging fine bins loses little real signal.
Beyond IV, a variable needs stability over time, low correlation with others, no leakage and no fairness problem.
A selection funnel moves from many candidates to a short list, and a regression makes the final choice among the survivors.
Always confirm on a holdout and across years, and record why each variable was kept or dropped.
Check yourself
1. A bin has a share of goods of 25 per cent, a share of bads of 10 per cent and a WoE of +0.916. What is its contribution to IV?
(0.25 − 0.10) × 0.916 = 0.137.
2. A variable has an IV of 0.015 on a sample of 500 bads and 9,500 goods with 6 bins. Is it worth keeping?
The IV is below the 0.02 line, and the noise floor is 5 × (1/500 + 1/9,500) = 0.0105. It is hardly distinguishable from noise. Drop it.
3. Why does a very high IV, such as 0.7, call for a check and not a celebration?
It usually means leakage: the variable contains information from after the decision or restates the outcome. Check its timing, definition and availability.
4. Two variables have a correlation of 0.88 between their WoE values, and IVs of 0.18 and 0.15. What would you do?
Keep the one with the higher IV unless a business reason favours the other, and drop the second, since it adds little and makes the coefficients unstable.
5. A variable's IV is 0.28 in 2024 and 0.07 in 2025. What does this suggest?
Its relationship with default has changed, or its data source or population has. It is unstable and is a risky input until the cause is understood.
Try this
Rank and screen a list of candidate variables. Set aside forty to forty-five minutes.
1. Use the WoE tables you built in Lesson 5.2, or invent bin counts for six variables with 10,000 loans and 1,000 bads. Make one variable strong, two medium, two weak and one nearly useless.
2. Compute the IV of each variable, writing out the contribution of every bin. Rank them and chart the result.
3. For each variable compute the noise floor from its number of bins, and compare it with the IV. Mark any variable within a factor of three of its floor.
4. Invent a correlation table for the six variables. Find any pair above 0.7 and decide which to keep.
5. Choose one variable and imagine it contains post-decision information. Describe how you would detect it from the data dictionary and from an unusually high IV.
6. Use the IV simulator to see what happens when you shift the shares of goods and bads in one bin by five points, and write down the effect on the total.
7. Write a five-sentence note to a model reviewer: your ranking, the variables you would drop and why, the one you would investigate for leakage, and the checks you would run on a holdout and across years.
A good result is a ranked table with noise floors beside the IVs, a short list with reasons for every decision, and a note a reviewer could challenge. Lesson 5.4 extends weight of evidence to targets that are not simply good or bad, such as the share of a loan lost after default.
Tags: Credit Risk Analytics Information Value Variable Selection Scorecard Model Risk