Conditional Probability of defective components

In summary, the experiment is two steps. The first step is to select a batch and the second step is to draw two balls. If you call the events B0, B1, B2 according to whether the selected batch has 0, 1, or 2 defects, respectively, you are given the probabilities of these three events. The second step is to pick two balls to look at. If you knew which batch was selected, presumably you could calculate the required probabilities for 0, 1, or 2 balls being defective.
  • #1
exitwound
292
1

Homework Statement



Components of a certain type are shipped to a supplier in batches of ten. suppose that 50% of all such batches contain no defective components, 30% contain one defective component, and 20% contain two defective components. Two components from a batch are randomly selected and tested. What are the probabilities associated with 0, 1, and 2 defective components being in the batch under each of the following conditions?

a.) Neither tested component is defective.
b.) One of the two tested components is defective.

The Attempt at a Solution



Can anyone explain to me what the heck this problem is even describing? I can't wrap my head around the scenario at all. Can you describe it to me better than the book does?
 
Physics news on Phys.org
  • #2
The experiment can be thought of as two steps. Step one is to select a batch and step 2 is to draw two balls. If you call the events B0, B1, B2 according to whether the selected batch has 0, 1, or 2 defects, respectively, you are given the probabilities of these three events. The second step is to pick two balls to look at. If you knew which batch was selected, presumably you could calculate the required probabilities for 0, 1, or 2 balls being defective. For example, you know that the probablility of 1 or 2 defects from batch B0 = 0. So you want to use the conditional probability formula. If X represents the number of defective balls you see, then

P(X=n) = P(X=n|B0)P(B0) + P(X=n|B1)P(B1) +P(X=n|B2)P(B2)

and hopefully, you can calculate these.
 
  • #3
I'm sorry, but I still don't understand the problem. I don't understand what it's describing and asking for. Not necessarily the math, but I can't follow the wording of the question.

I have batches of 10 components. Of all the batches sent out, 50% of them have 0 defects, 30% have 1 defect, and 20% have 2 defects. Inspectors choose 2 components from a batch. From there, I'm lost. I don't know what's actually going on.
 
  • #4
You test the two selected and say you find neither is defective. It's still possible that 0, 1, or 2 of the remaining 8 in the batch is defective, depending on the type of batch you're testing. They're asking you to calculate the probabilities of finding 0, 1, or 2 defects in the remaining 8.

If you knew what type of batch you're sampling, you could answer the question of how many defects are in the remaining 8 with certainty, but you don't know. All you know is there's a 50% chance you've selected from a batch with no defects, a 30% chance of a batch with 1 defect, and a 20% chance of a batch with 2 defects.
 
  • #5
The problem is that you don't know what batch the balls came from. If you knew that, presumably you could calculate the probability that none, 1, or both of the balls you select are defective. If I'm wrong about that, you have a more basic problem.

So you have to take into account the probability for each batch being selected, and condition the probabilities for the balls on which batch it is. That's why you have terms in the conditional probability equation which can be described informally like:

Probability that batch 1 is selected times the probability that none of the two are defective given that batch 1 was selected, which you presumably can calculate.
 
  • #6
vela said:
You test the two selected and say you find neither is defective. It's still possible that 0, 1, or 2 of the remaining 8 in the batch is defective, depending on the type of batch you're testing.

Agreed.

They're asking you to calculate the probabilities of finding 0, 1, or 2 defects in the remaining 8.

No, that is not what they are asking.
 
  • #7
LCKurtz said:
No, that is not what they are asking.
You're right. I misspoke. They're asking for the defects in the batch, not just the remaining 8.
 
  • #8
Well I've been looking at this since Wednesday and I still don't understand it. It's due tomorrow.
 
  • #9
Last chance. Anyone out there able to explain it to me in different terms that may turn on a light bulb? I still don't even understand what it's asking for.
 
  • #10
They are asking what are the probabilities that 2 random samples from a batch are either:

a.) Neither tested component is defective. (0 Defective components)
b.) One of the two tested components is defective. (1 Defective component)

I don't know how it could be worded differently.

Good luck.
 
  • #11
Say you receive a batch of components from the manufacturer. What are the probabilities that the batch contains no defective components, one defective component, or two defective components? Without knowing anything about the batch, the best you can say is there's a 50% chance the batch contains no defective components, a 30% chance it contains one defective component, and a 20% chance it contains two defective components.

