Time-uniform, nonparametric, nonasymptotic confidence sequences
Steven R. Howard, Aaditya Ramdas, Jon McAuliffe, Jasjeet Sekhon
Introduction
It has become standard practice for organizations with online presence to run large-scale randomized experiments, or “A/B tests”, to improve product performance and user experience. Such experiments are inherently sequential: visitors arrive in a stream and outcomes are typically observed quickly relative to the duration of the test. Results are often monitored continuously using inferential methods that assume a fixed sample, despite the known problem that such monitoring inflates Type I error substantially (Armitage et al., 1969; Berman et al., 2018). Furthermore, most A/B tests are run with little formal planning and fluid decision-making, compared to clinical trials or industrial quality control, the traditional applications of sequential analysis.
With only a uniform lower bound , i.e., if , we have a lower confidence sequence. Likewise, if we have an upper confidence sequence given by . Theorems 1, 2, and 3 and Lemma 2 are our key tools for constructing confidence sequences. All build upon the general framework for uniform exponential concentration introduced in Howard et al. (2020), which means our techniques apply in diverse settings: scalar, matrix, and Banach-space-valued observations, with possibly unbounded support; self-normalized bounds applicable to observations satisfying weak moment or symmetry conditions; and continuous-time scalar martingales. Our methods allow for flexible control of the “shape” of the confidence sequence, that is, how the sequence of intervals shrinks in width over time. As a simple example, given a sequence of i.i.d. observations from a 1-sub-Gaussian distribution whose mean we would like to estimate, Theorem 1 yields the following -confidence sequence for , a special case of the more general bound (10):
The asymptotic rate of this bound matches the lower bound implied by the law of the iterated logarithm (LIL), and nonasymptotic bounds of this form are called finite LIL bounds (Jamieson et al., 2014).
We develop confidence sequences that possess the following properties:
Nonasymptotic and nonparametric: our confidence sequences offer coverage guarantees for all sample sizes, without exact distributional assumptions or asymptotic approximations.
Unbounded sample size: our methods do not require a final sample size to be chosen ahead of time. They may be tuned for a planned sample size but always permit additional sampling.
Arbitrary stopping rules: we make no assumptions on the stopping rule used by an experimenter to decide when to end the experiment, or when to act on certain inferences.
Asymptotically zero width: the interval widths of our confidence sequences shrink towards zero at a rate, ignoring log factors, just as with pointwise confidence intervals.
These properties give us strong guarantees and broad applicability. An experimenter may always choose to gather more samples, and may stop at any time according to any rule—the resulting inferential guarantees hold under the stated assumptions without any approximations. Of course, this flexibility comes with a cost: our intervals are wider than those that rely on asymptotics or make stronger assumptions, for example, a known stopping rule. Typical, fixed-sample confidence intervals derived from the central limit theorem do not satisfy any of (P1)-(P3), and accommodating any one property necessitates wider intervals; we illustrate this in Figure 1. It is perhaps surprising that these four properties come at a numerical cost of less than doubling the fixed-sample, asymptotic interval width—the discrete mixture bound illustrated in Figure 9 stays within a factor of two of the fixed-sample CLT bounds over five orders of magnitude in time.
The idea of a confidence sequence goes back at least to Darling and Robbins (1967a). They are called repeated confidence intervals by Jennison and Turnbull (1984, 1989) (with a focus on finite time horizons) and always-valid confidence intervals by Johari et al. (2015). They are sometimes labeled anytime confidence intervals in the machine learning literature (Jamieson and Jain, 2018).
Recent interest in confidence sequences has come from the literature on best-arm identification with fixed confidence for multi-armed bandit problems. Garivier (2013), Jamieson et al. (2014), Kaufmann et al. (2016), and Zhao et al. (2016) present methods satisfying properties (P1)-(P4) for independent, sub-Gaussian observations. Our results are sharper and more general, and our Bernstein confidence sequence scales with the true variance in nonparametric settings. Confidence sequences are a key ingredient in best-arm selection algorithms (Jamieson and Nowak, 2014) and related methods for sequential testing with multiple comparisons (Yang et al., 2017; Malek et al., 2017; Jamieson and Jain, 2018). Our results improve and generalize such methods.
Maurer and Pontil (2009) and Audibert et al. (2009) prove empirical-Bernstein bounds for fixed times or finite time horizons. Our empirical-Bernstein bound holds uniformly over infinite time. Balsubramani (2014) takes a different approach to deriving confidence sequences satisfying properties (P1)-(P4) by lower bounding a mixture martingale. This work was extended in Balsubramani and Ramdas (2016) to an empirical-Bernstein bound, the only infinite-horizon, empirical-Bernstein confidence sequence we are aware of in prior work. Our result removes a multiplicative pre-factor and yields sharper bounds. We emphasize that our proof technique is quite different from all three of these existing empirical-Bernstein bounds; see Section A.8.
The literature on self-normalized bounds makes extensive use of the method of mixtures, sometimes called pseudo-maximization (de la Peña et al., 2004, 2007; de la Peña, Klass and Lai, 2009; de la Peña, Lai and Shao, 2009; Garivier, 2013); these works introduced the idea of using a mixture to bound a quantity with a random intrinsic time . These results are mostly given for fixed samples or finite time horizon, though de la Peña et al. (2004, Eq. 4.20) includes an infinite-horizon curve-crossing bound. Lai (1976b) treats confidence sequences for the parameter of an exponential family using mixture techniques similar to those of Section 3.2. Like most work on the method of mixtures, Lai’s work focused on the parametric setting (which we discuss in Section 4.4), while we focus on the application of mixture bounds to nonparametric settings.
Johari et al. (2017) adopt the mixture approach for a commercial A/B testing platform, where properties (P2) and (P3) are critical to provide an “off-the-shelf” solution for a variety of clients. Their application relies on asymptotics which lack rigorous justification. In Section 4.2 we give nonasymptotic justification for a similar confidence sequence under a finite-sample randomization inference model, and in Section 5 we demonstrate how our methods control Type I error in situations where asymptotics fail.
2 Outline
We organize our results using the sub-Gaussian, sub-gamma, sub-Bernoulli, sub-Poisson and sub-exponential settings defined in Section 2.
The stitching method gives new closed-form sub-Gaussian or sub-gamma boundaries (Theorem 1). Our sub-gamma treatment extends prior sub-Gaussian work to cover any martingale whose increments have finite moment-generating function in a neighborhood of zero; see Proposition 1. Our proof is transparent and flexible, accommodating a variety of boundary shapes, including those growing at the rate with a focus on tight constants, though we do not recommend this bound in practice unless closed-form simplicity is vital.
Conjugate mixtures give one- and two-sided boundaries for the sub-Bernoulli, sub-Gaussian, sub-Poisson and sub-exponential cases (Section 3.2) which avoid approximations made for analytical convenience. The sub-Gaussian boundaries are unimprovable without further assumptions (Section 3.6). These boundaries include a common tuning parameter which is critical in practice and we discuss why their growth rate may be preferable to the slower rate (Section 3.5).
Discrete mixtures facilitate numerical computation of boundaries with a great deal of flexibility, at the cost of slightly more involved computations (Theorem 2). Like conjugate mixture boundaries, these boundaries avoid unnecessary approximations and are unimprovable in the sub-Gaussian case.
Finally, for sub-Gaussian processes, the inverted stitching method (Theorem 3) gives numerical upper bounds on the crossing probability of any increasing, strictly concave boundary over a limited time range. We show that any such boundary yields a uniform upper tail inequality over a finite horizon, and compute its crossing probability.
Building on this foundation, we present a a state-of-the-art empirical-Bernstein bound (Theorem 4) for any sequence of bounded observations using a new self-normalization proof technique. We illustrate our methods with two novel applications: the nonasymptotic, sequential estimation of average treatment effect in the Neyman-Rubin potential outcomes model (Section 4.2), and the derivation of uniform matrix bounds and covariance matrix confidence sequences (Corollaries 3 and 4.3). We give simulation results in Section 5. Section 6 discusses the relationship of our work to existing concepts of sequential testing. Proofs of main results are in Appendix A, with others deferred to Appendix C.
Preliminaries: linear boundaries
Note that an assumption on the upper tail of yields a lower confidence sequence for ; a corresponding assumption on the lower tail of yields an upper confidence sequence for . In this paper we formally focus on upper tail bounds, from which lower tail bounds can be derived by examining in place of . In general, the left and right tails of may behave differently and require different sets of assumptions, so that our upper and lower confidence sequences may have different forms. Regardless, we can always combine upper and lower confidence sequences using a union bound to obtain a two-sided confidence sequence (1).
When the are independent with common mean , the resulting confidence sequence estimates , but the setup requires neither independence nor a common mean. In general, the estimand may be changing at each time ; Section 4.2 gives an application to causal inference in which this changing estimand is useful. In principle, may also be random, although none of our applications involve random .
To construct uniform boundaries satisfying inequality (3), we build upon the following general condition (Howard et al., 2020, Definition 1):
When stating that a process is sub-, we typically omit from our terminology for simplicity. In scalar cases, we always have , while in matrix cases , the dimension of the (square) matrices.
Although does depend on the constant in Definition 1, for simplicity we typically omit this dependence from our notation, writing simply that is a sub- uniform boundary.
Five particular functions play important roles in our development; below, we take in the upper bounds on :
on , the scaled CGF of a centered random variable (r.v.) supported on two points, and , for some , for example a centered Bernoulli r.v. when .
on , the CGF of a standard Gaussian r.v.
One may freely scale by any positive constant and divide by the same constant so that Definition 1 remains satisfied; by convention, we scale all functions above so that . When we speak of a sub-gamma process (or uniform boundary) with scale parameter , we mean a sub- process (or uniform boundary), and likewise for other cases. We often write , , etc., dropping the range and scale parameters from our notation. As we summarize in Figure 2 and detail in Proposition 11, certain general implications hold among sub- boundaries. In particular, any sub-Gaussian boundary can also serve as a sub-Bernoulli boundary; any sub-Poisson boundary serves as a sub-Gaussian or sub-Bernoulli boundary; and, importantly, any sub-gamma or sub-exponential boundary can serve as a sub- boundary in any of the other four cases. Indeed, a sub-gamma or sub-exponential boundary applies to many cases of practical interest, as detailed below.
Suppose is twice-differentiable and . Suppose, for each , is a sub-gamma or sub-exponential uniform boundary with crossing probability for scale . Then is a sub- uniform boundary for some constants depending only on .
Proposition 1 restates Howard et al. (2020, Proposition 1), which shows that any process which is sub- is also sub-gamma and sub-exponential, if satisfies the conditions of Proposition 1. Note that these conditions are satisfied for any mean-zero random variable if the CGF exists in a neighborhood of zero, so the conditions are quite weak (Jorgensen, 1997, Theorem 2.3).
Suppose are i.i.d. draws from a distribution and we wish to sequentially estimate when is also unknown. Let for , where is the sample mean. This is a centered and scaled sample variance, and as in Darling and Robbins (1967a), we use the fact that is a cumulative sum of independent, centered Chi-squared random variables each with one degree of freedom (see Appendix H for details). Such a centered Chi-squared distribution has variance two and CGF equal to .
Thus is 1-sub-exponential with variance process and scale parameter . We may uniformly bound the upper deviations of using any sub-exponential uniform boundary, for example the gamma-exponential mixture boundary of Proposition 9. Or, we can use Proposition 11 to deduce that is sub-gamma with scale (and the same variance process) and use the closed-form stitched boundary of Theorem 1.
The above constructions yield lower confidence sequences for the variance. To obtain an upper confidence sequence, we use the fact that is 1-sub-exponential with scale parameter . Now Proposition 11 implies that is sub-gamma with scale , so the stitched boundary again applies, while Proposition 11 implies that is also sub-Gaussian, so we may alternatively use the normal mixture boundary of Proposition 6. Since is uniformly smaller than , the above analysis yields tighter bounds than the sub-Gaussian approach of Darling and Robbins (1967a).
The simplest uniform boundaries are linear with positive intercept and slope. This is formalized in Howard et al. (2020), partially restated below.
For any and ,
is a sub- uniform boundary with crossing probability .
While Lemma 1 provides a versatile building block, the growth of may be undesirable. Indeed, from a concentration point of view, the typical deviations of tend to be only , so the bound will rapidly become loose for large . From a confidence sequence point of view, recall that the confidence radius for the mean is given by . Typically, a.s. as , so the confidence radius will be asymptotically zero width if and only if . In other words, we cannot achieve arbitrary estimation precision with arbitrarily large samples unless the uniform boundary is sublinear. We address this problem in Section 3, building upon Lemma 1 to construct curved sub- uniform boundaries.
Curved uniform boundaries
We present our four methods for computing curved uniform boundaries in Sections 3.1, 3.2, 3.3, and 3.4. In Section 3.5, we discuss how to tune boundaries, a necessity for good performance in practice, and we describe the unimprovability of sub-Gaussian mixture bounds in Section 3.6.
Our analytical “stitched” bound is useful in the sub-Gaussian case or, more generally, the sub-gamma case with scale . We require three user-chosen parameters:
a scalar determines the geometric spacing of intrinsic time,
a scalar which gives the intrinsic time at which the uniform boundary starts to be nontrivial, and
Recalling the scale parameter for the function above and the constant in Definition 1, we define the stitching function as
The boundary shape is determined by choosing the function and setting the nominal crossing probability in the th epoch to equal . Then Theorem 1 gives a curved boundary which grows at a rate as . The more slowly grows as , the more slowly the resulting boundary will grow as . A simple choice is exponential growth, for some , yielding . A more interesting example is for some , where is the Riemann zeta function. Then, when , Theorem 1 yields the polynomial stitched boundary: for ,
where the second term is neglected in the sub-Gaussian case since . This is a “finite LIL bound”, so-called because , matching the form of the law of the iterated logarithm (Stout, 1970). We can bring arbitrarily close to by choosing and sufficiently close to one, at the cost of inflating the additive term . Briefly, increasing increases the size of each epoch in the aforementioned peeling argument, which reduces the looseness of the union bound over epochs. But the larger we make the epochs, the further each linear boundary deviates from the ideal curved shape at the ends of the epochs, which inflates our final boundary. The choice of involves a similar tradeoff: increasing causes us to exhaust more of our total error probability budget on earlier epochs, decreasing the constant term (which matters most for early times), at the cost of a union bound over smaller error probabilities in later epochs, which shows up as an increase in the leading constant. We discuss parameter tuning in more practical terms in Section 3.5. For example, take ; if is a sum of independent, zero-mean, 1-sub-Gaussian observations, we obtain
Figure 9 in Appendix G compares a sub-Gaussian stitched boundary to a numerically-computed discrete mixture bound with a mixture distribution roughly corresponding to , as described in Section A.6. This discrete mixture boundary acts as a lower bound (see Section 3.6) and shows that not too much is lost by the approximations involved in the stitching construction. Figure 10 compare the same stitched boundary to related bounds from the literature; our bound shows slightly improved constants over the best known bounds.
Although our stitching construction begins with a sub-gamma assumption, it applies to other sub- cases, including sub-Bernoulli, sub-Poisson and sub-exponential cases; see Figure 2 and Proposition 1. Further, our stitched bounds apply equally well in continuous-time settings to Brownian motion, continuous martingales, martingales with bounded jumps, and martingales whose jumps satisfy a Bernstein condition; see Corollary 8.
While our focus is on nonasymptotic results, Theorem 1 makes it easy to obtain the following general upper asymptotic LIL, proved in Section A.2:
Suppose is sub- with variance process and as . Then
2 Conjugate mixture boundaries
For any probability distribution on and ,
is a sub- uniform boundary with crossing probability , so long as the supermartingale of Definition 1 is product measurable when the underlying probability space is augmented with the independent random variable .
one-, two-sided normal mixture boundaries (sub-Gaussian case);
one-, two-sided beta-binomial mixture boundaries (sub-Bernoulli case);
one-sided gamma-Poisson mixture boundary (sub-Poisson case); and
one-sided gamma-exponential mixture boundary (sub-exponential case).
The two-sided normal mixture boundary has a closed form expression:
The one-sided normal mixture boundary has a similar, closed-form upper bound, making these especially convenient. It is clear from (14) that the normal mixture boundary grows as asymptotically, and this rate is shared by all of our conjugate mixture boundaries. Indeed, Proposition 2 below, proved in Section A.4, shows that such a rate holds for any mixture boundary as given by (13) whenever the mixing distribution is continuous with positive density at and around the origin, a property which holds for all mixture distributions used in our conjugate mixture boundaries, subject to regularity conditions on which hold for the CGF of any nontrivial, mean-zero r.v. and specifically for the five functions in Section 2.
Assume is nondecreasing, , , and has three continuous derivatives on a neighborhood including the origin; and has density (w.r.t. Lebesgue) which is continuous and positive on a neighborhood including the origin. Then
Note that need not place mass on all of , only near the origin, for the asymptotic rate to hold. Proposition 2 shows how the asymptotic behavior of any such mixture bound depends only on the behavior of and near the origin, a result reminiscent of the central limit theorem. Analogous, related results for the sub-Gaussian special case using can be found in Robbins and Siegmund (1970, Section 4) and Lai (1976a, Theorem 2), in some cases under weaker assumptions on .
In contrast to previous derivations of conjugate mixture boundaries in the literature, all of our conjugate mixture boundaries include a common tuning parameter which controls the sample size for which the boundary is optimized. Such tuning is critical in practice, as we explain in Section 3.5, but has been ignored in much prior work. Additionally, with the exception of the sub-Gaussian case, most prior work on the method of mixtures has focused on parametric settings. We instead emphasize the applicability of these bounds to nonparametric settings. For example, when the observations are bounded, one may construct a confidence sequence making use of empirical-Bernstein estimates (Theorem 4) based on our gamma-exponential mixture (Proposition 9). See Appendix J for other conditions in which mixture bounds yield nonparametric uniform boundaries.
3 Numerical bounds using discrete mixtures
In applications, one may not need an explicit closed-form expression so long as the bound can be easily computed numerically. Our discrete mixture method is an efficient technique for numerical computation of curved boundaries for processes satisfying Definition 1. It permits arbitrary mixture densities, thus producing boundaries growing at the rate . Recall that the shape of the stitched bound was determined by the user-specified function . For the discrete mixture bound, one instead specifies a probability density over finite support for some . We first discretize using a series of support points , geometrically spaced according to successive powers of some , and an associated set of weights :
is a sub- uniform boundary with crossing probability .
We suppress the dependence of on , , and for notational simplicity. Though Theorem 2 is a straightforward consequence of the method of mixtures, our choice of discretization (16) makes it effective, broadly applicable, and easy to implement. See Section A.5 for the proof of this result. Figure 9 includes an example bound, demonstrating a slight advantage over stitching. Section A.6 describes a connection between the stitching and discrete mixture methods, including a correspondence between the alpha-spending function and the mixture density . Finally, we note that the method can be applied even when is not monotone; one must simply choose the discretization (16) more carefully, using known properties of .
4 Inverted stitching for arbitrary boundaries
In the method of mixtures, we choose a mixing distribution and the machinery yields a boundary . Likewise, in the stitching construction of Theorem 1, we choose an error decay function and obtain a boundary . Here, we invert the procedure: we choose a boundary function and numerically compute an upper bound on its -upcrossing probability using a stitching-like construction.
is a sub-Gaussian uniform boundary with crossing probability at most
The proof is in Section A.7. For simplicity we restrict to the sub-Gaussian case; examination of the proof will show that the method applies in other sub- cases as well, since we simply apply Lemma 1 to appropriately chosen lines, but more involved numerical calculations will be necessary, as the closed-form (19) no longer applies. A similar idea was considered by Darling and Robbins (1968), using a mixture integral approximation instead of an epoch-based construction to derive closed-form bounds. Theorem 3 requires numerical summation but yields tighter bounds with fewer assumptions. As an example, Theorem 3 with shows that
This boundary is illustrated in Figure 9.
5 Tuning boundaries in practice
All uniform boundaries involve a tradeoff of tightness at different intrinsic times: making a bound tighter for some range of times requires making it looser at other times. Roughly speaking, the choice of a uniform boundary involves choosing both what time the bound should be optimized for (e.g., should the bound be tightest around 100 observations or around 100,000 observations?) as well as how quickly the bound degrades as we move away from the optimized-for time (e.g., if we optimize for 100 samples, will the bound be twice as wide when we reach 1,000 samples, or will it stay within a factor of two until we reach 1,000,000 samples?). A boundary which decays more slowly will necessarily not be as tight around the optimized-for time. In brief, linear boundaries decay the most quickly, conjugate mixture boundaries decay substantially more slowly, and polynomial stitched boundaries decay even more slowly; we feel that mixture boundaries strike a good balance in practice.
Here, we explain how to optimize uniform boundaries for a particular time and discuss the above tradeoff in more detail. Let be the lower branch of the Lambert function, the most negative real-valued solution in to . Consider the unitless process , and the corresponding uniform boundary . Since all of our uniform boundaries have positive intercept at , and all grow at least at the rate as , the normalized boundary diverges as and . For the two-sided normal mixture (14), there is a unique time at which is minimized; is proportional to tuning parameter as follows:
Let be the two-sided normal mixture boundary (14) with parameter .
For fixed , the function is uniquely minimized at with given by
For fixed , the choice of which minimizes the boundary value is also determined by (21).
The above result is proved in Section C.1; it is a matter of elementary calculus, but addresses a question that has received little attention in the literature. Figure 4 includes the normalized versions of two normal mixture boundaries optimized for different times, and 5,000. Optimizing for the range of values of most relevant in a particular application will yield the tightest confidence sequences. However, as the figure shows, one need not have a very precise range of times, so long as one uses a conservatively low value for , because grows slowly after time . Indeed, for the normal mixture boundary with and , we have and , so that the penalty for being off by two orders of magnitude is modest.
The one-sided normal mixture boundary of Appendix Proposition 6 with crossing probability is nearly identical to the two-sided normal mixture boundary with crossing probability , so one may choose as in Proposition 3 with doubled. For the gamma-exponential mixture and other non-sub-Gaussian uniform boundaries, Proposition 3 provides a good approximation in practice. Figure 4 includes gamma-exponential mixture boundaries with the same values as each corresponding normal mixture boundary. Though the normalized gamma-exponential mixture boundary with clearly reaches its minimum at , this choice of seems reasonable. Discrete mixtures can be similarly tuned by adjusting the precision of the mixing distribution, but require additional considerations (Appendix E).
Comparing the sub-Gaussian stitched boundary, discrete mixture boundary, and normal mixture boundary optimized for in Figure 4 illustrates another important point for practice: although the normal mixture bound grows more quickly than the others as , it remains smaller over about three orders of magnitude. This makes it preferable for many real-world applications, as the longest feasible duration of an experiment is rarely more than two orders of magnitude larger than the earliest possible stopping time. For example, many online experiments run for at least one week to account for weekly seasonality effects, and very few such experiments last longer than 100 weeks. As both the normal mixture and the discrete mixture are unimprovable in general (Section 3.6), the difference is attributable to the choice of mixture, or alternatively, to the fact that the normal mixture trades tightness around the optimized-for time in exchange for looseness at much later times. The lesson is that the rate, while asymptotically optimal in certain settings and useful for theory and some applications, may not be preferable in all real-world scenarios.
6 Unimprovability of uniform boundaries
Definition 2 of a sub- boundary involves only an upper bound on the -crossing probability of any sub- process . One may reasonably ask for corresponding lower bounds on the -crossing probability to quantify how tight this boundary is. In the ideal case, we might desire a boundary such that the true -crossing probability of some process is equal to the upper bound. In nonparametric settings, we cannot achieve this goal for every sub- process. However, we might still ask that there exists some sub- process for which the true -crossing probability is arbitrarily close to the upper bound, so that the upper bound on crossing probability is unimprovable in general. That is, we might ask that the inequality on the supremum in Definition 2 holds with equality.
For any exact, 1-sub-Gaussian mixture boundary ,
We prove Proposition 4 in Section C.2. In general, for each there is an infinite variety of boundaries that are unimprovable in the above sense, differing in when they are loose and tight. These different boundaries will yield confidence sequences which are loose or tight at different sample sizes, or, equivalently, are efficient for detecting different effect sizes. Such a boundary cannot be tightened everywhere without increasing the crossing probability.
Applications
After presenting an empirical-Bernstein confidence sequence for bounded observations, we apply our uniform boundaries to causal effect estimation and matrix martingales. We also consider estimation for a general, one-parameter exponential family.
Suppose a.s. for all . Let be any -valued predictable sequence, and let be any sub-exponential uniform boundary with crossing probability for scale . Then
This is an empirical-Bernstein bound because it uses the sum of observed squared deviations to estimate the true variance, much like a classical -test. Hence the confidence radius scales with the true standard deviation for sufficiently large samples, regardless of the support diameter , and with no prior knowledge of the true variance. Note also that this bound does not require that observations share a common mean.
For an explicit example, assume and define the empirical variance as . Invoking Theorem 4 with the polynomial stitched bound (10) using , , , and , we have the following 95%-confidence sequence for :
When a closed form is not required, the gamma-exponential mixture (Proposition 9) may yield tighter bounds than stitching; simulations in Section 5 demonstrate the use of Theorem 4 with this mixture.
2 Estimating ATE in the Neyman-Rubin model
At each step , having treated and observed units , we wish to draw inference about the estimand . In particular, we seek a confidence sequence for . To construct our estimator, we may utilize any predictions and for each unit’s potential outcomes; these random variables must be -measurable, for each . We then employ the inverse probability weighting estimator
which is (conditionally) unbiased for the individual treatment effect . As with Theorem 4, better predictions will lead to shorter confidence intervals, but the coverage guarantee holds for any choice of predictions, and a reasonable choice would be the average of past observed outcomes. See Aronow and Middleton (2013) for a similar strategy for fixed-sample estimation.
We assume bounded potential outcomes; for simplicity we assume for all , and we assume predictions are likewise bounded. We further assume that treatment probabilities are uniformly bounded away from zero and one. Then, an empirical-Bernstein confidence sequence for follows from Theorem 4, where we use so that
Suppose a.s., and for all . Let be any sub-exponential uniform boundary with scale and crossing probability . Then
3 Matrix iterated logarithm bounds
The result follows using the polynomial stitched boundary after invoking Fact 1(c) and Lemma 2 of Howard et al. (2020) (cf. (Tropp, 2011)), which show that is sub-gamma with variance process , scale , and . Beyond bounded increments, the same bound holds for any sub-gamma process. As evidenced by Proposition 1, this is a very general condition.
Taking and arbitrarily close to one and using the final result of Theorem 1, we obtain the following asymptotic matrix upper LIL, proved in Section A.9. Here we denote the martingale increments by .
We use a sub-Poisson uniform boundary to obtain a uniform analogue:
For example, using the polynomial stitched bound with scale and , Corollary 5 gives a -confidence sequence for with operator norm radius . This bound has the closed form
In other words, with high probability, we have for all that
Compared to the fixed-sample result (30), we obtain uniform control by adding a factor of . We are not aware of other results like these for sequential covariance matrix estimation. Figure 6 illustrates the confidence sequence of Corollary 5 on simulated data using a discrete mixture boundary with the mixture density defined in (85).
4 One-parameter exponential families
Simulations
InThe repository https://github.com/gostevehoward/cspaper contains code to reproduce all simulations and plots in this paper. Uniform boundaries themselves are implemented in R and Python packages at https://github.com/gostevehoward/confseq. Figure 7 we illustrate the error control of some of our confidence sequences for estimating the mean of an i.i.d. sequence of observations with bounded support . We compare four strategies:
The Hoeffding strategy exploits the fact that bounded observations are sub-Gaussian (Hoeffding, 1963; cf. Howard et al., 2020, Lemma 3(c)). We use a two-sided normal mixture boundary (14) with variance process .
The beta-binomial strategy uses the stronger condition that bounded observations are sub-Bernoulli (Hoeffding, 1963; cf. Howard et al., 2020, Fact 1(b)), accounting for the true mean as well as the boundedness, but possibly failing to take account of the true variance. For hypothesized true mean , this strategy uses the beta-binomial mixture boundary given in Proposition 7, with parameters and , and variance process . The confidence set for the mean is . This is more efficiently computed using the mixture supermartingale of (57), as .
The pointwise Bernoulli strategy uses the same sub-Bernoulli condition as the beta-binomial strategy, but relies on a fixed-sample Cramér-Chernoff bound which is valid pointwise but not uniformly over time. Specifically, we reject mean if , where is the sum of centered observations as usual, , and we set in , with its Legendre-Fenchel transform.
The empirical-Bernstein strategy uses an empirical estimate of variance, thus achieving a confidence width scaling with the true variance in all three cases. Here we use Theorem 4 with a gamma-exponential mixture boundary (Proposition 9). For predictions, we use the mean of past observations: .
The naive self-normalized (“Naive SN”) strategy plugs the empirical variance estimate, the sum of squared prediction errors from Theorem 4, into the two-sided normal mixture (14). It ignores the facts that the observations are not sub-Gaussian with respect to their true variance and that the variance is estimated. This strategy is similar to that of Johari et al. (2017) and does not guarantee coverage. Though it will sometimes control false positives, coverage rates can easily be inflated for asymmetric, heavy-tailed distributions, as we illustrate.
We present three cases of bounded distributions. The first case is the easiest, with observations. Here the sub-Gaussian variance parameter based on the boundedness of the observations is equal to the true variance, so the Hoeffding strategy performs well. The empirical-Bernstein strategy is only a little wider, and all four successfully control false positives. The story changes with the more difficult distribution, however. The Hoeffding boundary is far too wide, since it fails to make use of information about the true variance. The beta-binomial bound uses information about variance provided by the first moment to achieve the correct scaling. The naive self-normalized strategy, on the other hand, yields confidence intervals that are too small and fail to control false positive rate. The empirical-Bernstein strategy, though only slightly wider than the naive bound for large sample sizes, gives just enough extra width to control the false positive rate and is nearly as narrow as the beta-binomial bound. The final, three-point distribution takes values and with probability each, and takes value with probability . Here the beta-binomial strategy yields confidence intervals that are too wide. In this most difficult case, only the empirical-Bernstein strategy yields tight intervals while controlling false positive rates.
Implications for sequential hypothesis testing
We have organized our presentation around confidence sequences and closely related uniform concentration bounds due to our belief that they offer a useful “user interface” for sequential inference. However, our methods also yield always-valid -values (Johari et al., 2015) for sequential tests. Indeed, a slew of related definitions from the literature are equivalent or “dual” to one another. Here we briefly discuss these connections. The following result, proved in Section C.4, gives equivalent formulations of common definitions in sequential testing.
Let be an adapted sequence of events in some filtered probability space and let . The following are equivalent:
Pros and cons of the running intersection
However, the intersected intervals may become empty at some point. This is particularly likely if the underlying parameter is drifting over time, contrary to the assumption of stationarity or identically-distributed observations, and such a drift would be the likely interpretation of this event in practice. In this non-stationary case, the non-intersected sequence is the more sensible one to use. The solution of Johari et al. (2017) is to “reset” the experiment, discarding data accumulated up to that point, on the rationale that such an event indicates that previous data are no longer relevant to estimation of the current parameter of interest. However, this means that our confidence sequence can go from a very high precision estimate at some time to knowing almost nothing at time , which is difficult for an experimenter to interpret and could lead to misleading inference just before the reset. Jennison and Turnbull (1989) make a case for the non-intersected intervals on slightly different grounds, arguing that estimation at time ought to be a function of the sufficient statistic at that time. Shifting to the potential outcomes model in Section 4.2 neatly avoids this issue: because the estimand is changing at each time, the non-intersected intervals are the only reasonable choice for estimating and no conceptual difficulty remains.
Summary and future work
We have discussed four techniques for deriving curved uniform boundaries, each improving upon past work, with careful attention paid to constants and to practical issues. By building upon the general framework of Howard et al. (2020), we have emphasized the nonparametric applicability of our boundaries. A leading example of the utility of this approach is the general empirical-Bernstein bound, with an application to sequential causal inference, and we have also shown how our framework immediately yields novel results for matrix martingales.
We introduced the method of mixtures and the epoch-based analyses in Section 1.1. Two other methods of extending the SPRT deserve mention, though they are distinct from our approaches. First, the approach of Robbins and Siegmund (1972, 1974) examines where is a “nonanticipating” estimate based on . This is similar to a generalized likelihood ratio but modified to retain the martingale property (cf. Wald (Wald, 1947, section 10.5), (Lorden and Pollak, 2005)). Second, the sequential generalized likelihood ratio approach examines , which is not a martingale under the null (Siegmund and Gregory, 1980; Lai, 1997; Kulldorff et al., 2011).
The concept of test (super)martingales expounded by Shafer et al. (2011) is related to our methods for conducting inference based on Ville’s inequality applied to nonnegative supermartingales. Their main example is the Beta mixture for i.i.d. Bernoulli observations, an example which originated with Ville (1939) and discussed by Robbins (1970) and Lai (1976b). A recent “safe testing” framework of Grünwald et al. (2019) is also tightly related. In terms of these frameworks, our work can be viewed as constructing “safe confidence intervals” (and thus safe tests) using nonparametric test supermartingales.
A very different approach is that of group sequential methods (Pocock, 1977; O’Brien and Fleming, 1979; Lan and DeMets, 1983; Jennison and Turnbull, 2000). These methods rely on either exact discrete distributions or asymptotics to assume exact normality of group increments, either of which permits computation of sequential boundaries via numerical integration. The resulting confidence sequences are tighter than ours, but lack nonasymptotic guarantees or closed-form results and do not support continuous monitoring.
A related problem is that of terminal confidence intervals, in which one assumes a rigid stopping rule and wishes to construct a confidence interval upon termination. Siegmund (1978) gave an analytical treatment of the problem; numerical methods are also available for group sequential tests (Jennison and Turnbull, 2000, section 8.5). However, the idea of a rigid stopping rule is often restrictive.
2 Future work
We discuss in Appendix I how our work may be extended to martingales in smooth Banach spaces and real-valued, continuous-time martingales. It may be fruitful to explore applications in those areas.
Our consideration of optimality has been limited to the discussion in Section 3.6. It would be valuable to further explore various optimality properties for nonasymptotic uniform bounds. For example, it is standard in sequential testing to compute the expected sample size to reject a null under parametric alternatives. Though we target less restrictive assumptions, it may be instructive to compute bounds in special cases. Second, a natural counterpoint to our uniform concentration bounds would be a set of uniform anticoncentration bounds. This would yield a nonasymptotic extension of the “lim inf” half of the classical LIL. Balsubramani (2014, Theorem 3) gives one such interesting result. Last, in practice, one will rarely require updated inference after every observation, and may be content to take observations in groups. Further, one may be satisfied with a finite time horizon Garivier and Leonardi (2011). This is the domain in which group-sequential methods shine, but SPRT-based methods can be made competitive by estimating the “overshoot” of the stopped supermartingale (Lai and Siegmund, 1977, 1979; Siegmund, 1985; Whitehead and Stratton, 1983). It would be interesting to understand whether such improvements work out in nonparametric settings.
Acknowledgments
Howard thanks ONR Grant N00014-15-1-2367. Sekhon thanks ONR grants N00014-17-1-2176 and N00014-15-1-2367. Ramdas thanks NSF grant DMS1916320. We thank Boyan Duan and Ian Waudby-Smith as well as the referees/AE for useful suggestions.
References
Appendix A Proofs of main results
In this section we give proofs of our main results along with selected discussion of and intuition for proof techniques.
The idea behind Theorem 1 is to divide intrinsic time into geometrically spaced epochs, for some . We construct a linear boundary within each epoch using Lemma 1 and take a union bound over crossing events of the different boundaries. The resulting, piecewise-linear boundary may then be upper bounded by a smooth, concave function. Figure 3 illustrates the construction.
As discussed in Section 3.1, the function determines the nominal crossing probability allocated to the th epoch, and we have mentioned the choices and . One may substitute a series converging yet more slowly; for example, for yields
matching related analysis in Darling and Robbins (1967b), Robbins and Siegmund (1969), Robbins (1970), and Balsubramani (2014). In practice, the bound (35) appears to behave like bound (10) with worse constants. However, the fact that the stitching approach can recover key theoretical results like these gives some indication of its power.
We prove the result in the case for simplicity. The general result may be obtained by considering in place of , in place of , and in place of . See Appendix F for details.
We first compute by taking the positive solution to the quadratic equation given by , yielding
where we have used the identity . Let
will appear below. Now we start from the line-crossing inequality of Lemma 1: reparametrizing , we have for any
We divide intrinsic time into epochs for each , and we will construct a linear boundary over each epoch by carefully choosing values for and and using the probability bound (38). We choose so that the “standardized” boundary takes equal values at both endpoints of the epoch: . This equation is solved by , which yields, after some algebra,
Our goal, after choosing below, is to upper bound this expression by a function of alone, independent of . Noting that the term in square brackets in (39) reaches its maximum over the th epoch at the endpoints, and , and substituting the expression (37) for , we have
The inequality yields
for all . This final expression no longer depends on , showing that the final boundary majorizes the corresponding linear boundary over each epoch for . Hence
But the first linear boundary passes through and has positive slope, which implies
Now taking a union bound over the probability bounds given by (38) for , we have
Combining (46) with (45) proves that is a sub-gamma uniform boundary with crossing probability .
For the second statement (9), we simply restrict the union bound to epochs , which restricts the sum in (46) accordingly. ∎
We have given a stitched bound which is constant for , but inspection of the proof shows that one may improve the bound to be linear with positive slope on , by extending the linear bound over the first epoch to cover all . This seems of limited utility for theoretical work, and we recommend other bounds over the stitched bound for practice, so we do not pursue this point further.
The idea of taking a union bound over geometrically spaced epochs is standard in the proof of the classical law of the iterated logarithm (Durrett, 2017, Theorem 8.5.1). The idea has been extended to finite-time bounds by Darling and Robbins (1967b), Jamieson et al. (2014), Kaufmann et al. (2016), and Zhao et al. (2016), usually when the observations are independent and sub-Gaussian; the technique is sometimes called “peeling”. Of course, Theorem 1 generalizes these constructions much beyond the independent sub-Gaussian case, but it also achieves tighter constants for the sub-Gaussian setting. Here, we briefly discuss how the improved constants arise.
Both Jamieson et al. (2014) and Zhao et al. (2016) construct a constant boundary rather than a linear increasing boundary over each epoch. They apply Doob’s maximal inequality for submartingales (Durrett, 2017, Theorem 4.4.2), as in Hoeffding (1963, eq. 2.17), to obtain boundaries similar to that of Freedman (1975). As illustrated in Howard et al. (2020, Figure 2), the linear bounds from Lemma 1 are stronger than corresponding Freedman-style bounds, and the additional flexibility yields tighter constants.
Both Darling and Robbins (1967b) and Kaufmann et al. (2016) use linear boundaries within each epoch analogous to those of Lemma 1. Both methods share a great deal in common with ours, and Darling and Robbins give consideration to general cumulant-generating functions. Recall from Lemma 1 that such linear boundaries may be chosen to optimize for some fixed time . Our method chooses the linear boundary within each epoch to be optimal at the geometric center of the epoch, i.e., at , so that at both epoch endpoints the boundary will be equally “loose”, that is, equal multiples of . Darling and Robbins choose the boundaries to be tangent at the start of the epoch, hence their boundary is looser than ours at the end of the epoch. Kaufmann et al. choose the boundary as we do, but appear to incur more looseness in the subsequent inequalities used to construct a smooth upper bound.
A.2 Proof of Corollary 1
Fix any and choose small enough that for all . Using the fact that for , we have for all , so that is sub-gamma with scale and variance process . Now Theorem 1 shows that
where we may choose (see (10) and discussion thereafter), so that . It follows that
As was arbitrary, we are done. ∎
A.3 Conjugate mixture proofs
We claim that is a supermartingale with respect to on this augmented space. Indeed,
Now Definition 1 and Ville’s maximal inequality for nonnegative supermartingales (Durrett, 2017, exercise 4.8.2) yield
In the sub-Gaussian case, the following boundary is well-known (Robbins, 1970, example 2).
Suppose both and are sub-Gaussian with variance process . Fix and , and define
We have included the bound in Figures 9 and 4; although its rate of growth is worse than the finite LIL discrete mixture bound, it can achieve tighter control over about three orders of magnitude of intrinsic time. This makes the normal mixture preferable in many practical situations when a sub-Gaussian assumption applies. When only a one-sided sub-Gaussian assumption holds, the normal mixture still yields a sub-Gaussian uniform boundary.
For any and , the boundary
is a sub-Gaussian uniform boundary with crossing probability . Furthermore, we have the following closed-form upper bound:
The boundary is easily evaluated to high precision by numerical root-finding, and the closed-form approximation is excellent: numerical calculations indicate that uniformly when , for example.
To obtain the explicit upper bound in (53) from the exact boundary (52), we use the inequality for , which follows from a standard Cramér-Chernoff bound. This implies
We set the RHS equal to and solve to conclude
so long as . But we are guaranteed that , because the LHS of the inequality in (52) is increasing in on and no larger than one when , while the RHS .
The fact that is a sub-Gaussian uniform boundary follows directly from Lemma 2, and therefore is as well. ∎
Suppose is sub-Bernoulli with variance process and range parameters , while is sub-Bernoulli with variance process and range parameters . Fix any , let , and define
As with the normal mixture, we have a one-sided variant as well.
Fix any , , and . Let and define
Then is a sub-Bernoulli uniform boundary with crossing probability and range parameters .
In the sub-Bernoulli case, we first rewrite the exponential process in terms of the transformed parameter . This is motivated by the transform from the canonical parameter to the mean parameter of a Bernoulli family, but keep in mind that we make no parametric assumption here, these are merely analytical manipulations. Then a truncated Beta distribution on yields the one-sided beta-binomial uniform boundary, while an untruncated mixture yields the two-sided boundary.
For simplicity of notation, we will assume here that the problem has been scaled so that , e.g., by replacing with . Using the sub-Bernoulli function , the exponential integrand in our mixture is
after substituting the one-to-one transformation
followed by some algebra. We wish to integrate against a Beta mixture density on with parameters and , which has mean , corresponding to . For Proposition 8, we must also truncate to , i.e., to . The appropriately normalized mixture integral is then
The proof of Proposition 7 is nearly identical, but we integrate over the full Beta mixture rather than truncating.
To verify that our choice of ensures that has approximate precision under the full (not truncated) mixture distribution, we use the delta method to calculate the approximate variance of for large based on the variance of under the full Beta mixture:
Setting this equal to yields as desired. ∎
Then is a sub-exponential uniform boundary with crossing probability for scale .
The gamma-exponential mixture is the result of evaluating the mixture integral in (13) with mixing density
This is a gamma distribution with shape and scale applied to the transformed parameter , truncated to the support . The distribution has mean zero and variance equal to , making it comparable to the normal mixture distribution used above. As , the gamma mixture distribution converges to a normal distribution and concentrates about , the regime in which , which gives some intuition for why the gamma-exponential mixture recovers the normal mixture when .
Then the fact that is a sub-exponential uniform boundary follows as a special case of Lemma 2.
Proving (67) is an exercise in calculus. Substituting the definition of and removing common terms, it suffices to show that
After change of variables , the right-hand side is equal to
Now the definition of the regularized lower incomplete gamma function and a bit of algebra finishes the argument. ∎
Then is a sub-Poisson uniform boundary with crossing probability for scale .
The proof follows the same contours as that of Proposition 8. Using the sub-Poisson function , the exponential integrand in our mixture is
after substituting the one-to-one transformation , so that . We integrate against a gamma mixing distribution on with shape and scale parameters both equal to , truncated to , so that :
This yields the closed-form mixture (72). To verify that our choice of ensures that has approximate precision under the full (not truncated) mixture distribution, we use the delta method to calculate the approximate variance of for large based on the variance of under the full gamma mixture:
A.4 Proof of Proposition 2
Under the conditions of Proposition 2, we have
Note that is nondecreasing in and nonincreasing in (since by our assumptions on ).
Choose so that has three continuous derivatives and is continuous and positive on ; such a value of must exist by conditions (i) and (ii). Before proving Proposition 2, we state several lemmas.
Under the conditions of Proposition 2, for any , we have and as .
Now Laplace’s asymptotic approximation (Widder, 1942, Chapter VII.2, Theorem 2b) yields
where is a constant not depending on . (The condition ensures that the maximizer of lies within .) Since the LHS of (78) lower bounds while the RHS diverges as , we must have as . ∎
Under the conditions of Proposition 2, for all sufficiently large.
Let for . Lemma 4 shows that for all . Since is nondecreasing in , we may apply dominated convergence to find that is continuous at all . Condition (i) of Proposition 2 implies , so that for all . Finally, Lemma 4 shows that as . Hence, for sufficiently large, there exists such that .
We have argued that, for any sufficiently large , for some , and is continuous on . The conclusion follows from the definition (13) of . ∎
Under the conditions of Proposition 2, .
Suppose for the sake of contradiction that there exists such that for all . Then, since is nondecreasing in , for all . But for sufficiently large , we can write for some , so that Lemma 4 implies for sufficiently large . Since condition (i) of Proposition 2 implies , we have is decreasing in , and dominated convergence yields as . But this implies , contradicting Lemma 5.
We have shown that . But since is nondecreasing in and nonincreasing in , Lemma 5 implies must be nondecreasing in . It follows that . ∎
Under the conditions of Proposition 2, .
Suppose for the sake of contradiction that for all sufficiently large, for some . Then (again using the fact that is nondecreasing in ) by Lemma 4, contradicting Lemma 5. ∎
We invoke Theorem 4 of Fulks (1951), setting Fulks’ equal to our , Fulks’ equal to our , Fulks’ equal to our , Fulks’ equal to the identity function, Fulks’ equal to our , and Fulks’ equal to our . Fulks’ assumptions (A1)-(A4) now read as follows.
requires , , has three continuous derivatives in a neighborhood of the origin, and is positive and nondecreasing on .
requires conditions on the identity function which are trivially satisfied.
requires to be integrable and to be continuous and positive at the origin.
requires as and .
(A1) and (A3) are satisfied by conditions (i) and (ii) of Proposition 2. (A4) is satisfied by Lemmas 6 and 7. For Fulks’ Theorem 4, it remains to verify that . But if this were not true, then we could apply Theorem 1 or Theorem 2 of Fulks (1951) to conclude that as , contradicting Lemma 5. So Fulks’ Theorem 4 yields
Using Lemma 5 to set , we may write
which can be rearranged into the desired conclusion. ∎
We have proved the result for one-sided bounds, but a nearly-identical argument applies to two-sided bounds such as Proposition 7.
A.5 Proof of Theorem 2
Recall the discrete mixture support points and weights,
Figure 8 illustrates the construction. To see heuristically why the exponentially-spaced grid makes sense, observe that the integrand is a scaled normal density in with mean and standard deviation . In the regime relevant to our curved boundaries, is of order , ignoring logarithmic factors. Hence the integrand at time has both center and spread of order , so as , the relevant scale of the integrand shrinks. With the grid we have , ensuring that the resolution of the grid around the peak of the integrand matches the scale of the integrand as .
The discrete mixture bound is a valid mixture boundary in its own right, based on a discrete mixing distribution, but we may wish to know how well it approximates the continuous-mixture boundary from which it is derived. To illustrate the accuracy of the discrete mixture construction, we compare it to the one-sided normal mixture bound, Proposition 6. By using the same half-normal mixing density in Theorem 2 and setting , , we may evaluate a corresponding discrete mixture bound . With , and , numerical calculations indicate that for , suggesting that Theorem 2 gives an excellent conservative approximation to the corresponding continuous mixture boundary over a large practical range. Of course, when a closed form is available as in Proposition 6, one should use it in practice. But an exact closed form integral is rarely available as it is in Proposition 6, and substantial looseness often accompanies closed-form approximations which provably maintain crossing probability guarantees. In such cases, unless a closed form is required, Theorem 2 is preferable. See figure 10 for an example; in this figure, the bounds of Balsubramani (2014) and Darling and Robbins (1968) involve closed-form mixture integral approximations.
A.6 Stitching as a discrete mixture approximation
Suppose we wish to analytically approximate the discrete mixture boundary of Theorem 2 in the sub-Gaussian case . Clearly the sum is lower bounded by the maximum summand, which gives
The last expression is the pointwise minimum of a collection of linear boundaries of the form presented in Lemma 1, each chosen with a different , and with nominal crossing rates so that a union bound over crossing events yields total crossing probability . This is very similar to the stitching construction, with a slightly different choice of the sequence .
By equating from Theorem 2 with from Theorem 1, this observation allows us to view a stitched bound with function as an approximation to a mixture bound with mixture density as . For exponential stitching, this yields —densities approaching a nonzero constant as , including the half-normal distribution, correspond to exponential stitched boundaries growing at a rate . For polynomial stitching, we have the corresponding mixture density
matching the density from Balsubramani (2014, Lemma 12) (we truncate at to ensure the density is nonincreasing). The “slower” function corresponds to , the density from example 3 of Robbins (1970).
A.7 Proof of Theorem 3
The proof follows a straightforward idea. We break time into epochs . Within each epoch we consider the linear boundary passing through the points and . This line lies below throughout the epoch, and its crossing probability is determined by its slope and intercept as in Lemma 1. Taking a union bound over epochs yields the result.
We need the following lemma concerning :
If is a supergradient of at some point , then for sufficiently large , contradicting the non-negativity of . So is nondecreasing. Now fix and let be any supergradient of at . From nonnegativity and concavity we have , so that . Strict concavity then implies . ∎
Fix any . On we lower bound by the line passing through the points and . This line has intercept and slope
Note and by Lemma 8. We bound the upcrossing probability of this linear boundary using Lemma 1:
The conclusion follows from a union bound over epochs and from the arbitrary choice of . ∎
Inspection of the proof reveals that the crossing probability bound (19) is valid not only for the boundary given in (18), but also for a similar boundary which is finite and linear for all and . This follows by extending the linear boundaries over the first and last epochs.
A.8 Proof of Theorem 4
The proof of Lemma 4.1 in Fan et al. (2015) shows that for all and . Applied to , we have
using in the final step.
In contrast, our argument avoids the union bound over the sample mean and sample variance bounds. We achieve this by constructing an exponential supermartingale which directly relates the deviations of to the “online” empirical variance . In terms of proof technique, our method owes much more to the literature on self-normalized bounds (de la Peña, 1999, de la Peña et al., 2004, Bercu and Touati, 2008, Delyon, 2009 and especially Fan et al., 2015) than to the literature on empirical-Bernstein bounds.
A.9 Proof of Corollary 4
In case (2), Fact 1(d) and Lemma 2 of Howard et al. (2020) (cf. Tropp, 2012) show that defined as above is sub-gamma with variance process and scale . The conclusion now follows directly from Corollary 1. ∎
A.10 Proof of Corollary 5
The argument is adapted from Tropp (2015). Let . The triangle inequality implies . Hence, by Fact 1(c) and Lemma 2 of Howard et al. (2020) (cf. Tropp, 2012), is sub-Poisson with scale and variance process
In the final step, we neglect the negative semidefinite term and use the fact that the maximum eigenvalue of a sum of positive semidefinite matrices is bounded by the sum of the maximum eigenvalues. We continue by using and the fact the expectation respects the semidefinite order to obtain
Plugging this upper bound on into the discrete mixture bound of Theorem 2 gives the result. ∎
Appendix B Implications among sub-ψ𝜓\psi boundaries
Together with Table 1, the following proposition formalizes the relationships illustrated in Figure 2, restating Proposition 2 of Howard et al. (2020) in the language of uniform boundaries. The first row of Table 1 uses the function
For each row in Table 1, if is a sub- uniform boundary, and the given restrictions are satisfied, then is a sub- uniform boundary for the given constant . Furthermore, when we allow only transformations of the form , these capture all possible implications among the five sub- boundary types defined above, and the given constants are the best possible (in the case of row (2), the constant is the best possible of the form where depends only on the total range ).
A reader who is familiar with Howard et al. (2020) will note that the arrows in Figure 2 are reversed with respect to Figure 4 in their paper. Indeed, since any sub-Bernoulli process is also sub-Gaussian, it follows that any sub-Gaussian uniform boundary is also a sub-Bernoulli uniform boundary, and so on.
Appendix C Additional proofs
Let . For part (a), we will set the derivative of the squared objective to zero:
We solve this equation using the lower branch since we know :
For part (b), we optimize the squared boundary :
C.2 Proof of Proposition 4
First, Robbins and Siegmund (1970, Theorem 1) show that, for a standard Brownian motion,
We let , so that by compactness of and continuity of and , if and only if for some . Now , and note that has a continuous distribution: the distribution when is well-known by the reflection principle, and the measure for the Brownian motion with drift is equivalent to the measure for by the Cameron-Martin theorem (Morters and Peres, 2010, Theorem 1.38). Hence
But because is concave, the linear interpolation of cannot add any new upcrossings beyond those in :
Combining (112) with (110) yields (103), completing the proof. ∎
Continuity of is clear from the continuity of in and , which also implies
for all . That is, the left-hand side is constant in , hence has derivative with respect to equal to zero. We may exchange the derivative and integral by Theorem A.5.1 of Durrett (2017), noting that the integrand is positive and continuously differentiable in and is a probability measure. This yields
Both and since the integrands are positive, which shows that is increasing. Differentiating again yields, after some algebra,
since the integrand is now nonpositive, showing that is concave. ∎
C.3 Proof of Corollary 6
C.4 Proof of Lemma 3
The implication follows from
Appendix D Computing conjugate mixture bounds by root-finding
In this section we demonstrate that our conjugate mixture boundaries, which involve the supremum defined in (13), can be computed via root-finding. We assume that is CGF-like, a property which holds for all of the functions in Section 2:
A real-valued function with domain is called CGF-like if it is strictly convex and twice continuously differentiable with and . For such a function, we write
Lemma 2 implies that, with probability at least , for all , where
For one-sided boundaries, is supported on , and so long as is not a point mass at zero (which would be an uninteresting mixture), is strictly increasing in whenever . Hence for at most one value of , in which case .
It is possible that for all where the integral converges. To examine this case, we fix , which is the interesting case in practice, and make two observations:
Whenever , we have . Indeed, in this case, as , and as the integrand is continuous in , it must be uniformly bounded. It follows immediately that we can have only when .
Hence, when we need not worry about . When , it suffices to check , which may be infinite. If , then we search for a root of in the interval . If , it suffices to take for any . In practice, it seems more reasonable to take the upper bound and use a closed confidence set instead of an open one.
For two-sided boundaries, when has support on both and , in general we require the technical condition
This ensures that we may differentiate twice with respect to , exchanging the derivative and the integral both times (Durrett, 2017, Theorem A.5.3). Hence, whenever condition (121) holds,
so that is convex in for each . As , we conclude that for at most one value and one value , and . A similar discussion as above applies when and we may have for some values of .
As Proposition 5 yields a closed-form result, only Proposition 7 requires that we verify condition (121). From the proof of Proposition 7 in Section A.3, it suffices to show that
for some and . This follows from the fact that the integrand is continuous on and approaches zero as and , so it is bounded.
Appendix E Tuning discrete mixture implementation
In Section 3.5 we have discussed the choice of mixing precision in order to tune a mixture bound for a particular range of sample sizes. For discrete mixtures, the value must also be chosen, and this depends on the minimum relevant value of : making larger will make the resulting bound tighter over smaller values of at the cost of a looser bound for larger values of . In practice, for , setting will ensure the bound is tight for . Furthermore, when evaluating in practice, the sum can be truncated after terms. The remainder of this section explains these choices.
We wish to understand what range of values of our discrete mixture must cover to ensure we get a tight bound for all . At the value of which yields the optimal linear bound from Lemma 1 is found by optimizing
Large values of are necessary to achieve tight bounds for small . Hence, to ensure good performance at we choose . Similarly, to ensure the sum safely covers we ensure (using an arbitrary “fudge factor” of ten), which yields .
We note that must also be chosen, but the only tradeoff here is computational. Smaller values of lead to more accurate approximations of the discrete mixture to the target continuous mixture, but require more terms to be summed. We have found to provide excellent approximations in the examples we have examined.
Appendix F Intrinsic time, change of units and minimum time conditions
In this section we point out that a bound expressed in terms of intrinsic time yields an infinite family of related bounds via scaling, and that “minimum time” conditions in such bounds (such as in Theorem 1) can be freely scaled as well. Suppose we have a uniform bound of the form
where intrinsic time has the same units as , as usual, and is some parameter with the same units as . Then, fixing any and applying the bound (128) to the scaled observations , which amounts to a change of units, we have
By changing units we have obtained a new bound on with different minimum time and a different shape. For example, applying this change of units to the stitched boundary (8) with yields the family of bounds
Now the right-hand depends on only through , so that the effect of changing is simply to multiplicatively shift the bound backwards or forwards in time without changing the bounded process.
Appendix G Detailed comparison of finite LIL bounds
Figures 9 and 10 compare our finite LIL bounds to several existing bounds. Below we restate the original results from the various papers giving finite LIL bounds included in Figure 10. In table 2, for ease of comparison, we write all bounds in the form
valid for independent 1-sub-Gaussian observations. When the original bound holds only for instead of , we apply a change of units argument to replace with and with , so that all bounds are comparable (see Appendix F). When bounds are expressed in terms of intrinsic time (Balsubramani, 2014), this is formally justified. When they are expressed in terms of nominal time (Darling and Robbins, 1967b, 1968) this is only a heuristic argument, but we conjecture that proofs of such bounds could be generalized to justify this scaling. When observations are i.i.d. from an infinitely divisible distribution, the change is formally justified by replacing each observation with a sum of i.i.d. “pseudo-observations” such that .
Jamieson and Nowak (2014), Lemma 1: for i.i.d. sub-Gaussian observations with variance parameter ,
Zhao et al. (2016), Theorem 1: for sub-Gaussian observations with variance parameter ,
Kaufmann et al. (2016), Lemma 7: for independent sub-Gaussian observations with variance parameter ,
Balsubramani (2014), Theorem 4: for a.s. and ,
Though the bound is stated for bounded observations, the proof holds for any observations sub-Gaussian with variance parameters , as noted in section 5.2 of Balsubramani (2014). Balsubramani suggests removing the initial time condition by imposing a constant bound over (section 5.3). We instead remove the condition by a change of units, as discussed in Appendix F.
Darling and Robbins (1967b), eq. 22: for i.i.d. observations sub-Gaussian with variance parameter 1,
Darling and Robbins consider results for a general bound on the moment-generating function of the observations. The result involves the term where the function and is unspecified but bounded.
Darling and Robbins (1968), eq. 2.2 and the example that follows: for i.i.d. observations sub-Gaussian with variance parameter 1,
Darling and Robbins give a closed-form upper bound for the right-hand side of (139). We instead evaluate it numerically, using readily-available implementations of the upper incomplete gamma function:
Polynomial stitching as in (10) with .
Inverted stitching with as in (20). We set which covers 42 epochs with . To make for a fair comparison with polynomial stitching, observe that in 42 epochs with , polynomial stitching “spends” of its crossing probability , so we run inverted stitching with .
Normal mixture as in (53) with :
This is not a LIL boundary, so is not included in Table 2.
Appendix H Details of Example 1
Write for where are i.i.d. random variables. Substituting into the definition of , we find
where . Evidently the distribution of depends on neither nor . Furthermore, direct calculation shows that the increments of may be written as
We have shown that is sub-exponential with scale and variance process . Recall that Definition 1 depends only on . However, since (145) holds for all and not just , replacing with shows that is sub-exponential with scale .
Appendix I Extension to smooth Banach spaces and continuous-time processes
For example, the norm induced by the inner product in any Hilbert space is -smooth, and the Schatten -norm is -smooth for .
Suppose a.s. for all for constants . Then, for any sub-Gaussian boundary with crossing probability and , we have
Suppose a.s. for all for . Then, for any sub-Poisson boundary with crossing probability , , and scale , we have
The result follows directly from the proof of Corollary 10 in Howard et al. (2020), which shows that is sub-Gaussian or sub-Poisson with appropriate variance process for each case, building upon the work of Pinelis (1992, 1994). For example, let be a martingale taking values in any Hilbert space, with the induced norm, and suppose a.s. for all . Then Corollary 7(a) with a normal mixture bound yields
For example, if is a standard Brownian motion, then Corollary 8(a) with a polynomial stitched boundary yields, for any ,
Appendix J Sufficient conditions for Definition 1
Table 3 offers a summary of sufficient conditions for Definition 1 to hold when is a scalar process, while Table 4 gives conditions for matrix-valued processes. See Howard et al. (2020, Section 2) for details.