Statistical Inference of the Value Function for Reinforcement Learning in Infinite Horizon Settings

C. Shi, S. Zhang, W. Lu, R. Song

Introduction

Reinforcement learning (RL) is a general technique that allows an agent to learn and interact with an environment. A policy defines the agent’s way of behaving. It maps the states of environments to a set of actions to be chosen from. RL algorithms have made tremendous achievements and found extensive applications in video games (Silver et al. 2016), robotics (Kormushev et al. 2013), bidding (Jin et al. 2018), ridesharing (Xu et al. 2018), etc. In particular, a number of RL methods have been proposed in precision medicine, to derive an optimal policy as a set of sequential treatment decision rules that optimize patients’ clinical outcomes over a fixed period of time (finite horizon). References include Murphy 2003; Zhang et al. 2013; Zhao et al. 2015; Shi et al. 2018a; Shi et al. 2018b; Zhang et al. 2018, to name a few.

Mobile health (or mHealth) technology has recently emerged due to the use of mobile devices such as mobile phones, tablet computers or wearable devices in health care. It allows health-care providers to communicate with patients and manage their illness in real time. It also collects rich longitudinal data (e.g., through mobile health apps) that can be used to estimate the optimal policy. Data from mHealth applications differ from those in finite horizon settings in that the number of treatment decision points for each patient is not necessarily fixed (infinite horizon) while the total number of patients could be limited. Take the OhioT1DM dataset (Marling and Bunescu 2018) as an example. It contains data for six patients with type 1 diabetes. For all patients, their continuous glucose monitoring (CGM) blood glucose levels, insulin doses including bolus and basal rates, self-reported times of meals and exercises are continually measured and recorded for eight weeks. Developing an optimal policy as functions of these time-varying covariates could potentially assist these patients in improving their health status.

In this paper, we focus on the infinite horizon setting where the data generating process is modeled by a Markov decision process (Puterman 1994, MDP,). Specifically, at each time point, the agent selects an action based on the observed state. The system responds by giving the decision maker a corresponding outcome and moving into a new state in the next time step. This model is generally applicable to sequential decision making, including applications from mHealth, games, robotics, ridesharing, etc. After a policy is being proposed, it is important to examine its benefit prior to recommending it for practical use. The goodness of a policy is quantified by its (state) value function, corresponding to the discounted cumulative reward that the agent receives on average, starting from some initial state. The inference of the value function helps a decision maker to evaluate the impact of implementing a policy when the environment is in a certain state. In some applications, it is also important to evaluate the integrated value of a policy aggregated over different initial states. For example, in medical studies, one might wish to know the mean outcome of patients in the population. The integrated value could thus be used as a criterion for comparing different policies.

In statistics literature, a few methods have been proposed to estimate the optimal policy in infinite horizons. Ertefaie and Strawderman 2018 proposed a variant of gradient Q-learning method. Luckett et al. 2019 proposed a V-learning to directly search the optimal policy among a restricted class of policies. Inference of the value function under a generic (data-dependent) policy has not been studied in these papers. In the computer science literature, Thomas et al. 2015 and Jiang and Li 2016 proposed (augmented) inverse propensity-score weighted ((A)IPW) estimators for the the value function in infinite horizons and derived their associated CIs. However, these methods are not suitable for settings where only a limited number of trajectories (e.g., plays of a game or patients in medical studies) are available, since (A)IPW estimators become increasingly unstable as the number of decision points diverges to infinity. Recently, Kallus and Uehara 2019 proposed a double reinforcement learning (DRL) method that achieves consistent estimation of the value under a fixed policy even with limited number of trajectories. Their method computes a Q-function and a marginalized density ratio. Learning the density ratio is challenging in general and it remains difficult to investigate the goodness-of-fit of the estimated density ratio in practice.

The focus of this paper is to construct confidence intervals (CIs) for a (possibly data-dependent) policy’s value function at a given state as well as its integrated value with respect to a given reference distribution. Our proposed CI is derived by estimating the state-action value function (Q-function) under the target policy. Similar to the value, the Q-function measures the discounted cumulative reward that the agent receives on average, starting from some initial state-action pair. We use series/sieve method to approximate the Q-function based on LL basis functions, where LL grows with the total number of observations. The advances of our proposed method are summarized as follows. First, the proposed inference method is generally applicable. Specifically, it can be applied to any fixed policy (either deterministic or random) and any data-dependent policy whose value converges at a certain rate. The latter includes policies estimated by general Q-learning type algorithms that learns an optimal Q-function from the observed data, such as gradient Q-learning (Maei et al. 2010; Ertefaie and Strawderman 2018), fitted Q-iteration (Ernst et al. 2005; Riedmiller 2005, see for example,), etc. See Section 3.2.4 for detailed illustrations.

Second, when applied to data-dependent policies, our method is valid in nonregular cases where the optimal policy is not uniquely defined. Inference without requiring the uniqueness of the optimal policy is extremely challenging even in the simpler finite-horizon settings (Luedtke and van der Laan 2016, see the related discussions in). The major challenge lies in that the estimated policy may not stabilize as sample size grows, making the variance of the value estimator difficult to estimate (see Section 3.2.1 for details). We achieve valid inference by proposing a SequentiAl Value Evaluation (SAVE) method that splits the data into several blocks and recursively update the estimated policy and its value estimator. It is worth mentioning that the data-splitting rule cannot be arbitrarily determined since the observations are time dependent in infinite horizon settings (see Section 3.2.2 for details).

Third, our CI is valid as long as either the number of trajectories nn in the data, or the number of decision points TT per trajectory diverges to infinity. It can thus be applied to a wide variety of real applications in infinite horizons ranging from the Framingham heart study (Tsao and Vasan 2015) with over two thousand patients to the OhioT1DM dataset that contains eight weeks’ worth of data for six people. We also allow both nn and TT to approach infinity, which is the case in applications from video games. In contrast, CIs proposed by Thomas et al. 2015 and Jiang and Li 2016 require nn to grow to infinity to achieve nominal coverage.

Lastly, we consider both off-policy and on-policy learning methods. In off-policy settings, CIs are derived based on historical data collected by a potentially different behavior policy. Off-policy evaluation is critical in situations where running the target policy could be expensive, risky or unethical. In on-policy settings, the estimated policy is recursively updated as batches of new observations arrive. To our knowledge, this is the first work on statistical inference of a data-dependent policy in on-policy settings in sequential decision making with infinite horizons.

To study the asymptotic properties of our proposed CI, we focus on tensor-product spline and wavelet series estimators. Our technical contributions are described as follows. First, we introduce a bidirectional-asymptotic framework that allows either nn or TT to approach infinity. Our major technical contribution is to derive a nonasymptotic error bound for the spectral norm of sums of mean zero random matrices formed by the data transactions from MDP as a function of nn, TT and LL (see e.g., Lemma 3). This result is important in studying the limiting distribution of series estimators under such a theoretical framework.

Second, for policies that are estimated by Q-learning type algorithms such as the greedy gradient Q-learning, fitted Q-iteration and deep Q-network (Mnih et al. 2015), we relate the convergence rate of their values to the prediction error of the corresponding estimated Q-functions. We show in Theorems 3 and 4 that the values can converge at faster rates than the estimated Q-functions under certain margin type conditions on the optimal Q-function. To the best of our knowledge, these findings have not been discovered in the reinforcement-learning literature. Our theorems form a basis for researchers to study the value properties of Q-learning type algorithms. Moreover, our theoretical results are consistent with findings in point treatment studies where there is only one single decision point (Qian and Murphy 2011; Luedtke and van der Laan 2016, see e.g.,). However, the derivation of Theorems 3 and 4 is more involved since the value function in our settings is an infinite series involving both immediate and future rewards.

Third, when these basis functions are used, we mathematically characterize the approximation error of the Q-function as a function of LL, the dimension of the state variables, and the smoothness of the Markov transition function and the conditional mean of the immediate reward as a function of the state-action pair. This offers some guidance to practitioners on the choice of the number of basis functions LL, when some prior knowledge on the degree of smoothness of the aforementioned functions are available.

The rest of the paper is organized as follows. We introduce the model setup in Section 2. In Sections 3 and 4, we present the proposed off-policy and on-policy evaluation methods, respectively. Simulation studies are conducted to evaluate the empirical performance of the proposed inference methods in Section 5. We apply the proposed inference method to the OhioT1DM dataset in Section 6, Finally, we conclude our paper by a discussion section.

Optimal policy in infinite-horizon settings

for some transition function P\mathcal{P}. Here, P\mathcal{P} defines the next state distribution conditional on the current state-action pair. Moreover, suppose the following conditional mean independence assumption (CMIA) holds

for some reward function rr. By MA, CMIA automatically holds when Y0,tY_{0,t} is a deterministic function of X0,t,A0,tX_{0,t},A_{0,t} and X0,t+1X_{0,t+1} that measures the system’s status at time t+1t+1. The latter is satisfied in our real data application (see Section 6 for details) and is commonly assumed in the reinforcement learning literature. CMIA is thus weaker than this condition. MA and CMIA are important to guarantee the existence of an optimal policy (see (2.1)) and derive the bidirectional-asymptotic theory of the proposed CI (see the discussions below Theorem 1). We assume both assumptions hold throughout this paper.

Similar to Theorem 6.2.12 of Puterman 1994, we can show under the given conditions that there exists at least one optimal policy πopt\pi^{\tiny{opt}} that satisfies

To better understand πopt\pi^{\tiny{opt}}, we introduce the state-action function (Q-function) under a policy π\pi as

Let QoptQ^{\tiny{opt}} denote the optimal Q-function, i.e, Qopt(⋅,⋅)=sup⁡πQ(π;⋅,⋅)Q^{\tiny{opt}}(\cdot,\cdot)=\sup_{\pi}Q(\pi;\cdot,\cdot). It can be shown that πopt\pi^{\tiny{opt}} satisfies

where \sargmax\sargmax denotes the smallest maximizer when the argmax is not unique. Such a deterministic optimal policy may be appealing in medical studies. For example, in optimal dose studies, it is preferred to assign each patient the smallest optimal dose level to avoid toxicity.

Off-policy evaluation

Let nn denote the number of trajectories in the dataset. For the ii-th trajectory, let {Ai,t}t≥0\{A_{i,t}\}_{t\geq 0}, {Xi,t}t≥0\{X_{i,t}\}_{t\geq 0} and {Yi,t}t≥0\{Y_{i,t}\}_{t\geq 0} denote the sequence of actions, states and rewards, respectively. It is worth mentioning that the time points are not necessarily homogeneous across different trajectories. Suppose the data are generated according to a fixed policy b(⋅∣⋅)b(\cdot|\cdot), better known as the behavior policy such that

are i.i.d copies of {(X0,t,A0,t,Y0,t)}t≥0\{(X_{0,t},A_{0,t},Y_{0,t})\}_{t\geq 0}. The observed data can thus be summarized as {(Xi,t,Ai,t,Yi,t,Xi,t+1)}0≤t<Ti,1≤i≤n\{(X_{i,t},A_{i,t},Y_{i,t},X_{i,t+1})\}_{0\leq t<T_{i},1\leq i\leq n}, where TiT_{i} is the termination time of the ii-th trajectory. The goal of off-policy evaluation is to learn the value under a target policy π(⋅∣⋅)\pi(\cdot|\cdot), possibly different from b(⋅∣⋅)b(\cdot|\cdot).

Luckett et al. 2019 showed that the value function satisfies

Based on (3.5), they directly modelled the value function, constructed an estimator for the integrated value under their estimated optimal policy and proved that it is asymptotically normal (Luckett et al. 2019, see Theorem 4.3,).

Following their procedure, for a fixed policy π\pi, one might estimate V(π;⋅)V(\pi;\cdot) nonparametrically and construct the CI using the resulting estimate. However, such an approach might not be appropriate for polices that are discontinuous functions of the covariates. To better illustrate this, notice that V(π,⋅)V(\pi,\cdot) satisfies the following Bellman equation

When P\mathcal{P} satisfies certain smoothness conditions (see Condition A1 below), we have

for any π\pi. Suppose r(⋅,a)r(\cdot,a) is continuous for any a∈Aa\in\mathcal{A}. Then C(π;x,a)C(\pi;x,a) is continuous in xx for any π\pi and aa. When π\pi is a non-continuous function of xx, it follows from (3.6) that V(π;⋅)V(\pi;\cdot) is not continuous either. However, many nonparametric methods, such as kernel smoothers and series estimation, require the underlying function to possess certain degree of smoothness in order to achieve estimation consistency. Notice that any non-constant deterministic policy has jumps and is not continuous at certain points (such as the optimal policy π0\pi_{0} given in (2)). This poses significant challenges in performing inference to these policies.

