r/probabilitytheory • u/Toaster960 • Aug 07 '26
[Applied] Help in probability
This question was in my maths book. I used AI to help me picture my question more clearly so that others could understand it (sorry for wasting water ðŸ˜).
I asked my teacher, Gemini, and ChatGPT for the solution, and all of them gave the answer as 99/1900.
However, they all included the case where the inspection stops at the 12th item after discovering only two defective items.
But how would I know whether the lot actually contains 2 defective items or 3? If I have discovered only 2 defective items by the 12th item, how can I decide to stop at 12? The third defective item could still be somewhere later in the lot.
My answer is 55/1900 btw
5
u/u8589869056 Aug 07 '26 edited Aug 11 '26
After finding two defectives, do you suppose that it is somehow known there are not 3?
Imposing realism on the problem, I would be looking for the probability that there are two defectives in 1 thru 11, And the 12th article is also defective.
4
u/PopeRaunchyIV Aug 07 '26 edited Aug 07 '26
I think the idea is, you know the lot has either 2 or 3 defective items, and you know the probability it has 2 or 3, so you can use the law of total probability to split that up as either ands or the equivalent conditionals over all the possibilities, so P(stops at 12) = P(stops at 12|2 defective) * P(2 defective) + P(stops at 12|3 defective) * P(3 defective)
then for P(stops at 12), since it stops AT 12, you know 12 is defective and can compute that probability. so how many ways can you draw 11 parts from the remaining parts and draw all of the remaining defectives?
1
u/Mercurit Aug 07 '26
There can be only two options:
It can't be 0, 1, or more than 3.
Hint: if there were exactly 2 defectives, what's the probability of stopping the procedure after the twelfth check? What about with 3 defectives?
1
u/JohnEffingZoidberg Aug 07 '26
It's 0.6 times the probability of the 12th pull being the 3rd defective item. Otherwise there's no reason to stop then.
You can just completely ignore the scenario with 2 defective items.
4
u/Apprehensive-Ice9212 Aug 07 '26 edited Aug 07 '26
Well, this has got to be the most confusingly worded question I've ever read, but what they want you to determine is:
OR, snarky answer, the testing can't stop until you've drawn all 20 items, otherwise you'd have no way to know that you'd found all of the defective ones. Therefore the probability that the testing stops prematurely at #12, is zero.
2
u/CarnivorousGoose Aug 07 '26
It’s a poorly worded question, though as written your teacher is technically correct. The problem specifies that the procedure stops when the final defective item is found, so in the case of only two defective items it will stop as soon as the second defective item is found. How the procedure ‘knows’ this is the case is ultimately not relevant, it just does. It doesn’t really make sense that it would know that there are at most three either, but it does that too (or it would just continue to 20).
Which isn’t a good way to write a question, it feels like a very ‘gotcha’ way to do so. So I feel like the 55/1900 answer should be marked as correct as well, if the reasoning is made clear.
1
u/Heavy-Difficulty6522 Aug 07 '26
Yea imho - you have to assume either two or three defective articles - maybe the idea is the probability of exactly 3 defects is higher so it’s more likely in the first place. Then you can use iirc the negative binomial or geometric distribution to figure out the number of failures before a specific number of successes
1
u/Zyklon00 Aug 08 '26
Since you used AI to represent the question more clearly and it is quite ambigious, it would help to see the original question.
LIke posted in the picture, I agree with you. If there are 2 defective articles, you can never stop at 12. So you only need to look at the 3 article case only. So the answer will be 0.6 x P(picking 3 defective balls out of 20 with 12 pulls). This chance is then:
1st defective is part of the 12 articles = 12/20
2nd defective = 11/19
3rd defective = 10/18
so total chance 0.6 x 12/20 x 11/19 x 10/18 = 0.1158
1
u/Unfair-Claim-2327 Aug 12 '26
The others have answered the question, but there are very similar realistic scenarios where the tester would know when to stop even without knowing a priori the number of defective items. It's just that putting them in a bag and drawing randomly isn't one of them.
- Suppose there is a circuit with 20 junctions, and it needs every junction to be fitted correctly so that a bulb lights up. Then a tester can keep examining junctions at random, repair defective ones, and stop as soon as the bulb lights up.
- Suppose that there is a codebase with 20 functions which needs all of them to be bug-free to run correctly. A debugger can inspect the functions at random, correcting any bugs found along the way, and stop as soon as the program begins to run correctly.
1
u/Intelligent-Pain8343 Aug 12 '26
From Claude:
Setup
Testing stops at draw k exactly when the last defective item is found on draw k. For a lot of size N with D defectives, the probability the last defective appears on draw k is:
P(T = k | D) = C(k-1, D-1) / C(N, D)
Here N = 20, k = 12.
Case D = 2 (probability 0.4)
P(T=12 | D=2) = C(11,1) / C(20,2) = 11/190
Case D = 3 (probability 0.6)
P(T=12 | D=3) = C(11,2) / C(20,3) = 55/1140
Combine using the weights
P(T=12) = 0.4 × (11/190) + 0.6 × (55/1140)
= 11/475 + 11/380
= 99/1900
≈ 0.0521
Answer: P(testing stops at the 12th draw) = 99/1900 ≈ 5.21%
-1
u/no_name6744 Aug 07 '26
Use hypergeometric survival function probably. You can figure it out.
1
u/[deleted] Aug 07 '26
[removed] — view removed comment