Provides an upper bound on the number of acceptable rejects or nonconformities in a process. This is similar to a 1-sided upper tolerance bound for a hypergeometric random variable.
acc.samp(n, N, alpha = 0.05, P = 0.99, AQL = 0.01, RQL = 0.02)
acc.samp
returns a matrix with the following quantities:
The number of items in the sample which may be unaccountable, yet still be able to
attain the desired confidence level 1-alpha
.
The total inventory (or lot) size N
.
The confidence level 1-alpha
.
The proportion of accountable items specified by the user.
The acceptable quality level as specified by the user. If the sampling were to be repeated numerous times as a process, then
this quantity specifies the proportion of missing items considered acceptable from the process as a whole. Conditioning on the
calculated value for acceptance.limit
, the AQL
is used to estimate the producer's risk (see prod.risk
below).
The rejectable quality level as specified by the user. This is the proportion of individual items in a sample one is willing
to tolerate missing. Conditioning on the calculated value for acceptance.limit
, the RQL
is used to estimate the consumer's risk (see cons.risk
below).
The sample size drawn as specified by n
.
The producer's risk at the specified AQL
. This is the probability of rejecting an audit of a good inventory (also
called the Type I error). A good inventory can be rejected if an unfortunate random sample is selected (e.g.,
most of the missing items happened to be selected for the audit). 1-prod.risk
gives the confidence level of this
sampling plan for the specified AQL
and RQL
. If it is lower than the confidence level desired (e.g., because the AQL
is too high), then a warning message will be displayed.
The consumer's risk at the specified RQL
. This is the probability of accepting an audit of a bad inventory (also
called the Type II error). A bad inventory can be accepted if a fortunate random sample is selected (e.g., most of the missing
items happened to not be selected for the audit).
The sample size to be drawn from the inventory.
The total inventory (or lot) size.
1-alpha
is the confidence level for bounding the probability of accepting the inventory.
The proportion of items in the inventory which are to be accountable.
The acceptable quality level, which is the largest proportion of defects in a process considered
acceptable. Note that 0 < AQL < 1
.
The rejectable quality level, which is the largest proportion of defects in an independent lot
that one is willing to tolerate. Note that AQL < RQL < 1
.
Montgomery, D. C. (2005), Introduction to Statistical Quality Control, Fifth Edition, John Wiley & Sons, Inc.
## A 90%/90% acceptance sampling plan for a sample of 450
## drawn from a lot size of 960.
acc.samp(n = 450, N = 960, alpha = 0.10, P = 0.90, AQL = 0.07,
RQL = 0.10)
Run the code above in your browser using DataLab