acc.samp(n, N, alpha = 0.05, P = 0.99, AQL = 0.01, RQL = 0.02)1-alpha is the confidence level for bounding the probability of accepting the inventory.0 < AQL < 1.AQL < RQL < 1.acc.samp returns a matrix with the following quantities:
1-alpha.N.1-alpha.acceptance.limit, the AQL is used to estimate the producer's risk (see prod.risk below).acceptance.limit, the RQL is used to estimate the consumer's risk (see cons.risk below).n.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.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).Hypergeometric
## 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