EconBase
← Back to paper

Anytime-Valid Inference for Double/Debiased Machine Learning of Causal Parameters

Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.

90,484 characters · 19 sections · 118 citation commands

Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.

Anytime-Valid Inference for Double/Debiased Machine Learning of Causal Parameters

abstractDouble (debiased) machine learning (DML) has seen widespread use in recent years for learning causal/structural parameters, in part due to its flexibility and adaptability to high-dimensional nuisance functions as well as its ability to avoid bias from regularization or overfitting. However, the classic double-debiased framework is only valid asymptotically for a predetermined sample size, thus lacking the flexibility of collecting more data if sharper inference is needed, or of stopping data collection early if useful inferences can be made earlier than expected. This can be of particular concern in large experimental studies with huge financial costs or human lives at stake, as well as in observational studies where the length of confidence intervals do not shrink to zero even with increasing sample size due to partial identifiability of a structural parameter. In this paper, we present time-uniform counterparts to the asymptotic DML results, enabling valid inference and confidence intervals for structural parameters to be constructed at any arbitrary (possibly data-dependent) stopping time. We provide conditions which are only slightly stronger than the standard DML conditions, but offer the stronger guarantee of anytime-valid inference. This facilitates the transformation of any existing DML method to provide anytime-valid guarantees with minimal modifications, making it extremely adaptable and easy to use. We illustrate our procedure using two instances: a) local average treatment effect in online experiments with non-compliance, and b) partial identification of average treatment effect in observational studies with potential unmeasured confounding.

Introduction

Machine learning (ML) has had a dramatic impact in learning and inferring causal effects in a relatively short period of time. Although machine learning methods are primarily focused on accuracy in prediction, which is a fundamentally different goal than learning of causal effects (athey2018impact), a modification in the perspective of applying these “off-the shelf” methods (varian2014big) allows a smooth marriage of causal inference and ML (fuhr2024estimating). Developed by chernozhukov2018double, a very important branch of machine learning methods in causal inference is double (debiased) machine learning (DML). Having gained huge popularity in research due to its easy applicability and widespread scope, DML broadly deals itself with the learning of low-dimensional structural parameters in presence of potentially high-dimensional nuisance functions. The flexible framework of DML allows it to leverage a wide array of advanced machine learning methods (mullainathan2017machine) to learn complex relationships based on covariates, while still allowing for $\sqrt{n}$ rate of convergence.

The classical approach on DML, that borrows ideas from semi-parametric inference to create a two step procedure for inferring causal effects, has been traditionally applied in a context of fixed sample size. Although inference is assumed conditional on a large sample size to allow for asymptotics, such a sample size is required to be fixed a priori and cannot be decided after looking at (some amount of) the data. This is an important drawback, especially when conducting experiments or even collection of observational data is considered expensive. Consider the following motivating examples:

exampleA supermarket wishes to roll out a bundle discount on items and is interested in determining the causal effect of the promotion on sales revenue through coupons. Although it assigns treatment and control randomly, not everyone in the treatment group ends up using the coupon. The experiment is expensive, and the supermarket wishes to make a swift decision on whether to terminate or upscale the policy based on the produced effects.
exampleA drug trial assigns a new treatment and placebo randomly to patients, but not all patients end up taking what they are offered due to personal safety concerns or health-neglecting attitude. The drug trial wishes to infer the effect of the drug but wishes to stop as soon as possible because of ethical concerns of human experimentation.
exampleA policy is in place for anyone to opt in, but it is voluntary to participate. The policymaker does not have control on who opts for the policy, but is interested to know whether making such a policy compulsory for everyone would be beneficial to the population. The data is not available on the public domain, and is expensive to access (financial costs, privacy concerns, etc.).

Example (ref) and (ref) relate to non-compliance (sagarin2014treatment,rossi2014even) in experiments. Such non-compliance is fairly common in experiments and leads its way to estimation of local average treatment effects (cheng2009efficient, mogstad2018identification) using the treatment assignment itself as an instrumental variable (discussed further in Section (ref)). Informally, an instrumental variable (IV) is a variable that is associated with treatment but affects the outcome only through treatment. Since in Examples (ref) and (ref), the treatment assignment is predictive of the treatment status, but is unlikely to have an effect on the outcome conditioned on the treatment status, the treatment assignment acts as a valid IV (hernan2006instruments).

Example (ref) on the other hand, relates to inference about the average treatment effect (ATE) (lipkovich2020causal) in presence of potential unmeasured confounding, and thus is not identified without further assumptions. In such a situation, the ATE cannot be consistently estimated, and what one can realistically hope for is to create bounds on the ATE, a strategy known as partial identification (tamer2010partial). Under such a scenario (discussed more in Section (ref)), the confidence interval length for the parameter of interest would not shrink to zero even with increasing sample size, and it would be all the more imperative to stop collecting data when the researcher deems the inference to be “good enough”.

All these situations have a commonality that data collection is expensive, both in experimental and observational situations, and hence a data-adaptive way of deciding to stop data collection would be useful. The traditional central limit theorem based confidence intervals fail under this situation, as it can provide (approximate) validity only at a prefixed (large) sample size $n$. This invalidates any inference made by “peeking into the data", potentially by a data-dependent stopping time (johari2017peeking,howard2020time). Note that, a traditional non-asymptotic $(1-\alpha)$ confidence interval (CI) $C_n$ for a parameter $\theta_0$ at sample size $n$ provides the guarantee that

equation[equation omitted — 89 chars of source]

In contrast, if we cannot anticipate in advance when or why we would stop collecting data, we would want to create an interval $\tilde C_\tau$ such that $\mathbb{P}(\theta_0 \in \tilde C_\tau) \ge 1-\alpha$ even when $\tau$ is a stopping time. While $\tilde C_\tau$ can be created to have such coverage for a particular choice of $\tau$, it requires $\tau$ to be pre-regimented, and hence does not allow the flexibility of incorporating data-specific or explorative insights in the stopping decision process. To remedy this, we can bolster our requirement for $\tilde C_\tau$ to be such that

equation[equation omitted — 118 chars of source]

It turns out that (ref) has an equivalent formulation howard2021time:

equation[equation omitted — 100 chars of source]

which highlights the distinction with (ref) in a different manner. An anytime-valid CI, as in (ref) or (ref), is henceforth referred to as a confidence sequence, in line with the literature (darling1967confidence, lai1984incorporating, howard2021time),

Of course, most real-world applications, including almost all applications of DML, involve creating a CI based on an asymptotic version of (ref), but an asymptotic anytime-valid version of (ref) is subtle to define. Luckily, confidence sequences have recently been appropriately extended to an asymptotic notion recently by waudby2021time. We will further review this in Section (ref).

Related Literature

Sequential experiments and analysis have been a classical problem in statistical literature, to facilitate early stopping. Early examples include the celebrated Wald's sequential probability ratio test (wald2004sequential, Chapter 3) and the generalized likelihood ratio approach of robbins1974expected. Robbins in particular shifted the focus from Wald's designs of a single stopping rule to instead allowing for continuous monitoring and stopping at any time, possibly not specified in advance. This is not merely of theoretical interest --- if not accounted for correctly, continuous monitoring can lead to substantial inflation of Type-I error (armitage1969repeated, berman2018p). Such methods have been seriously appreciated not merely due to their mathematical elegance, but their practical utility. Recent research progress has often been made in industry, examples including risk mitigation in online experimentation (ham2022design), rapid software deployment (lindon2022rapid) strengthening canary testing (schermann2018we), multinomial count data modeling for increasing conversion rate (lindon2022anytime) from Netflix, flexible monitoring and sample size calculations at Adobe (maharaj2023anytime), or usage of sequential testing by Evidently at Amazon Web Services (evidently). turner2023exact consider the problem of anytime-valid inference in contingency tables, with potential application in labor induction studies (turner2024generic). One of the key domains to apply anytime-valid inference is in continuous monitoring of A/B tests johari2022always.

A lot of modern advances on this topic have been based on non-asymptotic confidence sequences, such as the constructions of howard2021time, howard2020time, with other closely related works on testing (always-valid $p$-values) being johari2015always and balsubramani2015sequential. The methods of howard2021time work under a wide variety of tail conditions on the underlying random variables, and in the sub-Gaussian case improve multi-arm bandit constructions of garivier2013informational, jamieson2014lil, kaufmann2016complexity.

The concept of asymptotic confidence sequences (AsympCS), on the other hand, is relatively new, defined and developed by waudby2021time as a time-uniform counterpart to the Central Limit Theorem; but it has already seen uptake in several applications, like multi-arm bandits liang2023experimental and A/B testing platforms maharaj2023anytime. While application of AsympCS on estimating the ATE is well-understood, further efforts are required to extend its use to other causal estimands that benefit from double machine learning estimators. Our paper addresses this issue by introducing a framework similar to the DML assumptions, ensuring an AsympCS construction. This enables asymptotically anytime-valid inference to be applied to more complex and challenging problems.

Double machine learning has received widespread attention in recent years in a wide variety of domains --- economics (athey2017state), healthcare (farbmacher2022causal), earth sciences (cohrs2024double), etc. Developed formally by chernozhukov2018double, it outlays the principle of orthogonalization for mitigating regularization bias introduced by modern machine learning methods, a detailed illustration of which is in Section (ref). They combine the insights of creating a Neyman-orthogonal function (neyman1959optimal) with the use of sample splitting to relax entropy conditions required for removing plug-in biases.