Now say you test two components, and they both turn out to be defective. What are the probabilities now? Well, there's a 0% chance the batch contains no defective components, a 0% chance it contains one defective component, and a 100% chance it contains two defective components. The additional information you obtained from testing the sample caused the probabilities to change.

Now consider the case where neither of the two tested components was defective. That's most likely to happen if you have a batch with no defective components and least likely with a batch containing two defective components. So given this information, you might expect the probability of a batch with zero defects to go up and the probabilities of a batch with one or two defects to go down.

The question is asking you to calculate what the new probabilities are for the two given cases.
 
  • #12
vela said:
Say you receive a batch of components from the manufacturer. What are the probabilities that the batch contains no defective components, one defective component, or two defective components? Without knowing anything about the batch, the best you can say is there's a 50% chance the batch contains no defective components, a 30% chance it contains one defective component, and a 20% chance it contains two defective components.

Now say you test two components, and they both turn out to be defective. What are the probabilities now? Well, there's a 0% chance the batch contains no defective components, a 0% chance it contains one defective component, and a 100% chance it contains two defective components. The additional information you obtained from testing the sample caused the probabilities to change.

Now consider the case where neither of the two tested components was defective. That's most likely to happen if you have a batch with no defective components and least likely with a batch containing two defective components. So given this information, you might expect the probability of a batch with zero defects to go up and the probabilities of a batch with one or two defects to go down.

The question is asking you to calculate what the new probabilities are for the two given cases.

No Vela. Again, that is not what the problem is asking. It is not asking a question like "What is the probability the components came from batch 2 given there was 1 defective in the sample". That would be a Bayes rule type problem, but this isn't. This is a straight conditional probability question. I gave the OP a formula to use but he doesn't seem to understand yet. I think he needs to sit down with his teacher and go over the topic with him.
 
  • #13
I'll have to disagree with you this time. The question asked:
What are the probabilities associated with 0, 1, and 2 defective components being in the batch under each of the following conditions?

a.) Neither tested component is defective.
b.) One of the two tested components is defective.
Only batch type 2 has 2 defects, so the probability that there are two defective components in a batch is the probability that the batch is type 2. Similarly, the probability of only one defective component in a batch is the probability of a type-1 batch, and the probability of no defective components is the probability of a type-0 batch. The problem is asking for P(Bn|X=0) and P(Bn|X=1) where X is the number of the two components tested that is defective for n=0, 1, and 2.
 
  • #14
vela said:
I'll have to disagree with you this time. The question asked:

Only batch type 2 has 2 defects, so the probability that there are two defective components in a batch is the probability that the batch is type 2. Similarly, the probability of only one defective component in a batch is the probability of a type-1 batch, and the probability of no defective components is the probability of a type-0 batch. The problem is asking for P(Bn|X=0) and P(Bn|X=1) where X is the number of the two components tested that is defective for n=0, 1, and 2.

OK, upon re-looking at it I agree you may be right. I guess what is ambiguous to me is the use of the word batch. I interpreted it to mean the "batch" of two components that you are about to pick but your interpretation may well be what was intended.
 
  • #15
See? If two of the three of us are having a problem understanding the problem, then it's just not worded properly, which is leading to my dismay. The problem was due today and I couldn't figure it out so I left it out of the homework. I'll get docked the points but whatever. The professor tried to go over it today in class but even he himself took 20 minutes to get it straight and he didn't sound confident in his answers.

