<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Base_Rates</id>
	<title>Base Rates - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Base_Rates"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Base_Rates&amp;action=history"/>
	<updated>2026-05-21T18:16:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Base_Rates&amp;diff=16816&amp;oldid=prev</id>
		<title>Ahnboyoung: /* Quiz */</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Base_Rates&amp;diff=16816&amp;oldid=prev"/>
		<updated>2014-05-26T18:01:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Quiz&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|Probability| 08}}&lt;br /&gt;
&lt;br /&gt;
Suppose that at your regular physical exam you test positive for Disease X. &lt;br /&gt;
* Although Disease X has only mild symptoms, you are concerned and ask your doctor about the accuracy of the test. &lt;br /&gt;
* It turns out that the test is 95% accurate. &lt;br /&gt;
* It would appear that the probability that you have Disease X is therefore 0.95. &lt;br /&gt;
&lt;br /&gt;
However, the situation is not that simple.&lt;br /&gt;
* For one thing, more information about the accuracy of the test is needed because there are two kinds of errors the test can make: misses and false positives. &lt;br /&gt;
* If you actually have Disease X and the test failed to detect it, that would be a miss. &lt;br /&gt;
* If you did not have Disease X and the test indicated you did, that would be a false positive. &lt;br /&gt;
* The miss and false positive rates are not necessarily the same. &lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
Suppose that the test accurately indicates the disease in 99% of the people who have it and accurately indicates no disease in 91% of the people who do not have it. &lt;br /&gt;
*In other words, the test has a miss rate of 0.01 and a false positive rate of 0.09. This might lead you to revise your judgment and conclude that your chance of having the disease is 0.91.&lt;br /&gt;
* This would not be correct since the probability depends on the proportion of people having the disease. &lt;br /&gt;
This proportion is called the base rate.&lt;br /&gt;
&lt;br /&gt;
Assume that Disease X is a rare disease, and only 2% of people in your situation have it. &lt;br /&gt;
* How does that affect the probability that you have it? &lt;br /&gt;
* Or, more generally, what is the probability that someone who tests positive actually has the disease? &lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s consider what would happen if one million people were tested. &lt;br /&gt;
* Out of these one million people, 2% or 20,000 people would have the disease. &lt;br /&gt;
* Of these 20,000 with the disease, the test would accurately detect it in 99% of them. &lt;br /&gt;
* This means that 19,800 cases would be accurately identified. &lt;br /&gt;
&lt;br /&gt;
Now let&amp;#039;s consider the 98% of the one million people (980,000) who do not have the disease. Since the false positive rate is 0.09, 9% of these 980,000 people will test positive for the disease. &lt;br /&gt;
* This is a total of 88,200 people incorrectly diagnosed.&lt;br /&gt;
* To sum up, 19,800 people who tested positive would actually have the disease and 88,200 people who tested positive would not have the disease. &lt;br /&gt;
&lt;br /&gt;
This means that of all those who tested positive, only&lt;br /&gt;
 19,800/(19,800 + 88,200) = 0.1833&lt;br /&gt;
