How WoE and IV are calculated
Group the variable into bins, count goods and bads in each one, and compute each bin's share of all goods and of all bads:
WoE = ln(% goods ÷ % bads) · IV = Σ (% goods − % bads) × WoE
A positive WoE means the bin has relatively more good customers; a negative WoE, more bad ones. In a scorecard each bin is replaced by its WoE, which turns the variable into a monotonic, easy-to-explain input for a logistic regression.
Worked example (illustrative figures)
Time in current job for 1,000 loans: 900 goods and 100 bads.
| Bin | Goods | Bads | Bad rate | % goods | % bads | WoE | IV |
|---|---|---|---|---|---|---|---|
| Under 1 year | 150 | 40 | 21.1% | 16.7% | 40.0% | −0.88 | 0.204 |
| 1 to 5 years | 400 | 40 | 9.1% | 44.4% | 40.0% | 0.11 | 0.005 |
| Over 5 years | 350 | 20 | 5.4% | 38.9% | 20.0% | 0.66 | 0.126 |
| Total | 900 | 100 | 10.0% | 0.335 |
WoE rises steadily with time in the job, which matches business intuition, and the IV of 0.335 marks the variable as strong.
How to read information value
| IV | Predictive power |
|---|---|
| Below 0.02 | Not useful |
| 0.02 to 0.10 | Weak |
| 0.10 to 0.30 | Medium |
| 0.30 to 0.50 | Strong |
| Above 0.50 | Very strong: check it is not leaking the outcome |
A very high IV is often a sign of target leakage, such as a variable that is only filled in after the loan defaults.
Good practice
- Use bins with enough records and enough bads (a common rule is at least 5% of the sample per bin).
- Look for a monotonic trend that makes business sense, and merge bins that break it.
- Give missing values their own bin: missingness is often a signal.
- Compute WoE on the training data only and apply the same bins to validation and production.
How Thorcast.AI helps
- When preparing data you can bin any numerical variable by equal width, equal frequency, optimal cut points or manual breakpoints; manual bins are the ones regulatory scorecards with WoE usually need.
- MJÖ, the modeling agent, explains the trade-offs of each encoding, including target-encoded WoE for categories with many values, and watches for leakage.
- AutoML also trains algorithms such as gradient boosting that capture non-linear relationships directly, so you can compare a WoE scorecard with a challenger model on the same data.
- Each model comes with Gini, KS, ROC and plain-language explanations ready for validation.
Frequently asked questions
What is the difference between WoE and IV?
WoE is calculated for each bin and says in which direction and how strongly that bin separates goods from bads. IV sums those differences into one number per variable to rank predictive power.
Why do scorecards use WoE?
Replacing each bin by its WoE makes the variable monotonic and linear in the log-odds, which suits logistic regression and makes each points allocation easy to explain to validators and regulators.
Is a higher IV always better?
No. Above about 0.5 the variable may be leaking information about the outcome; check how and when it is captured before using it.