I am having trouble with this problem. I believe I have to use Bayes' formula in this problem, but I notice there are three variables(I'm new to prob stat so I don't know if it would be considered a variable).
Here is the problem:
PROBLEM 1 A college is buying dry-erase markers from three companies, company A, company B, company C. The defect rates, the number of defected markers per company, are 8%, 5%, 3% respectively. College bought 10,000 markers, 5% from company A, 20% from company B, and 75% from company C. Randomly picked marker has been found defected.
What are the chances that it comes from a company other than company C?
This is Bayes' formula: P(A/B) = P(A)P(B|A)/P(A)P(B|A)+P(not - A)P(B|not - A) How can I handle this problem?
Ok I will write out the general idea without plugging in the numbers.
Let A be the event that the marker is from company A. Let B be the event that the marker is from company B. Let C be the event that the marker is from company C. Let D be the event that the marker is defective.
The probability that it comes from other than C is
$Pr(A | D) + Pr (B | D)$.
Using Bayes Rule, we have
$Pr(A | D) = \frac{Pr(D | A) Pr(A)}{Pr(D)}$
Same computation goes for $Pr( B | D)$
Lastly, to compute $Pr(D)$ we use the law of total probability. We have
$Pr(D) = Pr(D | A) Pr(A) + Pr(D | B) Pr(B) + Pr( D|C) Pr(C)$