Sequential analysis
In statistics, sequential analysis or sequential hypothesis testing is a type of statistical analysis where the sample size is not fixed in advance. Instead, the data is checked as it is collected. Collecting more data stops according to a set stopping rule once significant results are seen.
Because of this, a conclusion can sometimes be reached much earlier than with more classical hypothesis testing or estimation. This can mean lower financial and human cost.
History
The method of sequential analysis is first credited to Abraham Wald with Jacob Wolfowitz, W. Allen Wallis, and Milton Friedman. They worked at Columbia University's Statistical Research Group, where it was used as a tool for more efficient industrial quality control during World War II. Its value to the war effort was quickly recognised, and it was given a "restricted" classification. At the same time, George Barnard led a group working on optimal stopping in Great Britain. Another early contribution came from K.J. Arrow with D. Blackwell and M.A. Girshick.
A similar approach was developed separately at about the same time by Alan Turing. It was part of the Banburismus technique used at Bletchley Park, where it helped test whether different messages coded by German Enigma machines should be connected and analysed together. This work stayed secret until the early 1980s. Peter Armitage introduced sequential analysis into medical research, especially clinical trials. Its use in medicine became more popular after Stuart Pocock's work gave clear advice on how to control Type 1 error rates in sequential designs.
Alpha spending functions
When researchers look at data again and again as more observations are added, the chance of a Type 1 error goes up. So it is important to adjust the alpha level at each check, so that the overall Type 1 error rate stays at the desired level. This is a bit like the Bonferroni correction, but because the repeated looks at the data depend on each other, more efficient ways to adjust the alpha level can be used. One of the earliest ideas is the Pocock boundary. Other ways to control the Type 1 error rate include the Haybittle–Peto bounds, and more work on setting the boundaries for interim analyses has been done by O'Brien & Fleming and Wang & Tsiatis.
A limit of corrections like the Pocock boundary is that the number of looks at the data must be decided before the data is collected, and the looks should be equally spaced (for example, after 50, 100, 150, and 200 patients). The alpha spending function approach developed by Demets & Lan does not have these limits. Depending on the settings chosen, it can be very similar to Pocock boundaries or to the corrections proposed by O'Brien and Fleming. Another approach with no such limits at all is based on e-values and e-processes.
Applications of sequential analysis
In a randomized trial with two treatment groups, group sequential testing may be done like this. After n subjects in each group are available, an interim analysis is conducted, and a statistical test compares the two groups. If the null hypothesis is rejected, the trial is stopped. Otherwise, the trial continues, another n subjects per group are recruited, and the test is performed again using all subjects. This continues with periodic checks until a maximum number of interim analyses has been performed, and then the last test is conducted and the trial is discontinued.
Sequential analysis also connects to the problem of gambler's ruin, which has been studied by, among others, Huygens in 1657. Step detection is the process of finding sudden changes in the average level of a time series or signal. It is usually seen as a special kind of statistical method called change point detection. The step is often small and the signal is mixed with noise, which makes it hard to spot, so statistical or signal processing methods are often needed. When these methods run online as data comes in, especially to produce an alert, this is an application of sequential analysis.
Bias
Studies that are stopped early because they find a clear result tend to overestimate the true size of the effect. With small groups, only large effects are likely to show a clear result, and that is what leads to stopping the study early. Ways to correct these estimates in single studies have been proposed. This bias is mainly a problem when looking at one study alone. In meta-analyses, overestimates from early-stopped studies are balanced out by underestimates from studies that stop later, so Schou & Marschner concluded that "early stopping of clinical trials is not a substantive source of bias in meta-analyses."
The meaning of p-values also changes in sequential analysis, because more than one analysis is done, so the usual definition of a p-value needs to be rethought. One solution is to order the p-values from a series of tests based on when the study stopped and how strong the test result was at each check. This is called stagewise ordering, and it was first proposed by Armitage.

Quiz time!
5 questions about Sequential analysis
What makes sequential analysis different from many other statistical methods?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Sequential analysis, available under CC BY-SA 4.0.