Professional Documents
Culture Documents
Agenda
1. Review sampling plan design for attribute inspections
2. Variables sampling plan design and operation
3. Comparison of sample sizes
4. What if we dont know ?
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 2
Sampling Plan Goal
The goal of any sampling plan is to distinguish good lots from bad lots.
The observations may be attribute or variable.
The formal hypotheses being tested are:
H 0 : p = p 0 (the lot is good)
H A : p > p 0 (the lot is bad)
where p is the lots true fraction defective.
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 4
Attribute Sampling Plan: Example
Example: What decision should be made if an attribute sampling plan
with n = 198 and c = 4 finds the following number of defectives in
random samples?
1. a. D = 0
b. D = 1
c. D = 4
d. D = 5
e. D = 8
0.8
Probability of Acceptance
0.6
0.4
0.2
0.0
0.00 0.05 0.10 0.15 0.20
Lot Proportion Defective
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 6
Attribute Sampling Plan Design
We can design an attribute sampling plan by choosing two points on
its OC curve:
Acceptable Quality Level (AQL) condition: We want the plan to have a
high probability of accepting lots with p = AQL.
Rejectable Quality Level (RQL) condition: We want the plan to have a
low probability of accepting lots with p = RQL.
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 8
Attribute Sampling Plan Design: Example
Problem: What sample size and acceptance number are required to
accept 95% of lots with 1% defective and 10% of lots with 4%
defective?
Solution: The simultaneous solution to:
bc; n, p = AQL = 0. 01 = 0. 95
bc; n, p = RQL = 0. 04 = 0. 10
can be determined by manual calculation (very painful), Larsons
nomogram, or appropriate software.
0.8
Probability of Acceptance
0.6
0.4
0.2
0.1
0.0
0.00 0.01 0.02 0.03 0.04 0.05 0.06
Lot Proportion Defective
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 10
Attribute Sampling Plan Design: Example
p=0.01
0.3
0.2
0.1
0.04997
Probability
0.0
p=0.04
0.3
Accept H0 Reject H0
0.2
0.1
0.09960
0.0
0 4 5 10 15 20
X
11
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 12
Variables Sampling Plans
When and are known and the distribution is normal the fraction
defective p relative to the one-sided upper specification limit USL is
USL
zp =
where p is the tail area under the normal curve.
13
a
p0
0 USL x
b
p
1
1 USL x
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 14
Variables Sampling Plan: Design
a
p0
0 USL x
b
p
1
1 USL x
0 x A /R x
x A /R 1 x
15
0 x A /R x
x A /R 1 x
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 16
Variables Sampling Plan: Design
If we solve the two equations:
USL = 0 + z p 0 x = 1 + z p 1 x
x A/R = 0 + z x = 1 z x
for the sample size n where x = x / n we obtain:
z + z 2
n = zp zp
0 1
17
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 18
Variables Sampling Plan: Example
Solution: The two specified points on the OC curve are
p 0 , 1 = 0. 01, 0. 95 and p 1 , = 0. 04, 0. 10. From the equation
the required sample size is
n = zz 0.05 + z 0.10 2
0.01 z 0.04
= 1. 645 + 1. 282
2
2. 33 1. 75
= 26
and the critical value of x A/R is
x A/R = 0 + z x
= USL z p 0 x + z x
n
= 700 2. 33 30 + 1. 645 30
26
= 640
19
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 20
Variables Sampling Plan: Example
Operating Characteristic (OC) Curve
Sample Size = 26, Critical Distance = 2.00289
1.0
Upper Specification Limit (USL) 700
Historical Standard Deviation 30
0.6
Generated Plan(s)
Sample Size 26
Critical Distance (k Value) 2.00289
0.4
Z.USL = (upper spec - mean)/historical standard
deviation
Accept lot if Z.USL = k; otherwise reject.
0.2
Proportion Probability Probability
Defective Accepting Rejecting
0.01 0.950 0.050
0.04 0.099 0.901
0.0
0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09
Lot Proportion Defective
21
For the special case of = and when p 0 and p 1 are both small, say,
less than about 10%, this ratio simplifies and approximates to
2
n attributes 1 z p0 z p1
n variables 4 p1 p0
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 22
Comparison of ASP to VSP Sample Sizes
Example: Determine the sample size ratio for attributes and variables
inspection plans that will accept 95% of the lots with 0.1% defectives
and reject 95% of the lots with 0.4% defectives.
Solution: The two points on the OC curve are
p 0 = 0. 001, 1 = 0. 95 and p 1 = 0. 004, = 0. 05. Because
= = 0. 05 and both p 0 and p 1 are relatively small the ratio of the
attributes- to variables-based sample sizes is approximately
2
n attributes 1 z 0.001 z 0.004
n variables 4 0. 004 0. 001
2
1 3. 090 2. 652
4 0. 004 0. 001
48
23
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 24
Variables Sampling Plan: Example
Problem: Recalculate the sample size for the variables sampling plan
under the condition that the standard deviation is unknown.
Solution:
25
0.6
Generated Plan(s)
Sample Size 78
Critical Distance (k Value) 2.00278
0.4
Z.USL = (upper spec - mean)/standard deviation
Accept lot if Z.USL = k; otherwise reject.
0.2
Proportion Probability Probability
Defective Accepting Rejecting
0.01 0.952 0.048
0.04 0.105 0.895
0.0
0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09
Lot Proportion Defective
Mathews Malnar & Bailey, Inc., Variables Sampling Plans, 20 April 2016 26
References
1. Mathews, Sample Size Calculations: Practical Methods for
Engineers and Scientists
2. Montgomery, Introduction to Statistical Quality Control
3. Grant and Leavenworth, Statistical Quality Control
4. ANSI/ASQ Z1.4 Sampling Procedures and Tables for Inspection
by Attributes
5. ANSI ASQ Z1.9 Sampling Procedures and Tables for Inspection
by Variables for Percent Defective
27