valuable technique for selecting important variables in a predictive model by ranking them according to their importance. For a continuous target, the IV is the weighted average of WoE, which takes into account the sample size. For a binary target, the IV is also the weighted sum of WoE, as illustrated below.</p>
<div class="math notranslate nohighlight">
\[\begin{align}
   \mathrm{IV} = \sum (P(X|Y=0) - P(X|Y=1)) \mathrm{WoE},
\end{align}\]</div>
<p>The code below shows the usage of drawing top-10 features