For the binomial single sampling plan (n, c), P_A(p) = pbinom(c, n, p); AQL
solves P_A = 1 - alpha and RQL solves P_A = beta (beta quantiles, Hedderich,
Sachs & Reynarowych 2023, eq 7.17), and AOQL maximises p P_A(p) (N - n) / N
(eq 7.18) by golden section.
Usage
accqlv(n, c, alpha = 0.05, beta_risk = 0.1, lot_size = NULL)
Arguments
- n, c
Sample size and acceptance number.
- alpha, beta_risk
Producer's and consumer's risks.
- lot_size
Optional lot size N.
Value
Named list: aql, rql, aoql, p_aoql.
References
Montgomery, D. C. (2013). Introduction to Statistical Quality
Control, ch. 15.
Examples
accqlv(46, 1, lot_size = 1000)
#> $aql
#> [1] 0.007780247
#>
#> $rql
#> [1] 0.08194705
#>
#> $aoql
#> [1] 0.01730556
#>
#> $p_aoql
#> [1] 0.03450609
#>