SOLUTION: 4: Suppose a certain drug test is 99% accurate, that is, the test will correctly identify a drug user as testing positive 99% of the time, and will correctly identify a non-user a

Algebra.Com
Question 1206431: 4: Suppose a certain drug test is 99% accurate, that is, the test will correctly identify a drug
user as testing positive 99% of the time, and will correctly identify a non-user as testing negative 99%
of the time. This would seem to be a relatively accurate test, but Bayes's theorem will reveal a
potential flaw. Let's assume a corporation decides to test its employees for opium use, and 0.5% of the
employees use the drug. You want to know the probability that, given a positive drug test, an
employee is actually a drug user.

Answer by ikleyn(52887)   (Show Source): You can put this solution on YOUR website!
.
Suppose a certain drug test is 99% accurate, that is, the test will correctly identify a drug
user as testing positive 99% of the time, and will correctly identify a non-user as testing negative 99%
of the time. This would seem to be a relatively accurate test, but Bayes's theorem will reveal a
potential flaw. Let's assume a corporation decides to test its employees for opium use, and 0.5% of the
employees use the drug. You want to know the probability that, given a positive drug test, an
employee is actually a drug user.
~~~~~~~~~~~~~~~~~~~

Let assume that we have a 100,000 population of employees, and 0.5%, or 500 of them, are the drug users,

while the rest 100,000-500 = 99,500 are not the drug users.


Regarding these 99,500 employees, the test makes the error in 1% cases, i.e. the test mistakenly identifies 
995 as the drug users, while they are not.


Regarding the disjoint set of 0.5% = 500 drug users, the text correctly identifies 99% of them, i.e. 495, as the drug users.


So, for now, we have, in all, 995+495 = 1490 persons identified as the grug users.


These 1490 employees are "the given set of positive drug tests".


Of them, 495 are true drug users.


So, the conditional probability under the problem's question is  

     =  = 0.3322  (rounded),  or  33.22%.     ANSWER

Solved.

--------------------

It is, probably, a general rule:

        when a test, which is designed for a large population and seems (is proclaimed) to be quite accurate,
        is targeted/(is applied) to distinct a very narrow part of the entire population, then the test ceases to be so accurate.

        Simply, the true measurement unit of the test precision should be
        not in the parts of whole population,  but in parts of this narrow sub-set.



RELATED QUESTIONS

Some drug tests are about 90% reliable. This means that there is a probability of 0.9... (answered by stanbon)
Some drug tests are about 90% reliable. This means that there is a probability of 0.9... (answered by jorel555)
Suppose a company wants to do random drug testing of its employees and that 2% of the... (answered by stanbon)
A drug test is accurate 96% of the time. If the test is given to 1900 people who have... (answered by VFBundy)
A drug test is accurate 96% of the time. If the test is given to 1900 people who have... (answered by ikleyn)
I tried this problem but I ended up with different answers, and I confused myself. If you (answered by CPhill)
1 .A plane carries 140 passengers. It is known that the average weight of all passengers (answered by ewatrrr)
100,000 random people were tested for Condition A. Roberto's doctor told him he tested... (answered by CPhill)
A pharmaceutical company is testing a new cold medicine to determine if the drug has side (answered by Boreal)