To allow valid inference for both deterministic and random policies, we consider modelling the Q-function. Under CMIA, we have

As a result, the Q-function satisfies the following Bellman equation

Similar to (3.7), we can show the second term on the right-hand-side (RHS) of (3.7) is a smooth function of xx for any π\pi and aa. When r(⋅,a)r(\cdot,a) is smooth, so is Q(π,⋅,a)Q(\pi,\cdot,a). To formally establish these results, we introduce the notion of pp-smoothness (also known as Hölder smoothness with exponent pp) below.

Here, xjx_{j} denotes the jj-th element of xx. For any p>0p>0, let ⌊p⌋\lfloor p\rfloor denote the largest integer that is smaller than pp. Define the class of pp-smooth functions as follows:

When 0<p≤10<p\leq 1, we have ⌊p⌋=0\lfloor p\rfloor=0. It is equivalent to require hh to satisfy sup⁡x,y∣h(x)−h(y)∣/∥x−y∥2p≤c\sup_{x,y}|h(x)-h(y)|/\|x-y\|_{2}^{p}\leq c. The notion of pp-smoothness is thus reduced to the Hölder continuity.

Under A1, there exists some constant c′>0c^{\prime}>0 such that Q(π;⋅,a)∈Λ(p,c′)Q(\pi;\cdot,a)\in\Lambda(p,c^{\prime}) for any policy π\pi and a∈Aa\in\mathcal{A}.

Lemma 1 implies the Q-function has bounded derivatives up to order ⌊p⌋\lfloor p\rfloor. This motivates us to first estimate the Q-function and then derive the corresponding value estimators based on the relation V(π;x)=∑a∈Aπ(a∣x)Q(π;x,a)V(\pi;x)=\sum_{a\in\mathcal{A}}\pi(a|x)Q(\pi;x,a). By the Bellman equation (3.8), we can show the Q-function satisfies

The above equation forms a basis of our methods to learn Q(π;⋅,⋅)Q(\pi;\cdot,\cdot) (see details in the next section). In contrast to Equation (3.5), the sampling ratio π(a∣x)/b(a∣x)\pi(a|x)/b(a|x) does not appear in (3.9). This is because Ai,tA_{i,t} is the only sampling action and no further actions are involved in (3.9). As a result, our method does not require correct specification of the behavior policy. Nor do we need to estimate it from the observed dataset. This is another advantage of modelling the Q-function over the value.

1.2 Method

We describe our procedure in this section. We propose to approximate Q(π;⋅,⋅)Q(\pi;\cdot,\cdot) based on linear sieves, which takes the form

where ΦL(⋅)={ϕL,1(⋅),⋯ ,ϕL,L(⋅)}⊤\Phi_{L}(\cdot)=\{\phi_{L,1}(\cdot),\cdots,\phi_{L,L}(\cdot)\}^{\top} is a vector consisting of LL sieve basis functions, such as splines or wavelet bases (see for example, Huang 1998, for choices of basis functions). We allow LL to grow with the sample size to reduce the bias of the resulting estimates. Under certain mild conditions, there exist some {βπ,a∗}a∈A\{\beta_{\pi,a}^{*}\}_{a\in\mathcal{A}} that satisfy

for any a′∈Aa^{\prime}\in\mathcal{A}. Recall that A={0,1,…,m−1}\mathcal{A}=\{0,1,\dots,m-1\}. Define βπ∗=(βπ,1∗T,⋯ ,βπ,m∗T)⊤\bm{\beta}^{*}_{\pi}=(\beta_{\pi,1}^{*T},\cdots,\beta_{\pi,m}^{*T})^{\top},

Let β^π=(β^π,1⊤,⋯ ,β^π,m⊤)⊤\widehat{\bm{\beta}}_{\pi}=(\widehat{\beta}_{\pi,1}^{\top},\cdots,\widehat{\beta}_{\pi,m}^{\top})^{\top}, we propose to estimate V(π;x)V(\pi;x) by

where zαz_{\alpha} denotes the upper α\alpha-th quantile of a standard normal distribution, and

1.3 Theory

Following the behavior policy b(⋅∣⋅)b(\cdot|\cdot), the set of variables {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} forms a time-homogeneous Markov chain. Its transition kernel PX\mathcal{P}_{X} is given by

(A2.) The Markov chain {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} has an unique invariant distribution with some density function μ(⋅)\mu(\cdot). The density functions μ\mu and ν0\nu_{0} are uniformly bounded away from 00 and ∞\infty.

(ii) The Markov chain {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} is geometrically ergodic.

We make a few remarks. First, we do not require the limiting density function μ\mu to be equal to the initial state density ν0\nu_{0}.

Finally, when ν0=μ\nu_{0}=\mu, {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} is stationary. Under Condition A3(ii), it follows from Theorem 3.7 of Bradley 2005 that {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} is exponentially β\beta-mixing (see the proof of Lemma 3 for details). When T→∞T\to\infty, A3(ii) enables us to derive matrix concentration inequalities for Σ^π\widehat{\bm{\Sigma}}_{\pi}. This together with A3(i) implies that Σ^π\widehat{\bm{\Sigma}}_{\pi} is invertible, with probability approaching 11 (wpa1). We remark that A3(ii) is not needed when TT is bounded.

By MA, CMIA and (3.9), the leading term on the RHS of (3.14) forms a mean-zero martingale (details can be found in Section E.5). As either nn or TT grows to infinity, the asymptotic normality follows from the martingale central limit theorem.

2 Inference of the value under an (estimated) optimal policy

For simplicity, we assume T1=T2=⋯=Tn=TT_{1}=T_{2}=\cdots=T_{n}=T throughout this section. Consider an estimated policy π^\widehat{\pi}, computed based on the data {(Xi,t,Ai,t,Yi,t,Xi,t+1)}0≤t<T,1≤i≤n\{(X_{i,t},A_{i,t},Y_{i,t},X_{i,t+1})\}_{0\leq t<T,1\leq i\leq n}. The integrated value under π^\widehat{\pi} is given by

We will require the value of π^\widehat{\pi} to converge to some fixed policy π∗\pi^{*} (possibly different from πopt\pi^{\tiny{opt}}), i.e,

We begin by outlining the challenge of obtaining inference in the nonregular cases. Suppose π∗∈Πopt\pi^{*}\in\Pi^{\tiny{opt}}. When the optimal policy is not unique, π^\widehat{\pi} might not converge to a fixed policy, despite that its value converges (see (3.15)). To better illustrate this, suppose π^\widehat{\pi} is computed by some Q-learning type algorithms, i.e,

To allow for valid inference, we use a sequential value evaluation procedure to construct the CI. That is, we propose sequentially estimating the optimal policy and evaluating its value using different data subsets. This allows us to treat the estimated optimal policy as known conditional on past observations (see Equation (E.37) in Appendix E.2). The martingale CLT can thus be applied to obtain the limiting distribution for our estimator (see (E.39) and the related discussions). We detail our procedure in the next section.

2.2 SAVE for the value under an (estimated) optimal policy

We begin by dividing I0={(i,t):1≤i≤n,0≤t<T}\mathcal{I}_{0}=\{(i,t):1\leq i\leq n,0\leq t<T\} into KK non-overlapping subsets, denoted by I1,I2,⋯ ,IK\mathcal{I}_{1},\mathcal{I}_{2},\cdots,\mathcal{I}_{K}. At the kk-th step, we use the sub-dataset

As commented in the introduction, the data-splitting rule cannot be arbitrary. For any of the two tuples (i1,t1)(i_{1},t_{1}) and (i2,t2)(i_{2},t_{2}), define an order (i2,t2)≻(i1,t1)(i_{2},t_{2})\succ(i_{1},t_{1}) if either t2>t1t_{2}>t_{1} or i2>i1i_{2}>i_{1}. For any (i2,t2)∈Ik+1(i_{2},t_{2})\in\mathcal{I}_{k+1}, we require the following:

It remains to specify I1,I2,⋯ ,IK\mathcal{I}_{1},\mathcal{I}_{2},\cdots,\mathcal{I}_{K} that satisfy (3.20). Consider some positive integers nmin⁡≤nn_{\min}\leq n, Tmin⁡≤TT_{\min}\leq T. Assume nn and TT are divisible by nmin⁡n_{\min} and Tmin⁡T_{\min}, respectively. Let Kn=n/nmin⁡K_{n}=n/n_{\min} and KT=T/Tmin⁡K_{T}=T/T_{\min}. We set K=KnKTK=K_{n}K_{T}. For any 1≤kn≤Kn1\leq k_{n}\leq K_{n}, 1≤kT≤KT1\leq k_{T}\leq K_{T}, define a set I(kn,kT)\mathcal{I}(k_{n},k_{T}) by

Thus, each block I(kn,kT)\mathcal{I}(k_{n},k_{T}) contains data from nmin⁡n_{\min} trajectories with Tmin⁡T_{\min} decision time points. Below, we introduce two special examples.

When only a few trajectories are available, we may set nmin⁡=nn_{\min}=n. Then, the blocks are constructed according to the times that decisions were being made.

When each trajectory contains a very short time period, we may set Tmin⁡=TT_{\min}=T. Then, the observations are divided according to the trajectories they belong to.

Based on this order, we set Ik=I(n(k),T(k))\mathcal{I}_{k}=\mathcal{I}(n(k),T(k)) where n(k)n(k) and T(k)T(k) are the unique positive integers that satisfy k=n(k)+(T(k)−1)Knk=n(k)+(T(k)-1)K_{n}. For any k2>k1k_{2}>k_{1}, we have either n(k2)>n(k1)n(k_{2})>n(k_{1}) or T(k2)>T(k1)T(k_{2})>T(k_{1}). Thus, the proposed data-splitting rule guarantees (3.20) holds for any kk.

In Theorem 2 below, we establish the validity of our CI in (3.21). It relies on Condition A3* and A4. A3* is very similar to A3 and we present the detailed definition in Appendix A to save space.

We provide a sketch for the proof of Theorem 2 in Appendix E.2.

2.3 Convergence of the value under an estimated optimal policy

For any I⊆I0\mathcal{I}\subseteq\mathcal{I}_{0}, we use π^I\widehat{\pi}_{\mathcal{I}} to denote an estimated optimal policy based on observations in I\mathcal{I}. Let Q^I(⋅,⋅)\widehat{Q}_{\mathcal{I}}(\cdot,\cdot) denote some consistent estimator for Qopt(⋅,⋅)Q^{\tiny{opt}}(\cdot,\cdot) and π^I\widehat{\pi}_{\mathcal{I}} denote the greedy policy with respect to Q^I(⋅,⋅)\widehat{Q}_{\mathcal{I}}(\cdot,\cdot) (see Equation (3.2.1)).

(A5) Assume there exist some constants α,δ0>0\alpha,\delta_{0}>0 such that

where λ\lambda denotes the Lebesgue measure, the big-OO terms are uniform in 0<ε≤δ00<\varepsilon\leq\delta_{0}, and max⁡a′∈A−arg max⁡aQopt(x,a)Qopt(x,a′)=−∞\max_{a^{\prime}\in\mathcal{A}-\argmax_{a}Q^{\tiny{opt}}(x,a)}Q^{\tiny{opt}}(x,a^{\prime})=-\infty if the set A−arg max⁡aQopt(x,a)=∅\mathcal{A}-\argmax_{a}Q^{\tiny{opt}}(x,a)=\emptyset.

For each xx, the quantity max⁡aQopt(x,a)−max⁡a′∈A−arg max⁡aQopt(x,a)Qopt(x,a′)\max_{a}Q^{\tiny{opt}}(x,a)-\max_{a^{\prime}\in\mathcal{A}-\argmax_{a}Q^{\tiny{opt}}(x,a)}Q^{\tiny{opt}}(x,a^{\prime}) measures the difference in value between πopt\pi^{\tiny{opt}} and the policy that assigns the best suboptimal treatment(s) at the first decision point and follows πopt\pi^{\tiny{opt}} subsequently. In point treatment studies, Qian and Murphy 2011 imposed a similar condition (Qian and Murphy 2011, see Equation (3.3),) to derive sharp convergence rate for the value under an estimated optimal individualized treatment regime. Here, we generalize their condition in infinite-horizon settings. A5 is also closely related to the margin condition commonly used to bound the excess misclassification error (Tsybakov 2004; Audibert and Tsybakov 2007).

