Hello,
I am doing the logistic regression and ranking the final output. In the output, when I rank the observations into deciles, I dont get equal number of obs in each decile. Infact, in some deciles its as low as 35 and highest in a decile is 150. I understand the ranking is done based on predicticted probabilities, but I am wondering is this an indication of wrong prediction or ranking as most of the obs have exactly same prediction score?
Can it be becuase I am using a very few predictors (4 to 5) and all of them are categorical, hence many obs have exactly same predicted probabilities?
Thanks as always.
Sachin
Can it be becuase I am using a very few predictors (4 to 5) and all of them are categorical, hence many obs have exactly same predicted probabilities?
Yes, if you have few predictors that are all categorical you only have a few values.
For example, if you have 3 predictors with 3 levels each, then you have a total of 3*3 = 9 possible predicted values total.
How are you doing the ranking? Are there ties in the data?
@sachin01663 wrote:
Hello,
I am doing the logistic regression and ranking the final output. In the output, when I rank the observations into deciles, I dont get equal number of obs in each decile. Infact, in some deciles its as low as 35 and highest in a decile is 150. I understand the ranking is done based on predicticted probabilities, but I am wondering is this an indication of wrong prediction or ranking as most of the obs have exactly same prediction score?
Can it be becuase I am using a very few predictors (4 to 5) and all of them are categorical, hence many obs have exactly same predicted probabilities?
Thanks as always.
Sachin
How are you ranking "the final output"? It might help to show the code used.
Can it be becuase I am using a very few predictors (4 to 5) and all of them are categorical, hence many obs have exactly same predicted probabilities?
Yes, if you have few predictors that are all categorical you only have a few values.
For example, if you have 3 predictors with 3 levels each, then you have a total of 3*3 = 9 possible predicted values total.
There is no reason to expect that the decile groups, determined using the predicted probabilities, will have equal sizes. It is not an indication of any problem.
Thanks everyone.
I was expecting the same as I have very few predictors with less levels hence quite a few customers are getting same probability score.
Appreciate your time !!
Sachin
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.