As in classical hypothesis testing, SPRT starts with a pair of hypotheses, say and for the null hypothesis and alternative hypothesis respectively. They must be specified as follows: The next step is to calculate the cumulative sum of the log-likelihood ratio,, as new data arrive: with, then, for =1,2,..., The stopping rule is a simple thresholding scheme:
: continue monitoring
: Accept
: Accept
where and depend on the desired type I and type II errors, and. They may be chosen as follows: and In other words, and must be decided beforehand in order to set the thresholds appropriately. The numerical value will depend on the application. The reason for being only an approximation is that, in the discrete case, the signal may cross the threshold between samples. Thus, depending on the penalty of making an error and the sampling frequency, one might set the thresholds more aggressively. The exact bounds are correct in the continuous case.
Example
A textbook example is parameter estimation of a probability distribution function. Consider the exponential distribution: The hypotheses are Then the log-likelihood function for one sample is The cumulative sum of the LLFs for all is Accordingly, the stopping rule is: After re-arranging we finally find The thresholds are simply two parallel lines with slope. Sampling should stop when the sum of the samples makes an excursion outside the continue-sampling region.
Applications
Manufacturing
The test is done on the proportion metric, and tests that a variable p is equal to one of two desired points, p1 or p2. The region between these two points is known as the indifference region. For example, suppose you are performing a quality control study on a factory lot of widgets. Management would like the lot to have 3% or less defective widgets, but 1% or less is the ideal lot that would pass with flying colors. In this example, p1 = 0.01 and p2 = 0.03 and the region between them is the IR because management considers these lots to be marginal and is OK with them being classified either way. Widgets would be sampled one at a time from the lot until the test determines, within an acceptable error level, that the lot is ideal or should be rejected.
Testing of human examinees
The SPRT is currently the predominant method of classifying examinees in a variable-length computerized classification test. The two parameters are p1 and p2 are specified by determining a cutscore for examinees on the proportion correct metric, and selecting a point above and below that cutscore. For instance, suppose the cutscore is set at 70% for a test. We could select p1 = 0.65 and p2 = 0.75. The test then evaluates the likelihood that an examinee's true score on that metric is equal to one of those two points. If the examinee is determined to be at 75%, they pass, and they fail if they are determined to be at 65%. These points are not specified completely arbitrarily. A cutscore should always be set with a legally defensible method, such as a modified Angoff procedure. Again, the indifference region represents the region of scores that the test designer is OK with going either way. The upper parameter p2 is conceptually the highest level that the test designer is willing to accept for a Fail, and the lower parameter p1 is the lowest level that the test designer is willing to accept for a pass. While this definition may seem to be a relatively small burden, consider the high-stakes case of a licensing test for medical doctors: at just what point should we consider somebody to be at one of these two levels? While the SPRT was first applied to testing in the days of classical test theory, as is applied in the previous paragraph, Reckase suggested that item response theory be used to determine the p1 and p2 parameters. The cutscore and indifference region are defined on the latent ability metric, and translated onto the proportion metric for computation. Research on CCT since then has applied this methodology for several reasons:
Large item banks tend to be calibrated with IRT
This allows more accurate specification of the parameters
By using the item response function for each item, the parameters are easily allowed to vary between items.
Detection of anomalous medical outcomes
et al. have shown that SPRT can be used to monitor the performance of doctors, surgeons and other medical practitioners in such a way as to give early warning of potentially anomalous results. In their 2003 paper, they showed how it could have helped identify Harold Shipman as a murderer well before he was actually identified.
Extensions
MaxSPRT
More recently, in 2011, an extension of the SPRT method called Maximized Sequential Probability Ratio Test was introduced. The salient feature of MaxSPRT is the allowance of a composite, one-sided alternative hypothesis, and the introduction of an upper stopping boundary. The method has been used in several medical research studies.