Imagine that I have a weight-of-evidence scorecard that has the following properties. I…
- User
Imagine that I have a weight-of-evidence scorecard that has the following properties. I have an intercept value of -3.15 and three coefficients: -1.01, -1.00, -0.93. I would like to convert my model predictions in logit form to scorecard points (ideally maximum of 100 points). Unlike typical scorecards where more points is better, I want to do the opposite. In case a customer received more points, I would be able to say that 30 points because feature A is bad, another 40 points is because feature B is bad, and remaining 30 are due to feature 3. This would be similar to Shapley values where total prediction is decomposed into elements. How can I achieve this preferably in Python or even SQL? I use formula ratio goods to ratio bads in my WOE formula such that a WOE of -3 would correspond to higher risk than on average.
- Assistant
To achieve this, you can follow these steps:
- Calculate the logit score using the weight-of-evidence (WOE) scorecard.
- Normalize the logit score to a range of 0 to 100.
- Allocate the normalized score to each feature based on their respective coefficients.
Here's a Python implementation of the above steps:
python
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.