Determining the values of the constants ( A ) and ( B ) in a Sequential Probability Ratio Test (SPRT) is essential because they define the thresholds for making decisions about whether to accept ( H_0 ) or ( H_1 ). These thresholds are related to the acceptable levels of Type I and Type II errors, denoted by ( \alpha ) and ( \beta ), respectively.
Here is a general approach to determining the constants ( A ) and ( B ):
-
Type I error (( \alpha )): This is the probability of incorrectly rejecting the null hypothesis (a false positive). It is set by the investigator before the test is performed. The value of ( A ) is related to the Type I error:
[ \alpha = P(\text{reject } H_0 | H_0 \text{ is true}) = P(LR_n \geq A | H_0 \text{ is true}) ]
-
Type II error (( \beta )): This is the probability of incorrectly failing to reject the null hypothesis (a false negative). This error level is also chosen by the investigator. The value of ( B ) is related to the Type II error:
[ \beta = P(\text{accept } H_0 | H_1 \text{ is true}) = P(LR_n \leq B | H_1 \text{ is true}) ]
To find ( A ) and ( B ), you typically would solve the following inequalities:
[ A \geq \frac{1-\beta}{\alpha}, \quad B \leq \frac{\beta}{1-\alpha} ]
However, calculating ( A ) and ( B ) precisely involves more complex steps, where we would take the log of the likelihood ratio to simplify the expression (since the log function is monotonic, it preserves inequalities):
[ \log(LR_n) = \sum_{i=1}^n \log\left(\frac{f_1(X_i)}{f_0(X_i)}\right) ]
Now, instead of finding ( A ) and ( B ), we find the logarithmic boundaries ( \log(A) ) and ( \log(B) ), so the decision rules become:
[ \text{If } \log(LR_n) \leq \log(B), \text{ accept } H_0 ]
[ \text{If } \log(LR_n) \geq \log(A), \text{ accept } H_1 ]
We need to calculate the thresholds such that the accumulated log-likelihood ratio will trigger a decision with the specified error rates. Wald provided the following approximations for ( \log(A) ) and ( \log(B) ):
[ \log(A) \approx \log\left(\frac{1-\beta}{\alpha}\right) ]
[ \log(B) \approx \log\left(\frac{\beta}{1-\alpha}\right) ]
The exact determination of ( A ) and ( B ) usually requires iterative methods since we don't have closed-form solutions for these bounds given arbitrary distributions and error requirements. For specific types of distributions (like the normal distribution), formulas might be derived to express ( A ) and ( B ) more directly in terms of standard deviation and the difference in means under the two hypotheses.