# Non-negative weights in Logistic Regression

I am working on a credit scorecard model based on Logistic Regression, with output being the odds of default. There are multiple variables used, all categorical in nature. Even if there are numerical variables, we use binning to convert it to a categorical variable. The final output is later scaled to arrive at a figure which is easily understandable. Now, with that transformation, we calculate individual sub-scores for each variable then add all of them to get the credit score for an observation. To make sure that the individual sub-scores are all non-negative, I have been told to adjust all the weights of the Logistic Regression model based on the following logic:

Say there are three categories for a variable, each category will get assigned certain weights, say b1, b2, b3, we then transform each of the weights by subtracting the minimum of the three weights, so b1 will be changed to b1-minimum(b1, b2, b3).

So my question is this correct way to make sure that all the sub-scores are positive?

Edit:

I am giving an example of sub-score calculation for one variable called TENOR

Variable Category Coefficient Adjusted Coefficient Score
TENOR (35, Inf] -0.568920702 0 62
TENOR (-Inf,35] 0 0.568920702 55

The Score is derived as the sum of an offset value and (multiplier * Adjusted Coefficient).

The values of multiplier and the offset depends on how we would like the scores to be interpreted as, for example, a decrease of 15 in score should double the odds of default.

• I have to admit, I have a hard time understanding your question, sorry. Maybe you could edit it to include an example. Do I understand correctly that you are trying to add up odds? Why do you want weights to be nonnegative? Finally, binning a continuous variable is not very good practice (but that decision may already be taken). Commented Jul 22, 2022 at 9:45
• The predicted odds of default will never be less than zero, no matter the coefficients in your logistic regression. // I second the notion that binning a continuous variable needlessly destroys information, though I concede that there could be political (and even technical) reasons why this is the way your project has to proceed.
– Dave
Commented Jul 22, 2022 at 11:23
• Yeah, I understand that the predicted odds would never be less than zero, it's the individual contribution from each variable we are supposed to make positive. I have given an example of a variable above, there are nine other variables. Elaborating further on the edit, say a customer has a TENOR of 88, then the contribution of TENOR to the final credit score of that customer would be 62. Commented Jul 22, 2022 at 11:30

What you are doing is equivalent to re-defining the reference level of each categorical predictor to be the level providing the lowest (or highest, I can't quite tell from the question) odds of default. In principle there's nothing wrong with that. I assume that the multiplier is the same for all coefficients, just to put them into numerical values that seem more "easily understandable."