<?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 Re: Undersampling in PROC PROC HPSPLIT / Adjusting for prior probablities in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978609#M49067</link>
    <description>&lt;P&gt;I do not know that the tree-based method implemented in PROC HPSPLIT has any provision to specifically handle under- or oversampling of the response. However, this issue often comes up when using logistic modeling of a binary response and there are methods discussed in &lt;A href="http://support.sas.com/kb/22601" target="_self"&gt;this note&lt;/A&gt; for dealing with that. While not designed for the tree-based method, you could consider using the weighting method presented in the note since HPSPLIT does support a WEIGHT statement.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2025 16:28:45 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2025-11-10T16:28:45Z</dc:date>
    <item>
      <title>Undersampling in PROC PROC HPSPLIT / Adjusting for prior probablities</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978605#M49066</link>
      <description>&lt;P&gt;Greetings, I am working with imbalanced data where my target is 1,465 "Fail"&lt;SPAN&gt;&amp;nbsp;(event) and the non-event is 58,744. I have decided to undersample the data. I wanted to then ask, how do I adjust for prior probabilities in the&amp;nbsp;PROC HPSPLIT? Is it supported or not?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 15:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978605#M49066</guid>
      <dc:creator>lukholoman</dc:creator>
      <dc:date>2025-11-10T15:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Undersampling in PROC PROC HPSPLIT / Adjusting for prior probablities</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978609#M49067</link>
      <description>&lt;P&gt;I do not know that the tree-based method implemented in PROC HPSPLIT has any provision to specifically handle under- or oversampling of the response. However, this issue often comes up when using logistic modeling of a binary response and there are methods discussed in &lt;A href="http://support.sas.com/kb/22601" target="_self"&gt;this note&lt;/A&gt; for dealing with that. While not designed for the tree-based method, you could consider using the weighting method presented in the note since HPSPLIT does support a WEIGHT statement.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 16:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978609#M49067</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-11-10T16:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Undersampling in PROC PROC HPSPLIT / Adjusting for prior probablities</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978611#M49068</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... and there are methods discussed in &lt;A href="http://support.sas.com/kb/22601" target="_self"&gt;this note&lt;/A&gt; for dealing with that.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Topic = adjusting the posterior probabilities for the real priors after under-sampling the majority class in binary classification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want some additional prose on that topic and on that note (mentioned by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;) , see here :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/doc/en/emxndg/15.1/p1vqpbjwoo4bv7n1sw77e0z64xxs.htm" target="_blank"&gt;SAS Help Center: Prior Probabilities&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/doc/de/capcdc/v_031/vdmmlcdc/vdmmladvug/p04e9lvptaqss2n1qsyvuk6mkfga.htm" target="_blank"&gt;SAS Help Center: Handling Rare Events&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ciao,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 16:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978611#M49068</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2025-11-10T16:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Undersampling in PROC PROC HPSPLIT / Adjusting for prior probablities</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978646#M49069</link>
      <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; showed you , adjust prior probability, check this option:&lt;/P&gt;
&lt;PRE&gt;   proc logistic data=out;
        model y(event="1")=x;
        score data=sub &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;prior=priors&lt;/STRONG&gt; &lt;/FONT&gt;out=out2;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Nov 2025 07:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Undersampling-in-PROC-PROC-HPSPLIT-Adjusting-for-prior/m-p/978646#M49069</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-11-11T07:07:09Z</dc:date>
    </item>
  </channel>
</rss>