The margin-type condition is mild. In Appendix A.3, we present detailed examples and show the condition holds under these examples. The following theorems summarize our results.

Assume A1, (3.22) and (3.23) hold. Suppose the following event occurs with probability at least 1−O(∣I∣−κ)1-O(|\mathcal{I}|^{-\kappa}) for any finite κ>0\kappa>0,

In Theorem 3, we require the estimated Q-function to satisfy certain uniform convergence rate. In Theorem 4 below, we relax this condition by assuming that the integrated loss converges to zero at certain rate.

It can be seen from Theorems 3 and 4 that the integrated value converges faster compared to the Q-function. We provide a sketch for the proofs of both theorems in Appendix E.3.

2.4 Applications

In this section, we provide several examples to illustrate the convergence rate of Q^I\widehat{Q}_{\mathcal{I}}. The proposed methods can be applied to evaluating the values under these estimated policies. The algorithm in Example 1 requires to impose a linear model assumption for the optimal Q-function. The algorithm in Example 2 allows more general nonlinear and nonparametric models for the optimal Q-function.

Suppose we model Qopt(x,a)Q^{\tiny{opt}}(x,a) by linear sieves ΦL⊤(x)θa\Phi_{L}^{\top}(x)\theta_{a}. Then we can compute {θ^a,I}a∈A\{\widehat{\theta}_{a,\mathcal{I}}\}_{a\in\mathcal{A}} by minimizing the following projected Bellman error:

where δi,t({θa}a∈A)=Yi,t+γmax⁡a′∈AΦL⊤(Xi,t+1)θa′−ΦL⊤(Xi,t)θAi,t\delta_{i,t}(\{\theta_{a}\}_{a\in\mathcal{A}})=Y_{i,t}+\gamma\max_{a^{\prime}\in\mathcal{A}}\Phi_{L}^{\top}(X_{i,t+1})\theta_{a^{\prime}}-\Phi_{L}^{\top}(X_{i,t})\theta_{A_{i,t}}. The above loss is non-smooth and non-convex as a function of {θa}a∈A\{\theta_{a}\}_{a\in\mathcal{A}}. The estimator {θ^a,I}a∈A\{\widehat{\theta}_{a,\mathcal{I}}\}_{a\in\mathcal{A}} can be computed based on the greedy gradient Q-learning algorithm.

In fitted QQ-iteration (FQI), the optimal Q-function is approximated by some nonparametric models Q(⋅,⋅,θ)Q(\cdot,\cdot,\theta) indexed by θ\theta. The parameter θ\theta is iteratively updated by

Extensions to on-policy evaluation

We now extend our methodology in Section 3 to on-policy settings. The proposed CI is similar to that presented in Section 3.2.2 and applies to any reinforcement learning algorithms that iteratively update the estimated policy based on batches of observations. Let {T(k)}k≥1\{T(k)\}_{k\geq 1} be a monotonically increasing sequence that diverges to infinity. At the kk-th iteration, define Iˉk={(i,t):1≤i≤n,0≤t<∑j=1kT(j)}\bar{\mathcal{I}}_{k}=\{(i,t):1\leq i\leq n,0\leq t<\sum_{j=1}^{k}T(j)\}. The data observed so far can be summarized as {(Xi,t,Ai,t,Yi,t,Xi,t+1)}1≤i≤n,0≤t<∑j=1kT(j)\{(X_{i,t},A_{i,t},Y_{i,t},X_{i,t+1})\}_{1\leq i\leq n,0\leq t<\sum_{j=1}^{k}T(j)}. We compute the estimated policy π^Iˉk\widehat{\pi}_{\bar{\mathcal{I}}_{k}} based on these data. Then we determine the behavior policy b^Iˉk\widehat{b}_{\bar{\mathcal{I}}_{k}} as a function of π^Iˉk\widehat{\pi}_{\bar{\mathcal{I}}_{k}} and generate new observations

according to b^Iˉk\widehat{b}_{\bar{\mathcal{I}}_{k}}. To balance the exploration-exploitation trade-off, a common choice of b^Iˉk\widehat{b}_{\bar{\mathcal{I}}_{k}} is the ϵ\epsilon-greedy policy with respect to π^Iˉk\widehat{\pi}_{\bar{\mathcal{I}}_{k}}.

Simulations

We consider three scenarios. In Scenarios (A) and (B), the system dynamics are given by

for t≥0t\geq 0, where {zt}t≥0∼iidN(02,I2/4)\{z_{t}\}_{t\geq 0}\stackrel{{\scriptstyle iid}}{{\sim}}N(0_{2},I_{2}/4) and X0,0∼N(02,I2)X_{0,0}\sim N(0_{2},I_{2}). In Scenario (A), we consider a completely randomized study and set {A0,t}t≥0\{A_{0,t}\}_{t\geq 0} to i.i.d Bernoulli random variables with expectation 0.50.5. In Scenario (B), we allow the treatment assignment mechanism to depend on the observed state. Specifically, we set m=2m=2 and \mboxPr(A0,t=1∣X0,t)=0.5sigmoid(X0,t,1)+0.5sigmoid(X0,t,2){\mbox{Pr}}(A_{0,t}=1|X_{0,t})=0.5\textrm{sigmoid}(X_{0,t,1})+0.5\textrm{sigmoid}(X_{0,t,2}) where X0,t,iX_{0,t,i} denotes the iith element in X0,tX_{0,t}. The target policy we consider is designed as follows,

In Scenario (C), we consider a standard RL setting included in OpenAI Gym (Brockman et al. 2016): Cliff Walking. This RL example is detailed in Example 6.6 in Sutton and Barto 2018. The objective is to identify the optimal path from the starting point S to the destination point G without falling off the cliff (see Figure 1). This scenario corresponds to an episodic task where the agent will be sent instantly to the starting point wherever it steps into the cliff or arrives at the destination. We manually add some noises to the immediate rewards simulated by the OpenAI Gym to ensure that the system dynamics are not deterministic. We remark that this task is considered in Kallus and Uehara 2020 as well. The target policy is the optimal policy and the behavior policy is a 50-50 mixture of the optimal and uniform random policies.

The DRL estimator has been shown to be much more efficient than AIPW or IPW estimators (Thomas et al. 2015; Jiang and Li 2016). So we focus on comparing our approach with DRL. DRL requires the calculation of the Q-function, the marginalized density ratio and the behavior policy. Here, we treat the behavior policy as known and estimate the Q-function and the density ratio based on nonparametric sieve regression.

In Figure 2 and Table 1, we report the empirical coverage probabilities (ECPs) and average lengths (ALs) of CIs constructed by the proposed method, with different choices of nn and TT. It can be seen that our CI achieves nominal coverage in all cases. Its length decreases as nTnT increases. This is consistent with our theoretical findings where we show the proposed value estimator converges at a rate of n−1/2T−1/2n^{-1/2}T^{-1/2} under certain conditions (see the discussions below Theorem 1).

Comparing our method with DRL, it is clear that our CIs are in general narrower than those constructed by DRL. In addition, MSEs of the proposed value estimates are smaller than those based on DRL. This is consistent with our theoretical analysis in Appendix C.2 where we show the variance of our value estimator is strictly smaller than that based on DRL under certain conditions. In addition, it can be seen from Table 1 that ECPs of DRL are below 90% in Scenario (C).

2 Off-policy evaluation with an (estimated) optimal policy

In addition, we design a non-regular setting Scenario (D) where the actions do not have effects on the transition dynamics or the immediate rewards. Specifically, for any t≥0t\geq 0, we set

3 On-policy evaluation with an (estimated) optimal policy

Application to the OhioT1DM dataset

As commented in the introduction, this dataset contains eight weeks’ records of CGM blood glucose levels, insulin doses and self-reported life-event data for each of six patients with type 1 diabetes. To analyze this data, we divide these eight weeks into three hour intervals. The state variable Xi,tX_{i,t} is set to be a three-dimensional vector. Specifically, its first element Xi,t(1)X_{i,t}^{(1)} is the average CGM blood glucose levels during the three hour interval [t−1,t)[t-1,t). The second covariate Xi,t(2)X_{i,t}^{(2)} is constructed based on the ii-patient’s self-reported time and the carbohydrate estimate for the meal. Suppose the patient has meals at time t1,t2,…,tN∈[t−1,t)t_{1},t_{2},\dots,t_{N}\in[t-1,t) with the carbohydrate estimates CE1,CE2,…,CEN\hbox{CE}_{1},\hbox{CE}_{2},\dots,\hbox{CE}_{N}. Define

where γc\gamma_{c} corresponds to the decay rate every five minutes. Here, we set γc=0.5\gamma_{c}=0.5. The third covariate Xi,t(3)X_{i,t}^{(3)} is defined as an average of the basal rate during the three hour interval.

We discretize the action according to the amount of insulin injected in the three hour interval. Specifically, Ai,t=1A_{i,t}=1 when the total amount of insulin delivered to the ii-th patient is greater than one unit. Otherwise, we set Ai,t=0A_{i,t}=0. The immediate reward Yi,tY_{i,t} is defined according to the Index of Glycemic Control (Rodbard 2009, IGC,), which is a non-linear function of the blood glucose levels. Specifically, we set

A large IGC indicates the patient is in good health status. We set the discount factor γ=0.5\gamma=0.5, as in simulations.

For the ii-th patient, we apply the double FQI algorithm to the data

to estimate a patient-specific optimal policy. Then we compute the estimator for the value function V(πopt;Xi,0)V(\pi^{\tiny{opt}};X_{i,0}) starting from the initial state variable Xi,0X_{i,0}. In addition, we extend our methodology in Section 5.2 to construct the confidence interval for the value difference V(πopt;Xi,0)−V(b;Xi,0)V(\pi^{\tiny{opt}};X_{i,0})-V(b;X_{i,0}) where V(b;Xi,0)V(b;X_{i,0}) corresponds to the value under the behavior policy. See Appendix B.2 for details. In Figure 4, we plot our proposed CI for the value difference, for each of the six patients, when the initial starting time is either 8:00 am or 2:00 pm in Day 1. It can be seen that the estimated value differences are strictly positive in all cases. This implies that the optimal value is strictly larger than the observed discounted cumulative reward. In some cases, the lower bound of our CI is larger than zero. The difference is thus significant. In Figure 5, we fix the starting time to 8:00 am and plot the CI of the value difference with different γ\gamma. Results show a similar qualitative pattern. This suggests applying reinforcement learning algorithms could potentially improve some patients’ health status.

Discussion

We discuss the advantages and limitations among the proposed method and DRL when inferring the value under a fixed decision rule. Generally speaking, the proposed method results in narrower CIs and would be preferred in cases where (nT)−1/2(nT)^{-1/2}-consistent estimation of the Q-function is feasible. This includes settings where the dimension of the state-vector is not large, as in our real data applications. In contrast, DRL would be preferred in ergodic environments with high-dimensional covariates where (nT)−1/2(nT)^{-1/2}-consistent estimation of the Q-function is infeasible.

Specifically, in Appendix C.2, we consider settings where both the behavior policy and the target policy are nondynamic. Under certain conditions, we prove that the variance of the DRL estimator is strictly larger than that of the proposed estimator. This in turn implies that our method yields a narrower CI in general.

In addition, we remark that the CI constructed by DRL requires the data to be generated from an ergodic environment. In the Cliff Walking example, the data are generated by a mixture of the optimal and random policy. Since the agent will be sent instantly to the starting point wherever it steps into the cliff or arrives at the destination, the Markov chain formed by the state-action pair is no longer ergodic. It can be seen from Table 1 where ECP of the CI is well below the nominal level in the Cliff Walking example. Although our procedure also requires the ergodicity assumption (see Condition (A3)(ii)), this assumption is not necessary. It can be seen from the proof of Theorem 1 that our CI is valid as long as the random matrix Σ^π\widehat{\bm{\Sigma}}_{\pi} stabilizes. This is consistent with the findings in Table 1 where our CI achieves nominal coverage in all cases.

However, to ensure the proposed CI is valid, we require the bias of our Q-estimator to decay at a rate of o((nT)−1/2)o((nT)^{-1/2}). Consequently, our estimator converges at a rate of (nT)−1/2(nT)^{-1/2}. This rate might not be achievable in high-dimensions. In contrast, DRL requires a weaker condition. The CI based on DRL is valid when both the Q-estimator and the estimated marginalized density ratio converge at a rate of o((nT)−1/4)o((nT)^{-1/4}).

Another potential limitation of our method is that in cases where Σ^π\widehat{\bm{\Sigma}}_{\pi} is close to a singular matrix, the resulting Q-estimator might suffer from over-fitting, leading to an unbounded outcome. In practice, we could add a ridge penalty to reduce over-fitting. We discuss in detail in Appendix D.4.

