Suppose a certain drug test is 99% sensitive and 99% specific, 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. Let's assume a corporation decides to test its employees for opium use, and 0.5% of the employees use the drug. We want to know the probability that, given a positive drug test, an employee is actually a drug user.
Contingency Table
A contingency table can be defined as the visual representation of the relationship between two or more categorical variables that can be evaluated and registered. It is a categorical version of the scatterplot, which is used to investigate the linear relationship between two variables. A contingency table is indeed a type of frequency distribution table that displays two variables at the same time.
Binomial Distribution
Binomial is an algebraic expression of the sum or the difference of two terms. Before knowing about binomial distribution, we must know about the binomial theorem.
Formula Used:
Bayes' Theorem:
P(A\B) =
Given:
The test correctly identify drug user as testing positive 99% of the time
True positive probability = 0.99
The test correctly identify a non-user as testing negative 99% of the time
True negative probability = 0.99
0.5% of the employ use the drug.
Probability of drug user = 0.005
Trending now
This is a popular solution!
Step by step
Solved in 3 steps