MHB What is the probability that the second screw is also good?

  • Thread starter Thread starter sreeram
  • Start date Start date
  • Tags Tags
    Probability
AI Thread Summary
The probability that the second screw is also good, given that the first screw is good, depends on the source of the screws. If both screws are from the same factory, the probabilities of defects are 5% for factory A and 1% for factory B. The discussion highlights the ambiguity in whether the screws come from the same factory or different ones, impacting the calculations. If both screws are from the same factory, the probability of the second screw being good can be derived from the first screw's condition. Clarification on the source of the screws is essential to accurately determine the probability.
sreeram
Messages
10
Reaction score
0
Question: All the screws in a machine come from the same factory but it is as likely to be from A as from factory B. The percentage of defective screws is 5% from A and 1% from B. Two screws are inspected and the first is found to be good. What is the probability that the second is also good?
----------------------------------------------------------------------------------------------------

My attempt:

G1: First screw is good. G2: Second screw is good
G1A: First screw comes from A. G1B: First screw comes from B
G2A: Second screw comes from A. G2B: Second screw comes from B

P(G1A)=1/2, P(G2A)=1/2, P(G1B)=1/2, P(G2B)=1/2
P(G1A $\cap$ G2A)=P(G1B $\cap$ G2B)=P(G1A $\cap$ G2B)=P(G1B $\cap$ G2A)=1/2*1/2=1/4

Now,

P(G1)=P(G1|G1A)P(G1A)+P(G1|G1B)P(G1B)

P(G1 $\cap$ G2)=P(G1 $\cap$ G2|G1A $\cap$ G2A)P(G1A $\cap$ G2A)+P(G1 $\cap$ G2|G1B $\cap$ G2B)P(G1B $\cap$ G2B)+P(G1 $\cap$ G2|G1A $\cap$ G2B)P(G1A $\cap$ G2B)+P(G1 $\cap$ G2|G1B $\cap$ G2A)P(G1B $\cap$ G2A)

P(G2|G1)=P(G1 $\cap$ G2)/P(G1).
----------------------------------------------------------------------------------
Our teacher's answer:

G1: First screw is good. G2: Second screw is good
A: Screw is from factory A B: Screw is from factory B

P(A)=1/2, P(B)=1/2

P(G1)=P(G1|A)P(A)+P(G1|B)P(B)
P(G1 $\cap$ G2)=P(G1 $\cap$ G2|A)P(A)+P(G1 $\cap$ G2|B)P(B)

Now P(G2|G1)=P(G1 $\cap$ G2)/P(G1).

Which answer is correct?
 
Mathematics news on Phys.org
Your explanation of the situation is a bit ambiguous. You say "2 screws are defective". Are they from the same lot, both from A or both from B, or not? If not, the fact that the first screw was defective is irrelevant! if 5% of the screws from A and 1% of the screws from B were defective and a screw is as likely to be from A as from B, then the probability a screw chosen from the whole lot is defective is (0.05+ 0.01)/2= 0.03, regardless of whether the previous screw was defective or not. (Unless there is a given small number of screws in A and B but you didn't say how many screws were in each lot.)

If, instead, both screws are from group A or both from group B, then the point of saying that the first screw was defective would be to give a probability that the second screw was from group A or B. Imagine 2000 screws, 1000 from A, 1000 from B. Of the 1000 screws from A, 5%, 50, are defective. Of the 1000 screws from B, 1%o, 10, are defective. That is a total of 60 defective screws 50 from A and 10 from B. Given that a screw is defective, the probability it is from A is 50/60= 5/6 and the probability it is from B is 10/60= 1/6. Given that the first screw was defective, the probability it was from A is 5/6 and in that case, the probability the second screw was defective is .05. The probability the first screw is from B is 1/6 and, in that case, the probability the second screw is defective is 0.01. In this scenario, given that the first screw is defective, the probability the second screw is as also defective is (5/6)(0.05)+ (1/6)(0.01)= 25/600+ 1/600= 26/600= 13/300 which is approximately 0.043.
 
Thanks for correcting my mistake. I assumed that one of the screws can come from A and another can come from B. My teacher assumed that both screws are either from A or from B.

I found out the following:

P(G1 ∩ G2)=P(G1 ∩ G2|G1A ∩ G2A)P(G1A ∩ G2A)+P(G1 ∩ G2|G1B ∩ G2B)P(G1B ∩ G2B)+P(G1 ∩ G2|G1A ∩ G2B)P(G1A ∩ G2B)+P(G1 ∩ G2|G1B ∩ G2A)P(G1B ∩ G2A)

=$1/4*(P(G1A)+P(G1B))^2$

P(G1)=1/2*(P(G1A)+P(G1B))=1/2*(P(G2A)+P(G2B))

P(G2|G1)=1/2*(P(G1A)+P(G1B))

Therefore P(G2|G1)=P(G1)=P(G2), as you pointed out.
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Back
Top