2 Number of basis functions

We outline a procedure to choose the number of basis function LL in this section. The idea is to simulate the model dynamics and select LL such that the resulting confidence interval achieves nominal coverage under the simulated model. Specifically, given the observed data {(Xi,t,Ai,t,Yi,t,Xi,t+1)}0≤t<Ti,1≤i≤n\{(X_{i,t},A_{i,t},Y_{i,t},X_{i,t+1})\}_{0\leq t<T_{i},1\leq i\leq n}, we propose to learn the conditional density function of (Yi,t,Xi,t+1)(Y_{i,t},X_{i,t+1}) given (Ai,t,Xi,t)(A_{i,t},X_{i,t}). Following Janner et al. 2019, we recommend to use a Gaussian distribution to model the conditional density function in practice,

The conditional mean μ\mu can be estimated via nonparametric regression (e.g., random forest). Let μ^\widehat{\mu} denote the corresponding estimator. Given the set of estimated residuals {(Yi,t,Xi,t+1)⊤−μ^(Ai,t,Xi,t)}i,t\{(Y_{i,t},X_{i,t+1})^{\top}-\widehat{\mu}(A_{i,t},X_{i,t})\}_{i,t} the conditional covariance function Σ\Sigma can be estimated via regression as well. We remark that in addition to the Gaussian function, other density functions could be used to model the system dynamics as well.

The behavior policy bb can be similarly estimated via regression. Given an estimated behavior policy b^\widehat{b} and μ^\widehat{\mu}, Σ^\widehat{\Sigma}, we generate simulated trajectories to investigate the performance of the proposed CI with different choices of LL.

Finally, we choose LL such that the resulting CI is the shortest among all CIs whose coverage probabilities are above certain level (e.g., 93%) under the simulated environment.

In Appendix D.1, we investigate the finite sample performance of such a method and find that it performs reasonably well. We remark that alternative to the aforementioned method, cross-validation could be applied to select LL.

3 Sensitivity to the ordering of trajectories

The proposed sequential value evaluation procedure in Section 3.2 divides the data into blocks defined both by trajectories and by time. While there is a natural order in time, there does not appear to be a natural order in the trajectories. In Appendix D.2.3, we conduct additional simulation studies to investigate the sensitivity of our CI to the ordering of trajectories under Scenario (B). Results suggest that our CI is not overly sensitive under our simulation setting.

As suggested by one of the referees, we may aggregate CIs over multiple orderings in cases where the results depend strongly on the ordering of the trajectories. Dezeure et al. 2015 derived a CI for the regression coefficients in high-dimensional models by aggregating results over multiple sample splits using a quantile function. We can adopt their method to aggregate our CIs over multiple orderings. Alternatively, one may average the value estimates over sufficiently many orderings and apply similar methods developed in Wang et al. 2020; Shi et al. 2020a to derive the CI. However, these algorithms are much more time-consuming.

4 More on value-based method

In Section 3.1.1, we discuss a potential drawback of using nonparametric methods to directly model the value function. We remark that a kernel-type importance sampling estimator for the V(π;x)V(\pi;x) will not suffer from this issue, since it does not directly model the value function, but uses an inverse propensity-score weighted method instead. Both IPW and regression type estimators have their own merits. In general, IPWEs might suffer from a large variance whereas regression-based estimators might suffer from a large bias. There exist methods that combine both for more robust off-policy evaluation (Kallus and Uehara 2019; Uehara et al. 2020; Tang et al. 2020; Shi et al. 2021, see e.g.,). However, as commented in Section 7.1, they might yield larger CIs compared to our method.

5 Rate of convergence of Q-learning type algorithms

Through authors’ communication, we found a recent independent work by Hu et al. 2021 that derived a nonasymptotic error bound on the value of the estimated optimal policy computed by Q-learning type algorithms under the margin condition. Their results are consistent with our theoretical findings in Theorems 3 and 4 that show the value of the estimated optimal policy converges to the optimal value at a faster rate than the estimated Q-function.

References

Appendix A Some technical conditions

where ∥⋅∥TV\|\cdot\|_{TV} denotes the total variation norm.

A.2 Conditions A3*

(ii) The Markov chain {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} is geometrically ergodic.

We remark that Condition A3*(ii) is the same as A3(ii).

A.3 More on the margin condition

To better understand Condition A5, we consider a simple scenario where A={0,1}\mathcal{A}=\{0,1\}. Define τ(x)=Qopt(x,1)−Qopt(x,0)\tau(x)=Q^{\tiny{opt}}(x,1)-Q^{\tiny{opt}}(x,0). It follows that

As a result, (3.22) and (3.23) are equivalent to the followings:

for some α>0\alpha>0. Then, with some calculations, we can show

Appendix B Additional details regarding the method

and ∣I∣|\mathcal{I}| stands for the number of elements in I\mathcal{I}.

B.2 Value difference between the target and behavior policy

In this section, we outline a method to evaluate the value difference function between the target and behavior policy. We first consider the scenario where the target policy is a fixed policy. We next consider the scenario where the target policy is an estimated optimal policy. To simplify the presentation, we assume T1=⋯=Tn=TT_{1}=\cdots=T_{n}=T. The proposed method can be similarly extended to on-policy settings.

Consider a data-independent policy π\pi. We aim to evaluate the value difference function VD(π;x)=V(π;x)−V(b;x)\textrm{VD}(\pi;x)=V(\pi;x)-V(b;x) where bb is the unknown behavior policy. We first apply our method in Section 3.1.2 to compute an estimator value function V^(π;x)\widehat{V}(\pi;x) for V(π;x)V(\pi;x).

The resulting estimates for Q(b;x,a)Q(b;x,a) can be derived as ΦL⊤(x)β^b,a\Phi_{L}^{\top}(x)\widehat{\beta}_{b,a}. The corresponding estimator for V(b,x)V(b,x) is given by V^(b,x)=∑ab^(a∣x)ΦL⊤(x)β^b,a\widehat{V}(b,x)=\sum_{a}\widehat{b}(a|x)\Phi_{L}^{\top}(x)\widehat{\beta}_{b,a} where b^(a∣x)\widehat{b}(a|x) denotes the sieve estimator ΦL⊤(x)α^a\Phi_{L}^{\top}(x)\widehat{\alpha}_{a} for b(a∣x)b(a|x) where

This yields the estimator for the value difference VD^(π;x)=V^(π;x)−V^(b;x)\widehat{\textrm{VD}}(\pi;x)=\widehat{V}(\pi;x)-\widehat{V}(b;x).

We next derive a confidence interval for VD(π;x)(\pi;x) based on VD^(π;x)\widehat{\textrm{VD}}(\pi;x). Similar to the proof of Theorem 1, we can show nT{VD^(π;x)−VD(π;x)}\sqrt{nT}\{\widehat{\textrm{VD}}(\pi;x)-\textrm{VD}(\pi;x)\} is equivalent to

where εi,t∗\varepsilon_{i,t}^{*} denotes the temporal difference error Yi,t+γQ(b;Xi,t+1,Ai,t+1)−Q(b;Xi,t,Ai,t)Y_{i,t}+\gamma Q(b;X_{i,t+1},A_{i,t+1})-Q(b;X_{i,t},A_{i,t}) and Ψ\bm{\Psi} denotes the population limit of Ψ^\widehat{\Psi}. Note that the RHS can be rewritten as (nT)−1/2∑i=1n∑t=0T−1ψi,t(nT)^{-1/2}\sum_{i=1}^{n}\sum_{t=0}^{T-1}\psi_{i,t} that corresponds to a sum of martingale difference. Its variance can be consistently estimated by σ^∗2(π;x)=(nT)−1∑i=1n∑t=0T−1ψ^i,t2\widehat{\sigma}^{*2}(\pi;x)=(nT)^{-1}\sum_{i=1}^{n}\sum_{t=0}^{T-1}\widehat{\psi}_{i,t}^{2} where ψ^i,t\widehat{\psi}_{i,t} denotes some consistent estimator for ψi,t\psi_{i,t} based on Q^(π;⋅,⋅)\widehat{Q}(\pi;\cdot,\cdot), Q^(b;⋅,⋅)\widehat{Q}(b;\cdot,\cdot) and b^\widehat{b}. The confidence interval for VD(π;x)(\pi;x) is given by

B.2.2 Inference of the value difference under an estimated optimal policy

We begin by dividing the data into KK non-overlapping subsets ∪k=1KIk\cup_{k=1}^{K}\mathcal{I}_{k}. Similar to Section 3.2.2, we construct the value difference estimator by

where VD^Ik\widehat{\textrm{VD}}_{\mathcal{I}_{k}} and σ^Ik∗\widehat{\sigma}^{*}_{\mathcal{I}_{k}} denote the versions of VD and σ^∗\widehat{\sigma}^{*} based on samples in Ik\mathcal{I}_{k} only. The corresponding confidence interval is given by

where σ~∗(x)=(K−1){∑k=1K−1σ^k∗−1(π^Iˉk;x)}−1\widetilde{\sigma}^{*}(x)=(K-1)\{\sum_{k=1}^{K-1}\widehat{\sigma}_{k}^{*-1}(\widehat{\pi}_{\bar{\mathcal{I}}_{k}};x)\}^{-1}.

Finally, we remark that such a confidence interval might not be valid in the extreme case where the behavior policy is equal to a deterministic optimal policy. To elaborate, notice that when the behavior policy is deterministic, the second line of (B.32) equal zero. In addition, when π=b=πopt\pi=b=\pi^{\tiny{opt}} for some optimal policy πopt\pi^{\tiny{opt}}, the first line equals zero as well. In that case, VD^(π;x)\widehat{\textrm{VD}}(\pi;x) would have a degenerate distribution. Suppose the estimated optimal policy is consistent for πopt\pi^{\tiny{opt}}. Then VD~(x)\widetilde{\textrm{VD}}(x) might not have a tractable limiting distribution, leading to an invalid confidence interval.

To address this concern, we could redefine the inverse weights σ^Ik+1∗(π^Iˉk;x)\widehat{\sigma}^{*}_{\mathcal{I}_{k+1}}(\widehat{\pi}_{\bar{\mathcal{I}}_{k}};x) by σ^Ik+1∗(π^Iˉk;x,δ)=max⁡{σ^Ik+1∗(π^Iˉk;x),δ}\widehat{\sigma}^{*}_{\mathcal{I}_{k+1}}(\widehat{\pi}_{\bar{\mathcal{I}}_{k}};x,\delta)=\max\{\widehat{\sigma}^{*}_{\mathcal{I}_{k+1}}(\widehat{\pi}_{\bar{\mathcal{I}}_{k}};x),\delta\} for some δ>0\delta>0, as in Luedtke and van der Laan 2017. This guarantees that these inverse weights are strictly greater than zero. A similar approach is employed by Shi et al. 2020b for testing the overall qualitative treatment effects in single-stage decision making. In addition, one could allow δ\delta to depend on NN and TT. The resulting confidence interval would be valid as long as δ≫(NT)−1/6\delta\gg(NT)^{-1/6}(Shi et al. 2020b, see e.g., Theorem 3.1 of). However, a potential limitation is that it would yield a conservative confidence interval when the truncation is active, as discussed in Luedtke and van der Laan 2017.

B.3 Double fitted QQ-iteration

In this section, we introduce our algorithm for computing the estimated optimal policy in our numerical studies. The proposed algorithm is based on FQI that recursively updates the estimated optimal Q-function by some supervised learning method (see Example 2 in Section 3.2.3). In FQI, at each iteration, a maximization over estimated Q-function is used as an estimate of the maximum of the true Q-function. This can lead to a significant positive bias (Sutton and Barto 2018). Hasselt 2010 proposed a double Q-learning method to reduce the maximization bias. Here, we apply similar ideas to FQI to compute the estimated optimal policy. We use a pseudocode to summarize our algorithm below.

In Algorithm 1, we can apply any non-parametric models Q(⋅,;θ)Q(\cdot,\texttt{;}\theta) indexed by θ\theta to model the optimal Q-function. In our implementation, we set Q(⋅,⋅;⋅)Q(\cdot,\cdot;\cdot) to be a linear combination of tensor product B-spline basis functions.

Appendix C Additional technical details

is positive semidefinite. It follows that