DML builds on, and is benefited by, classical work on semi-parametric estimation, by channeling ways of removing plug-in bias of complicated nonparametric functionals. The classical literature focuses on extracting $\sqrt{n}$-consistent estimators admitting a central limit theorem, when nuisance parameters are estimated by conventional methods (e.g., levit1976efficiency, bickel1993efficient, robinson1988root, neweysemi1990, newey1994asymptotic, andrews1994asymptotics, newey1998undersmoothing, newey2004twicing, chernozhukov2020locally, etc.). Neyman's orthogonality condition (neyman1959optimal), defined in (ref), is a pivotal condition beyond semiparametric learning theory, for instance in optimal testing and adaptive estimation and targeted learning. In conjunction with Neyman orthogonality, andrews1994asymptotics uses Donsker conditions (vandervaart) to establish an equicontinuity condition for an estimating function $\psi$, with $\theta_0$ and $\eta_0$ being the true values of the parameter of interest and nuisance parameter(s) respectively. Such Donsker conditions are however a restrictive tool unsuitable for high-dimensional nuisance parameters. The strong entropy conditions required for controlling biases introduced by estimating and evaluating on the same data can be bypassed by cross-fitting via sample-splitting, which not only make proofs simpler, but also acts as a pragmatic approach to counter the overfitting/high-complexity challenges of highly adaptive ML methods (belloni2010lasso, belloni2012sparse, robins2008higher, robins2013new, robins2017minimax).

