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.

BinGoodsBadsBad rate% goods% badsWoEIV
Under 1 year1504021.1%16.7%40.0%−0.880.204
1 to 5 years400409.1%44.4%40.0%0.110.005
Over 5 years350205.4%38.9%20.0%0.660.126
Total90010010.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

IVPredictive power
Below 0.02Not useful
0.02 to 0.10Weak
0.10 to 0.30Medium
0.30 to 0.50Strong
Above 0.50Very 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

How Thorcast.AI helps

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.

Related terms and guides