When π\pi is a deterministic policy, ∑a∈Aξ(x,a)ξ⊤(x,a)b(a∣x)−γ2Uπ(x)Uπ⊤(x)\sum_{a\in\mathcal{A}}\bm{\xi}(x,a)\bm{\xi}^{\top}(x,a)b(a|x)-\gamma^{2}\bm{U}_{\pi}(x)\bm{U}_{\pi}^{\top}(x) is a block diagonal matrix. To show A4(i) holds, it suffices to show

Suppose bb is the ϵ\epsilon-greedy policy with respect to π\pi, i.e, b(a∣x)=ϵm−1+(1−ϵ)π(a∣x)b(a|x)=\epsilon m^{-1}+(1-\epsilon)\pi(a|x), for any a∈{1,…,m}a\in\{1,\dots,m\} and ϵ\epsilon satisfies ϵ≤1−γ2\epsilon\leq 1-\gamma^{2}, we have

The condition in (C.33) is automatically satisfied when A2 holds (Burman and Chen 1989; Chen and Christensen 2015, see, e.g.,).

C.2 Additional details on the variance comparison

We consider a randomized study where b(a∣x)b(a|x) is a constant function of xx. In addition, we assume the target policy is nondynamic, i.e., π(a∗∣x)=1\pi(a^{*}|x)=1 for some 1≤a∗≤m1\leq a^{*}\leq m and any xx. We impose the following conditions.

(C1) The process {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} is stationary.

(C2) The temporal difference error ε0,t\varepsilon_{0,t} is independent of (X0,t,A0,t)(X_{0,t},A_{0,t}).

We make some remarks. First, Condition (C1) is imposed to simplify the presentation. The same results hold as long as {X0,t}t\{X_{0,t}\}_{t} will converge to its stationary distribution. Second, the variances of our estimator and DRL are very difficult to analyse in general. Conditions (C2)-(C3) are imposed to simplify the calculation. Even when these conditions are violated, we expect the variance of the proposed estimator will be smaller in general, as reflected in our numerical study.

We next sketch a few lines to prove Theorem 5. Based on Theorem 1, the asymptotic variance of our estimator is given by

Using similar arguments in the proof of Theorem 16 of Kallus and Uehara 2019, we can show that the asymptotic variance of the DRL estimator equals

Under the given conditions, the above variance is equal to {nT(1−γ)2pa∗}−1σ∗2{1+\mboxVar(ω(X0,0))}\{nT(1-\gamma)^{2}p_{a^{*}}\}^{-1}\sigma_{*}^{2}\{1+{\mbox{Var}}(\omega(X_{0,0}))\} where pa∗=\mboxPr(A0,t=a∗)p_{a^{*}}={\mbox{Pr}}(A_{0,t}=a^{*}). Consequently, it suffices to show

By the definition of Σπ\bm{\Sigma}_{\pi} and ξ0,t\bm{\xi}_{0,t}, the left-hand-side of (C.35) is equal to

As such, the left-hand-side of (C.35) is upper bounded by

C.3 Additional details on on-policy evaluation

In this section, we show our proposed CI in Section 4 achieves nominal converge. To simplify the analysis, we focus on the setting where KK is finite, T(1)=⋯=T(K)=TT(1)=\cdots=T(K)=T and L(1)=⋯=L(K)=LL(1)=\cdots=L(K)=L. When KK diverges, the sequences {T(k)}k≥1\{T(k)\}_{k\geq 1} and {L(k)}k≥1\{L(k)\}_{k\geq 1} shall be properly chosen to reduce the bias of the value estimates. We leave this for future research.

Similar to Appendix A.2, we assume the estimated policy π^I∈Π\widehat{\pi}_{\mathcal{I}}\in\Pi with probability 11, for any I\mathcal{I}. In on-policy settings, the behavior policy bπb_{\pi} is a function of the estimated policy π∈Π\pi\in\Pi. For instance, when an ϵ\epsilon-greedy policy is used to determine the behavior policy, then we have bπ=(1−ϵ)π+ϵπ∗b_{\pi}=(1-\epsilon)\pi+\epsilon\pi^{*} where π∗\pi^{*} denotes a uniform random policy. Let B={bπ:π∈Π}\mathcal{B}=\{b_{\pi}:\pi\in\Pi\}.

(A2’.) Assume ν0\nu_{0} and qq are uniformly bounded away from 00 and ∞\infty on their supports.

(iii) There exists some constant cˉ>0\bar{c}>0 such that

Proof of Theorem 6 is omitted for brevity.

Appendix D Additional numerical results

We apply the proposed method detailed in Section 7.2 to Scenario (B) where the treatment assignment mechanism depends on the observed state, to investigate the finite sample performance of the resulting CI. Specifically, we apply the random forest algorithm to learn the conditional mean function μ\mu and the behavior policy bb. We assume Σ(a,x)\Sigma(a,x) is a constant function of (a,x)(a,x) and estimated it by

We use the tensor product B-spline basis for ΦL\Phi_{L}, as in Section 5. Note that the state is a two-dimensional vector, LL is selected among the set {42,52,62,72,82,92}\{4^{2},5^{2},6^{2},7^{2},8^{2},9^{2}\}. Specifically, we choose LL such that the resulting CI is the shortest among all CIs whose coverage probabilities are above 93%. If no such CI exists, we select the CI with the highest coverage probability.

We report the ECP and AL of the resulting CI in the left and middle panels of Figure 7. It can been seen that ECP is close to the nominal level in all cases and AL decays as either nn or TT increases. In the right panel of Figure 7, we report the number of basis functions that is being selected most by the proposed method as a function of nn and TT (denote by L(n,T)L(n,T)). It is clear from Figure 7 that L(n,T)L(n,T) increases with the total number of observations nTnT. This is consistent with the following intuition: as nTnT increases, more basis functions are needed to reduce the approximation error and guarantee the nominal coverage of the resulting CI.

D.2 Sensitivity analysis

In this section, we conduct the sensitivity test for the parameter η\eta in the number of basis L=⌊(nT)η⌋L=\lfloor(nT)^{\eta}\rfloor. We consider the simulation of the off-policy evaluation with a fixed target policy in Section 5.1. For scenario (A), (B) and (C), we set n=100n=100, T=100T=100 and the different η\eta’s are chosen from (0.25,0.30,0.35,0.40,3/7,0.45)(0.25,0.30,0.35,0.40,3/7,0.45). The result of the ECPs are plotted in Figure 8 where all the ECPs are close to the nominal coverage rate 0.95. It shows that the results of the coverage are not sensitive to the different choices of η\eta.

D.2.2 Sensitivity test for γ\gamma

In Figure 9, we report the ECP and AL of the proposed CI and the MSE of our value estimate under Scenario B where the target policy is fixed, with γ=0.3\gamma=0.3 and 0.70.7. In Figure 10, we report the ECP and AL of the proposed CI and the MSE of our value estimate under Scenario B where the target policy is an estimated optimal policy, with γ=0.3\gamma=0.3 and 0.70.7. It can be seen that findings are very similar to those with γ=0.5\gamma=0.5.

In Tables 4 and 5, we report the ECP, AL and MSE of the proposed method and DRL under Scenario (C) where the target policy is fixed, with γ=0.3\gamma=0.3 and 0.70.7. It can be seen that the proposed CI achieves nominal coverage in all cases. When γ=0.3\gamma=0.3, ECP of the DRL method is well below the nominal level in all cases. When γ=0.7\gamma=0.7, the AL and MSE of the proposed CI are much smaller than those based on DRL.

D.2.3 Sensitivity test for the ordering of trajectories

We focus on Scenario (B), detailed in Section 5.1, to examine the sensitivity of the proposed CI to the ordering of trajectories. Specifically, we first randomly permute all trajectories with some fixed random seed. We next apply our SAVE procedure to construct the CI. We use three random seeds to generate different random permutations and depict the corresponding results in Figure 11. It can be seen that our method is not overly sensitive to the ordering of trajectories.

D.3 Additional settings

D.4 Additional real data results

We use our real data example to discuss the issue of over-fitting in this section. Specifically, we apply the proposed method in Section 3.2.2 to evaluate the optimal value V(πopt;Xi,0)V(\pi^{\tiny{opt}};X_{i,0}) starting from the initial state variable Xi,0X_{i,0}, for i=1,2,⋯ ,6i=1,2,\cdots,6. When the initial starting time is 8:00 am in Day 1, CIs for Patient 5 and Patient 6 are [−6.288,3.287][-6.288,3.287] and [−6.313,10.644][-6.313,10.644], respectively. Both upper bounds are positive. However, according to our definition, the immediate reward is nonpositive. As such, the value and Q-function shall be nonpositive as well. This reflects one of the drawback of the proposed method. The resulting Q-estimator might suffer from over-fitting, leading to an unbounded outcome.

Specifically, it is due to that the matrix Σ^π\widehat{\bm{\Sigma}}_{\pi} is close to singular. Note that the regression coefficients β^π\widehat{\bm{\beta}}_{\pi} are computed by solving the linear equation

In our data example, the number of basis function equals 12. As such, Σ^π\widehat{\bm{\Sigma}}_{\pi} is a 1212 by 1212 matrix. When it is close to singular, the resulting Q-estimator might be unbounded.

To avoid offer-fitting, we note that in theory, Σ^π\widehat{\bm{\Sigma}}_{\pi} is a positive definite matrix under Condition (A3)(i). This motivates us to compute β^π\widehat{\bm{\beta}}_{\pi} by solving

where II denotes the identity matrix. As long as λ\lambda satisfies λ=O(N−1T−1)\lambda=O(N^{-1}T^{-1}), the proposed CI remains valid. In our real data example, we set λ=1×10−9\lambda=1\times 10^{-9}. The resulting CIs for Patient 5 and Patient 6 are [−8.034,−5.667][-8.034,-5.667] and [−9.866,−7.104][-9.866,-7.104]. Both upper bounds are strictly negative.

Appendix E Technical proofs

The rest of the section is organized as follows. We first present the proof sketches for Theorems 1-4. We next present the detailed technical proofs.

We provide an outline for the proof in this section. The detailed proof can be found in Section E.5 of the supplementary article. We break the proof into three steps. In the first step, we show the estimator β^π\widehat{\bm{\beta}}_{\pi} satisfies

In the second step, we show the linear representation in (3.14) holds. The proof of (3.14) relies on the convergence rate of β^\widehat{\bm{\beta}} established in the first step and some additional random matrix nequalities in Lemma 4.

In the last step, we show the leading term on the RHS of (3.14) is asymptotically normal, based on the martingale central limit theorem. The completes the proof of Theorem 1.

E.2 A sketch for the proof of Theorem 2

Similar to (3.19), for each 1≤k≤K1\leq k\leq K, we have

where Rk(1)R_{k}^{(1)} denotes the remainder term and

for some remainder term Rk(2)R_{k}^{(2)}. Suppose Rk(1)R_{k}^{(1)} and Rk(2)R_{k}^{(2)} satisfy certain convergence rates. Combining (E.38) together with (E.37) yields,

due to our use of the inverse weighting trick. Theorem 2 thus follows from the martingale central limit theorem.

E.3 A sketch for the proofs of Theorems 3 and 4

For j=0,1,2,…j=0,1,2,\dots, define a time-dependent policy π^I(j)\widehat{\pi}_{\mathcal{I}}^{(j)} that executes π^I\widehat{\pi}_{\mathcal{I}} at the first jj time points and then follows πopt\pi^{\tiny{opt}}. By definition, we have πopt=π^I(0)\pi^{\tiny{opt}}=\widehat{\pi}_{\mathcal{I}}^{(0)} and π^I=π^I(∞)\widehat{\pi}_{\mathcal{I}}=\widehat{\pi}_{\mathcal{I}}^{(\infty)}. Notice that

Let qX(j)(⋅∣x)q_{X}^{(j)}(\cdot|x) be the density function of X0,jX_{0,j} conditional on X0,0=xX_{0,0}=x, following the estimated policy π^I\widehat{\pi}_{\mathcal{I}} at the first jj time points, we have

By A1, we have sup⁡x,x′,aq(x′∣x,a)≤c\sup_{x,x^{\prime},a}q(x^{\prime}|x,a)\leq c. Under the Markov assumption,

In addition, ∑a∈AQopt(x′,a){πopt(a∣x′)−π^I(a∣x′)}≥0\sum_{a\in\mathcal{A}}Q^{\tiny{opt}}(x^{\prime},a)\{\pi^{\tiny{opt}}(a|x^{\prime})-\widehat{\pi}_{\mathcal{I}}(a|x^{\prime})\}\geq 0 for any x′x^{\prime}, by the definition of πopt\pi^{\tiny{opt}}. Therefore, we obtain

E.4 Proof of Lemma 1

