EconBase
← Back to paper

Adaptive Principal Component Regression with Applications to Panel Data

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.

69,162 characters · 14 sections · 70 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.

Adaptive Principal Component Regression with Applications to Panel Data

\affil[1]{Columbia University} \affil[2]{Carnegie Mellon University} \affil[ ]{[email removed]} \affil[ ]{\{keeganh,jwhiteho,zhiweiw\}@cs.cmu.edu}

\pagenumbering{gobble}

abstractPrincipal component regression (PCR) is a popular technique for fixed-design error-in-variables regression, a generalization of the linear regression setting in which the observed covariates are corrupted with random noise. We provide the first time-uniform finite sample guarantees for (regularized) PCR whenever data is collected adaptively. Since the proof techniques for analyzing PCR in the fixed design setting do not readily extend to the online setting, our results rely on adapting tools from modern martingale concentration to the error-in-variables setting. We demonstrate the usefulness of our bounds by applying them to the domain of panel data, a ubiquitous setting in econometrics and statistics. As our first application, we provide a framework for experiment design in panel data settings when interventions are assigned adaptively. Our framework may be thought of as a generalization of the synthetic control and synthetic interventions frameworks, where data is collected via an adaptive intervention assignment policy. Our second application is a procedure for learning such an intervention assignment policy in a setting where units arrive sequentially to be treated. In addition to providing theoretical performance guarantees (as measured by \emph{regret}), we show that our method empirically outperforms a baseline which does not leverage error-in-variables regression.

\pagenumbering{arabic}

Introduction

An omnipresent task in machine learning, statistics, and econometrics is that of making predictions about outcomes of interest given an action and conditioned on observable covariates. An often overlooked aspect of the prediction task is that in many settings the learner only has access to imperfect observations of the covariates, due to e.g. measurement error or inherent randomness in the problem domain. Such settings are sometimes formulated as error-in-variables regression: a learner is given access to a collection of data $(Z_n, a_n, Y_n)_{n \geq 1}$, where $Z_n \in \mathbb{R}^d$ are the observed covariates, $a_n \in \{1, \ldots, A\}$ is the action taken, and $Y_n \in \mathbb{R}$ is the outcome for each observation $n$. Typically, the outcomes are assumed to be generated by a linear model $Y_n := \langle \theta(a_n), X_n \rangle + \xi_n$ and $Z_n := X_n + \epsilon_n$, where $X_n \in \mathbb{R}^d$ are the \emph{true covariates}, $\epsilon_n \in \mathbb{R}^d$ is the covariate noise, $\theta(a_n) \in \mathbb{R}^d$ is an \emph{unknown slope vector} associated with action $a_n$, and $\xi_n \in \mathbb{R}$ is the response noise. Note that the learner does not get to see the true covariates $X_n$. Observe that when $\epsilon_n = 0$ we recover the traditional linear regression setting. Such an error-in-variables model can encompass many forms of data corruption including measurement error, missing values, discretization, and differential privacy---see agarwal2020robustness, agarwal2021causal for details. \looseness-1

Our point of departure from previous work is that we allow the sequence of data $(Z_n, a_n, Y_n)_{n \geq 1}$ to be chosen adaptively. In other words, we provide bounds for learning in the error-in-variables regression setting when the data seen at the current round $n$ is allowed to depend on the previously-seen data $(Z_{m}, a_m, Y_m)_{1 \leq m<n}$. Adaptive data collection occurs when the choices of future observations can depend on the inference from previous data, which is common in learning paradigms such as multi-armed bandits lattimore2020bandit, slivkins2019introduction, active learning settles2009active, and time-series analysis shumway2000time, enders2008applied. Similar to prior work on adaptive data collection that shows that valid statistical inference can be done when the true covariates are observed deshpande2018accurate, nie2018adaptively, hadad2021confidence, zhang2021statistical, zhang2022statistical, our work provides the first time-uniform finite sample guarantees for error-in-variables regression using adaptively collected data.\looseness-1

Concretely, we focus on analyzing principal component regression (PCR) jolliffe1982note, a method that has been shown to be effective for learning from noisy covariates agarwal2020robustness, agarwal2020principal and a central tool for learning from panel data agarwal2020synthetic, agarwal2021causal, agarwal2020principal. At a high level, PCR “de-noises” the sequence of observed covariates $(Z_n)_{n \geq 1}$ as $(\widehat{Z}_n)_{n \geq 1}$ by performing hard singular value thresholding, after which a linear model is learned using the observed outcomes $(Y_n)_{n \geq 1}$ and the denoised covariates $(\widehat{Z}_n)_{n \geq 1}$. See (ref) for further technical background on PCR.

Contributions

enumerate• We derive novel time-uniform bounds for an online variant of regularized PCR when the sequence of covariates is chosen adaptively, i.e. the data seen at the current round is allowed to depend on previously-seen data. The techniques used to derive bounds for PCR in the fixed-sample regime agarwal2020principal do not extend to the setting in which data is collected adaptively; thus, we require new tools and ideas to obtain our results. Specifically, our results rely on applying recent advances in martingale concentration howard2020time, howard2021time, as well as more classical results on self-normalized concentration abbasi2011improved, de2004self, de2007pseudo which are commonly applied to online regression problems, to the error-in-variables setting. As an example of the bounds we obtain, consider the task of estimating the underlying relationship $\theta(a)$ between true (i.e. noiseless) covariates and observations, given access to $n$ adaptively-chosen noisy covariates and their corresponding actions and observations. The $\ell_2$ estimation error of the adaptive PCR estimator $\widehat{\theta}_n(a)$ can be bounded as \begin{equation*} \|\widehat{\theta}_n(a) - \theta(a)\|_2^2 =\widetilde{O}\left(\frac{1}{\mathrm{snr}_n(a)^2}\kappa(\mathbf{X}_n(a))^2\right) \end{equation*} with high probability, where $\mathrm{snr}_n(a)$ is the signal-to-noise ratio associated with action $a$ at round $n$ ((ref)), a measure of how well the true covariates stand out from the noise. $\kappa(\mathbf{X}_n(a))$ is the condition number of the true covariates. Intuitively, if $\mathrm{snr}_n(a)$ is high the true covariates can be well-separated from the noise, and therefore PCR accurately estimates $\theta(a)$ as long as the true covariates are well-conditioned.\looseness-1 Despite the harder setting we consider, our PCR bounds for adaptively-collected data largely match the bounds currently known for the fixed-sample regime, and even improve upon them in two important ways: (1) Our bounds are computable, i.e. they depend on known constants and quantities available to the algorithm. (2) Unlike agarwal2020principal, our bounds do not depend on the $\ell_1$-norm of $\theta(a)$, i.e., we do not require approximate sparsity of $\theta(a)$ for the bounds to imply consistency. This is important because PCR is a rotationally-invariant algorithm, and so its performance guarantees should not depend on the orientation of the basis representation of the space to be learned. The price we pay for adaptivity is that $\mathrm{snr}_n (a)$ is defined with respect to a bound on the total amount of noise seen by the algorithm so far, instead of just the noise associated with the rounds that $a$ is taken. As a result, our bound for $\widehat{\theta}_n(a)$ may not be tight if $a$ is seldomly selected. • We apply our PCR results to the problem of online experiment design with panel data. In panel data settings, the learner observes repeated, noisy measurements of \emph{units} (e.g. medical patients, subpopulations, geographic locations) under different \emph{interventions} (e.g. medical treatments, discounts, socioeconomic policies) over \emph{time}. This is an ubiquitous method of data collection, and as a result, learning from panel data has been the subject of significant interest in the econometrics and statistics communities (see (ref)). A popular framework for learning from panel data is \emph{synthetic control} (SC) abadie2003economic, abadie2010synthetic, which uses historical panel data to estimate counterfactual unit measurements under control. Synthetic interventions (SI) agarwal2020synthetic is a recent generalization of the SC framework which allows for counterfactual estimation under treatment, in addition to control. By leveraging online PCR, we can perform counterfactual estimation of unit-specific treatment effects under both treatment and control, as in the SI framework. However, unlike the traditional SI framework, we are the first to establish statistical rates for counterfactual unit outcome estimates under different interventions \emph{while allowing for both units and interventions to be chosen adaptively}. Such adaptivity may naturally occur when treatments are prescribed to new units based on the outcomes of previous units. For example, this is the case when the intervention chosen for each unit is the one which appears to be best based on observations in the past.\looseness-1 As a second application, we also leverage our bounds to obtain provable performance guarantees for an algorithm ((ref)) which learns how to assign interventions to units in order to optimize some objective (e.g., maximizing engagement, minimizing costs). Here adaptive data collection occurs naturally, as the intervention (ref) assigns to the current unit depends on the outcomes of previously-seen units. Using simulations, we show that (ref) compares favorably to methods which do not leverage error-in-variables regression techniques.

