Q2 i) Suppose that four persons working in a factory are given the job of stamping expiry date on the packet of buns. Person A, who stamps 20% of packets, fails to stamp the expiry date once in every 200 packets. Person B who stamps 60% of packets, fails to stamp the expiry date once in every 100 packets. Person C who stamps 15% of packets, fails to stamp the expiry date once in every 90 packets and Person D who stamps 5% of
packets, fails to stamp the expiry date once in every 200 packets. If a buyer complains that her packet of buns does not show the expiry date, what is the probability that,
a) It was Person A who failed to stamp?
b) It was stamped by Person B or C?
c) What is the probability that a packet bought shows an expiry date and it was not stamped by B?
P(person A) = P(A) = 20% = 0.2
P(person B) = P(B) = 60% = 0.6
P(person C) = P(C) = 15% = 0.15
P(person D) = P(D) = 5% = 0.05
P(failed to stamp | person A) = P(failed | A) = 1 in every 200
P(failed to stamp | person B) = P(failed | B) = 1 in every 100
P(failed to stamp | person C) = P(failed | C) = 1 in every 90
P(failed to stamp | person D) = P(failed | D) = 1 in every 200
a) Required probability = P(A | failed to stamp)
Bayes theorem
b) Required probability = P(B | failed to stamp) + P(C | failed to stamp)
P(B | failed to stamp)
P(C | failed to stamp)
Required probability = P(B | failed to stamp) + P(C | failed to stamp)
= 0.1714 + 0.4714
= 0.6428
c) Required probability = P[Bc | failed to stamp]
= 1 - P(B | failed to stamp)
= 1 - 0.1714
= 0.8286
Comments