Since r(⋅,a)r(\cdot,a) is pp-smooth for any a∈Aa\in\mathcal{A}, it suffices to show

is pp-smooth for any a∈Aa\in\mathcal{A} and any policy π\pi.

as j→∞j\to\infty. By the mean value theorem, we have

where 0≤θx≤10\leq\theta_{x}\leq 1 for all xx. When 1<p≤21<p\leq 2, we have ⌊p⌋=1\lfloor p\rfloor=1. It follows from Condition A1 that

When p>2p>2, ∣∂j∂jq(x′∣x,a)∣|\partial_{j}\partial_{j}q(x^{\prime}|x,a)| exists and is bounded by cc for any x′x^{\prime}, xx and aa. It follows from the mean value theorem that

In addition, it follows from A1 and (E.44) that

where λ(⋅)\lambda(\cdot) denotes the Lebesgue measure. Using the same arguments, we can show for any dd-tuple α=(α1,…,αd)⊤\alpha=(\alpha_{1},\dots,\alpha_{d})^{\top} of nonnegative integers that satisfies ∥α∥1≤⌊p⌋\|\alpha\|_{1}\leq\lfloor p\rfloor,

Moreover, by A1, (E.44) and (E.45), we have for any dd-tuple α\alpha with ∥α∥1=⌊p⌋\|\alpha\|_{1}=\lfloor p\rfloor that

E.5 Proof of Theorem 1

There exists some constant c∗≥1c^{*}\geq 1 such that

Suppose the conditions in Theorem 1 hold. We have as either n→∞n\to\infty or T→∞T\to\infty that ∥Σ−1∥2≤3cˉ−1\|\bm{\Sigma}^{-1}\|_{2}\leq 3\bar{c}^{-1}, ∥Σ∥2=O(1)\|\bm{\Sigma}\|_{2}=O(1), ∥Σ^−Σ∥2=Op{L1/2(nT)−1/2log⁡(nT)}\|\widehat{\bm{\Sigma}}-\bm{\Sigma}\|_{2}=O_{p}\{L^{1/2}(nT)^{-1/2}\log(nT)\}, ∥Σ^−1−Σ−1∥2=Op{L1/2(nT)−1/2log⁡(nT)}\|\widehat{\bm{\Sigma}}^{-1}-\bm{\Sigma}^{-1}\|_{2}=O_{p}\{L^{1/2}(nT)^{-1/2}\log(nT)\} and ∥Σ^−1∥≤6cˉ−1\|\widehat{\bm{\Sigma}}^{-1}\|\leq 6\bar{c}^{-1} wpa1.

for some constant C>0C>0. Let β∗=(β1∗T,…,βm∗T)⊤\bm{\beta}^{*}=(\beta_{1}^{*T},\dots,\beta_{m}^{*T})^{\top}, and

The condition \mboxPr(max⁡0≤t≤T−1∣Yi,t∣≤c0)=1{\mbox{Pr}}(\max_{0\leq t\leq T-1}|Y_{i,t}|\leq c_{0})=1 implies that ∣Yi,t∣≤c0,∀i,t|Y_{i,t}|\leq c_{0},\forall i,t, almost surely. By Lemma 1 and the definition of pp-smooth functions, we obtain that ∣Q(π;x,a)∣≤c′|Q(\pi;x,a)|\leq c^{\prime} for any π,x,a\pi,x,a. It follows that

almost surely. In addition, it follows from (E.48) that

In the following, we show ζ2=Op{L(nT)−1log⁡(nT)}\zeta_{2}=O_{p}\{L(nT)^{-1}\log(nT)\} and ζ3=Op(L−p/d)\zeta_{3}=O_{p}(L^{-p/d}) as either n→∞n\to\infty, or T→∞T\to\infty.

Error bound for ∥ζ2∥2\|\zeta_{2}\|_{2}: Let Fi,t\mathcal{F}_{i,t} denote the sub-dataset {Xi,t,Ai,t}∪{(Yi,j,Ai,j,Xi,j)}1≤j<t\{X_{i,t},A_{i,t}\}\cup\{(Y_{i,j},A_{i,j},X_{i,j})\}_{1\leq j<t}. By the Bellman equation in (3.9), MA and CMIA, we have

Notice that ξi,t\bm{\xi}_{i,t} is a function of Xi,tX_{i,t} and Ai,tA_{i,t} only, we have for any 0≤t1<t2≤T−10\leq t_{1}<t_{2}\leq T-1 that

By Markov’s inequality, we obtain (nT)−1∑i=1n∑t=0T−1ξi,tεi,t=Op{L/(nT)}(nT)^{-1}\sum_{i=1}^{n}\sum_{t=0}^{T-1}\bm{\xi}_{i,t}\varepsilon_{i,t}=O_{p}\{\sqrt{L/(nT)}\}. Combining this together with Lemma 3 yields that ζ2=Op{L/nTlog⁡(nT)}Op{L/(nT)}=Op{L(nT)−1log⁡(nT)}\zeta_{2}=O_{p}\{\sqrt{L/nT}\log(nT)\}O_{p}\{\sqrt{L/(nT)}\}=O_{p}\{L(nT)^{-1}\log(nT)\}.

By Lemma 3, we have ∥Σ^−1∥2=Op(1)\|\widehat{\bm{\Sigma}}^{-1}\|_{2}=O_{p}(1). Combining this together with (E.51) yields that ζ3=Op(L−p/d)\zeta_{3}=O_{p}(L^{-p/d}).

This completes the first step of the proof.

Step 2: Using similar arguments in bounding ∥ζ2∥2\|\zeta_{2}\|_{2} in Step 1, we can show that ∥ζ1∥2=Op{L1/2(nT)−1/2}\|\zeta_{1}\|_{2}=O_{p}\{L^{1/2}(nT)^{-1/2}\} and thus

Since inf⁡x,aω(x,a)≥c0−1\inf_{x,a}\omega(x,a)\geq c_{0}^{-1}, it follows from Lemma 4 that

By Lemma 3, we have ∥Σ∥2=O(1)\|\bm{\Sigma}\|_{2}=O(1), or equivalently, λmax⁡(Σ⊤Σ)=O(1)\lambda_{\max}(\bm{\Sigma}^{\top}\bm{\Sigma})=O(1). This implies that λmin⁡{Σ−1(Σ⊤)−1}≥Cˉ\lambda_{\min}\{\bm{\Sigma}^{-1}(\bm{\Sigma}^{\top})^{-1}\}\geq\bar{C} for some constant Cˉ>0\bar{C}>0 and hence

by (E.56). Combining (E.57) together with (E.55) yields that

This completes the second step of the proof.

Let F(0)={X1,0,A1,0}\mathcal{F}^{(0)}=\{X_{1,0},A_{1,0}\}. Then we iteratively define {F(g)}1≤g≤nT\{\mathcal{F}^{(g)}\}_{1\leq g\leq nT} as follows:

Let ξ(g)=ξi(g),t(g)\bm{\xi}^{(g)}=\bm{\xi}_{i(g),t(g)} and ε(g)=εi(g),t(g)\varepsilon^{(g)}=\varepsilon_{i(g),t(g)}. It follows that

By MA, CMIA and the Bellman equation in (3.9), we obtain that

Hence, the RHS of (E.59) forms a martingale with respect to the filtration {σ(F(g))}g≥0\{\sigma(\mathcal{F}^{(g)})\}_{g\geq 0}, where σ(F(g))\sigma(\mathcal{F}^{(g)}) stands for the σ\sigma-algebra generated by F(g)\mathcal{F}^{(g)}. To show the asymptotic normality, we use a martingale central limit theorem for triangular arrays (McLeish 1974, Corollary 2.8 of). This requires to verify the following two conditions:

where the first inequality follows from Cauchy-Schwarz inequality, the second inequality is due to (E.49), the third inequality is due to Lemma 2 and the fact that ∥ξ(g)∥2≤sup⁡x∥ΦL(x)∥2\|\bm{\xi}^{(g)}\|_{2}\leq\sup_{x}\|\Phi_{L}(x)\|_{2}, and the last inequality follows from (E.56). Since L≪nT/log⁡(nT)L\ll\sqrt{nT}/\log(nT), (a) is proven. To verify (b), notice that

This can be proven using similar arguments in bounding ∥Σ^−Σ∥2\|\widehat{\bm{\Sigma}}-\bm{\Sigma}\|_{2} in the proof of Lemma 3. In view of (E.58) and (E.59), we have by Slutsky’s theorem that

and hence ∥Ω∥2=O(1)\|\bm{\Omega}\|_{2}=O(1). This together with Lemma 3 and the condition L≪nT/log⁡(nT)L\ll\sqrt{nT}/\log(nT) yields that

Thus, it remains to show ∥Σ^−1Ω^(Σ^⊤)−1−Σ^−1Ω(Σ^⊤)−1∥2=op(1)\|\widehat{\bm{\Sigma}}^{-1}\widehat{\bm{\Omega}}(\widehat{\bm{\Sigma}}^{\top})^{-1}-\widehat{\bm{\Sigma}}^{-1}\bm{\Omega}(\widehat{\bm{\Sigma}}^{\top})^{-1}\|_{2}=o_{p}(1), or ∥Ω^−Ω∥2=op(1)\|\widehat{\bm{\Omega}}-\bm{\Omega}\|_{2}=o_{p}(1), by Lemma 3. In view of (E.60), it suffices to show ∥(nT)−1∑g=1nT(ε(g))2ξ(g)(ξ(g))⊤−Ω^∥2=op(1)\|(nT)^{-1}\sum_{g=1}^{nT}(\varepsilon^{(g)})^{2}\bm{\xi}^{(g)}(\bm{\xi}^{(g)})^{\top}-\widehat{\bm{\Omega}}\|_{2}=o_{p}(1), or equivalently,

Therefore, it remains to show max⁡1≤g≤nT∣ε(g)−ε^(g)∣=op(1)\max_{1\leq g\leq nT}|\varepsilon^{(g)}-\widehat{\varepsilon}^{(g)}|=o_{p}(1), or equivalently,

Under the given conditions, we have Lp/d≫nTL^{p/d}\gg\sqrt{nT} and L≪nT/log⁡(nT)L\ll\sqrt{nT}/\log(nT). This implies Op(L1/2−p/d)=op(1)O_{p}(L^{1/2-p/d})=o_{p}(1), and Op(Ln−1/2T−1/2)=op(1)O_{p}(Ln^{-1/2}T^{-1/2})=o_{p}(1). Therefore, we have

E.6 Proof of Lemma 2

For B-spline basis, the assertion in (E.47) follows from the arguments used in the proof of Theorem 3.3 of Burman and Chen 1989. For wavelet basis, the assertion in (E.47) follows from the arguments used in the proof of Theorem 5.1 of Chen and Christensen 2015.

E.7 Proof of Lemma 3

Part 1: It follows from Cauchy-Schwarz inequality that

where μˉ=T−1∑t=0T−1μt\bar{\mu}=T^{-1}\sum_{t=0}^{T-1}\mu_{t}, μt\mu_{t} is the marginal density of X0,tX_{0,t} and

Part 2: We first consider Scenario (ii). Define the random matrix

By Lemma 2, we have max⁡1≤i≤n,0≤t≤T−1∥ξ(Xi,t,Ai,t)∥2≤sup⁡x∥ΦL(x)∥2≤c∗L\max_{1\leq i\leq n,0\leq t\leq T-1}\|\bm{\xi}(X_{i,t},A_{i,t})\|_{2}\leq\sup_{x}\|\Phi_{L}(x)\|_{2}\leq c^{*}\sqrt{L} and max⁡1≤i≤n,1≤t≤T∥U(Xi,t+1)∥2≤sup⁡x∥ΦL(x)∥2≤c∗L\max_{1\leq i\leq n,1\leq t\leq T}\|\bm{U}(X_{i,t+1})\|_{2}\leq\sup_{x}\|\Phi_{L}(x)\|_{2}\leq c^{*}\sqrt{L}. It follows that

Moreover, using similar arguments in proving (E.64), we can show

For any t>0t>0, the marginal density function of X0,tX_{0,t} is given by

This together with (E.65) and (E.66) yields

for some constant C>0C>0. Combining this together with (E.64), an application of the matrix concentration inequality (Tropp 2012, see Theorem 1.6 in) yields that

Set τ=3CnLlog⁡n\tau=3\sqrt{CnL\log n}. Since TT is bounded, under the given conditions, nn will grow to infinity. For sufficiently large nn, we have 8L(c∗)2τ/3≪τ28L(c^{*})^{2}\tau/3\ll\tau^{2} and hence

