Optimizing Defective Rates with Bayes' Formula

In summary: I'm not sure what image you are referring to. I think the image says that if the rates are all different, one would have to remain the same. That's my result as well.
  • #1
CharlesDamle
17
3
TL;DR Summary
Find least total defects of companies using Bayes formula.
Hello!
I'm sitting with a problem that is causing me some troubles..
First part is using Bayes formula.
We have 3 companies that produce some apparatus. Each company has some defective percentage.
CompanyProduced (%)Defective (%)
A453
B256
C305

1) Suppose we pick up a defective apparatus. What is the probability it came from company A?
Here I use Bayes formula:
Defining the production in fractions.
Calculating the conditional probability (PD) and finding the probability it came from company A (PAD) to be 31%
Bayes1.JPG

2) If a defective apparatus is found, which company is most likely to have produced it?

Here I just calculate it for all three and find it is most likely company B and C
Bayes2.JPG

3) Now assume all the facilities have the same probability of being identified with a defect apparatus.
We want the least total defective apparatus and keep the production percentages the same.
How does the percentage of defects change for each company? The defective rates can only increase.

This is the one causing me problems.

The way I tried to solve it, was to setup 3 Bayes equations with 3 unknowns, namely the new defective rates.
They are all equal to the same, as they are asked to have the same probability -> P = 1/3
I end up with this, where x1, x2 and x3 represents the respective companies (A, B and C).
Bayes3.JPG

However this assumes that the defective rate of company A (x1) remains constant, and it says in the problem description it can only increase.
Am I even on the right track? I feel like I have to differentiate, but I'm now sure what.
I'd appreciate any advice or hints and sorry for the long post.

Cheers!
 
Physics news on Phys.org
  • #2
I don't understand what part 3) is asking.
 
  • #3
PeroK said:
I don't understand what part 3) is asking.
As I understand, it wants me to minimize the defective rate overall while ensuring the companies have the same probability of being identified with a defect apparatus.
Don't know if that helps.
 
  • #4
Here's my attempt at reading it. We want each facility to be equally likely to have made any given defective apparatus, i.e. change some stuff around so that the answer to 2 is that they are all equally likely. We want to keep the production percentages the same, so the only thing we can do is change the defective rate. We want the least total defective rate, so we don't want to just Jack them all up to be high numbers. All defective rates being 0 would work, but it also says we can only make defective rates go up.So my rough conclusion is we just need to increase A's defective rate while holding B and C fixed so that the answer to 2 is they are all equally likely.
 
  • Like
Likes CharlesDamle and PeroK
  • #5
Office_Shredder said:
So my rough conclusion is we just need to increase A's defective rate while holding B and C fixed so that the answer to 2 is they are all equally likely.
That's my conclusion too. Silly question, if you ask me!
 
  • #6
It's not that silly. If you are a plant manager at A, you might be measured on some metric of what fraction of the defects come from you vs another factory, and conclude you can spend slightly less money on quality control in exchange for a slightly higher defect rate, and need to figure out how much higher your detect rate can go. It's not well motivated in the question, but I can imagine actual people doing computations that look like this.
 
  • #7
Thanks for your replies!

Office_Shredder said:
So my rough conclusion is we just need to increase A's defective rate while holding B and C fixed so that the answer to 2 is they are all equally likely.
I might misunderstand you, but it says the defective rates can only increase, so how can we keep B and C constant?
 
  • #8
You are only allowed to increase them means you cannot make them smaller. I don't think there's a requirement that you have to increase them all, or else the solution will just be to increase them by the smallest epsilon amount possible since you are trying to minimize your total defective rate.
 
  • Like
Likes PeroK
  • #9
Office_Shredder said:
You are only allowed to increase them means you cannot make them smaller. I don't think there's a requirement that you have to increase them all, or else the solution will just be to increase them by the smallest epsilon amount possible since you are trying to minimize your total defective rate.
Alright, that was my conclusion as well. If they were all different, one would have to remain the same. So is my result in the last image correct? It does ensure that they are all equal to 1/3.
 
  • #10