Another thing: In his description of the solution (which he didnt' give because it was on the homework) said "it's a direct application of Bayes Theorem"...which makes me think that LCKurtz' may have something to stand on.
 
  • #16
Here's the answer from the teacher's solution sheet in case you're interested as much as I am:

Capture.JPG


Can anyone explain the steps to me for tomorrow's exam?
 
  • #17
I'm sure that both vela and I would have worked that problem exactly like that once the intent of the problem was clarified. In fact, I was thinking of posting that for you this morning when I found that you had posted the solution from somewhere.

What is it about that solution you don't understand? The steps seem pretty clear and straightforward. This problem is one of a class of problems of the type where you have events A and B where you may know the probability P(A|B) of A, given B, and want to know the reverse probability P(B|A) of B given A. To solve this type of problem you use the equations

[tex]P(A|B) = \frac{P(A\cap B)}{P(B)},\ \ P(B|A) = \frac{P(A\cap B)}{P(A)}[/tex]

Setting the expressions you get for [itex]P(A\cap B)[/itex] equal to each other gives

[tex]P(A|B)P(B) = P(B|A)P(A)[/tex]

This gives

[tex]P(B|A) = \frac{P(A|B)P(B)}{P(A)}[/tex]

Typically, in such problems, you have enough information to calculate the right side.
 
  • #18
I understand your breakdown just fine.

In this particular problem, I can't understand the english. I have tried and tried to parse the language used in the explanation of the problem but I can't grasp what it's asking. For instance, I can write down the givens related to 50%, 30%, and 20%, and I understand I'm taking 2 components from each batch. However, after that, I can't relate what's being said in the problem to the individual parts of Bayes' Theorem.

I think the problem is terribly worded and extremely vague in design, compared to the other problems in the book (which aren't that great either, and change the language up from problem to problem). (Modern Mathematical Statistics with Applications (devore & berk))

I can't follow the solution because I simply cannot understand what's going on in the problem. I'm an English speaker as a first language to clarify, FYI.
 
  • #19
It might help if you take just one part at a time. What about this individual question:

Given that the two selected components contain 1 defective, what is the probability they came from B2?

Do you understand that phrase? And do you see how it was answered?
 
  • #20
If I have an event [itex]C_1[/itex] = 1 of the 2 components selected are defective, then I'm looking for P([itex]B_2|C_1[/itex])?

At this point, I'm totally confused. I can't 'see' the link between the Cs and Bs.

Take for instance the other problem we had to do. It's akin to the breast cancer scenarios typically given for Bayes probability problems.

Take for instance the other problem we had to do. It's akin to the breast cancer scenarios typically given for Bayes probability problems.

Probability of having breast cancer at age 40 = .01
Probability of testing positive and having cancer = .8
Probability of testing positive and not having cancer = .096

The question asks for the probability of having breast cancer given that you tested positive.

P(B) = .01 --> P(B')=.99
P(+|B) = .8
P(+|B') = .096

[tex]P(B|+) = \frac{P(B\cap +)}{P(+)}[/tex]

[tex]

P(B\cap +) = P(B)P(+|B)[/tex]
[tex]
P(+) = P(B\cap +) + P(B'\cap +) = P(B)P(+|B) + P(B')P(+|B')[/tex]
[tex]
P(B|+) = \frac{.01(.8)}{.01(.08) + .99(.096)} = .0776[/tex]

How does the component problem relate to the cancer problem? I can understand and visualize the cancer problem, but I can't for the life of me figure out what's going on in the component problem. Like, I can't even draw a simple tree diagram or a chart to show what's going on. Can you?
 
  • #21
exitwound said:
If I have an event [itex]C_1[/itex] = 1 of the 2 components selected are defective, then I'm looking for P([itex]B_2|C_1[/itex])?

At this point, I'm totally confused. I can't 'see' the link between the Cs and Bs.

Take for instance the other problem we had to do. It's akin to the breast cancer scenarios typically given for Bayes probability problems.

Yes. You are looking for P(B2|C1). By the formula I posted earlier, you can express it in terms of the reverse probabilities:

[tex]P(B_2|C_1) = \frac{P(C_1|B_2)P(B_2)}{P(C_1)}[/tex]

Now, presumably you can work both factors in the numerator, right? The problem is in the denominator where the probability of getting 1 defective depends on which batch the sample came from. So you calculate P(C1) by conditioning it on the B's:

[tex]P(C_1) = P(C_1|B_0)P(B_0) + P(C_1|B_1)P(B_1)+ P(C_1|B_2)P(B_2)[/tex]

One of these terms in the denominator is the same as the numerator, and the other terms are similar and you calculate them using the same techniques you used for the numerator.
 
  • #22
exitwound said:
If I have an event [itex]C_1[/itex] = 1 of the 2 components selected are defective, then I'm looking for P([itex]B_2|C_1[/itex])?
Yup.
At this point, I'm totally confused. I can't 'see' the link between the Cs and Bs.
The probability of meeting a condition, like C1, depends on how many defective components there are in the batch. The more defective components in a batch, the more likely you are to end up with defective components in the sample of two.
How does the component problem relate to the cancer problem? I can understand and visualize the cancer problem, but I can't for the life of me figure out what's going on in the component problem. Like, I can't even draw a simple tree diagram or a chart to show what's going on. Can you?
In the breast cancer problem, the conditional probabilities P(+|B) and P(+|B'), corresponding to the probabilities P(Cn|Bm) in this problem, were given to you. In this problem, you're expected to calculate them from the provided information, which is just a straight application of combinatorics.
 
  • #23
I understand the derivation of this equation
[tex]
P(B_2|C_1) = \frac{P(C_1|B_2)P(B_2)}{P(C_1)}
[/tex]

But I can't figure out the 'why' behind the numerator. I still can't understand the relationship between Cs and Bs, so actually figuring out the numerator doesn't make sense. The problem just doesn't make any sense to me at all. I just can't relate the Cs and Bs together in the same way that the breast cancer problem does, despite your attempts to reword it. I still just can't grasp what's going on.
 
  • #24
Oh, that's actually pretty simple, if I understand what you're asking.

[tex]P(C_1|B_2) = \frac{P(C_1 \cap B2)}{P(B_2)} \Rightarrow P(C_1|B_2)P(B_2)=P(C_1 \cap B2)[/tex]

so the numerator is just the usual one for a conditional probability, but it's written in a way that's convenient to calculate.
 
  • #25
exitwound said:
I just can't relate the Cs and Bs together in the same way that the breast cancer problem does, despite your attempts to reword it. I still just can't grasp what's going on.

If you only had two batches instead of 3, so you either had B2 or you didn't your denominator would look like

[tex]P(C_1|B_2)P(B_2)+P(C_1|B_2')P(B_2')[/tex]

Just change the letters in your breast cancer result and it looks the same. The only difference between the problems is this one has three possibilities instead of two to condition on.
 
  • #26
I understand that you can use bayes theorem when the conditional is mutually exhaustive and mutually exclusive. I also understand what [itex]P(C_1 \cap B_2)[/itex] equals. What I don't understand, in this problem alone, is how everything fits together. In the cancer problem, the Bs were obvious, and the +s and -s were obvious. They're opposites (have cancer, not have cancer...tests positive, tests negative). In this problem, I can't fit that into the picture. I don't know how to use "defective" and "non defective" into the simple grid or tree diagram to help me picture it.
 
  • #27
exitwound said:
In the cancer problem, the Bs were obvious, and the +s and -s were obvious. They're opposites (have cancer, not have cancer...tests positive, tests negative). In this problem, I can't fit that into the picture. I don't know how to use "defective" and "non defective" into the simple grid or tree diagram to help me picture it.
You can't because defective/non-defective doesn't have an analogue in the breast cancer problem. It only comes into play when you're trying to calculate the conditional probabilities P(Cn|Bm).
 

Related to Conditional Probability of defective components

What is conditional probability of defective components?

Conditional probability of defective components is a statistical measure that calculates the likelihood of a component being defective given that other conditions are met. It takes into account the relationship between two events and helps in predicting the probability of one event occurring based on the occurrence of the other event.

How is conditional probability of defective components calculated?

Conditional probability of defective components is calculated by dividing the probability of both events occurring by the probability of the condition being met. It can be represented as P(A|B) = P(A and B) / P(B), where A is the event of the component being defective and B is the condition being met.

What is the difference between conditional probability and unconditional probability?

Conditional probability takes into account the relationship between two events, whereas unconditional probability only considers the probability of one event occurring without any conditions. Unconditional probability is also known as marginal probability.

How is conditional probability used in quality control and assurance?

Conditional probability is an important tool in quality control and assurance. It helps in identifying and predicting the likelihood of a component being defective, which is crucial in ensuring the quality of products. It also helps in determining the effectiveness of quality control measures and in making decisions on product recalls or adjustments.

What are some limitations of using conditional probability in quality control and assurance?

One limitation of using conditional probability in quality control and assurance is that it assumes independence between events, which may not always be the case in real-world scenarios. It also relies on historical data and may not be accurate when applied to new products or processes. Additionally, it does not take into account external factors that may affect the probability of defective components.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
7K
Replies
1
Views
699
  • Precalculus Mathematics Homework Help
Replies
7
Views
4K
  • Precalculus Mathematics Homework Help
Replies
1
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
3K
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
4K
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
3K
  • Precalculus Mathematics Homework Help
Replies
8
Views
2K
Back
Top