Given:
Factory 1 produces 70%
Factor 2 produces 30%
Defective machines in factory 1 = 2%
Defective machines in factory 2 = 5%
Find-:
What is the probability that it was produced by Factory 1?
Explanation-:
Probability of machines produced by factory1

Probability of machines produced by factory 2

Probability of factory 1 produced defective item,

Probability of factory 2 produced defective item,

So, the probability that randomly selected items was form factor 1.

Now, apply Bayes theorem is:

So, the value is:

So, the probability is 14/29.