<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Algorithms Q&amp;A - Recent questions and answers in Probability</title>
<link>https://notexponential.com/qa/artificial-intelligence/probability</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: Disco Fever and Two Kinds of Tests</title>
<link>https://notexponential.com/763/disco-fever-and-two-kinds-of-tests?show=968#a968</link>
<description>P(RAT)=2/3 &amp;nbsp;&amp;nbsp;&amp;nbsp;P(FST)=1/3 &amp;nbsp;P(disease)=1/4&lt;br /&gt;
&lt;br /&gt;
RAT =&amp;gt; P(+ve|disease) = 3/4 &amp;nbsp;&amp;nbsp;&amp;nbsp;P(+ve|Nodisease) = 1/4&lt;br /&gt;
&lt;br /&gt;
FST =&amp;gt; P(+ve|disease) = 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;P(+ve|Nodisease) = 1/3&lt;br /&gt;
&lt;br /&gt;
P(disease|+ve) = P(+ve|disease)*P(disease) / [P(+ve|diasease) + P(+ve|Nodisease)] &lt;br /&gt;
&lt;br /&gt;
= [[P(RAT)*P(+ve|disease)+P(FST)*P(+ve|disease)]*P(disease)] / [[P(RAT)*P(+ve|disease) +P(FST)*P(+ve|disease)]*P(disease)+[P(RAT)*P(+ve|Nodisease)+P(FST)*P(+ve|Nodisease)]*P(Nodisease)]&lt;br /&gt;
&lt;br /&gt;
= [[2/3*3/4+ 1/3*1]*1/4] / [[2/3*3/4 + 1/3*1]*1/4 + [2/3*1/4 + 1/3*1/3]*3/4]&lt;br /&gt;
&lt;br /&gt;
= [1/8 + 1/12] / [1/8 + 1/12 + 1/8 + 1/12]&lt;br /&gt;
&lt;br /&gt;
= [1/8 + 1/12] / 2*[1/8 + 1/12]&lt;br /&gt;
&lt;br /&gt;
=1/2&lt;br /&gt;
&lt;br /&gt;
Therefore, probability the person has disco fever given the result is positive is 0.5</description>
<category>Probability</category>
<guid isPermaLink="true">https://notexponential.com/763/disco-fever-and-two-kinds-of-tests?show=968#a968</guid>
<pubDate>Sat, 04 May 2024 22:13:48 +0000</pubDate>
</item>
<item>
<title>Answered: Coin - Real or Biased</title>
<link>https://notexponential.com/799/coin-real-or-biased?show=801#a801</link>
<description>Let&amp;#039;s define the following events:&lt;br /&gt;
&lt;br /&gt;
A: Dealer is using the fair coin.&lt;br /&gt;
&lt;br /&gt;
B: Dealer is using the biased coin.&lt;br /&gt;
&lt;br /&gt;
O: We observe the sequence H, H, H.&lt;br /&gt;
&lt;br /&gt;
We want to calculate the probability of event B given O, i.e., P(B|O).&lt;br /&gt;
&lt;br /&gt;
By Bayes&amp;#039; theorem, we have: P(B|O) = P(O|B) * P(B) / P(O)&lt;br /&gt;
&lt;br /&gt;
P(O|B) = 1&lt;br /&gt;
&lt;br /&gt;
P(B) = 0.5&lt;br /&gt;
&lt;br /&gt;
P(O) = P(O|A)*P(A) + P(O|B)*P(B)&lt;br /&gt;
&lt;br /&gt;
We need to calculate P(O|A) and P(O|B):&lt;br /&gt;
&lt;br /&gt;
P(O|A) = P(H, H, H|A) = P(H|A)^3 = 0.5^3 = 0.125&lt;br /&gt;
&lt;br /&gt;
P(O|B) = P(H, H, H|B) = 1&lt;br /&gt;
&lt;br /&gt;
P(O) = P(O|A)*P(A) + P(O|B)*P(B) = 0.125 * 0.5 + 1 * 0.5 = 0.5625&lt;br /&gt;
&lt;br /&gt;
Now we can use these values for the Bayes theorem:&lt;br /&gt;
&lt;br /&gt;
P(B|O) = P(O|B) * P(B) / P(O) = 1 * 0.5 / 0.5625 = 0.8889</description>
<category>Probability</category>
<guid isPermaLink="true">https://notexponential.com/799/coin-real-or-biased?show=801#a801</guid>
<pubDate>Tue, 25 Apr 2023 18:42:20 +0000</pubDate>
</item>
<item>
<title>Answered: Probability of rain in desert when a reliable weatherperson predicts one</title>
<link>https://notexponential.com/753/probability-rain-desert-reliable-weatherperson-predicts?show=791#a791</link>
<description>Let&amp;#039;s say that R is the chance of it raining on a given day and FR is the chance of the weather forecaster calling for rain on a given day.&lt;br /&gt;
&lt;br /&gt;
From Bayes&amp;#039; Theorem, P(R|FR) = [P(FR|R)*P(R)]/P(FR). In other words, the probability of it raining given a forecast for rain is [ (probability of the forecast for rain on days it actually rains) * (probability of it raining on a given day) ] / (the probability of the forecaster saying it will rain on a given day).&lt;br /&gt;
&lt;br /&gt;
P(FR|R) = 0.9 (since it rains 90% of the time a forecaster predicts rain)&lt;br /&gt;
&lt;br /&gt;
P(R) = 5/365 (days of the year it should rain)&lt;br /&gt;
&lt;br /&gt;
We need to consider two cases for P(FR) and sum them together:&lt;br /&gt;
Case 1: The forecaster calls for rain on days it will rain&lt;br /&gt;
Case 2: The forecaster calls for rain on days it will not rain&lt;br /&gt;
&lt;br /&gt;
For Case #1, the forecaster is right about 90% of the days it will rain. Thus, &lt;br /&gt;
P( Case 1 ) = 0.9 * 5/365.&lt;br /&gt;
&lt;br /&gt;
For Case #2, the forecaster calls for rain on 10% of the days it won&amp;#039;t actually rain. Thus,&lt;br /&gt;
P( Case 2 ) = 0.1 * 360/365&lt;br /&gt;
&lt;br /&gt;
P(FR) = P( Case 1 ) + P( Case 2 )&lt;br /&gt;
&lt;br /&gt;
Thus,&lt;br /&gt;
&lt;br /&gt;
P(R|FR) = (0.9 * (5/365)) / ( (0.9 * (5/365)) + (0.1 * (360/365)) ) = 0.111...&lt;br /&gt;
&lt;br /&gt;
Thus, if the forecaster predicts rain, it will rain ~11.1% of the time.</description>
<category>Probability</category>
<guid isPermaLink="true">https://notexponential.com/753/probability-rain-desert-reliable-weatherperson-predicts?show=791#a791</guid>
<pubDate>Sat, 04 Mar 2023 21:17:45 +0000</pubDate>
</item>
</channel>
</rss>