Respuesta :
Answer:
(a) The probability tree is shown below.
(b) The probability that a person who does not use heroin in this population tests positive is 0.10.
(c) The probability that a randomly chosen person from this population is a heroin user and tests positive is 0.0279.
(d) The probability that a randomly chosen person from this population tests positive is 0.1249.
(e) The probability that a person is heroin user given that he/she was tested positive is 0.2234.
Step-by-step explanation:
Denote the events as follows:
X = a person is a heroin user
Y = the test is correct.
Given:
P (X) = 0.03
P (Y|X) = 0.93
P (Y|X') = 0.99
(a)
The probability tree is shown below.
(b)
Compute the probability that a person who does not use heroin in this population tests positive as follows:
The event is denoted as (Y' | X').
Consider the tree diagram.
The value of P (Y' | X') is 0.10.
Thus, the probability that a person who does not use heroin in this population tests positive is 0.10.
(c)
Compute the probability that a randomly chosen person from this population is a heroin user and tests positive as follows:
[tex]P(X\cap Y)=P(Y|X)P(X)=0.93\times0.03=0.0279[/tex]
Thus, the probability that a randomly chosen person from this population is a heroin user and tests positive is 0.0279.
(d)
Compute the probability that a randomly chosen person from this population tests positive as follows:
P (Positive) = P (Y|X)P(X) + P (Y'|X')P(X')
[tex]=(0.93\times0.03)+(0.10\times0.97)\\=0.1249[/tex]
Thus, the probability that a randomly chosen person from this population tests positive is 0.1249.
(e)
Compute the probability that a person is heroin user given that he/she was tested positive as follows:
[tex]P(X|positive)=\frac{P(Y|X)P(X)}{P(positive)} =\frac{0.93\times0.03}{0.1249}= 0.2234[/tex]
Thus, the probability that a person is heroin user given that he/she was tested positive is 0.2234.