Q.An item is manufactured by three machines A, B and C. Out of the total number of items manufactured during a specified period, 50% are manufactured on A, 30% on B and 20% on C. 2% of the items produced on A and 2% of items produced on B are defective, and 3% of those produced on C are defective. All the items are stored at one godown. One item is drawn at random and is found to be defective. What is the probability that it was manufactured on machine A?
🔒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(A∣D), the probability the item came from machine A given it is defective.
Step 1 – Write the given probabilities
P(A)=0.50, P(B)=0.30, P(C)=0.20
P(D∣A)=0.02, P(D∣B)=0.02, P(D∣C)=0.03
Step 2 – Find total probability of defect
P(D)=P(A)P(D∣A)+P(B)P(D∣B)+P(C)P(D∣C)
=(0.50)(0.02)+(0.30)(0.02)+(0.20)(0.03)
=0.01+0.006+0.006=0.022 …
Using Bayes’ theorem, the probability that a defective item came from machine A is 115.
Why Bayes’ theorem fits here
We are told the overall production shares of three machines, and the defect rates within each machine’s output. Then we pick one item, see it is defective, and need the reverse probability: “given that it is defective, what is the chance it came from machine A?”
This is the classic setup for Bayes’ theorem — we have prior probabilities (the production shares) and likelihoods (the defect rates), and we want the posterior probability after observing the defect.
Step-by-step solution
1. Define the events clearly
Let A, B, C denote the events that the item was manufactured on machine A, B, or C respectively.
Let D denote the event that the item is defective.
2. Write down the given probabilities
-
Prior probabilities (production shares):
P(A)=0.50, P(B)=0.30, P(C)=0.20
-
Conditional probabilities (defect rates given the machine):
P(D∣A)=0.02, P(D∣B)=0.02, P(D∣C)=0.03
3. Find the total probability of a defective item
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.50)(0.02)+(0.30)(0.02)+(0.20)(0.03)
=0.010+0.006+0.006=0.022
So 2.2% of all items are defective.
4. Apply Bayes’ theorem for P(A∣D)
Bayes’ theorem says:
P(A∣D)=P(D)P(A)P(D∣A)
Plug in the numbers:
P(A∣D)=0.0220.50×0.02=0.0220.010
Simplify the fraction: …
Method: Bayes' theorem for "which machine made the defective item"
Use this when items come from several machines with known production shares and defect rates, and you must find the probability a defective item came from a particular machine.
Steps
Step 1: Priors and likelihoods
Priors are the production shares P(A),P(B),P(C); likelihoods are the per-machine defect rates P(D∣A),…
Step 2: Total probability of a defect
P(D)=P(A)P(D∣A)+P(B)P(D∣B)+P(C)P(D∣C). …
Common Mistakes
Mistake 1: Using the sum of defect rates as the denominator
Why it's wrong: 0.02+0.02+0.03 ignores how much each machine produces; the denominator must be production-weighted. Correct approach: weight each defect rate by its machine's share.
Mistake 2: Swapping the conditional direction
Why it's wrong: the defect rate P(D∣A) is not the wanted P(A∣D). Correct approach: apply Bayes to reverse it. …
Showing the 12 most recent of 45 on this concept.
- KCET 2021Set A-11 markMCQQ.A car manufacturing factory has two plants X and Y. Plant X manufactures 70% of cars and plant Y manufactures 30% of cars. 80% of cars at plant X and 90% of cars at plant Y are rated as standard quality. A car is chosen at random and is found to be of standard quality. The probability that it has come from plant X is (A) 7356 (B) 8456 (C) 8356 (D) 7956
›Reveal solutionSolution
This is a reverse-probability question (effect → cause), so use Bayes' theorem with the total probability of a standard-quality car in the denominator.
Step 1 — Define the events.
- X: the car came from plant X — P(X)=0.70
- Y: the car came from plant Y — P(Y)=0.30
- S: the car is of standard quality
The conditional (likelihood) data given:
P(S∣X)=0.80,P(S∣Y)=0.90
Note X and Y are mutually exclusive and exhaustive (0.7+0.3=1), which is exactly what Bayes' theorem needs.
Step 2 — Why Bayes and not simple conditioning.
We are told the effect (the chosen car is standard) and asked for the probability of the cause (it came from X). That inversion — P(X∣S) from P(S∣X) — is precisely Bayes' theorem:
P(X∣S)=P(X)P(S∣X)+P(Y)P(S∣Y)P(X)P(S∣X)
Step 3 — Compute the numerator.
P(X)P(S∣X)=0.70×0.80=0.56
Step 4 — Compute the denominator (total probability of a standard car).
P(S)=0.70×0.80+0.30×0.90=0.56+0.27=0.83
Step 5 — Divide. …
- COMEDK 2026Set 2026-M1 markMCQQ.Advika chooses one of three scarves every morning: Red, Blue, or Green. The probability she chooses Red is 20%. The probability she chooses Blue is twice the probability of choosing Red. On the remaining days she wears a Green scarf. Once a scarf is chosen, she decides whether to wear a Hat (H) and Sunglasses (S). These choices are independent of each other but depend on the scarf colour: Scarf colour Red Blue Green P(H)0.50.40.1P(S)0.80.50.5 Advika is spotted outdoors wearing both a Hat and Sunglasses. What is the probability that she is wearing the Red scarf? (A) 31313 (B) 218 (C) 94 (D) 138
›Reveal solutionSolution
Bayes' theorem on scarf colour given that both a hat and sunglasses are worn. Priors P(R)=0.2, P(B)=0.4, P(G)=0.4; likelihoods P(H∩S∣colour)=P(H)P(S). The posterior P(R∣H∩S)=94 — option (C).
Concept. Hat and sunglasses are independent given the scarf, so P(H∩S∣colour)=P(H∣colour)⋅P(S∣colour). Bayes' theorem then reverses the conditioning to give the probability of the scarf colour from the observed accessories.
Step 1 — Priors.
P(R)=20%=0.2,P(B)=2P(R)=0.4,P(G)=1−0.2−0.4=0.4.
Step 2 — Likelihood of wearing both accessories for each colour.
P(H∩S∣R)=0.5×0.8=0.40,
P(H∩S∣B)=0.4×0.5=0.20,
P(H∩S∣G)=0.1×0.5=0.05. …
- COMEDK 2023Set 2023-E1 markMCQQ.Bag A contains 3 white and 2 red balls. Bag B contains only 1 white ball. A fair coin is tossed. If head appears then 1 ball is drawn at random from bag A and put into bag B. However if tail appears then 2 balls are drawn at random from bag A and put into bag B. Now one ball is drawn at random from bag B. Given that the drawn ball from B is white, the probability that head appeared on the coin is (A) 3023 (B) 2312 (C) 2311 (D) 3019
›Reveal solutionSolution
Computing P(white drawn∣H)=54 and P(white∣T)=1511, Bayes' theorem gives P(H∣white)=2312.
Head (transfer 1 ball from A(3W,2R) to B(1W), then draw from B's 2 balls):
P(white)=53(1)+52(21)=53+51=54.
Tail (transfer 2 balls from A to B(1W), then draw from B's 3 balls):
P(WW)=103⇒P(white)=1,P(WR)=106⇒32,P(RR)=101⇒31. …
- KCET 2025Set A-11 markMCQQ.Meera visits only one of the two temples A and B in her locality. Probability that she visits temple A is 52. If she visits temple A, 31 is the probability that she meets her friend, whereas it is 72 if she visits temple B. Meera met her friend at one of the two temples. The probability that she met her at temple B is (A) 167 (B) 165 (C) 163 (D) 169
›Reveal solutionSolution
The friend has already been met (the effect); we want the probability of the cause (temple B) — that reversal of conditioning is exactly Bayes' theorem.
Step 1 — Name the events.
Let A = "Meera visits temple A", B = "Meera visits temple B", F = "she meets her friend".
She visits only one of the two temples, so A and B are mutually exclusive and exhaustive:
P(A)=52⟹P(B)=1−52=53.
Given: P(F∣A)=31, P(F∣B)=72.
Step 2 — Why Bayes.
We are told the outcome (F happened) and asked for the probability of a cause (B). Bayes' theorem inverts the conditioning:
P(B∣F)=P(A)P(F∣A)+P(B)P(F∣B)P(B)P(F∣B).
The denominator is P(F) by the law of total probability — the friend can be met on either branch.
Step 3 — Compute the two branch probabilities.
P(A∩F)=52×31=152,P(B∩F)=53×72=356.
Step 4 — Total probability of meeting the friend. …
- KCET 2020Set A-11 markMCQQ.Events E1 and E2 form a partition of the sample space S. A is any event such that P(E1)=P(E2)=21, P(E2/A)=21 and P(A/E2)=32, then P(E1/A) is (A) 21 (B) 32 (C) 1 (D) 41
›Reveal solutionSolution
A partition's posterior probabilities must add to 1, so P(E1∣A)=1−P(E2∣A)=1−21=21.
Step 1 — What "partition of the sample space" means.
E1 and E2 form a partition of S if they are mutually exclusive (E1∩E2=∅) and exhaustive (E1∪E2=S), with non-zero probabilities. So exactly one of them must occur.
Step 2 — Conditioning preserves the partition.
Conditioning on an event A (with P(A)>0) just renormalises probabilities inside A; it does not destroy the partition. Formally,
A=(A∩E1)∪(A∩E2),(A∩E1)∩(A∩E2)=∅
Dividing by P(A):
P(A)P(A∩E1)+P(A)P(A∩E2)=P(A)P(A)=1
which is precisely
P(E1∣A)+P(E2∣A)=1
The posterior probabilities of a partition must still sum to 1 — a fact worth remembering, since it turns many Bayes questions into a one-line subtraction.
Step 3 — Substitute the given value.
P(E1∣A)=1−P(E2∣A)=1−21=21 …
- COMEDK 2025Set 2025-A1 markMCQQ.Three bags contain a number of red and white balls are as follows. Bag I: 3 red balls Bag II: 2 red balls and 1 white ball Bag III: 3 White balls The probability that bag i will be chosen and a ball is selected from it is 6i,i=1,2,3. If a white ball is selected, what is the probablity that it came from Bag III (A) 119 (B) 112 (C) 0 (D) 111
›Reveal solutionSolution
This is a classic Bayes’ theorem problem: we are given prior probabilities for choosing each bag and the conditional probabilities of drawing a white ball from each bag; after observing a white ball, we want the posterior probability that it came from Bag III. The answer is 119.
We start by noting that the problem gives us three bags with different compositions, and a rule for choosing a bag: the probability of picking bag i is 6i. Then, from that bag, we pick a ball uniformly at random. We are told that a white ball was selected, and we need the probability that it came from Bag III. This is a textbook case for Bayes’ theorem, which lets us “reverse” conditional probabilities: we know P(white∣bag i), and we want P(bag i∣white).
Let’s work through it step by step.
- Define events and write down given probabilities. Let Bi be the event that bag i is chosen (i=1,2,3). We are told:
P(B1)=61,P(B2)=62,P(B3)=63.
Let W be the event that a white ball is drawn.
From the bag compositions:
- Bag I: 3 red, 0 white → P(W∣B1)=0.
- Bag II: 2 red, 1 white → P(W∣B2)=31.
- Bag III: 0 red, 3 white → P(W∣B3)=1.
- Compute the total probability of drawing a white ball. By the law of total probability:
P(W)=P(B1)P(W∣B1)+P(B2)P(W∣B2)+P(B3)P(W∣B3).
Substitute:
P(W)=61⋅0+62⋅31+63⋅1=0+182+63=91+21.
Get a common denominator (18):
P(W)=182+189=1811.
- Apply Bayes’ theorem to find P(B3∣W). Bayes’ theorem says:
P(B3∣W)=P(W)P(B3)P(W∣B3).
Plug in the numbers:
- COMEDK 2025Set 2025-A1 markMCQQ.If for two events A and B,P(A−B)=51 and P(A)=53 then P(B/A)= (A) 32 (B) 21 (C) 53 (D) 52
›Reveal solutionSolution
The key is to interpret P(A−B) as P(A∩Bc) and use the definition of conditional probability. The result is P(B/A)=32, so option (A) is correct.
We are asked for P(B/A), the probability of B given A. The definition is
P(B/A)=P(A)P(A∩B).
We know P(A)=53, so we need P(A∩B). The given P(A−B)=51 is the key: A−B means “A and not B,” i.e., A∩Bc.
- Relate P(A−B) to P(A∩B) Since A is the union of the disjoint parts “A and B” and “A and not B,” we have
P(A)=P(A∩B)+P(A∩Bc).
Here P(A∩Bc)=P(A−B)=51 and P(A)=53.
- Solve for P(A∩B)
53=P(A∩B)+51⇒P(A∩B)=53−51=52.
- Apply the conditional probability formula P(B/A)=P(A)P(A∩B)=3/52/5=32. …
- COMEDK 2024Set 2024-E1 markMCQQ.Suppose we have three cards identical in form except that both sides of the first card are coloured red, both sides of the second are coloured black, and one side of the third card is coloured red and the other side is coloured black. The three cards are mixed and a card is picked randomly. If the upper side of the chosen card is coloured red, what is the probability that the other side is coloured black. (A) 61 (B) 21 (C) 0 (D) 31
›Reveal solutionSolution
This is a classic conditional probability problem (often called the "three cards" or "Bertrand's box" variant). The key is that seeing a red side updates the probability space to only the red sides, and among those, only one belongs to the mixed card. The answer is 1/3.
We are asked: given that the visible side is red, what is the probability that the other side is black? This is not simply "one of the two remaining cards has a black other side" because the cards are not equally likely once we condition on the observation.
Concept and Intuition
The pitfall is to think: "We see red, so the card is either the all-red or the mixed card. That's two possibilities, so the chance is 1/2." But this ignores that the all-red card has two red sides, while the mixed card has only one red side. When we pick a card at random and then look at a random side, each of the six sides is equally likely to be the one we see. Seeing red eliminates the three black sides, leaving only the three red sides. Among those three red sides, two belong to the all-red card and only one belongs to the mixed card. So the probability that the other side is black is 1/3.
Step-by-step reasoning
-
Label the sides.
Let the cards be:
- Card A: both sides red (sides R1,R2)
- Card B: both sides black (sides B1,B2)
- Card C: one red, one black (sides R3,B3)
-
Count equally likely outcomes.
When we pick a card uniformly at random and then look at a random side, there are 3×2=6 equally likely side-views. Each of the six sides has probability 1/6 of being the one we see.
-
Condition on seeing a red side.
The red sides are: R1,R2 (from card A) and R3 (from card C). That's 3 red sides. So the conditional space has 3 equally likely possibilities. …
-
- COMEDK 2021Set 2021-B1 markMCQQ.At a certain university 4% of male students are over 6 feet tall and 1% of female students are over 6 feet tall. The total student population is divided in the ratio 3 : 2, in favor of female students. If a student is selected at random from amongst all those over 6 feet tall, what is the probability that the student is a female? (A) 1/3 (B) 2/5 (C) 3/11 (D) 3/5
›Reveal solutionSolution
Bayes' theorem gives P(female∣>6ft)=0.0220.006=113.
Population split 3:2 in favour of females ⇒ P(F)=53=0.6, P(M)=52=0.4.
Tall fractions: P(T∣F)=0.01, P(T∣M)=0.04.
By Bayes' theorem: …
- KCET 2020Set A-11 markMCQQ.If A and B are two events such that P(A)=31, P(B)=21 and P(A∩B)=61, then P(A′/B) is (A) 32 (B) 31 (C) 21 (D) 121
›Reveal solutionSolution
Use P(A′∣B)=1−P(A∣B) (equivalently P(B)P(B)−P(A∩B)), which gives 32.
Step 1 — The definition of conditional probability.
For P(B)>0,
P(A′∣B)=P(B)P(A′∩B)
Conditioning on B means we restrict the sample space to B and ask what fraction of B lies outside A.
Step 2 — Split B into the part inside A and the part outside A.
The events A∩B and A′∩B are disjoint and their union is exactly B:
P(B)=P(A∩B)+P(A′∩B)
⇒P(A′∩B)=P(B)−P(A∩B)=21−61=63−1=62=31
Step 3 — Divide by P(B).
P(A′∣B)=P(B)P(A′∩B)=2131=31×12=32
Step 4 — Cross-check with the complement rule. …
- KCET 2020Set A-11 markMCQQ.The probability of solving a problem by three persons A, B and C independently is 21, 41 and 31 respectively. Then the probability of the problem is solved by any two of them is (A) 121 (B) 41 (C) 241 (D) 81
›Reveal solutionSolution
The problem asks for the probability that exactly two of the three persons solve it. We compute the sum of probabilities for each pair solving while the third fails, giving 81.
The key idea: "solved by any two of them" means exactly two solve it, not at least two. The third person must fail. Since A, B, and C work independently, we multiply their individual probabilities for each specific outcome and then add the three possible cases.
A common mistake is to include the case where all three solve it. That would be "at least two", not "any two". The phrase "any two" in probability problems almost always means exactly two.
Let’s denote:
- P(A)=21, so P(A fails)=1−21=21
- P(B)=41, so P(B fails)=1−41=43
- P(C)=31, so P(C fails)=1−31=32
We want exactly two successes. There are three mutually exclusive ways this happens:
-
A and B solve, C fails
Probability = P(A)×P(B)×P(C fails)
=21×41×32=242=121
-
A and C solve, B fails
Probability = P(A)×P(C)×P(B fails)
=21×31×43=243=81
-
B and C solve, A fails
Probability = P(B)×P(C)×P(A fails) …
- COMEDK 2024Set 2024-M1 markMCQQ.An urn contains 2 white and 2 black balls. A ball is drawn at random. If it is white it is not replaced into the urn. Otherwise it is replaced along with another ball of the same colour. The process is repeated. The probability that the third ball drawn is black is (A) 3017 (B) 6037 (C) 6031 (D) 3023
›Reveal solutionSolution
Conditioning on the first two draws (white -> not replaced; black -> replaced plus one extra black) and using total probability gives P(3rd black)=3023 — option (D).
Rules. Start with 2 white, 2 black (total 4). Drawing white removes it (whites −1, total −1). Drawing black puts it back and adds one more black (blacks +1, total +1).
First two draws and the composition just before the 3rd draw
- WW: 42⋅31=61; urn becomes W0, B2 (total 2) ⇒P(black)=1.
- WB: 42⋅32=31; urn becomes W1, B3 (total 4) ⇒P(black)=43.
- BW: 42⋅52=51; urn becomes W1, B3 (total 4) ⇒P(black)=43.
- BB: 42⋅53=103; urn becomes W2, B4 (total 6) ⇒P(black)=32. …
🎓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.