Assignment 2 EE765
Assignment 2 EE765
Question 1
289
Yield = × 100 = 96.33%
300
b. Supplier which is least likely to have supplied a non-defective
microprocessor
Assuming that the probability of taking any microprocessor from A, B
and C is equal
Probability of a microprocessor being non-defective from supplier:
• Supplier A: 148
150
= 0.9867
• Supplier B: 45
50
= 0.9
• Supplier C: 96
100
= 0.96
1
• Supplier A: 2
150
= 0.0133
• Supplier B: 5
50
= 0.1
• Supplier C: 4
100
= 0.04
2
Yield = 0.6 · 0.9867 + 0.1 · 0.9 + 0.3 · 0.96
Yield = 0.59202 + 0.09 + 0.288 = 0.97002 or 97.00%
Question 2
Given:-
TP 800
TPR = = = 0.80
TP + FN 800 + 200
3
• False Negative Rate (FNR):
FN 200
FNR = = = 0.20
TP + FN 800 + 200
• True Negative Rate (TNR):
TN 950
TNR = = = 0.95
TN + FP 950 + 50
• False Positive Rate (FPR):
FP 50
FPR = = = 0.05
TN + FP 950 + 50
b. Probability that a capacitor that fails at the customer’s facil-
ity will also fail at your manufacturing facility
Definitions:
Let A = event that a capacitor fails at the manufacturer’s facility
(OQC).
Let B = event that a capacitor fails at the customer’s facility (IQC).
950
P (A|B) = = 0.95
1000
So, the probability that a capacitor that fails at the customer’s facility
will also fail at the manufacturer’s facility is 0.95.
4
c. Probability that a capacitor found to have failed at your fa-
cility will also fail at the customer’s facility?
Thus,
950
P (B|A) = ≈ 0.826
1150
So, the probability that a capacitor that fails at your facility will also
fail at the customer’s facility is approximately 0.826.
Thus:
50
P (B|Ac ) = ≈ 0.0588
850
So, the probability that capacitors accepted at your facility will fail at
the customer’s facility is approximately 0.0588 or 5.88%.
5
Question 3
a. Part failure rate for capacitors using the Parts Stress Model.
λp = λb · πT · πC · πV · πQ · πE
Where:
λb = 0.00076, πE = 7, πT = 1.3, πQ = 10, πV = 1, πC = 0.81 (for 0.1
µF capacitor)
Substituting the values:
λp = 0.00076 × 1.3 × 0.81 × 1 × 10 × 7 ≈ 0.05602 failures per 106 hours
b. Part failure rate for resistors using the Parts Stress Model.
λp = λb × πT × πS × πP × πQ × πE
≈ 6146failures
6
Code for part A:
1 import pandas as pd
2
7 supplier_column = ’ Supplier ’
8 status_column = ’ Quality ␣ Check ’
9
18 print ( status_counts )
7
Code for Part B:
1 import pandas as pd
2 from sklearn . metrics import confusion_matrix ,
3 cla s s i f i c a t i o n _ r e p o r t
4 import seaborn as sns
5 import matplotlib . pyplot as plt
6