Related Work

\paragraph{Error-in-variables regression} There is a rich literature on error-in-variables regression (e.g. griliches1970error, kim1990robust, chesher1991effect, hall2008measurement, wansbeek2001measurement, hausman2001mismeasured, fuller2009measurement), with research focusing on topics such as high-dimensional loh2011high, kaul2015weighted, datta2017cocolasso, rosenbaum2010sparse and Bayesian settings reilly1981bayesian, ungarala2000multiscale, figueroa2022robust. Principal component regression (PCR) jolliffe1982note, bair2006prediction, agarwal2020robustness, agarwal2020principal is a popular method for error-in-variables regression. The results of agarwal2020principal are of particular relevance to us, as they provide finite sample guarantees for the fixed design (i.e. non-adaptive) version of the setting we consider.

\paragraph{Self-normalized concentration} There has been a recent uptick in the application of self-normalized, martingale concentration to online learning problems. In short, self-normalized concentration aims to control the growth of processes that have been normalized by a random, or empirical, measure of accumulated variance de2004self, de2007pseudo, howard2020time, howard2021time, whitehouse2023self. Self-normalized concentration has led to breakthroughs in wide-ranging areas of machine learning such as differential privacy whitehouse2022brownian, whitehouse2022fully, PAC-Bayesian learning chugg2023unified, convex divergence estimation manole2023martingale, and online learning whitehouse2023improved, chowdhury2017kernelized, abbasi2011improved. Of particular importance for our work are the results of abbasi2011improved, which leverage self-normalized concentration results for vector-valued processes de2004self, de2007pseudo to construct confidence ellipsoids for online regression tasks. We take inspiration from these results when constructing our estimation error bounds for PCR in the sequel.

\paragraph{Learning in panel data settings} Our application to panel data builds off of the SI framework agarwal2020synthetic, causal_MC, which itself is a generalization of the canonical SC framework for learning from panel data abadie2003economic, abadie2010synthetic, Hsiao12, imbens16, athey1, LiBell17, xu_2017, rsc, mrsc, Li18, ark, bai2020matrix, asc, chernozhukov2020practical, fernandezval2020lowrank. In both frameworks, a latent factor model is often used to encode structure between units and time-steps chamberlain, liang_zeger, arellano, bai03, bai09, pesaran, moon_15, moon_weidner_2017. Specifically, it is assumed that unit outcomes are the product of unit- and time/intervention-specific latent factors, which capture the heterogeneity across time-steps, units, and interventions, and allows for the estimation of unit-specific counterfactuals under treatment and control. Other extensions of the SI framework include applications in biology squires2022causal, network effects agarwal2022network, combinatorially-many interventions agarwal2023synthetic, and intervening under incentives harris2022strategyproof, ngo2023incentivized.

Finally, there is a growing line of work at the intersection of online learning and panel data. chen2023synthetic views the problem of SC as an instance of online linear regression, which allows them to apply the regret guarantees of the online learning algorithm follow-the-leader kalai2005efficient to show that the predictions of SC are comparable to those of the best-in-hindsight weighted average of control unit outcomes. farias2022synthetically build on the SC framework to estimate treatment effects in adaptive experimental design, while minimizing the regret associated with experimentation. The results of farias2022synthetically are part of a growing line of work on counterfactual estimation and experimental design using multi-armed bandits qin2022adaptivity, simchi2023multi, zhang2022causal, carranza2023flexible.\looseness-1

Setting and Background

\paragraph{Notation} We use boldface symbols to represent matrices. For $N \in \mathbb{N}$, we use the shorthand $[N] := \{1, \ldots, N\}$. Unless specified otherwise, $\|v\|$ denotes the $\ell_2$-norm of a vector $v$, and $\|\mathbf{A}\|_{op}$ the operator norm of matrix $\mathbf{A}$. We use $\mathrm{diag}(a_1, \ldots, a_k)$ to represent a $k \times k$ diagonal matrix with entries $a_1, \ldots, a_k$. For two numbers $a,b \in \mathbb{R}$, we use $a \land b$ as shorthand for $\min\{a,b\}$, and $a \vee b$ to mean $\max\{a,b\}$. Finally, $\mathbb{S}^{d- 1}$ denotes the $d$-dimensional unit sphere.

Problem Setup

We now describe our error-in-variables setting. We consider a learner who interacts with an environment over a sequence of rounds. At the start of each round $n \geq 1$, the environment generates covariates $X_n \in W^\ast \subset \mathbb{R}^d$, where $W^\ast$ is a low-dimensional linear subspace of dimension $\dim(W^\ast) = r < d$. We assume that $r$ (but not $W^\ast$) is known to the learner. Such “low rank” assumptions are reasonable whenever, e.g. data is generated according to a latent factor model, a popular assumption in high-dimensional statistical settings jenatton2012latent, agarwal2009regression, hoff2009multiplicative. As we will see in (ref), analogous assumptions are often also made in panel data settings. The learner then observes noisy covariates $Z_n := X_n + \epsilon_n$, where $\epsilon_n \in \mathbb{R}^d$ is a random noise vector. Given $Z_n$, the learner selects an action $a_n \in [A]$ and observes $Y_n := \langle \theta(a_n), X_n \rangle + \xi_n$, where $\xi_n$ is random noise and $\theta(a)$ for $a \in [A]$ are unknown slope vectors in $W^*$ that parameterize action choices such that $\|\theta(a)\|_2 \leq L$ for some $L \in \mathbb{R}$. We require that the covariate noise is “well-behaved” according to one of the two following assumptions:

assumption[SubGaussian Covariate Noise] For any $n \geq 1$, the noise variable $\epsilon_n$ satisfies (a) $\epsilon_n$ is $\sigma$-subGaussian, (b) $\mathbb{E}\epsilon_n = 0$, and (c) $\|\mathbb{E} \epsilon_n\epsilon_n^\top\|_{op} \leq \gamma$, for some constant $\gamma > 0$.
assumption[Bounded Covariate Noise] For any $n \geq 1$, the noise variable $\epsilon_n$ satisfies (a) $\|\epsilon_n\| \leq \sqrt{Cd}$, (b) $\mathbb{E}\epsilon_n = 0$, and (c) $\mathbb{E} \epsilon_n\epsilon_n^\top = \Sigma$, for some positive-definite matrix $\Sigma$ satisfying $\|\Sigma\|_{op} \leq \gamma$, for some constant $\gamma > 0$.

Note that (ref) is a special case of (ref), which allows us to get stronger results in some settings. We also impose the following constraint on the noise in the outcomes.\looseness-1

assumption[SubGaussian Outcome Noise] For any $n \geq 1$, the noise variable $\xi_n$ satisfies (a) $\mathbb{E}\xi_n = 0$, (b) $\xi_n$ is $\eta$-subGaussian, and (c) $\mathbb{E} \xi_n^2 \leq \alpha$, for some constant $\alpha$.

Under this setting, the goal of the learner is to estimate $\theta(a)$ for $a \in [A]$ given an (possibly adaptively-chosen) observed sequence $(Z_n, a_n, Y_n)_{n \geq 1}$. For $n \geq 1$, we define the matrix $\mathbf{Z}_n \in \mathbb{R}^{n \times d}$ to be the matrix of observed (i.e. noisy) covariates, with $Z_1, \dots, Z_n$ as its rows. Similarly, $\mathbf{X}_n = (X_1, \dots, X_n)^{\top} \in \mathbb{R}^{n \times d}$ is the matrix of noiseless covariates (which are unobserved), and $\mathcal{E}_n = (\epsilon_1, \dots, \epsilon_n)^{\top} \in R^{n \times d}, \mathbf{Y}_n = (Y_1, \ldots, Y_n)^{\top} \in \mathbb{R}^{n \times 1},$ and $\Xi_n = (\xi_1, \dots, \xi_n)^{\top} \in \mathbb{R}^{n \times 1}$ are defined analogously. For any action $a \in [A],$ let $N_n(a) := \{s \leq n : a_s = n \}$ be the set of rounds up to and including round $n$ on which action $a$ was chosen. Likewise, let $c_n(a) := |N_n(a)|$ denote the number of rounds by round $n$ on which action $a$ was chosen. For $a \in [A]$, we enumerate $N_n(a)$ in increasing order as $i_1 \leq \cdots \leq i_{c_n(a)}$. Finally, we define $\mathbf{Z}_n(a) \in \mathbb{R}^{c_n(a) \times d}$ to be $\mathbf{Z}(a) = (Z_{i_1}, \dots, Z_{i_{c_n(a)}})^{\top}$, and define $\mathbf{X}_n(a), \mathcal{E}_n(a), \mathbf{Y}_n(a),$ and $\Xi_n(a)$ analogously.\looseness-1

