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

  • Thread starter Thread starter sreeram
  • Start date Start date
  • Tags Tags
    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.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
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...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top