<?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: How many times out of 100 will event occur? in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800643#M3632</link>
    <description>&lt;P&gt;Yeah, I over thought this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expected value of a bad outcome is just n*p or 100*.22 = 22 bad outcomes out of 100.&lt;/P&gt;
&lt;P&gt;The variance is n(p)(1-p) or 100 * .22 * .78 = 17.16&lt;/P&gt;
&lt;P&gt;Standard deviation is&amp;nbsp; sqrt(17.16) = 4.14&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 14:02:50 GMT</pubDate>
    <dc:creator>supp</dc:creator>
    <dc:date>2022-03-07T14:02:50Z</dc:date>
    <item>
      <title>How many times out of 100 will event occur?</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800634#M3630</link>
      <description>&lt;P&gt;If we have a binary outcome event where the probability of a good outcome is .78 and the probability of a bad outcome is .22, how many times would we expect a bad outcome out of 100 trials? We can assume the trials are independent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know this is not SAS specific question but I am guessing this community will know how to solve the problem. Or at least explain how to solve it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is not appropriate to post this kind of question please feel free to remove the post.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 13:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800634#M3630</guid>
      <dc:creator>supp</dc:creator>
      <dc:date>2022-03-07T13:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How many times out of 100 will event occur?</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800635#M3631</link>
      <description>&lt;P&gt;google is your friend&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;expected value of binomial variable&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 13:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800635#M3631</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-07T13:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How many times out of 100 will event occur?</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800643#M3632</link>
      <description>&lt;P&gt;Yeah, I over thought this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expected value of a bad outcome is just n*p or 100*.22 = 22 bad outcomes out of 100.&lt;/P&gt;
&lt;P&gt;The variance is n(p)(1-p) or 100 * .22 * .78 = 17.16&lt;/P&gt;
&lt;P&gt;Standard deviation is&amp;nbsp; sqrt(17.16) = 4.14&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 14:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800643#M3632</guid>
      <dc:creator>supp</dc:creator>
      <dc:date>2022-03-07T14:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How many times out of 100 will event occur?</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800687#M3633</link>
      <description>&lt;P&gt;Since you know that the expected value is n*p, I'm not sure why you are asking this question.&amp;nbsp; However, maybe you want to be able to compute it from basic principles. For a discrete distribution, the expected value is the sum of x*PDF(x), where x ranges over the domain of the distribution. For the binomial distribution, x takes integer values on the interval [0, NTrials], where NTrials=100 is number of trials. Thus, you could compute the expected values by running the following SAS DATA step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Want;
/* the expected value is sum(x*PDF(x), x=0,1,2,...,NTrials) */
p = 0.78; NTrials = 100;
Expected = 0;
do n = 0 to NTrials;
   Expected + n*PDF("Binomial", n, p, NTrials);
end;
output;
/* the expected value is sum(x*PDF(x), x=0,1,2,...,NTrials) */
p = 1-p;
Expected = 0;
do n = 0 to NTrials;
   Expected + n*PDF("Binomial", n, p, NTrials);
end;
output;
drop n;
run;

proc print data=Want;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/How-many-times-out-of-100-will-event-occur/m-p/800687#M3633</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-07T16:30:08Z</dc:date>
    </item>
  </channel>
</rss>