Since L≪nL\ll n and TT is bounded, we obtain 2mL/n4≪1/(n2T2)2mL/n^{4}\ll 1/(n^{2}T^{2}). Thus, we can show that the following event occurs with probability at least 1−O(n−2T−2)1-O(n^{-2}T^{-2}),

We aim to apply the matrix concentration inequality to the sum of independent random matrix (regardless of whether nn is bounded or not),

We begin by providing an upper error bound for max⁡1≤i≤n∥T−1∑t=0T−1(Ri,t−Σ)∥2\max_{1\leq i\leq n}\|T^{-1}\sum_{t=0}^{T-1}(\bm{R}_{i,t}-\bm{\Sigma})\|_{2}. Let Ft−1={(X0,j,A0,j)}0≤j≤t\mathcal{F}_{t-1}=\{(X_{0,j},A_{0,j})\}_{0\leq j\leq t}, for all t≥0t\geq 0, and σ(Ft)\sigma(\mathcal{F}_{t}) be the σ\sigma-algebra generated by Ft\mathcal{F}_{t}. Define

The sum ∑t=0T−1(R0,t∗−R0,t)\sum_{t=0}^{T-1}(\bm{R}_{0,t}^{*}-\bm{R}_{0,t}) forms a mean zero matrix martingale with respect to the filtration {σ(Ft):t≥−1}\{\sigma(\mathcal{F}_{t}):t\geq-1\}. Similar to (E.64) and (E.69), we can show

By the matrix martingale concentration inequality (Tropp 2011, Corollary 1.3,), we obtain the following occurs with probability at least 1−O(n−3T−2)1-O(n^{-3}T^{-2}),

Conditional on {X0,t∗}t≥0\{X_{0,t}^{*}\}_{t\geq 0}, {R0,t∗−R0,t∗∗}t≥0\{\bm{R}_{0,t}^{*}-\bm{R}_{0,t}^{**}\}_{t\geq 0} are independent mean zero random variables. Using similar arguments in proving (E.70), we can show that

for some constant C>0C>0, where the big-OO term is independent of {X0,t∗}t≥0\{X_{0,t}^{*}\}_{t\geq 0}. Thus, we obtain

This together with (E.71) implies that the following event occurs with probability at least 1−O(n−3T−2)1-O(n^{-3}T^{-2}),

Notice that each R0,t∗∗\bm{R}_{0,t}^{**} is a function of X0,tX_{0,t} only, with mean Σ\bm{\Sigma}. Following Davydov 1973, define the β\beta-mixing coefficient of the stationary Markov chain {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} as

Under the geometric ergodicity assumption in A3(ii) and , it follows from Lemma 1 of Meitz and Saikkonen 2019 that {X0,t}t≥0\{X_{0,t}\}_{t\geq 0} is exponentially β\beta-mixing. That is, β(t)=O(ρt)\beta(t)=O(\rho^{t}) for some ρ<1\rho<1 and any t≥0t\geq 0. Using similar arguments in proving (E.64), we can show

Using similar arguments in proving (E.69), we can show

where Ir={q⌊(T+1)/q⌋,q⌊(T+1)/q⌋+1,⋯ ,T−1}\mathcal{I}_{r}=\{q\lfloor(T+1)/q\rfloor,q\lfloor(T+1)/q\rfloor+1,\cdots,T-1\}. Suppose τ≥5qL(c∗)2\tau\geq 5qL(c^{*})^{2}. Notice that ∣Ir∣≤q|\mathcal{I}_{r}|\leq q. It follows from (E.74) that

Since β(q)=O(ρq)\beta(q)=O(\rho^{q}), set q=−3log⁡(nT)/log⁡ρq=-3\log(nT)/\log\rho, we obtain Tβ(q)/q=O(n−3T−2)T\beta(q)/q=O(n^{-3}T^{-2}). Set τ=max⁡{4CTqLlog⁡(Tn),11qL(c∗)2log⁡(nT)}\tau=\max\{4\sqrt{CTqL\log(Tn)},11qL(c^{*})^{2}\log(nT)\}, we obtain that

as either n→∞n\to\infty or T→∞T\to\infty. It follows from (E.76), (E.77) and the condition L≪nTL\ll nT that the following event occurs with probability at least 1−O(n−3T−2)1-O(n^{-3}T^{-2}),

Combining this together with (E.73) yields that the following event occurs with probability at least 1−O(n−3T−2)1-O(n^{-3}T^{-2}),

By Bonferroni’s inequality, we obtain with probability at least 1−O(n−2T−2)1-O(n^{-2}T^{-2}) that

for some constant Cˉ>0\bar{C}>0. For i=0,1,…,ni=0,1,\dots,n, let Ai\mathcal{A}_{i} denote the event

It follows from (E.79) that the following event occurs with probability at least 1−O(n−2T−2)1-O(n^{-2}T^{-2}),

For any 0≤t1<t2≤T−10\leq t_{1}<t_{2}\leq T-1 with t2−t1≥4t_{2}-t_{1}\geq 4, it follows from MA that (X0,t2,A0,t2,X0,t2+1)(X_{0,t_{2}},A_{0,t_{2}},X_{0,t_{2}+1}) is independent of (X0,t1,A0,t1,X0,t1+1)(X_{0,t_{1}},A_{0,t_{1}},X_{0,t_{1}+1}) given X0,t2−1X_{0,t_{2}-1}. Thus, we have

Similarly, conditional on X0,t1+2X_{0,t_{1}+2}, (X0,t1,A0,t1,X0,t1+1)(X_{0,t_{1}},A_{0,t_{1}},X_{0,t_{1}+1}) and X0,t2−1X_{0,t_{2}-1} are independent. It follows that

where Θl,t,j,⋅(x)\bm{\Theta}_{l,t,j,\cdot}(x) and Θl,t,⋅,j(x)\bm{\Theta}_{l,t,\cdot,j}(x) denote the jj-th row and jj-column of Θl,t(x)\bm{\Theta}_{l,t}(x), respectively. Let ξj(⋅,⋅)\xi_{j}(\cdot,\cdot) be the jj-th element of ξ(⋅,⋅)\bm{\xi}(\cdot,\cdot). By Lemma 2 and the definitions of ξ\bm{\xi} and U\bm{U},

where the above bound is uniform for any pair (t1,t2)(t_{1},t_{2}) that satisfies 0≤t1≤t2−40\leq t_{1}\leq t_{2}-4. Therefore, we have

and hence η3⪯LT\eta_{3}\preceq LT. This together with (E.81) and (E.82) yields that

Combining this with (E.79), an application of the matrix Bernstein inequality (Tropp 2012, Theorem 1.6 in) yields that

under the assumption that L=o{nT/log⁡2(nT)}L=o\{nT/\log^{2}(nT)\}. This together with (E.79) yields that

by (E.78), (E.85) and the condition that L≪Tn/log⁡2(Tn)L\ll Tn/\log^{2}(Tn). This together with (E.86) yields that

and hence ∥Σ^−Σ∥2=Op{L1/2(nT)−1/2log⁡(nT)}\|\widehat{\bm{\Sigma}}-\bm{\Sigma}\|_{2}=O_{p}\{L^{1/2}(nT)^{-1/2}\log(nT)\}.

Using similar arguments in Part 1, this implies Σ^\widehat{\bm{\Sigma}} is invertible and satisfies ∥Σ^−1∥2≤3cˉ−1\|\widehat{\bm{\Sigma}}^{-1}\|_{2}\leq 3\bar{c}^{-1}, with probability tending to 11. Therefore

with probability tending to 11. Since ∥Σ^−Σ∥2=Op{L1/2(nT)−1/2log⁡(nT)}\|\widehat{\bm{\Sigma}}-\bm{\Sigma}\|_{2}=O_{p}\{L^{1/2}(nT)^{-1/2}\log(nT)\}, we obtain ∥Σ^−1−Σ−1∥2=Op{L1/2(nT)−1/2log⁡(nT)}\|\widehat{\bm{\Sigma}}^{-1}-\bm{\Sigma}^{-1}\|_{2}=O_{p}\{L^{1/2}(nT)^{-1/2}\log(nT)\}. The proof is hence completed.

Since the matrix ∑a∈Aξ(X0,t,a)ξ⊤(X0,t,a)b(a∣X0,t)\sum_{a\in\mathcal{A}}\bm{\xi}(X_{0,t},a)\bm{\xi}^{\top}(X_{0,t},a)b(a|X_{0,t}) is block diagonal with the main-diagonal blocks {ΦL(X0,t)ΦL(X0,t)⊤b(j∣X0,t)}j=1,…,m\{\Phi_{L}(X_{0,t})\Phi_{L}(X_{0,t})^{\top}b(j|X_{0,t})\}_{j=1,\dots,m}. By Lemma 2 and Condition A2, we can show η4(1)⪯1\eta_{4}^{(1)}\preceq 1. As for η4(2)\eta_{4}^{(2)}, we have

where the first inequality follows from Jensen’s inequality. By Lemma 2, we can similarly show that η4(2)⪯1\eta_{4}^{(2)}\preceq 1. Thus, we obtain ∥Σ∥2=η4⪯1\|\bm{\Sigma}\|_{2}=\eta_{4}\preceq 1. The proof is hence completed.

E.8 Proof of Lemma 4

as T→∞T\to\infty. Using similar arguments as in the first part of the proof of Lemma 3, we can show that

as either n→∞n\to\infty, or T→∞T\to\infty. Using similar arguments in the third part of the proof of Lemma 3, we can show that

Since L=o{nT/log⁡(nT)}L=o\{\sqrt{nT}/\log(nT)\}, it follows from (E.87) and (E.88) that the following event occurs with probability tending to 11,

It remains to show λmax⁡{(nT)−1∑i=1n∑t=0T−1ξi,tξi,t⊤}=Op(1)\lambda_{\max}\{(nT)^{-1}\sum_{i=1}^{n}\sum_{t=0}^{T-1}\bm{\xi}_{i,t}\bm{\xi}_{i,t}^{\top}\}=O_{p}(1) and

Suppose (E.89) holds. By (E.88) and the condition that L=o{nT/log⁡(nT)}L=o\{\sqrt{nT}/\log(nT)\}, we have λmax⁡{(nT)−1∑i=1n∑t=0T−1ξi,tξi,t⊤}=Op(1)\lambda_{\max}\{(nT)^{-1}\sum_{i=1}^{n}\sum_{t=0}^{T-1}\bm{\xi}_{i,t}\bm{\xi}_{i,t}^{\top}\}=O_{p}(1). Thus, it suffices to show (E.89). This can be proven using similar arguments in Part 2 of the proof of Lemma 3. We omit the details for brevity. The proof is hence completed.

E.9 Proof of Lemma 5

It follows from Cauchy-Schwarz inequality and triangle inequality that

E.10 Proof of Theorem 2

Without loss of generality, we assume n=Knnmin⁡n=K_{n}n_{\min} and T=KTTmin⁡T=K_{T}T_{\min} such that ∣Ik∣=nmin⁡Tmin⁡|\mathcal{I}_{k}|=n_{\min}T_{\min} for any kk. Under the given conditions, KK is bounded. Similar to Lemma 3, we can show under A4* that

We next bound the difference between Σπ^Iˉk−1\bm{\Sigma}_{\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}} and Σ^Ik,π^Iˉk−1\widehat{\bm{\Sigma}}_{\mathcal{I}_{k},\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}}. Consider the scenario where TT is bounded first. Since Tmin⁡=TT_{\min}=T, the data are divided according to the trajectories they belong to. Thus, for any k=2,…,Kk=2,\dots,K, variables {(Xi,t,Ai,t,Yi,t,Xi,t+1)}(i,t)∈Ik\{(X_{i,t},A_{i,t},Y_{i,t},X_{i,t+1})\}_{(i,t)\in\mathcal{I}_{k}} are independent of {(Xi,t,Ai,t,Yi,t,Xi,t+1)}(i,t)∈Iˉk−1\{(X_{i,t},A_{i,t},Y_{i,t},X_{i,t+1})\}_{(i,t)\in\bar{\mathcal{I}}_{k-1}}. Let

Using similar arguments in Part 2 of the proof of Lemma 3, we can show

with probability at least 1−O(n−2T−2)=1−o(1)1-O(n^{-2}T^{-2})=1-o(1).

Now let us consider the scenario where T→∞T\to\infty. For k=1,…,Kk=1,\dots,K, define (i0(k),t0(k))(i_{0}(k),t_{0}(k)) to be the tuple in Ik\mathcal{I}_{k} such that i≥i0(k),t≥t0(k)i\geq i_{0}(k),t\geq t_{0}(k) for any (i,t)∈Ik(i,t)\in\mathcal{I}_{k}. Then, we have

