Hey I used iv
function from scorecard
package to calculate Information Value of my independent variables. What suprised me is fact that for one of my numerical variable I get information value equal to 4, when there is a rule of thumb that IV higher that 0.5 is suspicious. Is it normal that I get such high IV?
1 Answer
I'm going to assume you're trying to tackle a credit risk problem.
If you only have a very small dataset, getting an IV above 0.5 is not unlikely. This is because one variable alone may be enough to (almost) perfectly separate good and bad customers.
The reason 0.5 is used as a cut-off is because you may have what's called leakage. Any variable whose IV is above 0.5 may be a proxy for the response variable (whether or not a customer is good or bad).
The 0.5 is just a rule of thumb, and definitely shouldn't be taken as gospel. Think about whether or not it's possible for the variable to have an IV that high without being a proxy for the response variable.
-
$\begingroup$ Yes it's credit risk problem. My dataset is quite large (4k observations). Variables for which I get very high IV (respectively 4.5, 2.5, 2.3, 2.3, 2.1, 1.8) are numerical variables. I don't do bining before calculating IV because
iv
function fromscorecard
library handle also numerical variables. So is it still ok to have such high IV? I only calculate IV to select the variables so I don't know if I should care about it? $\endgroup$ Commented May 24, 2021 at 9:35 -
$\begingroup$ Yeah, it's ok to have variables with IVs that high. Just make sure that if the variable makes it into the final model, its not 'leaking' information about the response (not a proxy for the reponse). In industry, it's not uncommon to have well over 500 candidate variables. Like you alluded to, IV is just a way of clearing out 'less useful' variables early on in model development. It's not best approach statistically, but given computational costs of more advance techniques, it gets used the most. $\endgroup$– ralphCommented May 24, 2021 at 10:41
-
$\begingroup$ It's also worth noting that the
iv
function will automatically bin continuous (and even categorical) variables before computing the IVs. $\endgroup$– ralphCommented May 24, 2021 at 10:43
varImp
inR
, please note that the $IV$ value is somehow rescaled to 100. $\endgroup$