Q.In a factory which manufactures bolts, machines A, B and C manufacture respectively 25%, 35% and 40% of the bolts. Of their outputs, 5, 4 and 2 percent are respectively defective bolts. A bolt is drawn at random from the product and is found to be defective. What is the probability that it is manufactured by the machine B?
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Conditional Probability
Conditional Probability
Roll a die and ask "what is the chance of an even number?" — that is 3/6. But suppose someone tells you the result is greater than 3. Now you are no longer looking at all six faces, only at {4,5,6}, and two of those (4 and 6) are even, so the probability becomes 2/3. That change — from the probability of A to the probability of A given that B has already occurred — is conditional probability.
The Idea: Shrink the Sample Space
Conditioning on B throws away every outcome where B is false and treats B as the new "whole world." You measure A only against what is still possible.
Think of filtering a table of data: unconditional probability uses every row; conditional probability keeps only the rows where the condition is true.
The Definition
For events A and B with P(B)>0,
P(A∣B)=P(B)P(A∩B).
We divide by P(B) to rescale so that B itself has probability 1; the surviving part of A is the overlap A∩B. Checking the die: P(A∩B)=P({4,6})=62 and P(B)=63, so P(A∣B)=3/62/6=32, matching the intuition.
Rearranging gives the multiplication rule P(A∩B)=P(A∣B)P(B), which is usually the easier way to compute a joint probability when a problem says "given that."
Two Cautions
- P(A∣B) and P(B∣A) are generally not equal; swapping them is the classic mistake. They are linked by Bayes' theorem, P(A∣B)=P(B)P(B∣A)P(A). …
Concept: Conditional Probability (Bayes' Theorem)
We want P(B∣D), the probability the bolt came from machine B given it is defective.
Step 1 – Prior probabilities
P(A)=0.25, P(B)=0.35, P(C)=0.40.
Step 2 – Likelihoods (defect rates)
P(D∣A)=0.05, P(D∣B)=0.04, P(D∣C)=0.02.
Step 3 – Total probability of a defective bolt
P(D)=0.25×0.05+0.35×0.04+0.40×0.02
=0.0125+0.0140+0.0080=0.0345.
Step 4 – Apply Bayes’ Theorem …
This is a classic Bayes’ theorem problem. We are given the prior probabilities of each machine producing a bolt and the conditional probabilities of a bolt being defective given the machine. The probability that a defective bolt came from machine B is approximately 0.406 (or 40.6%).
Why Bayes’ theorem?
We are asked: Given that a bolt is defective, what is the chance it came from machine B? This is a reverse probability — we know the chance of a defect given the machine, but we want the chance of the machine given a defect. That’s exactly what Bayes’ theorem handles.
The key insight: the total probability of a defective bolt is a weighted average of the defect rates of the three machines, weighted by their production shares. Then, the share of that total that comes from machine B is the answer.
Step-by-step solution
1. Define events clearly
Let:
- A, B, C = event that a randomly chosen bolt is made by machine A, B, or C respectively.
- D = event that the bolt is defective.
We are given:
- P(A)=0.25, P(B)=0.35, P(C)=0.40
- P(D∣A)=0.05, P(D∣B)=0.04, P(D∣C)=0.02
We want P(B∣D).
2. Find the total probability of a defective bolt
By the law of total probability:
P(D)=P(A)P(D∣A)+P(B)P(D∣B)+P(C)P(D∣C)
Substitute:
P(D)=(0.25×0.05)+(0.35×0.04)+(0.40×0.02)
Compute each term:
- 0.25×0.05=0.0125
- 0.35×0.04=0.0140
- 0.40×0.02=0.0080
Sum:
P(D)=0.0125+0.0140+0.0080=0.0345
So 3.45% of all bolts are defective.
3. Apply Bayes’ theorem
Bayes’ theorem for P(B∣D):
P(B∣D)=P(D)P(B)P(D∣B)
Plug in:
P(B∣D)=0.03450.35×0.04=0.03450.0140
4. Simplify the fraction …
Method: Bayes' Theorem (finding the cause from the observed outcome)
Use this when items come from several sources and you observe a property (here, a defect) and want the probability it came from a particular source. You are given the defect rate given each machine, but want the machine given a defect — a reversed conditional.
Steps
Step 1: Set up the partition of possible causes.
List the mutually exclusive, exhaustive hypotheses (here: the bolt was made by machine A, B or C) and write their prior probabilities P(Ei) (these must sum to 1).
Step 2: Write each likelihood.
For each cause, state P(A∣Ei) — the probability of the observed outcome (here: the bolt is defective) under that cause.
Step 3: Get the total probability of the outcome (the denominator).
By the law of total probability,
P(A)=∑iP(Ei)P(A∣Ei).
Step 4: Apply Bayes' theorem for the cause you want.
P(Ek∣A)=∑iP(Ei)P(A∣Ei)P(Ek)P(A∣Ek). …
Common Mistakes
Mistake 1: Comparing only the defect rates.
Why it's wrong: using 5+4+24=114 ignores how many bolts each machine makes. Correct approach: weight each defect rate by the machine's production share.
Mistake 2: Reporting P(defective∣B)=0.04 as the answer.
Why it's wrong: that is the likelihood, not the required P(B∣defective). Correct approach: apply Bayes' theorem to reverse the conditioning. …
Showing the 12 most recent of 69 on this concept.
- AP EAPCET 2026Set eng-2026-05-14-FN1 markMCQQ.In a bolt factory, machines A, B, C manufacture 25%, 35%, 40% of the total output respectively. There is a chance of having 5%, 4%, 2% defective bolts manufactured by A, B, C respectively. If a bolt is drawn at random from the output, then the probability that it is defective is (A) 200069 (B) 200059 (C) 200079 (D) 200089
›Reveal solutionSolution
Classic total-probability ("law of total probability") setup: weight each machine's defect rate by its share of output and sum. The answer is (A).
Concept and Intuition
When an item can come from several mutually exclusive, exhaustive sources (here, machines A, B, C), and each source has its own conditional probability of producing a defect, the overall probability of a defect is the weighted average:
P(D)=∑iP(sourcei)P(D∣sourcei).
This is the law of total probability — it's the natural way to combine "how much each machine contributes" with "how likely each machine's own output is defective."
Step-by-Step Solution
- Let A,B,C denote drawing a bolt from each machine: P(A)=0.25, P(B)=0.35, P(C)=0.40 (these sum to 1, as they must).
- Conditional defect probabilities: P(D∣A)=0.05, P(D∣B)=0.04, P(D∣C)=0.02.
- By the law of total probability:
P(D)=P(A)P(D∣A)+P(B)P(D∣B)+P(C)P(D∣C).
- Compute each term: 0.25×0.05=0.0125; 0.35×0.04=0.014; 0.40×0.02=0.008. …
- AP EAPCET 2025Set eng-2025-05-21-AN1 markMCQQ.A manufacturing company of bulbs has 3 units A, B and C which produce 25%, 35% and 40% of the bulbs respectively. Out of the bulbs produced by A, B, C units, 5%, 4% and 2% are defective respectively. If a bulb is chosen at random and found to be defective, then the probability that it is produced by unit B is (A) 6928 (B) 7128 (C) 6729 (D) 6925
›Reveal solutionSolution
This tests Bayes' theorem: given the bulb is defective, find the (reversed) probability it came from unit B. Answer: 6928.
Concept and Intuition
We know the forward probabilities (which unit makes what fraction, and each unit's defect rate), but we're asked a reverse question: given the bulb turned out defective, which unit is it likely from? Bayes' theorem reweights the prior production shares by how likely each unit was to have produced this particular (defective) outcome.
Step-by-Step Solution
- Let A,B,C be the events "bulb from unit A/B/C", with P(A)=0.25, P(B)=0.35, P(C)=0.40.
- Conditional defect rates: P(D∣A)=0.05, P(D∣B)=0.04, P(D∣C)=0.02.
- Total probability of a defective bulb: P(D)=0.25(0.05)+0.35(0.04)+0.40(0.02)=0.0125+0.014+0.008=0.0345 …
- AP EAPCET 2022Set eng-2022-07-07-FN1 markMCQQ.In a toy factory, the machines A, B and C are used to manufacture 30%, 40% and 30% of the output, respectively. The probabilities of toys made by machines A, B, and C to be defective are respectively 2%, 3% and 1%. A toy is taken from the factory and is found to be defective. The probability that it was manufactured by the machine B is (A) 4/5 (B) 2/9 (C) 3/4 (D) 4/7
›Reveal solutionSolution
This tests Bayes' theorem for finding the probability of a specific cause given an observed
effect (a defective toy); the answer is 4/7.
Concept and Intuition
When an outcome (a defective toy) could have come from several sources, each with its own prior
probability and its own conditional probability of producing that outcome, Bayes' theorem lets us
"invert" the conditioning: given that the outcome occurred, what's the probability it came from a
particular source? The key is to first find the total probability of the outcome by summing over
all sources (the law of total probability), then take the one source's contribution as a fraction of
that total.
Step-by-Step Solution
- Prior probabilities: P(A)=0.3, P(B)=0.4, P(C)=0.3.
- Conditional defect rates: P(D∣A)=0.02, P(D∣B)=0.03, P(D∣C)=0.01.
- Total probability of a defective toy (law of total probability):
P(D)=P(A)P(D∣A)+P(B)P(D∣B)+P(C)P(D∣C)=0.3(0.02)+0.4(0.03)+0.3(0.01)
=0.006+0.012+0.003=0.021.
- By Bayes' theorem: …
- AP EAPCET 2023Set eng-2023-05-19-FN1 markMCQQ.A shopkeeper buys a particular type of electric bulbs from three manufacturers M1,M2 and M3. He buys 25% of his requirement from M1, 45% from M2 and 30% from M3. Based on past experience he found that 2% of type M3 bulbs are defective, where as only 1% of type M1 and type M2 are defective. If a bulb chosen by him at random is defective, then the probability that it was of type M3 is (A) 135 (B) 136 (C) 137 (D) 138
›Reveal solutionSolution
A direct application of Bayes' theorem with the law of total probability for the defective-bulb probability. Answer: (B).
Concept and Intuition
This is a classic "reverse conditional probability" problem: we know how likely a defect is given the source, and want the reverse — the probability the source was M3 given a defect was observed. Bayes' theorem converts one into the other via the law of total probability.
Step-by-Step Solution
- Given: P(M1)=0.25, P(M2)=0.45, P(M3)=0.30; P(D∣M1)=0.01, P(D∣M2)=0.01, P(D∣M3)=0.02.
- Total probability of a defective bulb: P(D)=P(M1)P(D∣M1)+P(M2)P(D∣M2)+P(M3)P(D∣M3) =0.25(0.01)+0.45(0.01)+0.30(0.02)=0.0025+0.0045+0.006=0.013. …
- AP EAPCET 2024Set eng-2024-05-19-AN1 markMCQQ.There are 2 bags each containing 3 white and 5 black balls and 4 bags each containing 6 white and 4 black balls. If a ball drawn randomly from a bag is found to be black, then the probability that this ball is from the first set of bags is (A) 5725 (B) 4125 (C) 52 (D) 53
›Reveal solutionSolution
A classic Bayes'-theorem (inverse-probability) question: given the ball drawn is black, find the probability it came from the first group of bags. Answer: 5725.
Concept and Intuition
When an experiment happens in two stages — first a bag is picked (from one of two groups of bags), then a ball is drawn from it — and we're told the result of the second stage (a black ball came out), Bayes' theorem lets us reverse the direction of reasoning and find the probability about the first stage (which group the bag was from). The prior probability of picking from a group is proportional to how many bags are in that group (each individual bag is equally likely to be picked), and then we weight by how likely that group is to produce the observed outcome.
Step-by-Step Solution
- Groups and priors. Group 1 (call it S1) has 2 bags (each 3 white, 5 black — 8 balls). Group 2 (S2) has 4 bags (each 6 white, 4 black — 10 balls). Total bags =6, each equally likely to be chosen, so
P(S1)=62=31,P(S2)=64=32.
- Likelihoods of drawing black. From a group-1 bag: P(B∣S1)=85. From a group-2 bag: P(B∣S2)=104=52.
- Total probability of drawing a black ball (law of total probability): P(B)=P(S1)P(B∣S1)+P(S2)P(B∣S2)=31⋅85+32⋅52=245+154. …
- AP EAPCET 2025Set eng-2025-05-24-FN1 markMCQQ.In a school there are 3 sections A, B and C. Section A contains 20 girls and 30 boys, section B contains 40 girls and 20 boys and section C contains 10 girls and 30 boys. The probabilities of selecting the section A, B and C are 0.2, 0.3 and 0.5 respectively. If a student selected at random from the school is a girl, then the probability that she belongs to section A is (A) 200121 (B) 12116 (C) 8114 (D) 8116
›Reveal solutionSolution
A three-section Bayes'-theorem problem; the answer is 8116, option (D).
Concept and Intuition
Given a randomly selected student is a girl, we want to reverse-condition on which section she came from. This requires the total probability of "selecting a girl" (summed over all three sections weighted by section-selection probability), then applying Bayes' theorem to isolate section A's contribution.
Step-by-Step Solution
- Conditional probabilities of picking a girl within each section: P(girl∣A)=5020=52; P(girl∣B)=6040=32; P(girl∣C)=4010=41.
- Section-selection probabilities: P(A)=51, P(B)=103, P(C)=21.
- Joint terms: P(A)P(girl∣A)=51⋅52=252; P(B)P(girl∣B)=103⋅32=51; P(C)P(girl∣C)=21⋅41=81. …
- AP EAPCET 2024Set eng-2024-05-20-FN1 markMCQQ.A, B, C are mutually exclusive and exhaustive events of a random experiment and E is an event that occurs in conjunction with one of the events A, B, C. The conditional Probabilities of E given the happening of A, B, C are respectively 0.6, 0.3 and 0.1. If P(A)=0.30 and P(B)=0.50, then P(C∣E)= (A) 352 (B) 3515 (C) 3518 (D) 3517
›Reveal solutionSolution
This is a direct Bayes' theorem application over three mutually exclusive, exhaustive causes; P(C∣E)=2/35.
Concept and Intuition
When an event E can occur alongside any of several mutually exclusive, exhaustive causes A,B,C, Bayes' theorem lets us find the probability of a particular cause given that E has occurred, by weighing each cause's prior probability by how likely E is under it, then normalizing.
Step-by-Step Solution
- Since A,B,C are mutually exclusive and exhaustive, P(C)=1−P(A)−P(B)=1−0.30−0.50=0.20.
- Total probability of E: P(E)=P(E∣A)P(A)+P(E∣B)P(B)+P(E∣C)P(C) =0.6(0.30)+0.3(0.50)+0.1(0.20)=0.18+0.15+0.02=0.35 …
- AP EAPCET 2026Set eng-2026-05-13-FN1 markMCQQ.Bag A contains 3 white and 4 black balls. Bag B contains 4 white and 3 black balls. Bag C contains 2 white and 5 black balls. A bag is randomly selected and then a ball is randomly drawn from that bag. If the ball drawn was found to be white, then the probability that the ball is drawn from bag C is (A) 61 (B) 92 (C) 41 (D) 132
›Reveal solutionSolution
This is a direct Bayes'-theorem (inverse probability) question. Answer: 92.
Concept and Intuition
We're given the outcome (a white ball was drawn) and asked for the probability of a particular cause (it came from bag C). This is exactly Bayes' theorem: P(C∣W)=∑iP(bagi)P(W∣bagi)P(C)P(W∣C).
Step-by-Step Solution
- Each bag is chosen with probability 31.
- P(W∣A)=73 (3 white out of 7 total in bag A).
- P(W∣B)=74 (4 white out of 7 in bag B).
- P(W∣C)=72 (2 white out of 7 in bag C).
- Total probability of white: P(W)=31(73+74+72)=31⋅79=219=73. …
- AP EAPCET 2024Set eng-2024-05-21-FN1 markMCQQ.In a class consisting of 40 boys and 30 girls, 30% of the boys and 40% of the girls are good at Mathematics. If a student selected at random from that class is found to be a girl, then the probability that she is not good at Mathematics is (A) 53 (B) 52 (C) 103 (D) 107
›Reveal solutionSolution
Conditioning on "the student is a girl" restricts the sample space to the 30 girls only; the answer is 53.
Concept and Intuition
This is conditional probability with a twist: the condition ("selected student is a girl") is given as a fact, not something to be computed via Bayes' theorem. Once we know the student is a girl, the boys' statistics become irrelevant — we simply work within the group of girls.
Step-by-Step Solution
- Total girls =30.
- Girls good at Mathematics =40% of 30=12.
- Girls not good at Mathematics =30−12=18.
- Since we are told the selected student is a girl, the relevant sample space is just these 30 girls.
- P(not good at maths∣girl)=3018=53. …
- AP EAPCET 2025Set eng-2025-05-24-FN1 markMCQQ.An item is tested on a device for its defectiveness. The probability that such an item is defective is 0.3. The device gives accurate result in 8 out of 10 such tests. If the device reports that an item tested is not defective, then the probability that it is actually defective is (A) 152 (B) 293 (C) 313 (D) 514
›Reveal solutionSolution
A direct Bayes'-theorem inversion problem; the item is actually defective with probability 313 given a "not defective" report — option (C).
Concept and Intuition
The device's report can be wrong. To find the true state given an observed (possibly wrong) report, we must weigh both ways the report could have arisen: a genuinely non-defective item correctly reported as such, or a genuinely defective item incorrectly reported as non-defective. Bayes' theorem combines these.
Step-by-Step Solution
- Let D: item defective, P(D)=0.3; D′: item not defective, P(D′)=0.7.
- Device accuracy =0.8, so it errs with probability 0.2.
- "Reports not defective" while the item is defective means the device made an error: P(report ND∣D)=0.2.
- "Reports not defective" while the item is not defective means the device was accurate: P(report ND∣D′)=0.8. …
- AP EAPCET 2024Set eng-2024-05-23-FN1 markMCQQ.Bag A contains 2 white and 3 red balls and bag B contains 4 white and 5 red balls. If one ball is drawn at random from one of the bags and is found to be red, then the probability that it was drawn from the bag B is (A) 5423 (B) 5125 (C) 5225 (D) 5527
›Reveal solutionSolution
A classic Bayes'-theorem problem: given the ball drawn is red, the probability it came from bag B is 5225.
Concept and Intuition
This is Bayes' theorem: we're given the outcome (red ball drawn) and want to find the probability of which "cause" (bag A or B) produced it, using the prior probability of choosing each bag (each 21) and each bag's own probability of yielding red.
Step-by-Step Solution
- Bag A: 2 white, 3 red (5 total) ⇒P(red∣A)=53.
- Bag B: 4 white, 5 red (9 total) ⇒P(red∣B)=95.
- P(A)=P(B)=21 (bag chosen at random).
- Total probability of red: P(red)=P(A)P(red∣A)+P(B)P(red∣B)=21⋅53+21⋅95=103+185.
- Common denominator 90: 103=9027, 185=9025, sum =9052=4526.
- Bayes: P(B∣red)=P(red)P(B)P(red∣B)=26/45(1/2)(5/9)=26/455/18. …
- AP EAPCET 2023Set eng-2023-05-15-FN1 markMCQQ.Bag B1 contains 4 white and 2 black balls. Bag B2 contains 3 white and 4 black balls. A bag is chosen at random and a ball is drawn from it at random, then the probability that the ball drawn is white, is (A) 421 (B) 3242 (C) 4233 (D) 4223
›Reveal solutionSolution
Total-probability rule over the two equally likely bags gives P(white)=21⋅64+21⋅73=4223.
Concept and Intuition
The ball drawn depends on which bag was chosen first. Since the bag choice is random with P(B1)=P(B2)=21, and the draw is conditionally independent given the bag, the Law of Total Probability adds the two conditional probabilities weighted by how likely each bag is.
Step-by-Step Solution
- B1: 4 white, 2 black out of 6 ⇒P(white∣B1)=64=32.
- B2: 3 white, 4 black out of 7 ⇒P(white∣B2)=73.
- P(white)=21⋅32+21⋅73=31+143. …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.