<?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: Reg: Probability in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reg-Probability/m-p/38900#M7868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this is the right place for you to ask this kind of question, unless you were asking how to calculate it using SAS, which in that case, I can't provide the answer. That being said, you may get better answers(academic wise) elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you say 'chance', I would reflect 'probability', which will never larger than 1 (I hope I am not too statistical anal here). Anyway, to anwer your question:&lt;/P&gt;&lt;P&gt;If you throw 3 times, then the total number of possible senario will be: 2(head,tail)*2*2=8&lt;/P&gt;&lt;P&gt;And the total number of 2-heads secario: 3*2/2=3, sorry don't know how to post the formula symbol.&lt;/P&gt;&lt;P&gt;Therefore the chance of your getting 2-heads is 3/8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2.&lt;/P&gt;&lt;P&gt;Can't believe they ask that in an interview. Anyway, the maxium time you need to weigh is 3. here is how:&lt;/P&gt;&lt;P&gt;Rondomly you picked 4 balls, one pair on each side of balance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pair A vs. Pair B,&lt;/P&gt;&lt;P&gt;1. if they don't balance, then choose the lighter pair do another weighing, then you get your answer. This is the better scenario, which only takes 2 times.&lt;/P&gt;&lt;P&gt;2. if they do balance, then put them aside, choose another 2 pairs from remaining 5 balls, and weight&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.1&amp;nbsp; if they do balance, then you will know the unweighed left one is the culprit. 2 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.2&amp;nbsp; if they don't balance, then it will take you another weighing to decide. This is the worst scenario, and it takes 3 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2012 12:37:45 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2012-03-21T12:37:45Z</dc:date>
    <item>
      <title>Reg: Probability</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-Probability/m-p/38899#M7867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Actually i am having a Query for probability asked in a Interview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q:1&lt;/P&gt;&lt;P&gt;&amp;nbsp; If i have tossed a coin for 3 times what is the chance of getting Head 2 Times&lt;/P&gt;&lt;P&gt;they told 2 times but how.Can any one explain.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Q:2&lt;/P&gt;&lt;P&gt;I am having 9 balls out of which i am having one ball with less weight each ball weight is 1 kg and the defect ball has 1 gm les in weight.&lt;BR /&gt;&amp;nbsp; I am having a balance at once 2 balls can we weighed in two pans.&lt;/P&gt;&lt;P&gt;What is the probaility to find the defect ball &lt;/P&gt;&lt;P&gt;The answer is 3 But how.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 11:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-Probability/m-p/38899#M7867</guid>
      <dc:creator>sas_Forum</dc:creator>
      <dc:date>2012-03-21T11:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Probability</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-Probability/m-p/38900#M7868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this is the right place for you to ask this kind of question, unless you were asking how to calculate it using SAS, which in that case, I can't provide the answer. That being said, you may get better answers(academic wise) elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you say 'chance', I would reflect 'probability', which will never larger than 1 (I hope I am not too statistical anal here). Anyway, to anwer your question:&lt;/P&gt;&lt;P&gt;If you throw 3 times, then the total number of possible senario will be: 2(head,tail)*2*2=8&lt;/P&gt;&lt;P&gt;And the total number of 2-heads secario: 3*2/2=3, sorry don't know how to post the formula symbol.&lt;/P&gt;&lt;P&gt;Therefore the chance of your getting 2-heads is 3/8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2.&lt;/P&gt;&lt;P&gt;Can't believe they ask that in an interview. Anyway, the maxium time you need to weigh is 3. here is how:&lt;/P&gt;&lt;P&gt;Rondomly you picked 4 balls, one pair on each side of balance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pair A vs. Pair B,&lt;/P&gt;&lt;P&gt;1. if they don't balance, then choose the lighter pair do another weighing, then you get your answer. This is the better scenario, which only takes 2 times.&lt;/P&gt;&lt;P&gt;2. if they do balance, then put them aside, choose another 2 pairs from remaining 5 balls, and weight&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.1&amp;nbsp; if they do balance, then you will know the unweighed left one is the culprit. 2 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.2&amp;nbsp; if they don't balance, then it will take you another weighing to decide. This is the worst scenario, and it takes 3 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 12:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-Probability/m-p/38900#M7868</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-21T12:37:45Z</dc:date>
    </item>
  </channel>
</rss>