Principal Component Regression

\paragraph{Background on singular value decomposition} Any matrix $\mathbf{A} \in \mathbb{R}^{n \times d}$ may be written in terms of its singular value decomposition $\mathbf{A} = \mathbf{U} \Sigma \mathbf{V}^{\top}$, where $\mathbf{U} \in \mathbb{R}^{n \times d\land n}$ and $\mathbf{V} \in \mathbb{R}^{d \times d \land n}$ are matrices with orthonormal columns, and $\Sigma = \mathrm{diag}(\sigma_1(\mathbf{A}), \dots, \sigma_{d \land n}(\mathbf{A})) \in \mathbb{R}^{(d \land n) \times (d \land n)}$ is a diagonal matrix containing the singular values of $\mathbf{A}$, where we assume $\sigma_1(\mathbf{A}) \geq \dots \geq \sigma_{d \land n}(\mathbf{A}) \geq 0$. Given a truncation level $k$, we define the truncation of $\mathbf{A}$ onto its top $k$ principal components as $\mathbf{A}_k := \mathbf{U}_{k} \mathrm{diag}(\sigma_1(\mathbf{A}), \dots, \sigma_{k \land d \land n}(\mathbf{A}))\mathbf{V}^{\top}_k$, where $\mathbf{U}_k \in \mathbb{R}^{n \times k \land d \land n}$ is the matrix with the first $k \land d \land n$ columns of $\mathbf{U}$, and $\mathbf{V}_k \in \mathbb{R}^{n \times k \land d \land n}$ is defined analogously. Given such a singular value decomposition, we can define the projection matrix onto the subspace spanned by the top $k$ right singular vectors as $\mathbf{P}_{k} \in \mathbb{R}^{d \times d }$ given by $\mathbf{P}_k := \mathbf{V}_{k}\mathbf{V}_k^{\top}$.

For $n \geq 1$, $a \in [A]$, and $\mathbf{Z}_n(a)$ as defined above, we write the $k$-truncated singular value decomposition of $\mathbf{Z}_n(a)$ as $\mathbf{Z}_{n, k}(a) = \widehat{\mathbf{U}}_{n, k}(a)\mathrm{diag}(\sigma_1(\mathbf{Z}_n(a)), \dots, \sigma_{k \land n \land d}(\mathbf{Z}_n(a)))\widehat{\mathbf{V}}^{\top}_{n, k}(a)$, and the corresponding projection onto the top $k$ right singular vectors of $\mathbf{Z}_n(a)$ as $\widehat{\mathbf{P}}_{n,k}(a)$. When $k = r$, we leverage the simplified notation $\widehat{\mathbf{P}}_n(a) := \widehat{\mathbf{P}}_{n, r}(a)$. (Recall $r = \dim(W^*)$.) By $\mathbf{P}$, we denote the projection matrix onto the true, underlying subspace $W^\ast$. While $\mathbf{P}$ is never known, our results leverage the fact that $\widehat{\mathbf{P}}_n(a)$ converges to $\mathbf{P}$ nicely over time. We define the projected noisy covariate matrix matrix to be $\widehat{\mathbf{Z}}_n(a) := \mathbf{Z}_n(a)\widehat{\mathbf{P}}_n(a)$, and define $\widehat{\mathbf{X}}_n(a), \widehat{\mathcal{E}}_n(a)$ similarly. Any quantity with a “\;$\widecheck{\cdot}$\;” is defined equivalently to quantities with “\;$\widehat{\cdot}$\;”, except with $\mathbf{P}$ in place of $\widehat{\mathbf{P}}_n(a)$. We are now ready to introduce our procedure for estimating $\theta(a)$ for $a \in [A]$, called adaptive (or online) principal component regression.\looseness-1

definition[Adaptive Principal Component Regression] Given regularization parameter $\rho \geq 0$ and truncation level $k \in \mathbb{N}$, for $a \in [A]$ and $n \geq 1$ let $\widehat{\mathbf{Z}}_n(a) := \mathbf{Z}_n(a)\widehat{\mathbf{P}}_{n,k}(a)$ and $\widehat{\mathcal{V}}_n(a) := \widehat{\mathbf{Z}}_n(a)^{\top}\widehat{\mathbf{Z}}_n(a) + \rho \widehat{\mathbf{P}}_{n,k}(a)$. Regularized principal component regression estimates $\theta(a)$ as \begin{equation*} \widehat{\theta}_n(a) := \widehat{\mathcal{V}}_n(a)^{-1}\widehat{\mathbf{Z}}_n(a)\mathbf{Y}_n(a). \end{equation*}

Setting $\rho = 0$ recovers the version of PCR used in agarwal2020principal. In words, (unregularized) PCR “denoises” the observed covariates by projecting them onto the subspace given by their $k$-truncation, before estimating $\theta(a)$ via linear regression using the projected covariates. We choose to regularize since it is known that regularization increases the stability of regression-style algorithms. This added stability from regularization allows us to exploit the online regression bounds of abbasi2011improved to measure the performance of our estimates. Throughout the sequel, we only consider adaptive PCR with truncation level $k=r$.

Signal to Noise Ratio

We now introduce the concept of signal to noise ratio, which will be integral in stating and proving our results. The signal to noise ratio provides a measure of how strongly the true covariates (this is the “signal” of the problem, measured through $\sigma_r(\mathbf{X}_n(a))$) stand out sequentially with respect to the “noise” induced by $\mathcal{E}_n$ (which we will measure through the relevant high probability bounds on $\|\mathcal{E}_n\|_{op}$).\looseness-1

definition[Signal to Noise Ratio] We define the signal to noise ratio associated with an action $a \in [A]$ at round $n$ as \begin{equation*} \mathrm{snr}_n(a) := \frac{\sigma_r(\mathbf{X}_n(a))}{U_n}, \end{equation*} where $(U_n)_{n \geq 1}$ is a noise-dependent sequence growing as $U_n =O\left(\sqrt{n} + \sqrt{d} + \sqrt{\log\left(\frac{1}{\delta}\log(n)\right)}\right)$.

The price we pay for adaptivity is encoded directly into the definition of the signal to noise ratio, $\mathrm{snr}_n(a)$. While one may imagine defining $\mathrm{snr}_n(a)$ as the ratio between $\sigma_r(\mathbf{X}_n(a))$ and $\|\mathcal{E}_n(a)\|_{op}$, bounding $\|\mathcal{E}_n(a)\|_{op}$ is a nontrivial task as the rows of $\mathcal{E}_n(a)$ may be strongly correlated. To circumvent this, we apply the trivial bound $\|\mathcal{E}_n(a)\|_{op} \leq \|\mathcal{E}_n\|_{op}$. Thus, the price of adaptivity in our setting is that the signal from covariates associated with an action $a$ must stand out with respect to the total covariate noise by time $n$. The growth condition on $U_n$ presented in Definition (ref) is motivated as follows: w.h.p $\mathbb{E}\left\|\mathcal{E}_n\right\|_{op} \approx \sqrt{d} + \sqrt{n}$, and the extra additive $\sqrt{\log\left(\frac{1}{\delta}\log(n)\right)}$ factor is the price we pay for having high probability control of $\|\mathcal{E}_n\|_{op}$ uniformly over rounds. Below we provide an exact definition for $U_n$, as this choice leads to bounds with known constants and simple conditions on $\mathrm{snr}_n(a)$ for validity.