The construction of Neyman-orthogonal functions is related to the derivation of influence functions (tsiatis2006semiparametric), which ensure second order bias on the estimation of nuisance parameters (semenova2018orthogonal), and semi-parametric efficiency under correctly specified models (newey1994asymptotic). While influence functions may not exist when pathwise differentiability of the functional of interest is violated (usually via lack of finite variance of the Riesz representor (hines2022demystifying), insights derived from them may still be used to ensure second-order bias via pseudo-outcome construction (kennedy2017non, yang2023forster), and hence constitute a crucial piece of DML literature. Often of particular interest are influence functions of parameters that admit a second-order bias of the form of a mixed bias, that allow double-robust estimation under possible misspecification (robins2008higher). ghassami2022minimax also studied a general class of functions in this regard that ensure mixed bias in the form of a product.

Such a rich literature on influence functions or its DML counterpart lay a fertile ground for extending these results to it's strongly consistent counterparts. Building on the groundwork of anytime-valid inference, this paper positions itself at the intersection of these two avenues, and hopes to develop the framework for strongly consistent asymptotic inference for the DML literature.

Our Contributions

We delineate our contributions in this paper as the following:

list{{\bf (\roman{enumi})}}{\usecounter{enumi} {4ex} {4ex} {0pt}} • Motivational: While the usual sequential A/B testing framework only considers ATE estimation, the generalized DML framework, which has received widespread uptake in recent years in academic and industrial research alike, has been relatively untouched by anytime-valid inference. While DML can be used in trickier identification situations (like LATE, ATT, partial identification etc.), we motivate its usage in continuously monitored experiments as well as observational studies in Section (ref) and in the empirical analysis of Section (ref), and elucidate a formal framework of achieving DML guarantees along with anytime-validity. • Technical: While the general recipe for confidence sequence construction under a strongly valid linear asymptotic representation has been provided in waudby2021time, it is unclear how such a representation would hold in complicated situations, particularly in the DML context. We address this gap by pin-pointing the chernozhukov2018double-style assumptions on the underlying problem and estimation problem, thus allowing users a formal framework to verify and deploy suitable techniques for anytime-valid inference under more sophisticated DML algorithms. • Simplifying: Last but not the least, we illustrate the simplicity of constructing confidence sequences in complicated causal settings. In fact, while obtaining orthogonal functions and applying the DML framework can sometimes be daunting, the incremental effort to obtain anytime-valid inference is very minimal. Thus, our inferential methods are hardly any more restrictive than the original DML techniques; but providing an additional confidence guarantee and the flexibility that comes with it. We also formalize a framework to obtain Neyman-orthogonal functions for estimation of parameters in Theorem (ref) which, to our knowledge, has not been formalized before in the literature in such generality; thus allowing second order bias in estimating parameters even if they don't admit a valid influence function.

The paper is organized as follows --- in Section (ref) we review relevant concepts of anytime-valid inference (Section (ref)) and double machine learning (Section (ref)), with old and new construction techniques for Neyman-orthogonal functions in Section (ref). Section (ref) outlines the assumptions on the estimators and the underlying data regularity to facilitate construction of an AsympCS, and shows how one can construct such sequences. Section (ref) and Section (ref) considers two non-trivial applications beyond vanilla A/B testing, viz. partial identification in observational studies, and non-compliance in online experiments respectively, and illustrates how our framework is applicable in such situations. We evaluate the performance of our method through simulation experiments in Section (ref), and real data applications in (i) program evaluation via the STAR program in Section (ref) and (ii) differentially expressed genes in microarray analysis under potential unmeasured confounding in Section (ref), concluding with a discussion in Section (ref).

All $O(\cdot)$ and $o(\cdot)$ notation in this paper shall be interpreted in the almost sure sense unless otherwise specified.

Review of Relevant Concepts

Asymptotic Anytime-valid Inference

We continue this discussion from Section (ref), and adapt most of the concepts from the foundations laid by waudby2021time. While anytime-valid inference, by virtue of it being valid anytime, is naturally non-asymptotic, it is limited in it's applicability. Most classical procedures for anytime-valid inference require knowledge of the parametric distribution family of the data generating procedure (eg: darling1968some, kaufmann2021mixture), or create wider intervals to ensure nonparametric non-asymptotic coverage (howard2021time). To contrast this with the fixed sample regime, consider creating confidence intervals for the mean for a well-behaved distribution family --- it either requires knowledge of the distribution family to compute quantiles, or creates too wide bounds based on nonparametric Chebyshev or Chernoff bounds. On the other hand, an asymptotic analysis like the Central Limit Theorem allows one to have best of both worlds --- it creates reasonably narrow intervals with asymptotically valid coverage, which is often good enough for real applications. waudby2021time extended this notion to the concept of anytime-valid inference, as summarized below.

A $(1-\alpha)$-confidence sequence for a real-valued parameter of interest $\theta_0$ is given by $\{\tilde C_n^\star\}_{n\ge 1}$, where $\tilde C_n^\star = [L_n^\star, U_n^\star]$ such that (ref) holds for $\tilde C_n^\star$. The definition of an asymptotic confidence sequence $\tilde C_n$, or AsympCS for short is predicated on the existence of a such a nonasymptotic confidence sequence $\tilde C_n^\star$:

definition[Asymptotic Confidence Sequences] $\{\tilde C_n\}_{n\ge 1} = \{[\tilde L_n, \tilde U_n]\}_{n\ge 1}$ is a $(1-\alpha)$ AsympCS for a parameter of interest $\theta_0$ if there exists a (maybe unknown) non-asymptotic $(1-\alpha)$ confidence sequence $[L_n^\star, U_n^\star]_{n\ge 1}$ for $\theta_0$ such that $\mathbb{P}(\forall n\ge 1, \theta_0\in [L_n^\star, U_n^\star])\ge 1-\alpha$ and ${L_n^\star}/{\tilde L_n}\overset{a.s.}{\to}1 \text{ and }{U_n^\star}/{\tilde U_n}\overset{a.s.}{\to}1,$ ie, the end points of the nonasymptotic confidence sequence can be almost surely precisely approximated by $\tilde L_n$ and $\tilde U_n$. Furthermore we say that $\tilde C_n$ has an approximation rate $a_n$ if $\max\{L_n^\star - \tilde L_n, U_n^\star -\tilde U_n\} = O(a_n)$.

Note that Definition (ref) has intuitive motivation from the fixed sample case. To see this, consider $\{\hat\mu \pm z_\alpha\hat\sigma/\sqrt n\}$, which is an asymptotic confidence interval for a $\mathcal{N}(\mu,\sigma^2)$ family with unknown parameters $\mu$ and $\sigma^2$. This approximates a valid interval $\{\hat\mu\pm z_\alpha \sigma/\sqrt n\}$, albeit with an unknown parameter $\sigma$ which exists unbeknownst to the researcher, and in that lies the root of its asymptotic validity. Similarly the celebrated Gaussian mixture boundary results for partial sums of iid Gaussian random variables $Z_1,Z_2,\cdots \sim \mathcal{N}(\mu,\sigma^2)$ (robbins1970statistical) allows one to create an exact $(1-\alpha)$-CS of the form $$\hat\mu \pm \sigma\sqrt{\frac{2(n\rho^2 + 1)}{n^2\rho^2}\log\left(\frac{\sqrt{n\rho^2+1}}{\alpha}\right)}$$ for any $\rho>0$, with knowledge of $\sigma^2$. Definition (ref) extends this property to confidence sequences by allowing replacement of $\sigma^2$ with $\hat\sigma^2$, the sample variance which is known to be an almost sure estimator of $\sigma^2$. Although extensions of this nature departing from the Gaussian behavior have been known, it requires explicit knowledge of the tail behavior of estimators being used (like sub-Gaussian, sub-exponential etc.), which is complicated to pinpoint while using sophisticated machine learning methods. In this regard Definition (ref) truly addresses the gap that existed between the classic central limit theorem (CLT) and its time uniform counterpart, and hence we admit it as our go-to definition. For multivariate parameters, we consider Asymptotic Confidence Regions (waudby2021time):

definition[Multivariate Asymptotic Confidence Sequence] An $\mathbb{R}^d$ valued random set $\{\tilde C_n\}_{n\ge 1}$ is a $(1-\alpha)$ asymptotic confidence sequence (AsympCS) for a parameter $\theta_0\in \mathbb{R}^d$ if there exists a non-asymptotic $(1-\alpha)$ confidence sequence $\{C_n^\star\}_{n\ge 1}$ for $\theta_0$ such that $\mathbb{P}(\forall n\ge 1, \theta_0\in C_n^\star)\ge 1-\alpha$ and $\Lambda(\tilde C_n\Delta C_n^\star)/\Lambda(C_n^\star) \to 0$ almost surely, where $\Delta$ denotes set-difference and $\Lambda$ the Lebesgue measure on $\mathbb{R}^d$.

An important property an AsympCS is expected to have is uniform Type-I error control:

definition[Asymptotic time-uniform coverage] A sequence of AsympCSs $\{\tilde C_n(m)\}_{n\ge 1}$, $m\in \mathbb{N}$ is said to have an asymptotic time uniform $(1-\alpha)$-coverage for $\theta_0$ if \begin{equation} \lim_{m\to\infty} \mathbb{P}(\forall n\ge m, \theta_0\in \tilde C_n(m))\ge 1-\alpha. \end{equation}

Several of the constructions in waudby2021time satisfy (ref) with equality. Condition (ref) essentially says that if one starts peeking at the data late enough, i.e.\ after a large sample size $m$, one expects to cover the true parameter throughout with high probability. While (ref) is an important property to have for asymptotic confidence sequences, it doesn't usually suffice- see waudby2021time for a detailed discussion. However, the confidence sequences we shall consider in this paper satisfies both Definition (ref) and Definition (ref) and hence avoid the conundrum of choosing one versus the other.

Remark (Running Intersections): It might be worthwhile to mention that a feature of non-asymptotic confidence sequences that are not enjoyed by it's batch counterpart is that, if $\{C_n^\star\}_{n\ge 1}$ is a confidence sequence, then so is $\{C_n^\cap\}_{n\ge 1}$, where $C_n^\cap = \cap_{k\le n} C_k^\star$. A similar property is enjoyed by AsympCS's that satisfy (ref): If $\{\tilde C_n(m)\}$ satisfy $\eqref{type1}$ for $m=1,2,\cdots$, then so does $\tilde C_n^\cap(m)= \cap_{m\le k\le n} \tilde C_k(m)$. This is because $\lim_{m\to\infty}\mathbb{P}(\exists n\ge m: \theta_0\notin \tilde C_n^\cap(m)) = \lim_{m\to\infty}\mathbb{P}(\exists n\ge m, m\le k\le n: \theta_0\notin \tilde C_k(m)) = \lim_{m\to\infty}\mathbb{P}(\exists k\ge m: \theta_0\notin \tilde C_k(m)) \ge (1-\alpha)$. This is particularly advantageous in case of ML based estimators which are known for its instability (molybog2023theory), due to various reasons including numerical precision, sensitivity to initialization and early layers, and size of hyperparameter space (hammoudeh2024training, lones2021avoid, smith2017cyclical). Thus, here one can use such running intersections to create confidence sequences monotonic in sample size (of course, only after a sufficiently large initial peeking time $m$) and still maintain asymptotic time uniform coverage as in (ref).

Double/Debiased Machine Learning

Having reviewed the concepts of anytime-valid inference, we turn our attention to double-debiased machine learning. The primary success of DML techniques is to overcome the regularization bias that is obtained from machine learning estimators (cucker2002best). For instance, even in a simple partially linear model

align[align omitted — 199 chars of source]

a typical estimator for (ref) will be of the form $A\hat\theta + \hat m$.\footnote{Unless otherwise specified, we use $\theta,\eta,m$ etc. to represent a general parameter, $\hat\theta,\hat\eta, \hat m$ etc. for their estimates, and $\theta_0,\eta_0, m_0$ etc. for the true parameters.} For the ease of exposition, consider a sample-splitting framework where $\hat m$ is calculated independently from one half of the sample $I^c$, and $\theta_0$ is learnt using a different part $I$ using the learnt $\hat m$ and the OLS estimator. Even in such a situation, chernozhukov2018double illustrates that $$\sqrt{n}(\hat\theta - \theta_0) = \left(\dfrac{2}{n}\sum_{i\in I} A_i^2\right)^{-1}\left[\dfrac{2}{\sqrt n}\sum_{i\in I}A_i\varepsilon_{1i} + \dfrac 2{\sqrt{n}}\sum_{i\in I}e_0(X_i)(m_0(X_i) - \hat m(X_i)) + o_p(1)\right].$$ The first (inverse) factor converges to a constant, and the first term in the second (square bracket) factor admits a central limit under mild conditions, but the second term in the second factor is not bounded in probability and generally diverges. This is because machine learning estimators, in an attempt to control the variance of $\hat m$, force it away from the true $m_0$ in expectation. This problem can however be mitigated by extracting out the effect of $X$ from $A$ by (ref). Using the same framework as before, learning $\hat m$ and $\hat e$ from $I^c$ and using the DML estimator $\hat\theta_\text{DML} = \sum_{i\in I} \hat \varepsilon_{2i}(Y_i - \hat m(X_i)) / \sum_{i\in I} \hat \varepsilon_{2i} A_i$ with $\hat\varepsilon_{2i} := A_i - \hat e(X_i)$, one may obtain that

align[align omitted — 280 chars of source]

Now the first term in parentheses admits a central limit. The second term is less problematic as it is now the product of two estimation errors, and hence can vanish at rate $\sqrt{n} n^{-(\psi_m +\psi_e)}$, even when the individual rates $\sqrt{n}n^{-\psi_m}$ and $\sqrt{n}n^{-\psi_e}$ diverge to $\infty$. Thus, if it can be verified by $r^\star$ is sufficiently well-behaved, ensured by either equicontinuity conditions as discussed in Section (ref), or by sample-splitting methods as illustrated by chernozhukov2018double, one can expect to obtain an asymptotic linear representation --- facilitating construction of confidence intervals via CLT if the approximation holds only weakly, or anytime-valid intervals in case of strong approximation.

The key idea in this regard was the partialling out of $X$ from $A$, an idea formally known as orthogonalization. Introduced by neyman1959optimal, neyman1979c to the semiparametric literature, it is a crucial idea for not only DML but a wide array of statistical learning, as alluded to in Section (ref). To define Neyman orthogonality, suppose that we have access to an iid stream of data $\{W_i\}_{i\ge 1}$ with some law $W$ on the measurable space $\mathcal{W}$. Let $\theta\in \Theta$ be our parameter of interest, and $\eta:\mathcal{W}\to \mathbb{R}^{d_0}$ be nuisance functions, with their collection being represented by a convex set $\mathcal{T}$. The true parameter values are denoted by $\theta_0\in\Theta$ and $\eta_0\in \mathcal{T}$ respectively, and let $\psi: \mathcal{W}\times\Theta\times \mathcal{T}\to \mathbb{R}^d$ be a function such that

equation[equation omitted — 75 chars of source]

Condition (ref) ensures that $\theta_0$ is identified from the data distribution, and can generally be obtained from a modification of the identifying equation.

definition[Neyman Orthogonality] The function $\psi:\mathcal{W}\times\Theta\times \mathcal{T}\to\mathbb{R}^d$ satisfies the Neyman orthogonality condition at $(\theta_0,\eta_0)$ on the nuisance realization set $\mathcal{T}_n\subseteq \mathcal{T}$ if it satisfies (ref), admits a pathwise (Gateaux) derivative $\frac{\partial}{\partial r}\psi(W;\theta_0,\eta_0 + r(\eta -\eta_0))$ for $r\in [0,1)$ and $\eta\in \mathcal{T}$, and satisfies \begin{equation} \dfrac{\partial }{\partial r}\mathbb{E}[\psi(W;\theta_0, \eta_0 + r(\eta-\eta_0))] = 0 \end{equation} for all $r\in [0,1)$ and $\eta\in \mathcal{T}_n \subseteq \mathcal{T}$.

If $\eta$ is a finite dimensional vector then $\mathcal{T}_n = \mathcal{T}$ suffices. While chernozhukov2018double lays out conditions for a linear representation like (ref) to hold in probability for a Neyman orthogonal function $\psi$ as in (ref), it is non-trivial to extend these conditions for an almost sure representation --- which is necessary to apply the recipe of waudby2021time to obtain AsympCS for the structural parameters. In this paper, we address the gap by formulating the exact Chernozhukov-style DML conditions for such an almost sure representation to hold, and hence constructing asymptotic confidence sequences. We must also mention that the conditions for a strong approximation are remarkably similar to chernozhukov2018double's weaker representation, and hence with only a slightly incremental cost can one extend the guarantee of DML confidence intervals to a much stronger anytime-valid guarantee, with all of its benefits and flexibility.

Construction of Neyman-orthogonal Functions

Before moving on to the time-uniform counterpart DML algorithms, we should address the major bottleneck of obtaining Neyman-orthogonal functions. Indeed the construction of a Neyman-orhogonal function $\psi$ satisfying (ref) is hard, and lies at the heart of DML methods. For instance, one often obtains $\theta\in\Theta$ and $\xi\in \Xi$ (the parameter of interest and a nuisance parameter respectively) by an optimization problem $$\max_{\theta\in\Theta,\xi\in\Xi}\mathbb{E}[l(W;\theta,\xi)],$$ which under usual regularity conditions satisfy the first order conditions $$\mathbb{E}[\partial_\theta l(W;\theta,\xi)] = 0\text{ and }\mathbb{E}[\partial_\xi l(W;\theta,\xi)] =0.$$ Then, taking $\eta = (\xi,\mu)$, one may define $\psi(W;\theta,\eta) = \partial_\theta l(W;\theta_0,\xi) - \mu \partial_\xi l(W;\theta,\xi)$, with $J_{\theta\xi} - \mu J_{\xi\xi} = 0$ where $J_{ab} = \partial_{a,b} \mathbb{E}[\partial_{ab} l(W;\theta,\xi)]|_{\theta_0,\xi_0}$ for $a,b\in \{\theta,\xi\}$. It is easy to verify that under suitable regularity and invertibility conditions, $\psi$ constitutes a Neyman-orthogonal function. Of course, this construction is not new, as illustrated in the context of constructing an efficient score when $l$ is the true log-likelihood (neyman1959optimal), or in more general cases by chernozhukov2018double. The latter also considers a wide array of case-specific instances for construction of a Neyman-orthogonal $\psi$, which we do not reiterate for considerations of space.

While it may be clear from (ref) and (ref) that Neyman-orthogonality is a property of the function $\psi$ and the true value of the nuisance parameter $\eta_0$ and not determined by a modeling choice for the parameter $\theta$, it might still be a prudent choice to pursue the semiparametric efficiency approach to construct such an orthogonal function $\psi$. Such a calculation leads to an influence function adjustment to the original function, and is often related to achievement of semi-parametric efficiency for estimating $\theta_0$ under the specific semiparametric model (chernozhukov2020locally, newey1994asymptotic).

The route to obtaining such a functional usually involves that the parameter (or functional) of interest $\theta_0$ is pathwise-differentiable with respect to the underlying distribution, so that it may admit an influence function. To illustrate, one may consider a one dimensional mixture model of the underlying distribution $P$ and a perturbing distribution $\tilde P$, then one may use the parametric submodel given by $P_r = P + r(\tilde P - P)$, $r\in [0,1)$, often referred to as the regular parametric submodel (hines2022demystifying). To derive an influence function for $\theta$, one requires that $\left.\frac{d\theta(P_r)}{dr}\right|_{r=0}=\lim_{r\downarrow 0} \frac{\theta(P_r) - \theta(P)}{r}$, that is the pathwise derivative of $\theta(P_r)$, to exist and have finite variance. Such a pathwise differentiability criteria is very crucial for semiparametric efficiency, and allows one to write $\left.\dfrac{d\theta(P_r)}{dr}\right|_{r=0} = \mathbb{E}_{\tilde P}[\zeta_R(W,P)]$, where $\zeta_R\in L^2$ is a unique `representator' of the pathwise derivative, allowed for by the Riesz representation theorem (bickel1993efficient, laan2003unified, tsiatis2006semiparametric). In such a situation, one considers the estimator $\theta(\hat P_n) +\frac 1n\sum_{i=1}^n \zeta_R(W_i,\hat P_n)$, where $\hat P_n$ denotes the empirical distribution, as the estimating equation of the form (ref).

However, the parameter of interest $\theta_0$, although identified by a function $\phi$, may not be pathwise differentiable. Examples include the conditional average treatment effect (CATE) under continuous covariates (rubin2007doubly), or the potential outcome mean under a continuous treatment model (rubin2005general, kennedy2017non). However, orthogonal functions satisfying (ref) can be obtained by instead considering the expectation of the functional $\theta_0$ with respect to a marginal density on the continuous variable. Generally, these expectations are pathwise differentiable and hence admit an influence function, and thus may be utilized to extract a pseudo-outcome to satisfy Neyman-orthogonality (kennedy2017non, yang2023forster). The general result for formalizing the approach for deriving a pseudo-outcome is given as follows, the proof of which can be found in Appendix (ref).

restatable{theorem}{first} Consider a parameter of interest $\theta\in\Theta$ that is identified by a function $\phi\in L^2$ satisfying $\mathbb{E}[\phi(W;\theta_0,\beta)|X] = 0$, where $\beta\in\mathcal{B}$ is some nuisance parameter (possibly infinite dimensional), $W$ is the observed data, and $X$ is some observed random variable. Suppose that there exists a function $R(W;\theta,\eta)\in L^2$, with $\eta = (\beta, \gamma(\beta))$, such that for any regular parametric model $P_r$ with parameter $r$ such that $P_0 = P$ and likelihood score $S(\cdot)$, we have \begin{equation} \left.\dfrac{\partial\mathbb{E}[\phi(W;\theta_0,\beta_0 + r(\beta - \beta_0))]|X]}{\partial r}\right|_{r=0} = \mathbb{E}[R(W;\theta_0,\underbrace{\beta_0, \gamma(\beta_0)}_{\eta_0})S(W)|X], \end{equation} with $\mathbb{E}[R(W;\theta_0,\eta)|X] = 0$. Then, $\psi(W;\theta_0, \eta) = \phi(W;\theta_0,\beta) + R(W;\theta_0,\eta)$ satisfies Neyman orthogonality (ref).

Note that the function $\mathbb{E}[\phi(W;\theta_0, \beta)|X=x]$ may not be pathwise differentiable as it may not admit a second moment (and hence not an influence function), but Theorem (ref) bypasses such a requirement for the construction of Neyman-orthogonal functions. yang2023forster considers the special case of this Theorem (ref) in the case of counterfactual regressions, and provide a wide variety of instances of the construction of such a $R$ function and hence a corresponding pseudo-outcome.

Construction of Asymptotic Confidence Sequences in the DML Framework

Suppose that we get to observe a sequence $\{W_i\}_{i\ge 1}$ iid with the same law as $W$ on a measurable space $\mathcal{W}$. Let nuisance functions be denoted by $\eta: \mathcal{W}\to \mathbb{R}^{d_0}$, and $\mathcal{T}$ be the collection of these functions. Denote $\theta$ as the parameter we actually care to estimate, taking value in $\Theta$.

The true parameter and true nuisance are denoted by $\theta_0\in \Theta$ and $\eta_0\in \mathcal{T}$ respectively, and with $\hat\theta$ and $\hat\eta$ denoting their estimates, which shall be discussed in detail next. Let $\psi:\mathcal{W}\times\Theta\times\mathcal{T}\to\mathbb{R}^d$ be a function satisfying (ref). Also, let $\delta_n$ be a sequence of positive constants converging to 0. We characterize the uncertainty due to the estimation of nuisance parameters by $\delta_n$, and generally, under high-dimensional parameters, we expect $\delta_n$ to be slower than the parametric rate, i.e., $\delta_n\ge n^{-\frac 12}$, and therefore the bias in estimation of $\theta_0$ or asymptotic approximation by a suitable normal distribution is dominated by the uncertainty in estimation of nuisance parameters (yang2023forster). Let $T$ be the number of samples used to evaluate, and $T' = n-T$ is the number of samples required to learn the nuisance parameters till time $n$.

To estimate $\hat\eta$, we take a $K$-fold random partition of $[n] = \{1,\dots, n\}$, denoted by $\{I_k\}_{1\le k\le K}$, with the size of each $I_k$ roughly equalling $n/K$. Such a partition may be obtained by sequentially assigning each data point to one of $I_k$ at random, or by looping through each $I_k$ over $k$ one at a time till all the data points upto time $n$ are exhausted, etc. Nevertheless, we expect the size of each $I_k$ to be good enough for a fair estimation of $\hat\eta$, in a manner made precise by Assumption (ref).

Also, we use the notation $\mathbb{P}_tf(Z) = \frac 1t\sum_{i=1}^t f(Z_i)$ for the empirical average operator, while the conditional average operator is denoted by $\mathbb{P} \hat f(Z) = \mathbb{E}[\hat f(Z)|\{Z_i'\}_{i\in I_1^c}]$, where $\hat f$ is learnt from $\{Z_i'\}_{i\in I_1^c}$.

Define the sample splitting estimator $\hat\theta$ as the solution to $$\mathbb{P}_T[\psi(W,\theta,\hat\eta)] = 0,$$ where $T = |I_1|$, and $\hat\eta$ is estimated from $I_{-1} := \{W_i\}_{i\in I_1^c}$. For convenience, we shall denote $I_1$ as simply $I$. Proof of all results in this section are collected in Appendix (ref).

assumption(Linear Scores with Approximate Neyman Orthogonality) For all $n\ge 3$, assume that the following conditions hold: \begin{itemize} • The true parameter value $\theta_0$ satisfies moment conditions in (ref). • The score function is linear in $\theta$, that is, there exist functions $\psi^a$ and $\psi^b$ such that \begin{equation} \psi(W;\theta,\eta) = \psi^a(W;\eta)\theta + \psi^b(W;\eta). \end{equation} • The map $\eta\mapsto \mathbb{E}[\psi(W;\theta,\eta)]$ is twice continuously Gateuax differentiable on $\mathcal{T}$. • The score function $\psi$ satisfies the Neyman near-orthogonality condition at $(\theta_0,\eta_0)$ with respect to the nuisance realization set $\mathcal{T}_n\subset \mathcal{T}$, ie, \begin{equation} \lambda_n :=\sup_{\eta\in \mathcal{T}_n}\left\|\left.\dfrac{d}{dr}\mathbb{E}[\psi(W;\theta_0,\eta_0 + r(\eta-\eta_0))]\right|_{r=0}\right\|\leq \delta_n \sqrt{\dfrac{ \log\log n}{n}}. \end{equation} • The identification holds; ie, the singular values of the matrix $J_0 := \mathbb{E}[\psi^a(W;\eta_0)]$ lie between $c_0$ and $c_1$, where $c_0\le c_1$ are finite positive constants. \end{itemize}

Of course, Assumption (ref)(a) is the one ensuring that $\theta_0$ can be identified and estimated from the population moment equation given by $\psi$. Condition (ref) in Assumption (ref)(b) essentially assumes that $\theta$ can be inferred back from $\psi$ as a solution to a set of linear equations. While this is a strong assumption, most causal estimands, like average treatment effect (ATE), local average treatment effect (LATE), conditional average treatment effect (CATE), average treatment effect on treated (ATT) etc.\ can be identified and estimated from a $\psi$ function that admits a linear representation of the form in (ref). The Assumptions (c) and (d), generalize the Neyman orthogonality condition in (ref) to a near-orthogonality condition in cases where exact orthogonality is too restrictive. Such a relaxation may be useful for quasi-likelihood or GMM settings, as illustrated in chernozhukov2018double. Note that the near-orthogonality condition in (ref) allows for an additional factor of $\sqrt{\log\log n}$ not allowed for in chernozhukov2018double, but is not really a relaxation as the nuisance realization set $\mathcal{T}_n$ needs to contain $\hat\eta$ almost always, as shall be clarified in Assumption (ref). Assumption (e) is a simple assumption that in conjunction with (ref) allows $\theta_0$ to be indeed identified from $\psi$.

In addition, to Assumption (ref), we need a second set of regularity assumptions on the behavior of $\psi$ in $\mathcal{T}_n$, to ensure that all plug-in biases are controlled and we may obtain an asymptotically linear representation to hold almost surely.

assumption(Score Regularity and Nature of Estimated Nuisance) For all $n\ge 3$, let $\mathcal{T}_n$ be a set containing $\eta_0$ satisfying the following properties: \begin{itemize} • Given a random subset $I$ (with $T := |I|$) of $[n]$ with $T/n \overset{a.s.}{\to}1/K$, the nuisance parameter $\hat\eta$ estimated from $\{W_i\}_{i\in I^c}$ is not contained in $\mathcal{T}_n$ only finitely often. • For $q>2$, the following moment conditions hold: $$m_n:=\sup_{\eta\in \mathcal{T}_n}(\mathbb{E}\|\psi(W;\theta_0,\eta)^q\|)^{1/q}\le c_1; \ \ \ m_n':=\sup_{\eta\in \mathcal{T}_n}(\mathbb{E}\|\psi^a(W;\theta_0,\eta)^q\|)^{1/q}\le c_1.$$ • The following rate conditions hold: \begin{align} r_n&= \sup_{\eta\in \mathcal{T}_n} \|\mathbb{E}[\psi^a(W;\eta)] - \mathbb{E}[\psi^a(W;\eta_0)]\|\le \delta_n. \\ r_n'&= \sup_{\eta\in \mathcal{T}_n} (\mathbb{E}[\|\psi(W;\theta_0,\eta) - \psi(W;\theta_0,\eta_0)\|^2])^{\frac 12}\le \delta_n. \\ \lambda_n'&= \sup_{r\in (0,1);\eta\in \mathcal{T}_n} \left\|\dfrac{d^2}{dr^2}\mathbb{E}[\psi(W;\theta_0;\eta_0+r(\eta-\eta_0))]\right\|\le {\delta_n\sqrt{\dfrac{\log\log n}{n}}}. \end{align} • The score is non-degenerate: all eigenvalues of the matrix $\mathbb{E}[\psi(W;\theta_0,\eta_0)\psi(W;\theta_0,\eta_0)^T]$ are at least $c_0$. \end{itemize}

Assumption (ref) (a) ensures that $\hat\eta$ is reasonably well-behaved, i.e., for a large enough sample size, $\hat\eta$ is always contained in $\mathcal{T}_n$. Since $\mathcal{T}_n\subseteq\mathcal{T}$ creates a shrinking neighborhood around $\eta_0$ at rates $r_n$, $r_n'$ and $\lambda_n'$ via (ref), they ensure strong consistency properties of the estimator $\hat\eta$. The rate $\lambda_n'$ is of particularly interest, as it determines how fast the nuisance estimates need to converge to the true parameters with respect to the growing sample size. While in some problems this double derivative amounts to be 0, for instance in (ref) when $m_0$ is known, or in an experimental study to obtain the ATE with known propensity scores $e_0$, in most cases that is not the case; and hence the double derivative condition imposes restrictions on the quality of the estimators used. However, it can be ensured that if $\psi$ happens to be an influence function or a pseudo-outcome emulating an influence function, one can ensure that $\lambda_n'$ is of the order $O(\|\hat\eta-\eta_0\|^2)$ (fisher2021visually), and hence in the worst case $\eta_0$ needs to be strongly estimated at rate $(\log\log n/n)^\frac14$.

Remark: One can contrast the nature of Assumptions (ref) and (ref) to that of chernozhukov2018double, to see that they are remarkably similar, except that $\mathcal{T}_n$ is now a nuisance realization set that is allowed to not contain the nuisance estimate $\hat\eta$ only finitely often, and the rate conditions in (ref) allow an additional factor of $\sqrt{\log\log n}$ to compensate for the strong consistency expected of the nuisance realization set. This is unsurprising, as the law of iterated logarithm --- a key result underpinning several results in our paper --- states that a mean-centered random walk with finite variance is of $O(\sqrt{n\log\log n})$, whereas the central limit theorem can only ensure that the same is $O_p(\sqrt{n})$.

restatable{theorem}{samplesplitting} (Properties of the Sequential Sample Splitting Estimator) Under Assumption (ref) and (ref), $$\sigma^{-1}(\hat\theta-\theta_0) = -\dfrac 1T\sum_{i=1}^T \sigma^{-1}J_0^{-1}\psi(W_i;\theta_0,\eta_0) + O\left((r_n+r_n')\sqrt{\dfrac{\log\log n}{n}} + \lambda_n +\lambda_n'\right), $$ where $\sigma^2 = J_0^{-1}\mathbb{P}[\psi\psi^T]J_0^{-1}$. By Assumption (ref)(d) and (ref)(c), the error term is of the order $O\left(\delta_n \sqrt{\dfrac{\log\log n}{n}}\right)$, and thus $o\left( \sqrt{\dfrac{\log\log n}{n}}\right)$ if $\delta_n\to 0$.

Theorem (ref) ensures that the sample splitting estimator $\hat\theta$ admits an asymptotically linear representation, that holds almost surely. The almost sure holding of the representation is a primary distinction from previous results, and thus allows one to use representation of random sums to create AsympCS for $\theta_0$ from $\hat\theta$. Of course, the variance $\sigma$ needs to be estimated with a strong consistency guarantee to ensure that such confidence sequences can be computed from the data, which brings us to Theorem (ref).

restatable{theorem}{variance} (Estimation of Variance) Suppose Assumption (ref) and (ref) hold, then estimating $\sigma^2$ by $\hat\sigma^2 = \hat J_{0T}^{-1}\mathbb{P}_T[\hat\psi\hat\psi'](\hat J_{0T}^{-1})'$ with $\hat J_{0T} = \frac 1T\sum_{i=1}^T \psi_a(W_i,\hat\eta)$, we have $$\hat\sigma^2 = \sigma^2 + O\left(n^{-(1-\frac 2q)}\bigvee\sqrt{\dfrac{\log\log n}{n}} + r_n + r_n'\right).\ $$

Theorem (ref) and Theorem (ref) allows us to obtain a asymptotically linear representation of $\hat\sigma^{-1}(\theta - \theta_0)$ that holds almost surely, as illustrated in Corollary (ref).

corollaryUnder Assumption (ref) and (ref) $$\hat\sigma^{-1}(\hat\theta-\theta_0) = -\dfrac 1T\sum_{i=1}^T \sigma^{-1}J_0^{-1}\psi(W_i;\theta_0,\eta_0) + O\left(n^{-(1-\frac 2q)}\bigvee\sqrt{\dfrac{\log\log n}{n}} + (r_n+r_n')\sqrt{\dfrac{\log\log n}{n}} + \lambda_n +\lambda_n'\right).$$ In words, the $\sigma^{-1}$ on the left hand side of Theorem (ref) can be replaced by $\hat\sigma^{-1}$ with an additional error of the order at most $O\left(n^{-(1-\frac 2q)}\bigvee\sqrt{\dfrac{\log\log n}{n}}\right)$.

The estimator in Theorem (ref) have all been obtained by sample-splitting, which needless to say, may lose out on efficiency. An easy remedy to this is cross-fitting, which can even be adapted to the sequential setting by randomly assigning a newly arrived data point to one of the folds of the $K$-fold partition, or by looping through the folds sequentially. One can define two DML estimators based on such cross-fitting technique.

definitionConsider a $K$ fold random partition $\{I_k\}_{k=1}^K$ of $[n]$ such that $|I_k|/n\overset{a.s.}{\to} 1/K$, and for each $k$, estimate $\hat\eta_k = \hat\eta(\{W_i\}_{i\in I_k^c}$. \begin{itemize} • ($\text{DML}_1$ estimator) Construct $\hat\theta_k$ as the solution to \begin{equation}\dfrac{1}{|I_k|}\sum_{i\in I_k}\psi(W_i,\theta,\hat\eta_k) = 0,\end{equation} and the corresponding variance estimate as $$\hat\sigma^2_k = \hat J_{0k}^{-1}\left(\dfrac{1}{|I_k|}\sum_{i\in I_k}\psi(W,\theta,\hat\eta_k)\psi(W,\theta,\hat\eta_k)\right)(\hat J_{0k}^{-1})^T,$$ where $\hat J_{0k} = \frac{1}{|I_k|}\sum_{i\in I_k}\psi^a(W_i,\hat\eta_k)$. Then the $\text{DML}_1$ estimator for $\theta$ is defined as $ \hat\theta_{\text{DML}_1} = \dfrac{1}{K}\sum_{k=1}^K \hat\theta_k,$ with estimated variance $\hat\sigma^2_{\text{DML}_1} = \frac{1}{K}\sum_{k=1}^K \hat\sigma^2_k$. • ($\text{DML}_2$ estimator) $\hat\theta_{\text{DML}_2}$ is defined as the solution to \begin{equation}\dfrac 1{K}\sum_{k=1}^K\dfrac{1}{|I_k|}\sum_{i\in I_k} \psi(W_i,\theta,\hat\eta_k) = 0,\end{equation} and denoting $\hat J_0 = \frac 1K\sum_{k=1}^K \hat J_{0k}$, its variance estimate is given by $$\hat\sigma^2_{\text{DML}_2} = \hat J_0^{-1}\left(\dfrac 1K\sum_{k=1}^K\dfrac{1}{|I_k|}\sum_{i\in I_k}\psi(W,\theta,\hat\eta_k)\psi(W,\theta,\hat\eta_k)\right)(\hat J_0^{-1})^T.$$ \end{itemize}

The choice of $K$ has no asymptotic impact on the confidence sequences produced, but may produce better performance on moderate sample size. chernozhukov2018double recommends using $K=4$ or $5$ for better performance than $K=2$. Also $\text{DML}_2$ is generally preferred than $\text{DML}_1$ due to better stability in the pooled empirical Jacobian in (ref) than its individual counterpart in (ref). Analogous results to Theorem (ref) and Theorem (ref) hold for the cross-fitting estimators in Definition (ref), the result of which we shall state without proof in Corollary (ref).

corollaryUnder Assumptions (ref) and (ref), both the $\text{DML}_1$ and $\text{DML}_2$ estimators satisfy \begin{align*} \hat\sigma_{DML_j}(\hat\theta_{DML_j} - \theta_0) &= -\dfrac 1n\sum_{i=1}^n\sigma^{-1}J_0^{-1}\psi(W_i;\theta_0,\eta_0) \\ & + O\left(n^{-(1-\frac 2q)}\bigvee\sqrt{\dfrac{\log\log n}{n}} + (r_n+r_n')\sqrt{\dfrac{\log\log n}{n}} + \lambda_n +\lambda_n'\right); \end{align*} for $j=1,2$.

Remark: Corollary (ref) and (ref), while resembling their counterpart results in chernozhukov2018double, are distinct in two key aspects. Firstly, the equality in Corollary (ref) holds almost surely, with the error terms boasting almost sure validity in rates, while in contrast the usual errors in approximation as in chernozhukov2018double are in probability. While it may seem like a technical difference, it is crucial to construct confidence sequences with asymptotic anytime-validity, as can be seen in Theorem (ref). Also, the rate of approximations has an additional $\sqrt{\log\log n}$ in the numerator on the right hand side of Corollary (ref). This is an artefact of the orthogonality and regularity assumptions in Assumption (ref) and (ref), as well as the law of iterated logarithm (LIL) as discussed before. Since the LIL is sharp, it is unlikely that the $\sqrt{\log\log n}$ term can be eradicated.

Based on the asymptotically linear expansion in Corollary (ref), we can use the recipe of waudby2021time to obtain confidence sequence and confidence regions for $\theta_0$.

restatable{theorem}{confidence} Suppose Assumptions (ref) and (ref) hold. Then, for any constant $\rho>0$, \begin{itemize} • $ $ $$\forall n\ge 1, \left\{\theta\in\mathbb{R}^d: \|\hat\sigma^{-1}_{\text{DML}_j}(\hat\theta_{\text{DML}_j}-\theta)\|^2<\dfrac{2(n\rho^2+1)}{n^2\rho^2}\log\dfrac{(n\rho^2+1)^\frac d2}{\alpha}\right\} $$ constitutes a $(1-\alpha)$-Asymp CS region for $\theta_0$, for $j=1,2$, with approximation rate $$O\left(n^{-(1-\frac 2q)}\bigvee\sqrt{\dfrac{\log\log n}{n}} + (r_n+r_n')\sqrt{\dfrac{\log\log n}{n}} + \lambda_n +\lambda_n'\right).$$ • For any $l\in \mathbb{R}^d$ vector, a $(1-\alpha)$-Asymp CS for the scalar parameter $l^T\theta_0$ is given by $$l^T\hat\theta_{\text{DML}_j} \pm \sqrt{l^T\hat\sigma^{-2}_{\text{DML}_j}l}\sqrt{\dfrac{2n\rho^2+1}{n^2\rho^2}\log\dfrac{(n\rho^2+1)}{\alpha}}$$ for $j=1,2$, with the same approximation rate as in (a). \end{itemize} Also, replacing $\rho$ by $\rho_m: = \rho(\hat\sigma^2m \log (m\vee e)) = \sqrt{\dfrac{-2\log\alpha + \log(-2\log\alpha) + 1}{\hat\sigma_m^2 m\log(m\vee e)}}$, where $m$ denotes the first `peeking' time, provides asymptotic Type-I error coverage as in (ref) at level exactly equal to $\alpha$.

Before illustrating the confidence sequences in Theorem (ref), it is important to note how easily the leap from regular confidence intervals to anytime-valid confidence sequences is achieved. With only mildly stronger conditions than those in chernozhukov2018double, as outlined in Assumptions (ref) and (ref), one can secure asymptotic anytime-valid inference and its associated benefits. Therefore, if one satisfies the conditions of chernozhukov2018double, the additional effort for the anytime-valid guarantee is minimal and yields substantial advantages such as continuous monitoring and data-driven stopping.

Inference in Partially Identified Observational Studies

Consider the situation in Example (ref). Under the standard assumption of unconfoundedness and other causal assumptions, one can identify and estimate the average treatment effect. More formally, consider a set of potential outcomes $Y(0), Y(1)$ and a treatment $A$, and the observed realization to be $Y = AY(1) + (1-A)Y(0)$, and a set of potential covariates (confounders) $X\in\mathcal{X}$ such that $0<\varepsilon<\mathbb{P}(A=1|X)<1-\varepsilon$. The standard no unmeasured confounding (NUC) assumption is given by $(Y(0),Y(1))\perp \!\!\! \perp A|X$. The augmented inverse probability weighting (AIPW) estimator is a common choice in estimating the ATE under NUC, which is known to have the Neyman-orthogonality property as in Definition (ref), leading to double robust estimation. waudby2021time themselves considers the anytime-valid inference using the AIPW estimator, and delineates conditions for the strong guarantee. However, their conditions are specifically catered to the AIPW estimator, and it is unclear how to extend the assumptions on more general estimators to obtain an asymptotically valid representation that holds almost surely. To illustrate this, consider the unconfoundedness assumption to be violated, which is often a potential concern in observational studies (rosenbaum2010design). One often imagines an unmeasured confounder $U\in \mathcal{U}$ such that NUC may be generalized as:

assumption[Unobserved-confounding] $(Y(0), Y(1))\perp \!\!\! \perp A|X,U$.

However, as $U$ is unmeasured, as is often the case in most observational studies, one cannot point-identify the ATE without additional assumptions. The NUC assumption in an observational study, while acting as a currency for buying information (coombs1964theory), may not necessarily be credible, and do not manifest testability from the observed data. In fact, bekerman2024planning illustrate how an outcome may fail to remain significant even when accounting for a small deviation from NUC, and hence robustness of the ATE estimate for mild deviations from NUC is indispensable in observational studies for trustworthy inference. In such situations, one may be more comfortable providing bounds on the ATE in a milder assumption framework, which allows for a more credible inference. One such model is based on the ideas of sensitivity analysis of Rosenbaum (rosenbaum2002observational, rosenbaum2010design) as in Assumption (ref).

assumption[$\Gamma$-selection bias model] With $1\le \Gamma<\infty$ \begin{align*}\dfrac{1}{\Gamma}\le \dfrac{\mathbb{P}(A=1|X,U=u)/\mathbb{P}(A=0|X,U=u')}{\mathbb{P}(A=0|X,U=u)/\mathbb{P}(A=1|X,U=u')}\le \Gamma\ \ \forall u, u'\in\mathcal{U} almost surely. \end{align*}

Assumption (ref) limits how much the likelihood of receiving treatment can differ among similar units, based on their measured characteristics, using the odds ratio and a sensitivity parameter $\Gamma$. Note that $\Gamma =1$ brings one back to NUC, while $\Gamma =\infty$ leaves the influence of $U$ unrestricted. Realistically, one can hope for obtaining meaningful inference for some fixed $\Gamma>1$ based on bounds that the model (ref) implies on the ATE.

yadlowsky2018bounds showed that under Assumption (ref) and (ref), that $\mathbb{E}[Y(1)]$ can be bounded below sharply by $\mu_1^- = \mathbb{E}[AY+(1-A)g_1(X)]$, where $g_1(X)$ solves the optimization problem

equation[equation omitted — 104 chars of source]

where $a_+ = \max\{a,0\}$ and $a_- = -\min\{a,0\}$. Analogous results hold for the upper bound on $\mathbb{E}[Y(0)]$ by $\mu_0+$ replacing $\Gamma$ by $\Gamma^{-1}$ and the conditioning event by $Z=0$ in (ref). $\mu^-_1 - \mu_0^+$ thus creates a lower bound on the ATE $\mathbb{E}[Y(1) - Y(0)]$. The upper bound on the ATE via $\mu_1^+$ and $\mu_0^-$ is similar.

Before moving on to construction of AsympCS for the ATE, it must be emphasized how the utility of anytime-valid inference is all the more pronounced for any partial identification problem. To take this example, unless $\Gamma=1$ (which is situation of NUC and has been captured by the AIPW estimator), $\mu_1^- -\mu_0^+ < \mu_1^+ - \mu_0^-$, and the inequality being strict implies that the ATE can never be point identified, even with infinite data $(Y_i,A_i,X_i)_{i\ge 1}$. Thus the benefits of collecting more data hits a ceiling in such situations, contrary to traditional identifiable estimands. Now the gap between the upper and lower bound, although estimable, is not known prior to looking at the data, and hence fixing a sample size apriori for meaningful downstream inference is impractical without peeking at the data. The asymptotic anytime-valid framework thus allows one to stop expensive data collection as soon as one obtains “good enough" inference (eg: bounds are tight enough, bounds seem to have converged, confidence sequence does not contain 0, etc.) and is hence especially catered in efficient handling of such situations, even in observational settings.

For the rest of this section we focus on estimating $\mu_1^-$, as the remaining parameters are estimated similarly. Let $W = (Y,A,X)$, and consider the functional

equation[equation omitted — 162 chars of source]

as demonsrated by yadlowsky2018bounds, where $\eta = (g_1,e,\nu)$ is the set of nuisance parameters, where $g_1$ is as described in (ref), $e(X) = \mathbb{P}(A=1|X)$ is the propensity score, and $\nu$ is an additional nuisance parameter given by

align*[align* omitted — 92 chars of source]

We consider a split-sampling framework similar to what we discussed in Section (ref), where we estimate the nuisance parameters from one part of the sample, and equate the empirical expectation of $\psi$ from (ref) in the remaining sample with plugin estimates for $\eta$ to $0$, to obtain $\hat\mu_1^-$. We assume the following strong consistency conditions on $\hat\mu^1_-$ and the underlying law for $W$:

assumption\begin{itemize} • (Regularity Condition) $\mathbb{E}[Y(1)^q] \le C_q$ for some $q>2$, and $Y(1)$ admits a uniformly bounded conditional density (given $X=x$ and $Z=1$) with respect to the Lebesgue measure. • (Boundedness Condition) $\exists \varepsilon>0$ such that $e_1(X)\in [\varepsilon, 1-\varepsilon]$ a.s., $\hat e_1(X)\in [\varepsilon, 1-\varepsilon]$ for all but finitely many $n$. • (Strong Consistency Condition) $\|\hat g_1(\cdot) - g_1(\cdot)\|_{1} \overset{a.s.}{\to} 0$, $\hat\eta_1\to \eta_1$ almost surely and $\|\hat\eta_1(\cdot) - \eta_1(\cdot)\|_{\infty} = O(1)$. • (Rate Condition) $\|\hat\eta_1 - \eta_1\|_2 = o\left(\left[\dfrac{\log\log n}{n}\right]^{\frac 14}\right)$. \end{itemize}

Assumption (ref)(a) is a regularity condition on the underlying distribution of the potential outcomes, while (b) is a strengthening of the positivity condition to ensure the propensity scores are mildly well-behaved. (c) and (d) on the other hand impose conditions on the estimator being used for the nuisance parameters. One can view the estimation of the parameter $g$ as an M-estimation problem based on (ref), strong consistency properties of which has been considered in schreuder2020nonasymptotic in a low-dimensional setting. In a high-dimensional setting, common estimation choices are sieve-based regression (geman1982nonparametric) or kernel-based methods (devroye1981almost), the almost sure properties of which have been well studied in the special case of $\Gamma = 1$ (lugosi1995nonparametric, gordon1984almost). Strong consistency rates for such nonparametric regressions have also been considered in (chen1990extension), which prove a LIL rate for nonparametric regressions. On the other hand, $\hat e$ is essentially a propensity score model, and can be estimated at a LIL rate based on yang2019law under a correctly specified GLM model. Finally, estimation for $\nu$ can also be treated as an M-estimation problem, or can be considered as problems pertaining to functionals of the conditional distribution of $Y|X,Z=1$, and hence allow the use of smoothed Nadaraya-Watson estimators or rank nearest neighbors, the LIL properties of which have been established in mehra2005pointwise.

restatable{theorem}{partialthm} Suppose the conditions of Assumption (ref) hold, and $\hat\sigma^2_{1-} = \frac 1n\sum_{k=1}^K\sum_{i\in I_k} \psi(W;\hat\mu_1^-,\hat\eta)^2$. Then for any $\rho>0$, $$\hat\mu_1^- \pm \hat\sigma_{1-}\sqrt{\dfrac{2n\rho^2+1}{n^2\rho^2}\log\dfrac{(n\rho^2+1)}{\alpha}}$$ constitutes a $(1-\alpha)$ AsympCS for $\mu_1^-$.

Analogous results also hold for the remaining parameters $\mu_0^+$, $\mu_1^+$ and $\mu_0^-$. Theorem (ref) thus allows us to construct confidence sequences for the partially identified ATE, and the proof of the theorem, as can be seen from Appendix (ref), follows just by verifying the conditions of Assumptions (ref) and (ref).

Inference in an Instrumental Variable based Online Setting

We turn our attention to situations in Example (ref) or (ref). In both these situations, while experimental allocation of treatments has been randomized, uptake of treatments is a personal choice for the units, and hence they may not comply with the treatment assigned to them. Such uptake of treatment may be associated with the outcome of interest (someone may use a coupon only if they consider it worth to themselves, or only health-seeking people adhere to the uptake of the new drug), and hence does not allow identification of causal estimands without further assumption. Under such situations, an important technique for estimating a causal effect is the use of instrumental variables, as alluded to in Section (ref). Formally, let $Z\in\mathcal{Z}$ be a variable (here treatment status assigned by the experimenter), $A$ the true treatment status, and let $Y$ denote the realized outcome. Let $U$ be a potential unmeasured confounder that may affect both $Y$ and $A$, and $X$ as before denote measured covariates.

assumption[IV-assumptions] For $Z$ to be a valid IV, one must have (i) Exclusion restriction: $Z\perp \!\!\! \perp Y|(A,U,X)$. (ii) Independence: $Z\perp \!\!\! \perp U|X$. (iii) $Z\not\perp \!\!\! \perp A|X$.
figure[figure omitted — 3,955 chars of source]

Assumption (ref), as encoded in Figure (ref), allows us to define the potential outcomes $Y(a)$ based on the level of $A=a$, and $Y = Y(A)$ by the exclusion restriction (wang2018bounded). In the context of Example (ref) and (ref), for instance, the group assignment the units were assigned to (ie coupon vs no coupon, treatment vs placebo), may be assumed to be a valid instrument satisfying Assumption (ref). However, Assumption (ref) is not adequate to nonparametrically identify a causal estimand. The classic way to deal with it is the monotonicity assumption (angrist1996identification), which in the case of binary treatment and binary instrument can be encoded by

assumption[IV-monotonicity] $A(Z=1)\ge A(Z=0)$.

Assumption (ref) essentially means that there are no defiers, i.e., for no unit is it the case that $A = 1$ when $Z= 0$. In Example (ref) or (ref), Assumption (ref) holds by design, as no unit can enroll itself into treatment if not assigned treatment. Thus, since non-compliance can occur only in a particular way, one can identify a meaningful causal estimand.

Under Assumption (ref), (ref) and (ref), one can identify the local average treatment effect (LATE) given by $\theta_0 = \mathbb{E}[Y(1) - Y(0)| A(1)> A(0)]$, that is, the average treatment effect on the units that comply with the treatment (ie, those who take treatment if assigned so, and not if not), via the Wald estimand $$\dfrac{\mathbb{E}[Y|Z=1] - \mathbb{E}[Y|Z=0]}{\mathbb{E}[A|Z=1] - \mathbb{E}[A|Z=0]} = \dfrac{\mathbb{E}[\mathbb{E}[Y|Z=1,X] - \mathbb{E}[Y|Z=0,X]]}{\mathbb{E}[\mathbb{E}[A|Z=1,X] - \mathbb{E}[A|Z=0,X]]}.$$

A business that is concerned about the expenses of running an experiment, or a drug trial concerned about medical ethics, may be interested to evaluate the effect of treatment on the outcome of interest, and hence would want to stop the experiment as soon as possible: to deploy the treatment if it's beneficial conclusively, and to stop if not. In such settings, one may be interested in deploying anytime-valid inference to obtain confidence sequences for the LATE.

Consider the data $\{W_i\}_{i\ge 1}$ iid, with $W_i = (Y_i,A_i,Z_i,X_i)$, nuisance parameters $\eta = (g_t,g_c,m_t,m_c, e)$ and the functional based on tan2006regression:

equation[equation omitted — 291 chars of source]

Here $g_t(X) = \mathbb{E}[Y|Z=1,X]$, $g_c(X) = \mathbb{E}[Y|Z=0,X]$, $m_t(X) = \mathbb{E}[A|Z=1,X]$, $m_c(X) = \mathbb{E}[A|Z=0,X]$, $e(X) = \mathbb{E}[Z|X]$ are the relevant nuisance parameters, which is estimated using ML methods from part of the sample as discussed in Section (ref), and $\theta$, the parameter of interest that identifies the LATE, is obtained by equating the empirical expectation of $\psi$ from (ref) on the remaining sample with plugin estimates for $\eta$, to zero. We assume the following conditions on the estimator for nuisance parameters $\hat\eta$, and the underlying law governing $W$.

assumption\begin{itemize} • (Regularity Condition) For $a=0,1$, $\mathbb{E}[Y(a)^q]\le C_q$ for some $q\ge 4$. • (Boundedness Condition) $\exists \varepsilon>0$ such that $e_0(X)\in [\varepsilon, 1-\varepsilon]$ a.s., $\|g_{a,0}\|_q = O(1)$, $a=0,1$. • (Identification Condition) $\mathbb{E}[m_{t,0}(X) - m_{c,0}(X)]\ge c$. • (Strong-consistency Condition) $\|\hat\eta(\cdot) - \eta_0(\cdot)\|_2\overset{a.s.}{\to} 0$, $\hat\eta\to\eta_0$ almost surely and $\|\hat\eta(\cdot) - \eta_0(\cdot)\|_\infty = O(1)$. • (Rate Condition) $$\|\hat e- e_0\|_2\left(\sum_{a\in \{t,c\}} \|\hat g_a(\cdot) - g_{a,0}(\cdot)\|_2 + \sum_{a\in \{t,c\}} \|\hat m_a(\cdot) - m_{a,0}(\cdot)\|_2\right) = o\left(\left[\dfrac{\log\log n}{n}\right]^\frac12\right).$$ \end{itemize}

Assumption (ref) (a) is a regularity condition ensuring that the counterfactual laws are well behaved, while (b) and (c) solidifies conditions on positivity and identifiability based on the propensity score and the IV-strength respectively. On the other hand, (d) and (e) imposes restrictions on the estimators being used. However, $m_t,m_c, g_t$ and $g_c$ are all real valued regression estimators, and as discussed in the discourse ensuing Assumption (ref), such parameters can be strongly estimated at LIL rates using kernel based methods or partitioning techniques. One may also use regression models for estimating the propensity scores $\hat e$, or use a GLM specification as has been considered in yang2019law. Note that, in contrast with Assumption (ref), where the $L_2$ error in each of the parameters needed to be reasonably small (although not at the parametric rate), here the error condition is of the form of a mixed bias, and thus the error in estimation in the outcome regression functions can be compensated by that in the propensity score.

restatable{theorem}{iv} Suppose the conditions of Assumptions (ref) are met. Then, with $\hat\sigma^2$ as in Theorem (ref), and for any $\rho>0$, $$\hat\theta\pm \hat\sigma\sqrt{\dfrac{2n\rho^2+1}{n^2\rho^2}\log\dfrac{n\rho^2+1}{\alpha}}$$ constitutes an $(1-\alpha)$AsympCS for $\theta_0$.

Again as before, Theorem (ref) is a simple consequence that may be derived easily by verification of the conditions of Assumptions (ref) and (ref), as is evident from the proof in Appendix (ref).

Experiments

In the following, we evaluate our approach on synthetic data, and illustrate its utility in real-world applications.

Synthetic Data Experiments

Partial Identification with Unmeasured Confounding

In this subsection, we demonstrate our findings applying to the formulations in Section (ref). We follow a data generation setup similar to that in yadlowsky2018bounds, where we generate $X\sim \text{Uniform}[0,1]^d$, $U|X\sim \mathcal{N}\left(0, (1+\frac 12\sin (2.5 X_1))^2\right)$ and $Y(0) = \beta^TX + 5U, \ \ Y(1) = Y(0) +\tau$, where $d$ is the number of dimensions and $\tau$ the treatment effect. The treatment assignment $A$ is drawn i.i.d. Bernoulli with $$\mathbb{P}(A = 1|U,X) = \dfrac{\exp(\alpha_0 + X^T\mu + \log(\Gamma_\text{data})\mathbbm{1}(U>0))}{1 + \exp(\alpha_0 + X^T\mu + \log(\Gamma_\text{data})\mathbbm{1}(U>0))},$$ such that $$\dfrac{\mathbb{P}(A=1|X,U=u)/\mathbb{P}(A=0|X,U=u')}{\mathbb{P}(A=0|X,U=u)/\mathbb{P}(A=1|X,U=u')} = \Gamma_\text{data}^{\mathbbm{1}(u>0) - \mathbbm{1}(u'>0)}\in \left[\frac 1{\Gamma_\text{data}}, \Gamma_\text{data}\right]$$ satisfying Assumption (ref) with parameter $\Gamma_\text{data}$. The $\alpha_0$ controls the treatment assignment ratio. The confidence sequences produced via applying Theorem (ref) hold true as long as $\Gamma\ge \Gamma_\text{data}$, and, in the subsequent analysis, we set them both equal to $\exp(0.6)$. $\tau$ is set to be $-0.5$, and the hyperparameters are set as $\alpha_0 = 0$, $\mu\sim \mathcal{N}(0,I_d)$, $\beta\sim\mathcal{N}(0,I_d)$. We use a 4-fold cross-validation to generate the results, with an xgboost implementation to learn $\hat e, \hat g_1$ and $\hat\nu$, where $\hat g$ uses the special loss function $\eqref{regbound}$. $d$ is set to 4, and the experiments are run with sample sizes from 1000 to 50000 with an increment of 1000. The $\rho$-parameter in Theorem (ref) is chosen to optimize for Robbins' normal mixture at the maximum allowed sample size, as delineated in waudby2021time.

figure[figure omitted — 475 chars of source]

Figure (ref)(a) demonstrates the importance of PI-confidence regions to account for unmeasured confounding, since without it, even the AIPW estimator would infer an incorrect sign for the ATE. For an anytime-valid guarantee, however, just considering partial identification is not enough, as one also needs to account for protection against continuous monitoring. Figure (ref)(b) highlights the issue, zooming in on the lower ends of the AsympCS and the usual CI. Clearly, the true effect is not contained by the usual CIs uniformly over all sample sizes, while AsympCS holds up to its theoretical guarantees by always containing the true ATE.

LATE estimation via Instrumental Variables

Next, we illustrate the LATE estimation in a sequential setup. We generate $X\sim\mathcal{N}(0,I_d)$, and $U|X\sim \mathcal{N}\left(0, (0.5 + \sin X_1)^2\right)$. We generate a randomized experiment setup akin to farbmacher2022instrument, where the instrument $Z\sim \text{Bern}(p)$, with $A = \mathbbm{1}(\alpha_z Z +U>0)$ guaranteeing the monotonicity condition as well as the IV-relevance condition on $A$ which is controlled via $\alpha_Z>0$. The outcome is generated as $Y = \theta A + \cos(U)(\beta^TX + U)$. We use $p = 0.4$ and $d=2$, and use an $\texttt{xgboost}$ implementation to learn the relevance condition. The hyperparameters are generated as $\beta\sim\mathcal{N}(0, 0.5 I_d)$, $\alpha_z = 2$, $p=0.4$, and the effect size $\theta = 3$, with a 4-fold cross-fitting to be used for estimation.

figure[figure omitted — 415 chars of source]

Figure (ref)(a) demonstrates a typical miscoverage by the batch approach that can occur for the LATE when not controlled for continuous monitoring, where we see that the upper bound is below the effect, while the AsympCS correctly accounts for it. Figure (ref)(b) shows how the cumulative miscoverage rate grows rapidly for batch confidence intervals as the sample size increases, while the AsympCS controls the rate at the nominal level.

Real-world Applications

Empowered by the advantages showcased in ensuring the right confidence sequence to estimate the treatment effect, we deploy the methods in real-data instances.

Impact of Academic Support Services on College Achievement

In our first application, we consider the impact that academic support services provide on college achievement. We use the data from angriststar that evaluates the impact of the STAR program (Student Achievement and Retention Project), which had been designed to improve academic performance among college freshmen. Incoming first-year undergraduates were randomly assigned to one of three treatment arms: SSP (Student Support Program that offered peer-advising and supplemental instruction), SFP (Student Fellowship Program being awarded the opportunity to gain merit-based fellowships), and SFSP (who were given both SFP and SSP opportunities). Not everyone assigned treatment ended up accepting it, and hence intention-to-treat $Z$ does not necessarily match treatment status $A$. The monotonicity Assumption (ref) is automatically satisfied, and randomization of the treatment status makes it plausible that Assumption (ref) is satisfied. The group assigned treatment (one of three treatment arms) consisted of 299 individuals out of 1255 in the entire dataset, of which 256 ended up taking treatment. We consider the sequential experiment in the order the individuals appear in the dataset, and also consider a sub-group analysis based on the sex of the individuals. We consider two outcomes: fall grades and GPA after the first year, in line with the original paper. The results are plotted in Figure (ref). The analysis, in line with the original work, fails to find a significant result (ie, the confidence sequence contains zero throughout) in almost all categories, except for Fall Grades for females. Using a sequential approach, one could have thus terminated the experiment earlier (since the confidence sequences are relatively stable), or even could have recruited more female participants in the study to gain greater confidence about the impact of the program on their fall grades. However, this application also highlights that sequential inference comes at a cost, especially for moderate sample sizes as in this dataset. The sequential method fails to obtain significance even for female Fall Grades, which highlights the trade-off between continuous peeking into the data and getting significance at the maximum sample size.

figure[figure omitted — 238 chars of source]

Differentially Expressed Genes in Leukemia Cells from Microarray Analysis in Observational Study

In our second application, we apply anytime-valid inference to obtain differentially expressed genes in leukemia cells from microarray analysis. The causal inference approach of obtaining differentially expressed genes after accounting for potential confounders of age, sex, etc. has been expressed in the work of hellergene, but they did not account for potential unmeasured confounding. Sequential inference is particularly useful here, as gene-profiling is expensive, and hence it is important to reach inference as soon as possible. We use the dataset from chen2022single, which consists of gene profiling of 18 infants suffering from B-cell acute lymphoblastic Leukemia (B-ALL). We consider the B-cells as treatment and T-cells as control, and aim to obtain the difference in expressions for different genes across B and T cells. Since disease cells cannot be randomized, it is important to account for potential unmeasured confounding - a question that has been left open by hellergene. The dataset consists of 20,043 genes, out of which 150 are reported to be significant by chen2022single. We report confidence intervals of the gene-expression difference of these 150 genes after accounting for unmeasured confounding under Assumption (ref) at $\Gamma = 1.5$, to account for small to moderate levels of potential unmeasured confounding. 76 genes turn out to remain significant at least once after using a burn-in of 5 donors or 33,554 cells, thus illustrating that adding a potential for unmeasured confounding reduces the number of significant genes by half. The sequential approach also illustrates how the experiment could have been stopped earlier --- setting a stopping time as the first time a gene is found to be significant, we obtain that the stopping time for different significant genes varies between 6 to 15 donors with a median of 6 donors, and thus collecting data for as many as 18 patients was relatively unnecessary. Figure (ref) illustrates two genes: one which remains significant at $\Gamma = 1.5$, and one that fails to be resilient to the same.

figure[figure omitted — 237 chars of source]

Discussion

In this article, we present a method to implement the double machine learning (DML) framework for estimating structural parameters in a sequential setting. Borrowing the concept of an asymptotic confidence sequence from waudby2021time, we derive the precise conditions sufficient to ensure the sequential validity of DML-based intervals, and hence allowing to stop collecting data when inference is `good-enough'. We also provide a method for producing Neyman-orthogonal functions from an identifying equation. Our conditions for valid asymptotic confidence sequences in DML estimators are natural extensions of those in chernozhukov2018double.

Constructing DML estimators can be challenging, but our method enhances DML by slightly modifying the confidence intervals for stronger validity and flexibility, with minimal additional assumptions. Beyond point identification, we particularly emphasize its utility in partial identification, where more data would not narrow down confidence intervals to zero. Our approach allows researchers to stop data collection when results are `good enough' while maintaining coverage guarantees, making causal inference faster and more cost-effective across various scientific disciplines.

Acknowledgements

Part of this work was developed during A. Dalal's Summer 2023 internship at Amazon Web Services. The authors thank William Bekerman and Anirban Chatterjee for helpful discussions.