[Math] Bayes Theorem for Probability of Manufacturing Process

bayes-theoremprobability

A manufacturing process produces computer chips of which 6 percent are defective. This percent is actually found using a thorough (and expensive test) on a small random sample of chips. The plant engineers develop a less expensive testing procedure, T, which they perform on all chips. Chips that fail the test, whether they are functional chips or defective chips, are rejected. On the other hand, chips that pass the test, whether they are functional chips or defective chips, are accepted. Clearly we would like only functional chips to pass the test, and only defective chips to fail the test. However, this less expensive test, not being a thorough test, will allow some defective chips to pass the test, which we don't like, and will reject some functional chips, which we also don't like.

When applied to functional chips, T indicates "good" 99.9% of the time, and "bad" the remaining 0.1% of the time (thus condemning a functional chip to rejection). When the testing procedure, T, is applied to defective chips, T indicates "bad" 99.99% of the time, and the remaining 0.01% of the time, is a failure of the test to detect a defective chip.

Let T denote the test result, and C the chip quality. Abbreviating good, bad, functional and defective with g, b, f, d we rewrite the data above:

$$ \mathbb{P}(T=g|C=f) = 0.999 \\
\mathbb{P}(T=b|C=f) = 0.001
$$


$$ \mathbb{P}(T=g|C=d) = 0.0001\\
\mathbb{P} (T=b|C=d) = 0.9999
$$
Suppose we now apply the testing procedure, T, to a chip of unknown quality. Using Bayes' Theorem, compute the following probabilities:

1)$\mathbb{P}(T=g)=$

2) $\mathbb{P}(C=d|T=g)= $


Work Done:

$\mathbb{P}(f)=?$ (I'm not sure of the value i think its given, but idk where)

$\mathbb{P}(d)=0.1$
$\mathbb{P}(g|f)=0.999$
$\mathbb{P}(b|f)=0.001$
$\mathbb{P}(g|d)=0.0001$
$\mathbb{P}(b|d)=0.9999$

Then, we use Bayes' Theorem, which states that:
$$
P(Bj|A)=P(A|Bj)P(Bj)∑ki=1P(A|Bi)P(Bi)
$$
Here is an example:

enter image description here

Best Answer

1) $\mathbb{P}(T=g) = \mathbb{P}(T=g|C=f)\mathbb{P}(C=f) + \mathbb{P}(T=g|C=d)\mathbb{P}(C=d) $

2) applying definition of conditional probability twice: $$\mathbb{P}(C=d|T=g) = \frac{ \mathbb{P}(C=d \cap T=g) }{\mathbb{P}(T = g)} = \frac{\mathbb{P}(T=g|C=d)\mathbb{P}(C=d)}{\mathbb{P}(T=g)}$$

and it seems you have all probabilities given to calculate the above expressions.

Related Question