SAS Data Science

Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Viya (Machine Learning), SAS Visual Text Analytics, with point-and-click interfaces or programming
BookmarkSubscribeRSS Feed
Scott86
Obsidian | Level 7

Hi Everyone,

 

I have build a decision tree for each month identifying customers who go bad. From April to May the gini coefficient jumps from 30% to around 50%. I think it is largely drive by one node in the decision tree which is high risk where the bads in that node go from 16% to around 50% from April to May. Would this line of thinking be correct or is the gini coefficient for this node around 0 because 50% of the obs are bad and the other 50 are good? I am looking at the equation for gini coefficient in the link below and am not wrapping my head around it.

 

https://documentation.sas.com/?docsetId=emref&docsetTarget=p1qzwz7onopjqcn11uc04i18urg7.htm&docsetVe...

 

Any help would be appreciated.

 

Thanks

 

1 REPLY 1
fierceanalytics
Obsidian | Level 7
Scott86,

When decision tree is used, one can do predictive modeling (using the past to predict future) or one can describe to get insights.... In the former, one builds a tree using data from a snapshot time (which in your case is a month), then to apply the tree to score on future months, unlike what you are doing. What you are doing essentially is describing monthly variations using a decision tree. In this light, if your job is to report on monthly variations, I would say the explanations details you have provided are easier to understand and more useful than comparing GINI. In other words, the route does not need to go through GINI. GINI is typically if you are scoring a model into future periods and you are looking for a summary way to tell you if the model is off track and needs a rebuild.... Hope this helps. Jia

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 720 views
  • 0 likes
  • 2 in conversation