# Sequential probability ratio test

SPRT

Let be a sequence of independent random variables with common discrete or continuous probability density function (cf. also Random variable; Distribution function). In testing the hypotheses versus (cf. also Statistical hypotheses, verification of), the probability ratio or likelihood ratio after observations is given by (cf. also Likelihood-ratio test) (a1)

In the Neyman–Pearson probability ratio test, one fixes a sample size , chooses a value and decides to accept if and decides to accept if . In the sequential probability ratio test introduced by A. Wald [a5], the sample size is not chosen ahead of time. Instead, one chooses two positive constants and sequentially computes the likelihood ratio after each observation. If after observations , one stops taking observations and decides to accept . If , one stops and decides to accept . Otherwise, another observation is taken. The number of observations taken is thus a random variable , which can be shown to be finite with probability one.

Denote the error probabilities of this procedure by and . It then follows that (a2) If the likelihood ratio always hits the boundary when the test stops, so that or , then these inequalities become equalities. Otherwise, the inequalities become close approximations in the standard cases.

The logarithm of the likelihood ratio as given in (a1) is a sum of independent, identically distributed random variables . It then follows from Wald's lemma that . Using the same type of approximations as above, this gives the following formulas for the average sample number of the test: (a3) If the likelihood ratio always hits the boundary when the test stops, these approximations become equalities.

Wald and J. Wolfowitz [a6] proved a strong optimality property for the sequential probability ratio test. It states that among all sequential tests with error probabilities no bigger than that of a given sequential probability ratio test, the sequential probability ratio test has the smallest average sample number under both and . Indeed, the average savings in sampling relative to the Neyman–Pearson test with the same error probabilities is 50% or more in many cases (see [a2] for details).

In most realistic situations the hypotheses to be tested are composite, the probability distributions are parametrized by some parameter , and one is interested in testing versus . In such a case one can perform the sequential probability ratio test for the simple hypotheses versus . In the most important cases one can apply the fundamental identity of sequential analysis (see [a2] for details) to find the approximate power functions and average sample number functions for such procedures. However, even when such tests achieve specified error probabilities for all values of the parameter, the Wald–Wolfowitz optimality will not carry over to values of other than and . Indeed, the expected sample size may even exceed that of the corresponding fixed sample size test at some values of between and .

It is because of this phenomenon that J. Kiefer and L. Weiss [a4] raised the question of finding the sequential test with given error probabilities at and , which minimizes the maximum expected sample size over all . To solve this problem, G. Lorden [a3] introduced a test based on performing two one-sided sequential probability ratio tests simultaneously. First, a third value is chosen. Test one is then a sequential probability ratio test of versus , where the constant . Test two is a sequential probability ratio test of versus , where . The -sequential probability ratio test stops and makes its decision as soon as either one of the individual sequential probability ratio tests stops. The decision is to accept if test one stops first and the decision is to accept if the second test stops first. It can be shown that for the proper choice of this test does asymptotically solve the Kiefer–Weiss problem (see [a1] for a simple way to select ).

The sequential probability ratio test can also be applied in situations where the observations are not independent and identically distributed. In such a situation the likelihood ratio can be more difficult to compute at each stage. The inequalities (a2) continue to hold for such a sequential probability ratio test, but the formulas (a3) for the average sample number are no longer valid. The sequential probability ratio test has also been studied where the observations form a continuous-time stochastic process. In fact, parts of the theory simplify in such a situation, since the likelihood ratio process often becomes a process with continuous sample paths and thus always hits the boundary when it stops.

How to Cite This Entry:
Sequential probability ratio test. Bennett Eisenberg (originator), Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Sequential_probability_ratio_test&oldid=12721
This text originally appeared in Encyclopedia of Mathematics - ISBN 1402006098
{"ft_lang_label":"__label__en","ft_lang_prob":0.9028471,"math_prob":0.9779668,"size":5572,"snap":"2023-14-2023-23","text_gpt3_token_len":1179,"char_repetition_ratio":0.18283045,"word_repetition_ratio":0.048220437,"special_character_ratio":0.21356784,"punctuation_ratio":0.120567374,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99937195,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],"im_url_duplicate_count":[null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-05-31T11:04:47Z\",\"WARC-Record-ID\":\"<urn:uuid:1984fd84-b629-4526-aa00-0eba93636379>\",\"Content-Length\":\"26513\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:640aaf0d-4b1a-4780-a4c4-89a90d48b6c5>\",\"WARC-Concurrent-To\":\"<urn:uuid:484c7893-ea3d-42b6-b188-19cdb0f1f26e>\",\"WARC-IP-Address\":\"34.96.94.55\",\"WARC-Target-URI\":\"https://encyclopediaofmath.org/wiki/Sequential_probability_ratio_test\",\"WARC-Payload-Digest\":\"sha1:ZDCIMMYFRHC6WB6HV4GVWIHZ4LYYJE2R\",\"WARC-Block-Digest\":\"sha1:FBU74BGILEG2FG34KLCUQ2RA6CRUGNON\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224646457.49_warc_CC-MAIN-20230531090221-20230531120221-00315.warc.gz\"}"}