Consider any k∈{2,…,K}k\in\{2,\dots,K\} with t0(k)=0t_{0}(k)=0, {(Xi,t,Ai,t,Yi,t,Xi,t+1)}(i,t)∈Ik\{(X_{i,t},A_{i,t},Y_{i,t},X_{i,t+1})\}_{(i,t)\in\mathcal{I}_{k}} are independent of {(Xi,t,Ai,t,Yi,t,Xi,t+1)}(i,t)∈Iˉk−1\{(X_{i,t},A_{i,t},Y_{i,t},X_{i,t+1})\}_{(i,t)\in\bar{\mathcal{I}}_{k-1}}. Using similar arguments in Part 2 of the proof of Lemma 3, we can show wpa1 that,

Consider k∈{2,…,K}k\in\{2,\dots,K\} with t0(k)>0t_{0}(k)>0. We decompose Σ^Ik,π^Iˉk−1\widehat{\bm{\Sigma}}_{\mathcal{I}_{k},\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}} as

Error bound for max⁡k∥Σ^Ik,π^Iˉk−1(1)−Σπ^Iˉk−1(1)∥2\max_{k}\|\widehat{\bm{\Sigma}}^{(1)}_{\mathcal{I}_{k},\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}}-\bm{\Sigma}^{(1)}_{\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}}\|_{2}: Given {(Xj,t,Aj,t,Yj,t,Xj,t+1)}(j,t)∈Iˉk−1\{(X_{j,t},A_{j,t},Y_{j,t},X_{j,t+1})\}_{(j,t)\in\bar{\mathcal{I}}_{k-1}}, (Ai0(k),t0(k),Xi0(k),t0(k)+1),⋯ ,(Ai0(k)+nmin⁡−1,t0(k),Xi0(k)+nmin⁡−1,t0(k)+1)(A_{i_{0}(k),t_{0}(k)},X_{i_{0}(k),t_{0}(k)+1}),\cdots,(A_{i_{0}(k)+n_{\min}-1,t_{0}(k)},X_{i_{0}(k)+n_{\min}-1,t_{0}(k)+1}) conditionally independent. Using the matrix concentration inequality, we can show wpa1 that

Error bound for max⁡k∥Σ^Ik,π^Iˉk−1(2)−Σπ^Iˉk−1(2)∥2\max_{k}\|\widehat{\bm{\Sigma}}^{(2)}_{\mathcal{I}_{k},\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}}-\bm{\Sigma}^{(2)}_{\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}}\|_{2}: Given {(Xj,t,Aj,t,Yj,t,Xj,t+1)}(j,t)∈Iˉk−1\{(X_{j,t},A_{j,t},Y_{j,t},X_{j,t+1})\}_{(j,t)\in\bar{\mathcal{I}}_{k-1}}, the sets of variables {(Xi0(k),t,Ai0(k),t,Yi0(k),t,Xi0(k),t+1):t0(k)+1≤t<t0(k)+Tmin⁡},⋯ ,{(Xi0(k)+nmin⁡−1,t,Ai0(k)+nmin⁡−1,t,Yi0(k)+nmin⁡−1,t,Xi0(k)+nmin⁡−1,t+1):t0(k)+1≤t<t0(k)+Tmin⁡}\{(X_{i_{0}(k),t},A_{i_{0}(k),t},Y_{i_{0}(k),t},X_{i_{0}(k),t+1}):t_{0}(k)+1\leq t<t_{0}(k)+T_{\min}\},\cdots,\\ \{(X_{i_{0}(k)+n_{\min}-1,t},A_{i_{0}(k)+n_{\min}-1,t},Y_{i_{0}(k)+n_{\min}-1,t},X_{i_{0}(k)+n_{\min}-1,t+1}):t_{0}(k)+1\leq t<t_{0}(k)+T_{\min}\} are conditionally independent. Moreover, for any ii such that (i,t0(k))∈Ik(i,t_{0}(k))\in\mathcal{I}_{k}, the density function of Xi,t0(k)+1X_{i,t_{0}(k)+1} conditional on {(Xj,t,Aj,t,Yj,t,Xj,t+1)}(j,t)∈Iˉk−1\{(X_{j,t},A_{j,t},Y_{j,t},X_{j,t+1})\}_{(j,t)\in\bar{\mathcal{I}}_{k-1}} is uniformly bounded under A3. Using similar arguments in bounding ∥Σ^−Σ∥2\|\widehat{\bm{\Sigma}}-\bm{\Sigma}\|_{2} in Part 2 of the proof of Lemma 3, we can show wpa1 that

Combining (E.93) with (E.94) and (E.92), we obtain wpa1 that

wpa1, regardless of whether TT is bounded or not. Under the given conditions, we have L/(nT)log⁡(nT)=o(1)\sqrt{L/(nT)}\log(nT)=o(1). Using similar arguments in the proof of Lemma 3, we can show wpa1 that

Notice that π^=π^Iˉ(K)\widehat{\pi}=\widehat{\pi}_{\bar{\mathcal{I}}(K)}. By Lemma 1, we have Q(π^Iˉ(k);⋅,a)∈Λ(p,c′)Q(\widehat{\pi}_{\bar{\mathcal{I}}(k)};\cdot,a)\in\Lambda(p,c^{\prime}) for any k∈{1,…,K}k\in\{1,\dots,K\}. Using similar arguments in the proof of Theorem 12.8 of Schumaker 1981 and proof of Proposition 5 of Meyer 1992, there exist some vectors {βπ^Iˉ(k),a∗}a∈A,1≤k≤K\{\beta^{*}_{\widehat{\pi}_{\bar{\mathcal{I}}(k)},a}\}_{a\in\mathcal{A},1\leq k\leq K} that satisfy

for some constant C>0C>0. Similar to (E.50), we have by (E.97) that

Similar to the proof of Theorem 1, we have by (E.96) and (E.98) that

Using similar arguments in the proof of Theorem 1, we can show

Notice that π^=π^IˉK\widehat{\pi}=\widehat{\pi}_{\bar{\mathcal{I}}_{K}}. Under A5, we have

where O(1)O(1) denotes some positive constant. Since ∑k=1K−1k−b0≤1+∫1Kx−b0dx⪯K1−b0\sum_{k=1}^{K-1}k^{-b_{0}}\leq 1+\int_{1}^{K}x^{-b_{0}}dx\preceq K^{1-b_{0}}, we obtain that

By A6. By Markov’s inequality, we obtain that

Similar to Lemma 5, we can show that for any k∈{2,…,K}k\in\{2,\dots,K\},

Using similar arguments in the proof of Theorem 1, we can show

Similar to (E.57), we can show there exists some constant c6>0c_{6}>0, such that the following occurs wpa1,

Combining this together with (E.100), we obtain that

The LHS of (E.103) can be further decomposed as

In the following, we show η7→dN(0,1)\eta_{7}\stackrel{{\scriptstyle d}}{{\to}}N(0,1). Based on (E.101), one can show η8→P0\eta_{8}\stackrel{{\scriptstyle P}}{{\to}}0. Assertion (E.103) thus follows from Slutsky’s theorem.

For any 1≤g≤nT1\leq g\leq nT, there exists some integer k(g)k(g) that satisfies {k(g)−1}nmin⁡Tmin⁡+1≤g≤k(g)nmin⁡Tmin⁡\{k(g)-1\}n_{\min}T_{\min}+1\leq g\leq k(g)n_{\min}T_{\min}. Let t(g)t(g) and i(g)i(g) be the integers that satisfy

Let F(0)={X1,0,A1,0}\mathcal{F}^{(0)}=\{X_{1,0},A_{1,0}\}. Then we iteratively define {F(g)}1≤g≤nT\{\mathcal{F}^{(g)}\}_{1\leq g\leq nT} as follows:

Let ξ(g)=ξi(g),t(g)\bm{\xi}^{(g)}=\bm{\xi}_{i(g),t(g)} and ε(g)=εi(g),t(g)\varepsilon^{(g)}=\varepsilon_{i(g),t(g)}. We rewrite η7\eta_{7} as

One can show that η7\eta_{7} forms a mean-zero martingale with respect to the filtration {σ(F(g))}g≥nT/K\{\sigma(\mathcal{F}^{(g)})\}_{g\geq nT/K}. Using similar arguments in the proof of Theorem 1, we can show that

where Ω^Ik,π^Iˉk−1∗=∣Ik∣−1∑(i,t)∈Ikξi,tξi,t⊤εi,t2\widehat{\bm{\Omega}}^{*}_{\mathcal{I}_{k},\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}}=|\mathcal{I}_{k}|^{-1}\sum_{(i,t)\in\mathcal{I}_{k}}\bm{\xi}_{i,t}\bm{\xi}_{i,t}^{\top}\varepsilon_{i,t}^{2}.

Similar to the proof of Theorem 1, we can show max⁡k∈{2,…,K}∥Ω^Ik,π^Iˉk−1∗−Ωπ^Iˉk−1∥2=op(1)\max_{k\in\{2,\dots,K\}}\|\widehat{\bm{\Omega}}^{*}_{\mathcal{I}_{k},\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}}-\bm{\Omega}_{\widehat{\pi}_{\bar{\mathcal{I}}_{k-1}}}\|_{2}=o_{p}(1). Similar to (E.56), we can show there exists some constant c7>0c_{7}>0 such that

Using a martingale central limit theorem for triangular arrays (McLeish 1974, Corollary 2.8 of), we have by (E.104) and (E.106) that η7→dN(0,1)\eta_{7}\stackrel{{\scriptstyle d}}{{\to}}N(0,1). The proof is hence completed.

E.11 Proof of Theorem 3

Based on the discussions in Section 3.2.3, it suffices to show

We only prove (E.107) for brevity. Under the given conditions, we have \mboxPr(A0)≥1−O(∣I∣−κ){\mbox{Pr}}(\mathcal{A}_{0})\geq 1-O(|\mathcal{I}|^{-\kappa}), where

Under A1, QoptQ^{\tiny{opt}} is uniformly bounded. Therefore, the first term on the RHS of (E.108) is upper bounded by O{\mboxPr(A0c)}=O(∣I∣−κ)O\{{\mbox{Pr}}(\mathcal{A}_{0}^{c})\}=O(|\mathcal{I}|^{-\kappa}). Since κ\kappa can be chosen arbitrarily large, it suffices to show

Under the event defined in A0\mathcal{A}_{0}, we have

Let a^I(x)=\sargmaxaQ^I(a,x)\widehat{a}_{\mathcal{I}}(x)=\sargmax_{a}\widehat{Q}_{\mathcal{I}}(a,x). Similarly, we can show the event a^I(x)∉arg max⁡a∈AQopt(x,a)\widehat{a}_{\mathcal{I}}(x)\notin\argmax_{a\in\mathcal{A}}Q^{\tiny{opt}}(x,a) occurs only when

Since max⁡aQopt(x,a)−Qopt(x,a^I(x))=∑aQopt(x,a){πopt(a∣x)−π^I(a∣x)}\max_{a}Q^{\tiny{opt}}(x,a)-Q^{\tiny{opt}}(x,\widehat{a}_{\mathcal{I}}(x))=\sum_{a}Q^{\tiny{opt}}(x,a)\{\pi^{\tiny{opt}}(a|x)-\widehat{\pi}_{\mathcal{I}}(a|x)\}, we obtain

where the first equality follows from A5. Combining this together with (E.111) yields (E.109). The proof is hence completed.

E.12 Proof of Theorem 4

For a given ε>0\varepsilon>0, let A∗={max⁡aQopt(x,a)−Qopt(x,a^I(x))≤ε}\mathcal{A}_{*}=\{\max_{a}Q^{\tiny{opt}}(x,a)-Q^{\tiny{opt}}(x,\widehat{a}_{\mathcal{I}}(x))\leq\varepsilon\}. Notice that

Using similar arguments in the proof of Theorem 3, we can show

Moreover, similar to (E.112), we can show the event a^I(x)∉arg max⁡a∈AQopt(x,a)\widehat{a}_{\mathcal{I}}(x)\notin\argmax_{a\in\mathcal{A}}Q^{\tiny{opt}}(x,a) occurs only when

Combining this together with (E.113) and (E.114) yields that

The proof is hence completed by setting ε=∣I∣−2b∗/(2+α)\varepsilon=|\mathcal{I}|^{-2b_{*}/(2+\alpha)}.