We consider the following two sequences $(U_n)_{n \geq 1}$ in defining signal to noise ratio, which both satisfy $\|\mathcal{E}_n\|_{op} \leq U_n, \forall n \geq 1$ with probability at least $1 - \delta$, per Lemma (ref).

equation*[equation* omitted — 357 chars of source]

In the above, $\delta \in (0, 1)$, $\ell_\delta(n) := 2\log\log(2 n) + \log\left(\frac{d\pi^2}{12\delta}\right)$, $\beta = 32\sigma^2 e^2$, and $\mathcal{N} = 17^d$ is an upper bound on the $1/8$-covering number of $\mathbb{S}^{d- 1}$. While the exact forms of the above sequences $(U_n)_{n \geq 1}$ may appear complicated, it is helpful to realize that, under either Assumption (ref) or (ref), we have $U_n = O\left(\sqrt{n} + \sqrt{d} + \sqrt{\log\left(\frac{1}{\delta}\log(n)\right)}\right)$, i.e., the growth condition on $U_n$ presented in Definition (ref) is satisfied.

We can likewise define the empirical signal to noise ratio associated with action $a$ as $\widehat{\mathrm{snr}}_n(a) := \frac{\sigma_r(\mathbf{Z}_n(a))}{U_n}$. Note that unlike the (true) signal to noise ratio $\mathrm{snr}_n(a)$, the empirical version $\widehat{\mathrm{snr}}_n(a)$ is computable by the learner. Thus, it will be integral in stating our empirical-style bounds in the section that follows.

\looseness-1

We conclude this section by comparing our notion of signal to noise ratio to that of agarwal2020principal, who define $\mathrm{snr}_n(a)$ instead as $\frac{\sigma_r(\mathbf{X}_n(a))}{\sqrt{n} + \sqrt{d}}$, i.e. the ratio of the “signal” in the covariates to the expected operator norm of covariate noise $\mathbb{E}\|\mathcal{E}_n\|_{op}$. Since the goal of our work is high-probability (not in-expectation) estimation guarantees for PCR, we believe using high probability bounds on $\|\mathcal{E}_n\|_{op}$ is more natural when defining $\mathrm{snr}_n(a)$.

Adaptive Bounds for Principal Component Regression

We now present the main results of this work---high-probability, time- and action-uniform bounds measuring the convergence of the PCR estimates $\widehat{\theta}_n(a)$ to the true slope vectors $\theta(a)$. Unlike existing results agarwal2019robustness, agarwal2020principal,agarwal2020synthetic, our bounds are valid when the covariates $(X_n)_{n \geq 1}$ and actions $(a_n)_{n \geq 1}$ are determined in an online (potentially adversarial) manner.

We first point out why the analysis of agarwal2020principal, agarwal2020synthetic breaks down in the setting of adaptive (or online) PCR. First, many of the concentration inequalities leveraged in agarwal2020principal do not hold in the adaptive design setting. As a particular example, the authors leverage the Hanson-Wright inequality vershynin2018high, rudelson2013hanson for quadratic forms to study how the noisy covariate matrix $\mathbf{Z}_n$ concentrates around the true matrix $\mathbf{X}_n$. This inequality fails to hold when the design points $(X_n)_{n \geq 1}$ depend on the previous observations. Second, the techniques leveraged by agarwal2020synthetic to extend the convergence guarantees of PCR to the multiple action setting fail to hold when the $n$-th action $a_n$ is selected based on previous observations. Lastly, the bounds presented in agarwal2020principal are are inherently fixed-time in nature---a simple way to convert existing fixed-time bounds to time-uniform ones would be to perform a union bound over time steps, but that introduces looseness in the bounds.

We are able to construct our bounds by exploiting connections between online PCR and self-normalized martingale concentration howard2020time, howard2021time, de2004self, de2007pseudo. In particular, we combine martingale-based results for constructing confidence ellipsoids for online regression abbasi2011improved, de2004self, de2007pseudo with methods for high-dimensional covariance estimation wainwright2019high, tropp2015introduction to prove our results. Exploiting this connection is what allows us to extend the results of agarwal2020principal to the adaptive design, time-uniform setting. We begin with a bound which, up to constants and polylogarthmic factors, captures the rate of convergence of online PCR in terms of (a) the underlying signal to noise ratio and (b) the conditioning of the observed data.

theorem[Rate of Convergence for Online PCR] Let $\delta \in (0, 1)$ be an arbitrary confidence parameter. Let $\rho > 0$ be chosen to be sufficiently small, as detailed in Appendix (ref). Further, assume that there is some $n_0 \geq 1$ such that $\mathrm{rank}(\mathbf{X}_{n_0}(a)) = r$ and $\mathrm{snr}_n(a) \geq 2$ for all $n \geq n_0$. Then, with probability at least $1 - O(A\delta)$, simultaneously for all actions $a \in [A]$ and time steps $n \geq n_0$, we have \[ \|\widehat{\theta}_n(a) - \theta(a)\|_2^2 = \widetilde{O}\left(\frac{1}{\mathrm{snr}_n(a)^2}\kappa(\mathbf{X}_n(a))^2\right), \] where $\kappa(\mathbf{X}_n(a)) := \frac{\sigma_1(\mathbf{X}_n(a))}{\sigma_r(\mathbf{X}_n(a))}$ is the condition number (ignoring zero singular values) of $\mathbf{X}_n(a)$.

Theorem (ref) is proved in Appendix (ref). We begin by comparing our bounds to those of agarwal2020principal, agarwal2020synthetic. At any fixed time, our bounds take on roughly the same form as those of the aforementioned authors, having an inverse quadratic dependence on the signal to noise ratio. To make their bounds non-vacuous, the authors need to make the “soft sparsity” assumption of $\|\theta(a)\|_1 = O(\sqrt{d})$. Our bound, on the other hand, suffers no dependence on the $\ell_1$-norm of the $\theta(a)$'s. This makes intuitive sense, as the specific choice of a basis should not impact the rate of convergence of PCR. However, our bounds pay a price for adaptivity---in particular, the signal to noise ratio associated with an action is defined with respect to a bound on the total operator norm of the matrix $\mathcal{E}_n$. If an action is selected very infrequently, the above bound may become loose.\looseness-1

While the above bound is stated in terms of signal to noise ratio, if we make additional assumptions, we can obtain bounds directly in terms of $d, n,$ and $r$. In particular, the following “well-balancing” assumptions suffice.

