A quality-control program at a plastic bottle production line involves inspecting finished bottles for flaws such as microscopic holes. The proportion of bottles that actually have such a flaw is only 0.0002, If a bottle has a flaw, the probability is 0.995 that is will fail the inspection. If a bottle does not have a flaw,the probability is 0.99 that it will pass the inspection.
a. If a bottle fails inspection ,what is the probability that it has a flaw?
b. If a bottle passes inspection, what is the probability that it does not have a flaw?