The SPRT calculator gives the accept and reject lines of Wald’s sequential test for a defect rate, the average sample number and the saving against a fixed-size plan.
How the calculation works
- Enter the acceptable and unacceptable defect rates.
- Enter the risks alpha and beta.
- The calculator gives the two intercepts, the slope, the average sample numbers, the fixed-plan size, the saving and the minimum counts.
Example
The acceptable rate is 5 %, the unacceptable one 10 %, alpha is 5 % and beta 10 %. The lines are d = -3.013 + 0.07236 × n to accept and d = 3.868 + 0.07236 × n to reject. At the acceptable rate, the test needs 119.4 units on average, against 221 for a fixed plan, a saving of 46.0 %. A lot with no defect can be accepted after 42 units.
Why it matters
The calculator helps quality engineers who design inspection plans, clinical researchers who plan sequential trials, auditors, and students of statistics.
Good to know
The lines are drawn for a binomial defect count and assume independent units. The real number of units needed varies from run to run, and a few lots will need many more than the average. It is wise to set a maximum, a truncation, at about three times the fixed-plan size. In clinical research, a sequential design must be planned before the study, with proper adjustment for repeated looks at the data. The saving is largest when the true rate is clearly good or clearly bad, and smallest when it falls between the two rates. The fixed plan size shown uses a normal approximation.
Related tools
The acceptance sampling calculator evaluates fixed plans, the statistical power calculator links risk and sample size, the binomial calculator gives defect probabilities and the A/B test calculator compares two rates.