<?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: Expected Value in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638279#M30532</link>
    <description>&lt;P&gt;Equation (3) is the PDF of the binomial distribution. In SAS, you can use the PDF function to compute the binomial density.&lt;/P&gt;
&lt;P&gt;The standard definition is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pdf = PDF("Binomial", numSuccess, prob, NumTrials);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your notation:&lt;/P&gt;
&lt;P&gt;pdf = PDF("Binomial", X_it, P_Bar, N_it);&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 11:15:19 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-04-08T11:15:19Z</dc:date>
    <item>
      <title>Expected Value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/637863#M30508</link>
      <description>&lt;P&gt;How do i write a code for the equation below:&lt;/P&gt;&lt;P&gt;|a - b| - E|a - b|.&lt;/P&gt;&lt;P&gt;where E represents an expectation operator, while a and b are variables&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 15:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/637863#M30508</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2020-04-06T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expected Value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/637864#M30509</link>
      <description>&lt;P&gt;SAS does not have a way to compute expected values of a distribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to use the "mean of the data" instead of the "Expected value of a distribution"?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 15:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/637864#M30509</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-06T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expected Value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/637893#M30514</link>
      <description>&lt;P&gt;Since E[A-B] = E[A] - E[B], this reduces to the expected value of a single random variable (rv).&lt;/P&gt;
&lt;P&gt;If A and B are discrete r.v.'s, the expected value is a sum: E[X] = SUM( X_i * p_i ).&lt;/P&gt;
&lt;P&gt;If they are continuous r.v.'s, then you are computing the means of the distributions. For many standard distributions, the mean has an explicit value in terms of the parameters of the distribution. For nonstandard distributions, you can compute the integral of x*f(x) over the support of the distribution. &lt;A href="https://blogs.sas.com/content/iml/2011/05/06/how-to-numerically-integrate-a-function-in-sas.html" target="_self"&gt;The QUAD function in SAS/IML&lt;/A&gt; can perform integrations like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 17:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/637893#M30514</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-06T17:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Expected Value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638256#M30529</link>
      <description>&lt;P&gt;Thanks for your response, i forgot to add that&amp;nbsp;the expectation is calculated based on the&lt;BR /&gt;Binomial Distribution.&lt;/P&gt;&lt;P&gt;In the above question, i tried to simplify the real question.&lt;/P&gt;&lt;P&gt;please find attached pictures that explain the full question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i find equation 2, especially the second term using SAS.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Princeelvisa_0-1586333505497.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38008i2434435CA0A147B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Princeelvisa_0-1586333505497.png" alt="Princeelvisa_0-1586333505497.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Princeelvisa_1-1586333555045.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38009i6ACFB350707DAE8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Princeelvisa_1-1586333555045.png" alt="Princeelvisa_1-1586333555045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 08:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638256#M30529</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2020-04-08T08:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expected Value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638279#M30532</link>
      <description>&lt;P&gt;Equation (3) is the PDF of the binomial distribution. In SAS, you can use the PDF function to compute the binomial density.&lt;/P&gt;
&lt;P&gt;The standard definition is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pdf = PDF("Binomial", numSuccess, prob, NumTrials);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your notation:&lt;/P&gt;
&lt;P&gt;pdf = PDF("Binomial", X_it, P_Bar, N_it);&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 11:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638279#M30532</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-08T11:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expected Value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638613#M30553</link>
      <description>&lt;P&gt;Thanks Rick for your response,&lt;/P&gt;&lt;P&gt;Please in using the pdf as you specified above, how do i determine P_bar (prob) ?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 07:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638613#M30553</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2020-04-09T07:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expected Value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638623#M30554</link>
      <description>&lt;P&gt;The reference says that \bar{P}_t is the "cross-sectional average" of the P_{it}, which means averaged over the i, I suppose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have time to help you understand the paper, but perhaps others do. As always, the best way to get a good answer is to post data and the SAS code you are currently using. Good luck!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 09:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/638623#M30554</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-04-09T09:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expected Value</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/639410#M30595</link>
      <description>&lt;P&gt;Thank you Rick, i did it with your help. Thanks again&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 06:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Expected-Value/m-p/639410#M30595</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2020-04-13T06:24:36Z</dc:date>
    </item>
  </channel>
</rss>

