Homework 4 (Chapter 4)
Homework 4 (Chapter 4)
Homework 4 (Chapter 4)
1. Given events A and B that may overlap, derive the probability in terms of sets using the
axioms of probability for:
a) neither A nor B
Over a long period of time, 20% of components are drawn from bin 1, 30% from bin 2, and
50% from bin 3.
Bin 1 2 3
G B G B G B
0.8 0.2 0.75 0.25 0.5 0.5
b)
(since P(H ∩ E) = P(E | Hi) P(Hi)) and the posterior probabilities, which are the
probabilities the defective component came from bin 1, 2, or 3 are
P(Bin1 ∩ B) 0.04
P(Bin1 | B) = P(B) = 0.365 = 0.110
P(Bin2 ∩ B) 0.075
P(Bin2 | B) = P(B) = 0.365 = 0.205
P(Bin3 ∩ B) 0.25
P(Bin3 | B) = P(B) = 0.365 = 0.685
3. A screening test is a low-cost way of checking large groups of people for a disease. A more
costly but accurate test shows that 1% of all people have the disease. The screening test
indicates the disease (test positive) in 90% of thoses who have it, and in 20% of those who
do not have the disease (false positive).
(c) Make a table showing the outcomes, prior, conditional, joint, and posterior probabilities.
(d) What percentage of people who test positive don’t have the disease (false +) ?
(e) What percentage of people who test negative do have the disease (false – ) ?
a)
Outcomes Prior Conditional Joint Posterior
Hi P(Hi) P(+ | Hi) P(+ | Hi) P(Hi | +)
P(Hi)
Disease H1 0.01 0.90 0.009 0.043
b)
Since P(H1 | +) = 0.043, this means that 4.3% of the people who test positive have
the disease. Since P(H2 | +) = 0.957, this means that 95.7% of the people who test
positive do not have the disease (false-positive).
c)
Redo the table with the conditional probabilities of test negative (i.e. 1 − 0.9 = 0.1
and 1 − 0.2 = 0.8).
P(H2 | −) = 99.87%
is the probability of a person testing negative and not having the disease.
4. A disk drive may malfunction with either fault F1 or F2, but not both. The possible
symptoms are the following:
and F2 is three times as likely to occur as F1. For this type of drive
Find: P(F1), P(F2), P(A), P(B), P(F1 | A), P(F2 | A), P(F1 | B), P(F2 | B)
By Bayes' Theorem
P(A | F1) · P(F1) P(A | F1) P(F1)
P(F1 | A) = P(A | F ) P(F ) + P (A | F ) P(F ) = P(A)
1 1 2 2
It is given that
P(F2) = 3 P(F1)
P(F2) + P(F1) = 1
then
3 P(F1) + P(F1) = 1
and so
P(F1) = 0.25 P(F2) = 0.75
Also
P(A) = P(A ∩ F1)+ P(A ∩ F2) = P(A | F1) P(F1) + P(A | F2) P(F2)
= (0.4) (0.25) + (0.2) (0.75) = 0.25
P(B) = P(B ∩ F1)+ P(B ∩ F2) = P(B | F1) P(F1) + P(B | F2) P(F2)
= (0.6) (0.25) + (0.8) (0.75) = 0.75
P(F1 | A) + P(F2 | A) = 1
P(F1 | B) + P(F2 | B) = 1
Note that these equations are also simpler to use in calculating the complementary probabilities
such as P(F1 | A) and P(F2 | A).