Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad and good column names reversal? #2

Closed
scottlittle opened this issue Mar 1, 2017 · 1 comment
Closed

bad and good column names reversal? #2

scottlittle opened this issue Mar 1, 2017 · 1 comment

Comments

@scottlittle
Copy link

After running mywoe.bins where mywoe = woe.WoE() and mywoe.fit(x,y), my counts for goods and bads are reversed. My y variable denotes 1's as goods. Isn't this normal?

@Densur
Copy link
Owner

Densur commented Mar 2, 2017

Please provide more details or example.
As I currently understood it's normal:
The value of WoE will be 0 if the odds of Relative Frequency of Goods / Relative
Frequency Bads is equal to 1. If the Relative Frequency of Bads in a group is greater
than the Relative Frequency of Goods, the odds ratio will be less than 1 and the WoE
will be a negative number;
if the Relative Frequency of Goods is greater than the Relative Frequency of Bads in a group, the WoE value will be a positive number.

For details see http://documentation.statsoft.com/portals/0/formula%20guide/Weight%20of%20Evidence%20Formula%20Guide.pdf

@Densur Densur closed this as completed Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants