Question
Question: If a machine is correctly set up, it produces \(90\% \) acceptable items. If it is incorrectly set u...
If a machine is correctly set up, it produces 90% acceptable items. If it is incorrectly set up, it produces only 40% acceptable items. Past experience shows that 80% of the set ups are correctly done. If after a certain set up, the machine produces 2 acceptable items, find the probability that the machine is correctly set up.
Solution
Here we need to find the probability of the machine being correctly set up when the event of production of 2 acceptable item has already happened. You can use the concept of conditional probability. Denote the given probabilities and find the conditional probability for getting two acceptable items when machine setting is correct. Now use the Bayes’ theorem for the required probability.
Complete step-by-step answer:
Let’s analyse the given information in the question. The chances or probability of a machine producing acceptable items when set up correctly is 90%, i.e. 10090=0.9 . The chances or probability of a machine producing acceptable items when setups are incorrectly done is 40%, i.e. 10040=0.4 . And the chances or probability to set up a device correctly is 80%, i.e. 10080=0.8 .
With this information, we need to find the probability that the machine is correctly set up when the machine already produces 2 acceptable items.
Before starting with the solution, you should understand the concept of conditional probability. The conditional probability of an event B is the probability that the event will occur given the knowledge that an event A has already occurred. This probability is written P(B∣A) , a notation for the probability of B given A. In the case where events A and B are independent (where event A does not affect the probability of event B), the conditional probability of event B given event A is simply the probability of event B, that is P(B).
So, we let’s assume M to be the event of a machine producing 2 acceptable items. The event of the machine being set up correctly be C and the event of the machine being set up incorrectly be N. Then, the probability of setting up the machine correctly is P(C)=0.8 and the probability of setting up machine incorrectly is P(N)=1−P(C)=1−0.8=0.2 .
And the conditional probability of getting two acceptable items when machine setting is correct will be P(M∣C)=0.9×0.9=0.81 . Similarly, the probability of getting two acceptable items with the setting of machines being incorrect will be P(M∣N)=0.4×0.4=0.16
Now we need to find P(C∣M) , i.e. the probability of the machine set up correctly given that 2 items produced are acceptable.
For this, we can use Bayes’ theorem. Bayes' theorem is a formula that describes how to update the probabilities of hypotheses when given evidence. It follows simply from the axioms of conditional probability but can be used to powerfully reason about a wide range of problems involving belief updates.
Given a hypothesis H and evidence E , Bayes' theorem states that the relationship between the probability of the hypothesis before getting the evidence P(H) and the probability of the hypothesis after getting the evidence P(H∣E) is:
⇒P(H∣E)=P(E)P(E∣H)×P(H)
Using Bayes’ theorem we can write P(C∣M) as:
⇒P(C∣M)=P(M∣C)×P(C)+P(M∣N)×P(N)P(M∣C)×P(C)
Now we can substitute the known values into the above expression:
⇒P(C∣M)=P(M∣C)×P(C)+P(M∣N)×P(N)P(M∣C)×P(C)=0.8×0.9×0.9+0.2×0.4×0.40.8×0.9×0.9
Solving the above expression, we get:
⇒P(C∣M)=0.648+0.0320.648=0.680.648=680648=0.95
So, we got the required probability as 0.95
Note: The probability of an event E is denoted by P(E) . Here when we calculated the conditional probability P(M∣C) and P(M∣N) we multiplied the probability twice since we required the answer for 2 items and the given information was about just one acceptable item. Be careful while solving the Bayes’ theorem expression and use proper denotation to avoid complications.