<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Gini credit risk model in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Gini-credit-risk-model/m-p/954417#M10964</link>
    <description>Hello&lt;BR /&gt;I build a credit risk model on 100,000 customers. I split the data into train 70% and test 30% and built the model on train data. Then the results are Gini 79.5% on train and 78.5% on test . My question- is this difference of 1% is okay or mention a problem ?</description>
    <pubDate>Sat, 21 Dec 2024 17:48:24 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2024-12-21T17:48:24Z</dc:date>
    <item>
      <title>Gini credit risk model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Gini-credit-risk-model/m-p/954417#M10964</link>
      <description>Hello&lt;BR /&gt;I build a credit risk model on 100,000 customers. I split the data into train 70% and test 30% and built the model on train data. Then the results are Gini 79.5% on train and 78.5% on test . My question- is this difference of 1% is okay or mention a problem ?</description>
      <pubDate>Sat, 21 Dec 2024 17:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Gini-credit-risk-model/m-p/954417#M10964</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-12-21T17:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Gini credit risk model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Gini-credit-risk-model/m-p/954433#M10965</link>
      <description>&lt;P&gt;1) You could do Wilcoxon Test(non-parameter method) to check whether the score from TRAIN and TEST are conform to the same distribution.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data train test ;
 set sashelp.heart(keep=status ageatstart);
 if status='Alive' then output train;
  else output test;
 rename ageatstart=score;
run;

data all;
 set train test indsname=indsname;
 dsn=indsname;
run;
proc npar1way data=all edf;
class dsn;
var score;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1734833628057.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103330i31BA00114CED81F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1734833628057.png" alt="Ksharp_0-1734833628057.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here D is KS value which is &amp;gt; 0.3 and PValue=&amp;lt;.0001&lt;/P&gt;
&lt;P&gt;that means it is significant(a.k.a&amp;nbsp; the score is different from TRAIN and TEST, &lt;SPAN&gt;&amp;nbsp;Gini 79.5% on train and 78.5%&amp;nbsp;on test is different with each other&lt;/SPAN&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)You also can do ANOVA if your score from TRAIN and TEST both are conform to&amp;nbsp; NORMAL distribution.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc glm data=all ;
class dsn;
model score=dsn/solution;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1734833946024.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103331iDB4DA96F646FB5E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1734833946024.png" alt="Ksharp_1-1734833946024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3)You also could compare two ROC curve by Chisquare Test.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/45/339.html" target="_blank"&gt;https://support.sas.com/kb/45/339.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 08:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Gini-credit-risk-model/m-p/954433#M10965</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-12-22T08:39:37Z</dc:date>
    </item>
  </channel>
</rss>