Office_Shredder said:
It's not that silly. If you are a plant manager at A, you might be measured on some metric of what fraction of the defects come from you vs another factory, and conclude you can spend slightly less money on quality control in exchange for a slightly higher defect rate, and need to figure out how much higher your detect rate can go. It's not well motivated in the question, but I can imagine actual people doing computations that look like this.
That only makes sense if you include the cost figures. And, in any case, if the production percentages are different, why try to equalise the number of defects?
 
  • #11
CharlesDamle said:
Alright, that was my conclusion as well. If they were all different, one would have to remain the same. So is my result in the last image correct? It does ensure that they are all equal to 1/3.
It's not clear to me what your answer is. In any case, you should be able to do the calculation in your head.
 
  • #12
PeroK said:
It's not clear to me what your answer is. In any case, you should be able to do the calculation in your head.
I express the defection rates of B and C in terms of A's defection rate (x1).
From your explanations I think it's correct, as 2) gives the same answer when I plug it in.
 
  • #13
CharlesDamle said:
I express the defection rates of B and C in terms of A's defection rate (x1).
From your explanations I think it's correct, as 2) gives the same answer when I plug it in.
I think they expect a number for A like 4%, or whatever.
 
  • #14
PeroK said:
I think they expect a number for A like 4%, or whatever.
Oh right, so basically I will hand it in as
A_D = 1*0.03 = 3.0%
B_D = 1.8*0.03 = 5.4%
C_D = 1.5*0.03 = 4.5 %
 
  • #15
CharlesDamle said:
Oh right, so basically I will hand it in as
A_D = 1*0.03 = 3.0%
B_D = 1.8*0.03 = 5.4%
C_D = 1.5*0.03 = 4.5 %
You've reduced the defect percentage for B and C. Which you weren't supposed to do.
 
  • #16
I have might been sitting with this problem for too long, if it something I should be able to do "in my head".
You wrote I should just change some stuff around in question 2), but that is also dependent on the conditional probability from question 1)?
 
  • #17
CharlesDamle said:
I have might been sitting with this problem for too long, if it something I should be able to do "in my head".
You wrote I should just change some stuff around in question 2), but that is also dependent on the conditional probability from question 1)?
You just want: $$45D_A = 25D_B = 30D_C$$ Where, as above, you can keep ##D_B = 6## and ##D_C = 5##.
 
  • Like
Likes CharlesDamle
  • #18
PeroK said:
You just want: $$45D_A = 25D_B = 30D_C$$ Where, as above, you can keep ##D_B = 6## and ##D_C = 5##.
Okay, I made it way too complicated in my head.
Thank you very much!
 

FAQ: Optimizing Defective Rates with Bayes' Formula

What is Bayes' formula and how is it used?

Bayes' formula is a mathematical equation that calculates the probability of an event occurring based on prior knowledge or information. It is often used in statistical analysis and machine learning to make predictions or decisions.

Can Bayes' formula be optimized?

Yes, Bayes' formula can be optimized by adjusting the prior probabilities and likelihoods to better reflect the data and improve the accuracy of the predictions.

What are the advantages of using Bayes' formula?

One of the main advantages of using Bayes' formula is its ability to incorporate new information or data into the calculations, making it a flexible and adaptable tool for decision-making. It also allows for the consideration of uncertainty and prior knowledge in the analysis.

What are some potential limitations of Bayes' formula?

One limitation of Bayes' formula is that it assumes independence between variables, which may not always be the case in real-world situations. Additionally, it relies on accurate prior probabilities and likelihoods, which can be challenging to obtain in some cases.

How is Bayes' formula related to Bayesian statistics?

Bayes' formula is a fundamental concept in Bayesian statistics, which is a branch of statistics that uses probability theory to make inferences and predictions about unknown parameters. Bayes' formula is used to update the probability of a hypothesis as new data is collected, making it a key component of Bayesian analysis.

Back
Top