assumption[Well-balancing assumptions] For all $n \geq n_0$, the following hold: (a) $\sigma_i(\mathbf{X}_n(a)) = \Theta\left(\sqrt{\frac{c_n(a)d}{r}}\right)$ for all $i \in [r]$, (b) $c_n(a) = \Theta(c_n(a'))$ for all $a, a' \in [A]$, and (c) $A = O(r)$.
corollaryAssume the same setup as Theorem (ref), and further assume Assumption (ref) holds. Then with probability at least $1 - O(A\delta)$, simultaneously for all actions $a \in [A]$ and time steps $n \geq n_0$, we have \[ \|\widehat{\theta}_n(a) - \theta(a)\|_2^2 = \widetilde{O}\left(\frac{r^2}{d \land n}\right). \]

Corollary (ref) shows that Theorem (ref) obtains the same estimation rate as Theorem 4.1 of agarwal2020principal if assumption Assumption (ref) holds. This “well-balancing” assumption says roughly that all non-zero singular values of $\mathbf{X}_n$ are of the same order, each action is selected with the same frequency, and that the number of actions is, at most, proportional to dimension of the true, unknown subspace. As noted by agarwal2020principal, the assumption of a “well-balanced spectrum” (for $\mathbf{X}_n$) is common in many works in econometrics and robust statistics, and additionally holds with high probability if the entries of $\mathbf{X}_n$ are i.i.d.loh2011high, bai2021matrix, fan2018eigenvector. Further, it is often the case that there only few available actions (for instance, in the synthetic control literature there are only two actions abadie2010synthetic, abadie2003economic, farias2022synthetically), justifying the assumption that $A = O(r)$. Lastly, ensuring that each action is played (very roughly) the same number of times can be viewed as a price for adaptivity.

The proof of Theorem (ref) is immediate as a corollary from the following, more complicated bound. Theorem (ref) below measures the convergence of $\widehat{\theta}_n(a)$ to $\theta(a)$ in terms of empirical (i.e. observed) quantities. We imagine this bound to be the most practically relevant of our results, as, unlike the results of agarwal2020principal, it is directly computable by the learner, involves known constants, and places minimal conditions on the signal to noise ratio.

theorem[Empirical Guarantees for Online PCR] Let $\delta \in (0, 1)$ be an arbitrary confidence parameter. Let $\rho > 0$ be chosen to be sufficiently small, as detailed in Appendix (ref). Further, assume that there is some $n_0 \geq 1$ such that $\mathrm{rank}(\mathbf{X}_{n_0}(a)) = r$ and $\mathrm{snr}_n(a) \geq 2$ for all $n \geq n_0$. Then, with probability at least $1 - O(A\delta)$, simultaneously for all actions $a \in [A]$ and time steps $n \geq n_0$, we have \begin{align*} &\left\|\widehat{\theta}_n(a) - \theta(a) \right\|_2^2 \leq \frac{L^2}{\widehat{\mathrm{snr}}_n(a)^2}\left[74 + 216\kappa(\mathbf{Z}_n(a))^2\right] + \frac{2\mathrm{err}_n(a)}{\sigma_r(\mathbf{Z}_n(a))^2}, \end{align*} where $\kappa(\mathbf{Z}_n(a)) := \frac{\sigma_1(\mathbf{Z}_n(a))}{\sigma_r(\mathbf{Z}_n(a))}$, $\|\theta(a)\|_2 \leq L$, and in the above we define the “error” term $\mathrm{err}_n(a)$ to be\looseness-1 \begin{equation*} \begin{aligned} \mathrm{err}_n(a) &:= 32\rho L^2 +64\eta^2 \left(\log\left(\frac{A}{\delta}\right) + r\log\left(1 + \frac{\sigma_1(\mathbf{Z}_n(a))^2}{\rho}\right)\right)\\ &+ 6\eta^2\sqrt{2c_n(a)\ell_\delta(c_n(a))} + 10\eta^2\ell_\delta(c_n(a)) + 6c_n(a)\alpha. \end{aligned} \end{equation*}

We see that the above bound, with the exception of the third term, more or less resembles the bound presented in Theorem (ref), just written in terms of the observed covariates $\mathbf{Z}_n(a)$ instead of the true covariates $\mathbf{X}_n(a)$. We view the third term as a slowly growing “error” term. In particular, all terms in the quantity $\mathrm{err}_n(a)$ are either constant, logarithmic in the singular values of $\mathbf{Z}_n(a)$, or linear in $c_n(a)$, the number of times by round $n$ action $a$ has been selected. This implies that $\mathrm{err}_n(a) = \widetilde{O}(n + d)$, ensuring $\mathrm{err}_n(a)$ is dominated by other terms in the asymptotic analysis. We now provide the proof of Theorem (ref). The key application of self-normalized, martingale concentration comes into play in bounding the quantities that appear in the upper bounds of terms $T_1$ and $T_2$ (to be defined below).

proofObserve the decomposition, for any $n \geq 1$ and $a \in [A]$ \[ \widehat{\theta}_n(a) - \theta(a) = \widehat{\mathbf{P}}_n(a)(\widehat{\theta}_n(a) - \theta(a)) + (\mathbf{P}^{\perp} - \widehat{\mathbf{P}}_n^{\perp}(a))\theta(a), \] where $\mathbf{P}^{\perp}$ is the projection onto the subspace orthogonal to $W^*$ and $\widehat{\mathbf{P}}_n^{\perp}(a)$ is the projection onto the subspace orthogonal to the learned subspace (i.e. that spanned by $\mathbf{Z}_{n,r}(a)$). Since $\widehat{\mathbf{P}}_n(a)(\widehat{\theta}_n(a) - \theta(a))$ and $(\mathbf{P}^{\perp} - \widehat{\mathbf{P}}_n^{\perp}(a))\theta(a)$ are orthogonal vectors, we have \[ \left\|\widehat{\theta}_n(a) - \theta(a)\right\|_2^2 = \left\|\widehat{\mathbf{P}}_n(a)(\widehat{\theta}_n(a) - \theta(a))\right\|^2_2 + \left\|(\widehat{\mathbf{P}}_n^{\perp}(a) - \mathbf{P}^\perp)\theta(a)\right\|_2^2. \] We bound these two terms separately, beginning with the second term. Going forward, fix an action $a \in [A]$. Observe that with probability at least $1 - \delta$, simultaneously for all $n \geq n_0(a)$, \begin{align*} \left\|(\widehat{\mathbf{P}}_n^{\perp}(a) - \mathbf{P}^\perp)\theta(a)\right\|_2^2 & \leq \left\|\widehat{\mathbf{P}}_n^{\perp}(a) - \mathbf{P}^{\perp}\right\|_{op}^2\left\|\theta(a)\right\|_2^2 \\ &\leq L^2 \left\|\widehat{\mathbf{P}}_n^{\perp}(a) - \mathbf{P}^{\perp}\right\|_{op}^2 = L^2 \left\|\widehat{\mathbf{P}}_n(a) - \mathbf{P}\right\|_{op}^2 \\ &\leq \frac{4L^2U_n^2}{\sigma_r(\mathbf{X}_n(a))^2} \leq \frac{6L^2U_n^2}{\sigma_r(\mathbf{Z}_n(a))^2}, \end{align*} where the equality in the above comes from observing $\|\widehat{\mathbf{P}}_n^\perp(a) - \mathbf{P}^\perp\|_{op} = \|\widehat{\mathbf{P}}_n(a) - \mathbf{P}\|_{op}$, the second-to-last last inequality comes from applying Lemma (ref), and the last inequality follows from the second part of Lemma (ref). We now bound the first term. Observe that we can write \begin{equation} \begin{aligned} &\left\|\widehat{\mathbf{P}}_n(a)\left(\widehat{\theta}_n(a) - \theta(a)\right)\right\|_2^2 \leq \frac{1}{\sigma_r(\mathbf{Z}_n(a))^2}\left\|\widehat{\mathbf{Z}}_n(a)\left(\widehat{\theta}_n(a) - \theta(a)\right)\right\|_2^2 \\ &\leq \frac{2}{\sigma_r(\mathbf{Z}_n(a))^2}\left[\underbrace{\left\|\widehat{\mathbf{Z}}_n(a)\widehat{\theta}_n(a) - \mathbf{X}_{n}(a)\theta(a)\right\|_2^2}_{T_1} + \underbrace{\left\|\mathbf{X}_n(a) \theta(a) - \widehat{\mathbf{Z}}_n(a)\theta(a)\right\|_2^2}_{T_2}\right], \end{aligned} \end{equation} where the first inequality follows from the fact that $\widehat{\mathbf{P}}_n(a) \preceq \frac{1}{\sigma_r(\widehat{\mathbf{Z}}_n(a))^2}\widehat{\mathbf{Z}}_n(a)^\top \widehat{\mathbf{Z}}_n(a)$ and $\sigma_r(\mathbf{Z}_n(a)) = \sigma_r(\widehat{\mathbf{Z}}_n(a))$, and the second inequality comes from applying the parallelogram inequality. First we bound $T_1$. We have, with probability at least $1 - O(\delta)$, simultaneously for all $n \geq n_0(a)$ \begin{equation} \begin{aligned} T_1 &\leq 8\left\|\widecheck{\mathcal{V}}_n(a)^{1/2}\left(\widecheck{\theta}_n(a) - \theta(a)\right)\right\|_2^2 + 6 \left\|\Xi_n(a)\right\|_2^2 + 8\left\|\widehat{\mathbf{Z}}_n(a)\theta(a) - \mathbf{X}_n(a)\theta(a)\right\|_2^2 \\ &\leq 32\rho L^2 + 64\eta^2\left(\log\left(\frac{A}{\delta}\right) + r\log\left(1 + \frac{\sigma_1(\mathbf{Z}_n(a))^2}{\rho}\right)\right) + 16L^2U_n^2\\ &+ 6\eta^2\sqrt{2c_n(a)\ell_\delta(c_n(a))} + 10\eta^2\ell_\delta(c_n(a)) + 6c_n(a)\alpha + 8T_2, \end{aligned} \end{equation} where the first inequality follows from Lemma (ref), and the second inequality follows from applying Lemmas (ref) and (ref). $\ell_\delta(n) = 2\log\log(2 n) + \log\left(\frac{d\pi^2}{12\delta}\right)$, as defined in Lemma (ref). We now bound $T_2$. With probability at least $1 - O(\delta)$ simultaneously for all $n \geq n_0$, we have\looseness-1 \begin{equation} \begin{aligned} T_2 &\leq 2L^2\sigma_1(\mathbf{Z}_n(a))^2\left\|\mathbf{P} - \widehat{\mathbf{P}}_n(a)\right\|_{op}^2 + 2L^2\left\|\mathcal{E}_n\right\|_{op}^2 \\ &\leq \frac{8L^2\sigma_1(\mathbf{Z}_n(a))^2U_n^2}{\sigma_r(\mathbf{X}_n(a))^2} + 2L^2U_n^2 \\ &\leq \frac{12L^2\sigma_1(\mathbf{Z}_n(a))^2U_n^2}{\sigma_r(\mathbf{Z}_n(a))^2} + 2L^2U_n^2. \end{aligned} \end{equation} The first inequality follows from (ref), the second inequality follows from applying Lemmas (ref) and (ref), and the final inequality follows from Lemma (ref). Piecing the above inequalities together yields the desired result, which can be checked via the argument at the end of Appendix (ref). A union bound over actions then yields that the desired inequality holds over all actions $a \in [A]$ with probability at least $1 - O(A\delta)$.

Applications to Causal Inference with Panel Data

We now apply our bounds for adaptive PCR to online experiment design in the context of panel data. In this setting, the learner is interested in estimating unit-specific counterfactuals under different interventions, given a sequence of unit outcomes (or measurements) over time. Units can range from medical patients, to subpopulations or geographic locations. Examples of interventions include medical treatments, discounts, and socioeconomic policies.

We consider a panel data setting in which the principal observes units over a sequence of rounds. In round $n$, the learner observes a unit $n$ under control for $T_0 \in \mathbb{N}$ time steps, followed by one of $A$ interventions (including control, which we denote by $0$) for the remaining $T - T_0$ time steps, where $\mathbb{N} \ni T > T_0$. Overloading notation to be consistent with the literature on panel data, we denote the potential outcome of unit $n$ at time $t$ under intervention $a$ by $\pv{Y}{a}_{n,t} \in \mathbb{R}$, the set of unit $n$'s pre-treatment outcomes (under control) by $Y_{n,pre} := [Y_{n,1}^{(0)}, \ldots, Y_{n,T_0}^{(0)}]^{\top} \in \mathbb{R}^{T_0}$, and their post-intervention potential outcomes under intervention $a$ by $\pv{Y}{a}_{n,post} := [Y_{n,T_0+1}^{(a)}, \ldots, Y_{n,T}^{(a)}]^{\top} \in \mathbb{R}^{T-T_0}$. We use $a$ to refer to an arbitrary intervention in $\{0, \ldots, A-1\}$ and $a_n$ to denote the realized intervention unit $n$ actually receives in the post-intervention time period. We posit that potential outcomes are generated by the following latent factor model over units, time steps, and interventions.\looseness-1

assumption[Latent Factor Model] Suppose the outcome for unit $n$ at time step $t$ under treatment $a \in \{0, \ldots, A-1\}$ takes the form \begin{equation*} \pv{Y}{a}_{n,t} = \langle U_t^{(a)}, V_n \rangle + \epsilon_{n,t}^{(a)}, \end{equation*} where $U_t^{(a)} \in \mathbb{R}^r$ is a latent factor which depends only on the time step $t$ and intervention $a$, $V_n \in \mathbb{R}^r$ is a latent factor which only depends on unit $n$, and $\epsilon_{n,t}^{(a)}$ is zero-mean SubGaussian random noise with variance at most $\sigma^2$. We assume, without loss of generality, that $|\langle U_t^{(a)}, V_n \rangle| \leq 1$ for all $n \geq 1$, $t \in [T]$, $a \in \{0, \ldots, A-1\}$.

Note that the learner observes $\pv{Y}{a}_{n,t}$ for only the intervention $a_n$ that unit $n$ is under at time step $t$, and never observes $U_t^{(a)}$, $V_n$, or $\epsilon_{n,t}^{(a)}$. Such “low rank” assumptions are ubiquitous within the panel data literature (see references in (ref)). We assume that $r$ is known to the learner, although principled heuristics exist for estimating $r$ in practice from data (see, e.g. Section 3.2 of agarwal2020synthetic). Additionally, we make the following “causal transportability” assumption on the latent factors.

assumption[Linear span inclusion] For any post-intervention time step $t \in [T_0+1, T]$ and intervention $a \in \{0, \ldots, A-1\}$, we assume that $\pv{U}{a}_t \in \mathrm{span}(\{\pv{U}{0}_{t} : t \in [T_0]\})$.

Intuitively, (ref) allows for information to be inferred about the potential outcomes in the post-intervention time period using pre-treatment observations. A popular goal in the literature is to estimate unit-specific counterfactual outcomes under different interventions. In the sequel, we will show how to do this when the sequence of units and interventions is chosen adaptively. In line with previous work, our target causal parameter is the (counterfactual) average expected post-intervention outcome.

definitionThe average expected post-intervention outcome of unit $n$ under intervention $a$ is\looseness-1 \begin{equation*} \mathbb{E} \pv{\Bar{Y}}{a}_{n,post} := \frac{1}{T-T_0} \sum_{t=T_0+1}^T \mathbb{E} \pv{Y}{a}_{n,t}, \end{equation*} where the expectation is taken with respect to $(\epsilon_{n,t}^{(a)})_{T_0 < t\leq T}$.

While we consider the average post-intervention outcome, our results may be readily extended to settings in which the target causal parameter is any linear combination of post-intervention outcomes.

The remainder of this section proceeds as follows: In (ref), we provide finite sample guarantees for the synthetic interventions estimator agarwal2020synthetic, a generalization of the popular synthetic control method for estimating counterfactuals from panel data abadie2003economic, abadie2010synthetic, when interventions are assigned adaptively. In (ref), we provide a method for learning an intervention assignment policy (i.e., a mapping from pre-treatment outcomes to interventions) with provably good performance, as measured by regret.

Adaptive Synthetic Control

Synthetic control (SC) is a popular framework used to estimate counterfactual unit outcomes in panel data settings, had they not been treated (i.e. remained under control) abadie2003economic, abadie2010synthetic. In SC, there is a notion of a pre-intervention time period in which all units are under control, followed by a post-intervention time period, in which every unit undergoes one of several interventions (including control). At a high level, SC fits a model of a unit's pre-treatment outcomes using pre-treatment data from units who remained under control in the post-intervention time period. It then constructs a “synthetic control” by using the learned model to predict the unit's post-intervention outcomes, had they remained under control. Synthetic interventions (SI) is a recent generalization of the SC framework, which allows for counterfactual estimation of unit outcomes under different interventions, in addition to control agarwal2020synthetic. Using our bounds from (ref), we show how to generalize the SI framework of agarwal2020synthetic to settings where interventions are assigned via an adaptive intervention assignment policy.

As a motivating example, consider an online e-commerce platform (learner) which assigns discounts (interventions) to users (units) with the goal of maximizing total user engagement on the platform. For concreteness, suppose that the e-commerce platform assigns discounts greedily with respect to the discount level which appears to be best at the current round (i.e. maximizes total engagement for the current user), given the sequence of previously observed (user, discount level, engagement level) tuples. Under such a setting, the intervention assigned at the current round $n$ will be correlated with the observed engagement levels at previous rounds, thus breaking the requirement of the SI framework agarwal2020synthetic that the intervention assignment is not adaptive to previously observed outcomes. Formally, we provide performance guarantees for the following procedure, which may be thought of as a regularized version of the synthetic interventions estimator of agarwal2020synthetic:

definition[(Regularized) Synthetic Interventions] Given a test unit $n$ set of donor units $\mathcal{I}(a)$ who have received intervention $a$ in the post-treatment time period (where $c_n(a) = |\mathcal{I}(a)|$), \begin{enumerate} • Learn a linear relationship between the test unit and the donor units using PCR. Specifically, let $\mathbf{Z}_n(a) = [Y_{i, pre}^{\top}]_{i \in \mathcal{I}(a)} \in \mathbb{R}^{T_0 \times c_n(a)}$, $\mathbf{Y}_n(a) = Y_{n,pre} \in \mathbb{R}^{T_0}$, and compute \begin{equation*} \widehat{\theta}_n(a) := \widehat{\mathcal{V}}_n(a)^{-1}\widehat{\mathbf{Z}}_n(a)\mathbf{Y}_n(a), \end{equation*} where $\widehat{\mathcal{V}}_n(a)$, $\widehat{\mathbf{Z}}_n(a)$ are defined as in (ref). • Estimate $\mathbb{E} \Bar{Y}_{n, post}^{(a)}$ by $$\wh \mathbb{E} \Bar{Y}_{n, post}^{(a)} = \frac{1}{T - T_0} \sum_{t=T_0 + 1}^T \langle \wh \theta_n(a), Y_{\mathcal{I}(a),t}^{(a)} \rangle,$$ where $Y_{\mathcal{I}(a),t}^{(a)} = [Y_{i,t}^{(a)}]^{\top}_{i \in \mathcal{I}(a)} \in \mathbb{R}^{c_n(a)}$. \end{enumerate}
theorem[Prediction error; regularized synthetic interventions] Let $\delta \in (0, 1)$ be an arbitrary confidence parameter and $\rho > 0$ be chosen to be sufficiently small, as detailed in Appendix (ref). Further, assume that Assumptions (ref) and (ref) are satisfied, there is some $n_0 \leq n$ such that $\mathrm{rank}(\mathbf{X}_{n_0}(a)) = r$. Under (ref) with probability at least $1 - O(A\delta)$, simultaneously for all interventions $a \in \{0, \ldots, A-1\}$ \begin{equation*} |\widehat{\mathbb{E}} \pv{\Bar{Y}}{a}_{n,post} - \mathbb{E} \pv{\Bar{Y}}{a}_{n,post}| = \Tilde{O} \left( \frac{r^2 \sqrt{n}}{n \wedge T_0} + \frac{r^2}{\sqrt{n \wedge T_0}} + \frac{r}{\sqrt{(T - T_0) (n \wedge T_0)}} \right) \end{equation*} where $\widehat{\mathbb{E}}\pv{\Bar{Y}}{a}_{n,post}$ is the estimated average post-intervention outcome for unit $n$ under intervention $a$ given by the regularized synthetic interventions estimator ((ref)).

A more complicated expression which does not require (ref) may be found in (ref). Observe that $|\widehat{\mathbb{E}} \pv{\Bar{Y}}{a}_{n,post} - \mathbb{E} \pv{\Bar{Y}}{a}_{n,post}| \rightarrow 0$ with high probability as $T_0, n \rightarrow \infty$.

proof[Proof Sketch] Our proof proceeds by breaking the prediction error into three terms, in a manner which is similar to agarwal2020principal. Specifically, we have two terms which depend on the noise in the post-intervention outcomes, and one term which depends on the error in learning the relationship between the test and donor units using the pre-treatment data. While the two “noise” terms may be bound using straightforward applications of (ref) and the Azuma-Hoeffding inequality, bounding the third term requires a non-trivial calculation where we leverage lemmas (ref),(ref), (ref) and a line of reasoning similar to equations ((ref)), ((ref)), ((ref)) in the proof of (ref).

Learning How to Treat

In this section, we show how to leverage our bounds for adaptive PCR in order to design new algorithms for decision-making in panel data settings.\footnote{While we focus on panel data, our results in this section are also applicable to the (more general) setting in which a learner is faced with a contextual bandit problem with noise/measurement error in the contexts.} Here we study a setting in which $N$ units arrive sequentially. In each round $n \in [N]$, we (1) observe unit $n$'s pre-treatment outcomes $Y_{n,pre}$, (2) assign an intervention $a_n \in \{0, 1, \ldots, A-1\}$, and (3) observe post-intervention outcomes $Y_{n,post}^{(a_n)}$. We assume that the decision-maker's objective in this setting is to maximize the average post-intervention outcome for each unit (i.e., assign the intervention $a_n^* = \arg\max_{a \in [A]} \mathbb{E} \Bar{Y}_{n,post}^{(a)}$ to unit $n$), although our results readily extend to the setting in which the decision-maker wants to optimize any linear function of the post-treatment outcomes.

Our goal in this setting is to learn a good intervention assignment policy (i.e. mapping from pre-treatment outcomes to interventions), as measured by regret.

definition[Regret] The regret of the decision-maker is the cumulative difference in average expected post-intervention outcomes between the sequence of assigned interventions $a_1, \ldots, a_n$ and the sequence of optimal interventions $a_1^*, \ldots, a_n^*$, where $a_n^* = \arg\max_{a \in [A]} \mathbb{E} \Bar{Y}_{n,post}^{(a)}$. Formally, we say that the decision-maker has regret $R(N, T)$, where \begin{equation*} R(N,T) := \sum_{n=1}^N \mathbb{E} \Bar{Y}_{n,post}^{(a_n^*)} - \mathbb{E} \Bar{Y}_{n,post}^{(a_n)}. \end{equation*}

Next we show that under (ref) and (ref), $\mathbb{E} \pv{\Bar{Y}}{a}_{n,post}$ may be written as a linear combination of unit $n$'s pre-intervention outcomes. In addition to being useful for learning a good intervention assignment policy, this reformulation will allow us to make connections to the literature on contextual bandits. We note that similar observations have previously been made in the panel data literature (e.g. harris2022strategic), but we include the following lemma for completeness' sake.

lemma[Reformulation of average expected post-intervention outcome] Under (ref) and (ref), there exists slope vector $\theta(a) \in \mathbb{R}^{T_0}$, such that the average expected post-intervention outcome of unit $n$ under intervention $a$ is expressible as \begin{equation*} \mathbb{E} \pv{\Bar{Y}}{a}_{n,post} = \frac{1}{T-T_0} \langle \theta(a), \mathbb{E} Y_{n,pre} \rangle. \end{equation*}

$\theta(a)$ may be interpreted as a unit-independent measure of the causal relationship between pre- and post-intervention outcomes. For the reader familiar with the literature on contextual bandits, our setting may be thought of as a generalization of the linear contextual bandit setting (see, e.g. slivkins2019introduction, lattimore2020bandit) where there is additional noise in the context. Here $\mathbb{E} Y_{n,pre}$ is the (unobserved) context associated with unit $n$, $Y_{n,pre}$ is the (observed) “noisy” context associated with unit $n$, $a_n$ is the decision-maker's action, and $\Bar{Y}_{n,post}^{(a_n)}$ is the observed reward.

Our approach ((ref)) takes a number $N_0 > 0$ as input and proceeds by using the first $A \cdot N_0$ units for “exploration” by assigning each intervention $N_0$ times, before estimating $\theta(a)$ in (ref) as $\widehat{\theta}(a)$ using regularized PCR. For $n \in [A \cdot N_0 + 1, \ldots, N]$, (ref) then assigns intervention $a_n = \arg\max_{a \in [A]} \langle \widehat{\theta}(a), Y_{n,pre} \rangle$ to unit $n$ after observing pre-treatment outcomes $Y_{n,pre}$. Observe that this is one example of an intervention assignment policy which results in adaptively-collected data.

Our results for estimating $\theta(a)$ are of independent interest, so we state them separately from the analysis of (ref). We refer to our estimation procedure as “horizontal regression” since it regresses over time-steps (in contrast to “vertical regression” methods like those in (ref), which regress over units). Using a horizontal regression approach to learn how to treat has the benefit that $\wh \theta(a)$ only needs to be computed once (after the first $A \cdot N_0$ units), while an approach based on vertical regression would need to compute a separate $\wh \theta_n(a)$ for each unit $n > A \cdot N_0$.

definition[(Regularized) Horizontal Regression] Given a test unit $n$ set of donor units $\mathcal{I}(a)$ who have received intervention $a$ in the post-treatment time period (where $c_n(a) = |\mathcal{I}(a)|$), \begin{enumerate} • Learn a linear relationship between the pre- and post-intervention outcomes using PCR. Specifically, let $\mathbf{Z}_n(a) = [Y_{i,pre}]_{i \in \mathcal{I}(a)} \in \mathbb{R}^{c_n(a) \times T_0}$ and $\mathbf{Y}_n(a) = \left[\sum_{t=T_0 + 1}^{T} \pv{Y}{a}_{i,t} \right]_{i \in \mathcal{I}(a)}^{\top} \in \mathbb{R}^{c_n(a)}$. Estimate $\theta(a) \in \mathbb{R}^{T_0}$ as \begin{equation*} \widehat{\theta}(a) := \widehat{\mathcal{V}}_n(a)^{-1}\widehat{\mathbf{Z}}_n(a)\mathbf{Y}_n(a), \end{equation*} where $\widehat{\mathcal{V}}_n(a)$, $\widehat{\mathbf{Z}}_n(a)$ are defined as in (ref). • Estimate $\mathbb{E} \Bar{Y}_{n, post}^{(a)}$ by $$\widehat{\mathbb{E}}\pv{\Bar{Y}}{a}_{n,post} := \frac{1}{T - T_0} \cdot \langle \widehat{\theta}(a), Y_{n,pre} \rangle.$$ \end{enumerate}
theorem[Prediction error; horizontal regression] Let $\delta \in (0, 1)$ be an arbitrary confidence parameter and $\rho > 0$ be chosen to be sufficiently small, as detailed in Appendix (ref). Further, assume that Assumptions (ref) and (ref) are satisfied, there is some $n_0 \geq 1$ such that $\mathrm{rank}(\mathbf{X}_{n_0}) = r$, and $\mathrm{snr}_n(a) \geq 2$ for all $n \geq n_0$. Then with probability at least $1 - O(A\delta)$, simultaneously for all interventions $a \in \{0, \ldots, A-1\}$ \begin{equation*} |\widehat{\mathbb{E}} \pv{\Bar{Y}}{a}_{n,post} - \mathbb{E} \pv{\Bar{Y}}{a}_{n,post}| = \Tilde{O} \left( \frac{r^2}{\sqrt{T_0 \wedge n}} + \frac{r^2 \sqrt{T_0}}{\sqrt{T - T_0} (T_0 \wedge n)} \right) \end{equation*} where $\widehat{\mathbb{E}}\pv{\Bar{Y}}{a}_{n,post}$ is the estimated average post-intervention outcome for unit $n$ under intervention $a$ given by the horizontal regression estimator of (ref).

The proof of (ref) proceeds similarly to the proof of (ref). While we still decompose the prediction error into three terms, when compared to (ref) these terms are “transposed”, roughly meaning that the roles of units and time-steps are reversed. This is to be expected, as for every intervention $a \in \{0, \ldots, A-1\}$, the synthetic interventions method of (ref) regresses over the $c_n(a)$ units and has $T_0$ data points, whereas the horizontal regression method of (ref) regresses over the $T_0$ time-steps and has $c_n(a)$ data points. Regret guarantees for (ref) follow readily from (ref).

algorithm[algorithm omitted — 545 chars of source]
corollarySuppose that $A = O(r)$, $\mathrm{rank}(\mathbf{X}_{A \cdot N_0}(a)) = r$, $\mathrm{snr}_{A \cdot N_0}(a) \geq 2$, and $\sigma_i(\mathbf{X}_{A \cdot N_0}(a)) = \Theta\left(\sqrt{\frac{N_0 T_0}{r}}\right)$ for all $i \in [r]$. Then, with probability at least $1 - O(A\delta)$, the regret of (ref) is bounded as \begin{equation*} \frac{R(N,T)}{N} = \widetilde{O} \left( \frac{N_0}{N} + \frac{r^3}{\sqrt{T_0 \wedge N_0}} + \frac{r^3\sqrt{T_0}}{\sqrt{T-T_0}(T_0 \wedge N_0)} \right). \end{equation*}
proof\begin{equation*} \begin{aligned} \frac{R(N,T)}{N} &\leq \frac{1}{N} \left( N_0 + \sum_{n=N_0 + 1}^N \mathbb{E} Y_{n,post}^{(a_n^*)} - \widehat{\mathbb{E}} Y_{n,post}^{(a_n^*)} + \widehat{\mathbb{E}} Y_{n,post}^{(a_n)} - \mathbb{E} Y_{n,post}^{(a_n)} + \widehat{\mathbb{E}} Y_{n,post}^{(a_n^*)} - \widehat{\mathbb{E}} Y_{n,post}^{(a_n)} \right)\\ &\leq \frac{1}{N} \left( N_0 + \sum_{n=N_0 + 1}^N \sum_{a=1}^A |\mathbb{E} Y_{n,post}^{(a)} - \widehat{\mathbb{E}} Y_{n,post}^{(a)}| \right). \end{aligned} \end{equation*} Note that since each intervention is assigned $N_0$ times, all conditions for (ref) are satisfied. Applying the results of (ref) and substituting in for $N_0$ yields the desired result.\looseness-1

For intuition, suppose that $T_0 = \Theta(T)$ and we pick $N_0 = \Theta \left( r^2 N^{2/3} \right)$. In this case, the regret bound simplifies to

equation*[equation* omitted — 125 chars of source]

Observe that with high probability, $\frac{R(N,T)}{N} \rightarrow 0$ as $N,T \rightarrow \infty$.

Simulations

figure[figure omitted — 1,080 chars of source]

We empirically evaluate the performance of (ref) on simulated data.\footnote{It is challenging to evaluate the performance of contextual bandit algorithms on real data due to the fact that the decision-maker observes only bandit feedback. In our case, the decision-maker observes $Y_{n,post}^{(a_n)}$, but not $Y_{n,post}^{(a)}$ for $a \neq a_n$. While one could impute a real-world dataset, this would still introduce a synthetic component.} We consider a setting with three interventions, $r = 3$, $T = 20$, $T_0 = 10$, and $N = 600$. We generate the latent factors in a way which ensures that each intervention is optimal roughly $1/3$ of the time. Specifically, we consider three unit “types” $V(0) = [1, 0.1, 0.1]$, $V(1) = [0.1, 1, 0.1]$, and $V(2) = [0.1, 0.1, 1]$, and three time vectors $U(0) = [1, 0.1, 0.1]$, $U(1) = [0.1, 1, 0.1]$, and $U(2) = [0.1, 0.1, 1]$. For $t \in [T_0]$, the corresponding latent factor is chosen uniformly-at random-from $\{U(0), U(1), U(2)\}$. For $t \in \{T_0 + 1, \ldots, T\}$, the latent factor associated with intervention $a$ is $U_t^{(a)} = U(a)$. For every $n \in [N]$, $V_n$ is chosen uniformly-at-random from $\{V(0), V(1), V(2)\}$. Finally, the (potential) outcome for unit $n$ at time-step $t$ under intervention $a$ is generated by adding Gaussian noise with standard deviation $\sigma > 0$ to $\langle U_{t}^{(a)}, V_n \rangle$. The latent factors are designed in such a way that intervention $a$ is the optimal intervention to assign to a unit with latent factor $V(a)$.

\paragraph{Experiment $1$: Changing $N_0$.} In this experiment, we fix $\sigma = 0.5$ and study the effects of varying the number of explore units $N_0$ on (ref) and an ablation which uses linear regression instead of PCR. Our results are summarized in (ref). As $N_0$ decreases, we see that the performance of the ablation becomes worse relative to the performance of (ref). This is because for smaller $N_0$, the noise in the unit outcomes does not concentrate and so methods which do not explicitly de-noise perform poorly.

\paragraph{Experiment $2$: Changing $\sigma$.}

figure[figure omitted — 1,117 chars of source]

Next we fix $N_0 = 40$ and study the effects of varying the noise standard deviation $\sigma$ on both algorithms. We find that as $\sigma$ increases, the performance of both algorithms decreases, although the decrease in the ablation is more than that of (ref). Intuitively this is because the need for an explicit de-noising step grows as the magnitude of the noise increases.

Conclusion

We obtain the first adaptive bounds for principal component regression and apply them to two problems in the panel data setting. The first is that of online experiment design using panel data, where we allow for interventions to be assigned according to an adaptive policy. The second is the problem of learning how to assign interventions to units in order to maximize some function of the post-treatment outcomes. Here we design an algorithm which achieves no-regret with respect to the optimal intervention assignment policy and empirically evaluate the performance of our algorithm on synthetic data. Exciting directions for future work include applications of our results to domains such as differential privacy, and using our bounds to obtain algorithms with better regret guarantees (e.g. based on LinUCB abbasi2011improved) for the linear contextual bandit problem with noisy contexts.

Acknowledgements

KH is supported in part by an NDSEG Fellowship. KH, JW, and ZSW are supported in part by NSF FAI Award \#1939606. The authors would like to thank anonymous reviewers for valuable feedback.