of them would actually have the disease. &lt;br /&gt;
* So the probability that you have the disease is not 0.95, or 0.91, but only 0.1833.&lt;br /&gt;
* These results are summarized in the table below. &lt;br /&gt;
* The numbers of people diagnosed with the disease are shown in red. &lt;br /&gt;
* Of the one million people tested, the test was correct for 891,800 of those without the disease and for 19,800 with the disease; the test was correct 91% of the time. &lt;br /&gt;
* However, if you look only at the people testing positive (shown in red), only 19,800 (0.1833) of the 88,200 + 19,800 = 108,000 testing positive actually have the disease.&lt;br /&gt;
&lt;br /&gt;
[[File:ClipCapIt-140526-185319.PNG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Bayes&amp;#039; Theorem=&lt;br /&gt;
This same result can be obtained using Bayes&amp;#039; theorem. Bayes&amp;#039; theorem considers both the prior probability of an event and the diagnostic value of a test to determine the posterior probability of the event. &lt;br /&gt;
&lt;br /&gt;
For the current example, the event is that you have Disease X.&lt;br /&gt;
* Let&amp;#039;s call this Event D. &lt;br /&gt;
* Since only 2% of people in your situation have Disease X, the prior probability of Event D is 0.02. Or, more formally, P(D) = 0.02. If P(D&amp;#039;) represents the probability that Event D is false, then P(D&amp;#039;) = 1 - P(D) = 0.98.&lt;br /&gt;
* To define the diagnostic value of the test, we need to define another event: that you test positive for Disease X. &lt;br /&gt;
* Let&amp;#039;s call this Event T. &lt;br /&gt;
* The diagnostic value of the test depends on the probability you will test positive given that you actually have the disease, written as P(T|D), and the probability you test positive given that you do not have the disease, written as P(T|D&amp;#039;). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Bayes&amp;#039; theorem shown below allows you to calculate P(D|T), the probability that you have the disease given that you test positive for it.&lt;br /&gt;
 [[File:ClipCapIt-140526-185504.PNG]]&lt;br /&gt;
&lt;br /&gt;
The various terms are:&lt;br /&gt;
 P(T|D)  = 0.99&lt;br /&gt;
 P(T|D&amp;#039;) = 0.09&lt;br /&gt;
 P(D)    = 0.02&lt;br /&gt;
 P(D&amp;#039;)   = 0.98&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Therefore,&lt;br /&gt;
&lt;br /&gt;
[[File:ClipCapIt-140526-185523.PNG]]&lt;br /&gt;
&lt;br /&gt;
which is the same value computed previously.&lt;br /&gt;
&lt;br /&gt;
=Quiz=&lt;br /&gt;
&amp;lt;quiz display=simple&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{ You find out that a test for a disease is 90% accurate. What is the probability that you have this disease? &lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;()&amp;quot;}&lt;br /&gt;
-90%&lt;br /&gt;
-10%&lt;br /&gt;
-45% &lt;br /&gt;
+more information is needed&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
more information is needed&lt;br /&gt;
&lt;br /&gt;
Before determining the probability, you need to consider more information, such as the base rate of the disease in the population and the frequency of misses and false positives.&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{You are at the doctor&amp;#039;s office and have just tested positive for a disease. The test accurately indicates the disease in 98% of the people who have it. What is the miss rate (probability of a miss)?&lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 0.02 | .02 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
0.02&lt;br /&gt;
&lt;br /&gt;
Misses occur when this test inaccurately indicates that the person doesn&amp;#039;t have the disease when he/she really does. 1 - .98 equals to .02&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{The test accurately indicates the disease in 98% of the people who have it, and it accurately indicates no disease in 94% of the people who do not have it. What is the false positive rate (probability of a false positive)?&lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 0.06 | .06 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
0.06&lt;br /&gt;
&lt;br /&gt;
A false positive occurs when this test inaccurately indicates that the person has the disease when he/she doesn&amp;#039;t really have it. 1 - .94 equals to .06&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
{The base rate of the disease is 4%. In a city of 10,000, how many people have the disease? &lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 400 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
400&lt;br /&gt;
&lt;br /&gt;
10000(.04) = 400&lt;br /&gt;
}}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{Using the information in the previous questions, what is the probability that you have the disease given that the test was positive. Base rate: .04; Miss rate: .02; False positive rate: .06 &lt;br /&gt;
&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
{ 0.4 | .4 }&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
{{Show Answer|&lt;br /&gt;
0.4&lt;br /&gt;
&lt;br /&gt;
Using the formula for Bayes&amp;#039; Theorem presented in this section, the probability that you have the disease given that you tested positive is: P(D|T) is [(.98)(.04)]/[(.98)(.04) + (.06)(.96)] equal to .40&lt;br /&gt;
}}&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Ahnboyoung</name></author>
	</entry>
</feed>