Introduction
Deep neural networks are now a standard tool for probabilistic forecasting of large panels of related time series. Architectures such as DeepAR (Salinas et al., 2020) and the Temporal Fusion Transformer (TFT; Lim et al., 2021) are trained on all series jointly, output the parameters or the quantiles of a predictive distribution, and are applied in demand planning, energy and public health. Many of the panels encountered in these applications consist of counts that are sparse, bursty and overdispersed, and that are dependent across both time and space; examples include disease surveillance, traffic flows (He et al., 2023) and event records, for which deep temporal encoders have been paired with negative binomial and zero-inflated negative binomial likelihood heads in a Bayesian pipeline (Huang et al., 2026). Weekly surveillance counts of a notifiable disease are a typical example: most site-weeks have no case, a few sites have bursts of several dozen cases, the variance is many times the mean, and neighboring sites move together. Despite the empirical success of deep forecasters on such data, their statistical behavior is largely unknown. It is not clear at what rate the estimated predictive distribution approaches the truth, whether that rate can be improved, or what the estimation error implies for a prediction interval issued several steps ahead.
A substantial body of work addresses the first two questions for nonparametric regression with independent observations. Deep networks with the rectified linear unit (ReLU) activation approxi-
©2026 Hsin-Hsiung Huang.
License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/. mate smooth functions efficiently (Yarotsky, 2017), and least squares estimators over such networks attain minimax optimal rates for smooth and for composition-structured regression functions [12 ] (Bauer and Kohler 2019; Kohler and Langer 2021; Jiao et al. 2023), as well as for non-smooth ones (Imaizumi and Fukumizu, 2019). The key insight of this line of work is that the rate depends on the intrinsic dimension of the components of the target function and not on the number of covariates. Extensions cover general loss functions (Farrell et al., 2021) and high-dimensional factor structure (Fan and Gu, 2024), and network rates have been combined with structured response models, for instance for responses in metric spaces [7 ] (Han and Huang 2026). For dependent observations, generalization bounds are available under mixing conditions (Yu, 1994; Mohri and Rostamizadeh, 2008), and rates over deep networks have been established for least squares with mixing sequences and nonlinear autoregressions [9 ] (Ma and Safikhani 2022), for Lipschitz losses under strong mixing (Kengne and Wade, 2025), and for generalized Bayes estimators on Markov chains with a spectral gap [2 ] . For a likelihood loss, Yara and Terada [20 ] obtain Hellinger rates for nonparametric maximum likelihood over deep networks from independent replications of a covariate-driven Poisson process. These results do not cover deep count forecasting. The loss there is a likelihood for unbounded and overdispersed responses, with a second unknown function for the dispersion; the covariates are generated by the process itself, along a single trajectory that need be neither stationary nor mixing; and translating estimation error into count-valued predictive distributions several steps ahead requires an additional argument. Deriving mixing from model assumptions, as we do for the out-of-sample risk, is not unique to the present work [9 Lemma 4.1] .
A second line of work, in statistics, models the conditional mean of a count given the past with a parametric form. Poisson and negative binomial autoregressions have a well-developed theory [4 ] (Neumann 2011; Davis et al. 2016), nonparametric autoregression is classical for continuous responses (Fan and Yao, 2003), and the endemic–epidemic framework of Held et al. (2005) and Meyer and Held (2014) adds spatial spillover between regions and is the standard tool of surveillance epidemiology. Recent parametric developments include parsimonious spatio-temporal count autoregressions with consistent and asymptotically normal quasi-likelihood estimators [10 ] and negative binomial models whose dispersion follows its own observation-driven recursion [14 ] . Bayesian hierarchical models add zero inflation and spatial and temporal random effects with Gaussian process priors, with posterior computation by Pólya–Gamma data augmentation [6 , 13 ] (Polson et al. 2013; Huang and He 2024), and shrinkage priors extend Bayesian count regression to sparse variable selection for mixed-type multivariate responses (Wang et al., 2025). These models are interpretable and their properties are understood, but a mean that is log-linear in the covariates cannot express thresholds, saturation, or interactions between the level of a site and that of its neighbors. Nonparametric theory for count autoregression is scarce: Wechsung and Neumann [17 ] obtain a rate for a least squares estimator of the contractive link function of a univariate Poisson autoregression. Neural networks have entered count modeling in two other ways, neither with a rate theory. They serve as the response function of an integer-valued autoregression, a small network fitted as a parametric model [8 ] ; and they serve as amortized estimators: Svensson [15 ] pre-trains a transformer on simulated data to return the three parameters of a two-group negative binomial regression with independent observations, and reports that closed-form moment estimators are the most efficient solution of that task. There the network replaces the optimizer, while the model stays parametric and the data independent. Here the network is the nonparametric component of the model, and the object of study is the conditional law of a dependent panel.
In this work, we study a model that connects these two lines and admits a statistical analysis under explicit restrictions. The deep negative binomial spatio-temporal autoregression, DeepNB-STAR, specifies that the count Y s , t Y_{s,t} Y s , t at site s s s in week t t t is, given the past, negative binomial with mean exp { f 0 ( X s , t ) } \exp\{f_0(X_{s,t})\} exp { f 0 ( X s , t )} and size exp { g 0 ( X s , t ) } \exp\{g_0(X_{s,t})\} exp { g 0 ( X s , t )} , where the covariate vector X s , t X_{s,t} X s , t summarizes the recent counts of the site, those of its nearest neighbors, the overall level and the season, and f 0 f_0 f 0 and g 0 g_0 g 0 are unknown functions. Temporal dependence and spatial dependence enter through the arguments of both functions, and sparsity and overdispersion are handled by the likelihood. We estimate f 0 f_0 f 0 and g 0 g_0 g 0 jointly by maximum likelihood over deep ReLU networks with two outputs and obtain the predictive distribution at any horizon by simulating the fitted model forward. The network is not the contribution: it is the sieve that lets a likelihood model with two unknown functions of several dozen lagged and neighboring summaries adapt to low-dimensional structure. The contribution is statistical. It consists of a nonparametric count autoregression in which the overdispersion, like the mean, is an unknown function of the spatio-temporal past; of a theory for it that takes one dependent trajectory as it is, with a lower bound; and of guarantees for the object used in practice, the multi-step predictive distribution and its intervals. Because the model specifies the joint law of the panel, the questions raised above have precise answers.
Our main results are as follows. An oracle inequality bounds the Hellinger risk of the maximum likelihood estimator along the observed trajectory by the approximation error of the network class plus its metric entropy divided by the sample size. It requires only that the conditional model be correctly specified; no stationarity or mixing is assumed, so it applies to the autoregressive, spatially coupled and seasonal panel as it is. Conditional independence across sites, which the model also specifies, is not needed: if only the conditional law of each count is correct, the same inequality holds with the number of periods T T T in place of n = S T n = ST n = S T in its stochastic term, and this cannot be improved in general. When f 0 f_0 f 0 is a composition of Hölder functions, each depending on few variables, the inequality yields, up to logarithmic factors, the rate ϕ n \phi_n ϕ n that Schmidt-Hieber [12 ] obtained for least squares regression with independent Gaussian errors, defined in (5) . For a Hölder subclass, we prove a matching lower bound, for any number of sites, in an experiment whose covariates include exogenous inputs; it does not cover a covariate map that depends on past counts alone, which we discuss. A model with bounded log-mean and finite memory, possibly driven by independent exogenous inputs, is shown to be geometrically absolutely regular (Bradley, 2005), which yields the risk on an independent copy of the process. We then bound the total variation distance between the fitted and the true predictive distributions, one step and h h h steps ahead, by the estimation risk plus the Monte Carlo error of the simulated quantities; this gives explicit bounds on the difference between the fitted and the true coverage probabilities of prediction intervals at every horizon. Finally, all these results extend to a size that is unknown and may depend on the covariates, estimated jointly with the log-mean as a second output of the network. Averages of several fits inherit the rates, and so do functionals of the two functions that are Lipschitz in the empirical norm, such as averages over the observed site-weeks; this motivates the exploratory bootstrap summaries we report but does not validate their intervals, and functionals that evaluate the functions at unobserved covariate values, such as partial effects, are not covered.
The proofs combine known devices with new steps, and we separate the two. The conditional expectation of the square root of a likelihood ratio equals one minus the squared Hellinger distance, so an exponential supermartingale inequality bounds the Hellinger risk at the covariate values actually visited. This argument goes back to maximum likelihood for counting processes [16 ] and is used for sequential density estimation [21 , 1 ] . For the horizon, the simulation lemma of reinforcement learning adds one-step total variation errors, so the bound grows linearly (Kearns and Singh, 2002; Munos and Szepesvári, 2008), whereas Kullback–Leibler divergences are additive by the chain rule; trajectory-level analyses of the logarithmic loss exist for independent trajectories, in Hellinger distance [5 ] and in Kullback–Leibler divergence under bounded log-density ratios [19 ] . The error of the h h h -step predictive law is then of order h 1 / 2 h^{1/2} h 1/2 times the root of the one-step risk. What is new is the analysis of a single trajectory of unbounded counts over a sieve: the unbounded likelihood ratio is controlled through conditional moment generating functions of the negative binomial law, which keeps the fast rate; the size is a second unknown function, separated from the mean in Hellinger distance through the first two factorial moments; a generalized Hölder inequality replaces conditional independence across sites in the supermartingale; and the rates are tied to the coverage of simulated prediction intervals, under the stated restrictions on the estimator and on the evaluation law (§ 6 ).
We complement the theory with experiments. In simulations with a known log-mean, the risks of the practical fit and of a fit that satisfies the constraints of the theory both decrease at least at the guaranteed rate, trajectory and out-of-sample risks are close, and the error of predictive distributions decreases with the estimation error; when the size depends on the covariates, both functions are estimated at the guaranteed rate and moving-block bootstrap standard errors are close to the sampling standard deviations, although intervals built from them undercover where the estimator is biased. We then forecast weekly notifications of four diseases in the 47 prefectures of Japan from 1999 to 2024: syphilis, whose annual notifications rose about seventeen-fold from 2012 to 2024 (Takahashi et al., 2018); enterohemorrhagic E. coli infection, a stable and strongly seasonal series; legionellosis, a sparse and rising panel; and amebiasis, a sparser and declining panel. The estimator was developed on syphilis and tested on new panels under protocols written before any model was fitted to them; amebiasis, chosen by a fixed rule, is the test panel of the final protocol. On all four panels DeepNB-STAR has a lower weighted interval score than an ensemble of three Temporal Fusion Transformers, by 0.6% to 1.0%; on amebiasis the difference, 0.9%, is distinguishable from zero, on the other panels it is not, and in one period of one panel the transformer is better. DeepNB-STAR is clearly better than DeepAR and persistence, and better than or on a par with negative binomial regression and a Bayesian ZINB-GP model [6 ] . Because DeepNB-STAR is a likelihood model, its fit also describes the fitted mean and size functions, with exploratory point-wise bootstrap intervals: for instance, the fitted association with neighboring prefectures is strongest where the local level is low. On daily taxi-flow networks, a second domain in the supplement, the gain over a log-linear autoregression is 7.5%.
Section 2 sets up the model, the covariates and the function class; Section 3 summarizes the main results; Section 4 gives the estimator, the forecasting algorithm and the inference procedure; Section 5 states the results and Section 6 outlines their proofs, which are in the appendix; Sections 7 and 8 report simulations and the application, and Section 9 concludes.
Notations. Sites are indexed by s = 1 , … , S s = 1,\ldots,S s = 1 , … , S and weeks by t = 1 , … , T t = 1,\ldots,T t = 1 , … , T , and n = S T n = ST n = S T is the number of site-weeks. We write NB ( μ , r ) \operatorname{NB}(\mu,r) NB ( μ , r ) for the negative binomial distribution with mean μ > 0 \mu> 0 μ > 0 and size r > 0 r > 0 r > 0 , whose probability mass function is
p ( y ) = Γ ( y + r ) Γ ( r ) y ! ( r r + μ ) r ( μ r + μ ) y , y = 0 , 1 , 2 , … , p(y) = \frac{\Gamma(y+r)}{\Gamma(r)y!}\left(\frac{r}{r+\mu}\right)^r\left(\frac{\mu}{r+\mu}\right)^y,\qquad y = 0,1,2,\ldots, p ( y ) = Γ ( r ) y ! Γ ( y + r ) ( r + μ r ) r ( r + μ μ ) y , y = 0 , 1 , 2 , … ,
with Γ \Gamma Γ the gamma function; its variance is μ + μ 2 / r \mu+ \mu^2/r μ + μ 2 / r . We write p f p_f p f for this mass function when μ = e f \mu=e^f μ = e f , and call f f f the log-mean. For probability mass functions p p p and q q q on the non-negative integers, H 2 ( p , q ) = 1 − ∑ y { p ( y ) q ( y ) } 1 / 2 H^2(p,q)=1-\sum_y\{p(y)q(y)\}^{1/2} H 2 ( p , q ) = 1 − ∑ y { p ( y ) q ( y ) } 1/2 is the squared Hellinger distance, TV ( p , q ) = 1 2 ∑ y ∣ p ( y ) − q ( y ) ∣ \operatorname{TV}(p,q)=\frac{1}{2}\sum_y|p(y)-q(y)| TV ( p , q ) = 2 1 ∑ y ∣ p ( y ) − q ( y ) ∣ the total variation distance and KL ( p ∥ q ) = ∑ y p ( y ) log { p ( y ) / q ( y ) } \operatorname{KL}(p\mathbin\Vert q)=\sum_y p(y)\log\{p(y)/q(y)\} KL ( p ∥ q ) = ∑ y p ( y ) log { p ( y ) / q ( y )} the Kullback–Leibler divergence; these satisfy TV ≤ 2 H \operatorname{TV}\le\sqrt{2}H TV ≤ 2 H and Pinsker’s inequality TV ≤ ( KL / 2 ) 1 / 2 \operatorname{TV}\le(\operatorname{KL}/2)^{1/2} TV ≤ ( KL /2 ) 1/2 (Tsybakov, 2009, Section 2.4). The same symbols are used for probability measures on general spaces. ∥ g ∥ ∞ \|g\|_\infty ∥ g ∥ ∞ denotes the supremum norm of a function g g g on its domain, ∥ g ∥ L 2 \|g\|_{L^2} ∥ g ∥ L 2 its L 2 L^2 L 2 norm with respect to Lebesgue measure on [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d , and ∣ u ∣ ∞ |u|_\infty ∣ u ∣ ∞ the maximum norm of a vector u u u . All logarithms are natural except log 2 \log_2 log 2 . We write a ∧ b = min ( a , b ) a\wedge b=\min(a,b) a ∧ b = min ( a , b ) , a ∨ b = max ( a , b ) a\vee b=\max(a,b) a ∨ b = max ( a , b ) and u + = max ( u , 0 ) u_+=\max(u,0) u + = max ( u , 0 ) ; ⌊ x ⌋ \lfloor x\rfloor ⌊ x ⌋ and ⌈ x ⌉ \lceil x\rceil ⌈ x ⌉ are the integer part and the smallest integer not less than x x x , except that for a smoothness index β > 0 \beta>0 β > 0 we follow Schmidt-Hieber [12 ] and let ⌊ β ⌋ \lfloor\beta\rfloor ⌊ β ⌋ denote the largest integer strictly smaller than β \beta β . For a multi-index α = ( α 1 , … , α k ) \alpha=(\alpha_1,\ldots,\alpha_k) α = ( α 1 , … , α k ) of non-negative integers, ∣ α ∣ = ∑ j α j |\alpha|=\sum_j\alpha_j ∣ α ∣ = ∑ j α j and ∂ α = ∂ 1 α 1 ⋯ ∂ k α k \partial^\alpha=\partial_1^{\alpha_1}\cdots\partial_k^{\alpha_k} ∂ α = ∂ 1 α 1 ⋯ ∂ k α k .
a ≲ b a\lesssim b a ≲ b indicates that a ≤ c b a\le cb a ≤ c b for a constant c > 0 c>0 c > 0 that does not depend on the sample size, and a ≍ b a\asymp b a ≍ b that a ≲ b a\lesssim b a ≲ b and b ≲ a b\lesssim a b ≲ a . 1 { E } \mathbf{1}\{E\} 1 { E } is the indicator of the event E E E , E \mathbb{E} E denotes expectation, and E f \mathbb{E}_f E f expectation when the panel follows the model with log-mean function f f f . Constants denoted by C C C and c c c may change from line to line. For the function class and the networks we keep the notation of Schmidt-Hieber [12 ] , in which d d d , t t t , p p p and β i \beta_i β i are unrelated to the covariate dimension d d d , the week t t t , the mass function p f p_f p f and the mixing coefficients β X ( ⋅ ) \beta_X(\cdot) β X ( ⋅ ) .
Problem Setup
We first introduce the model, then the covariates that encode temporal and spatial dependence, and finally the class of target functions.
Deep Negative Binomial Spatio-Temporal Autoregression
Let Y s , t ∈ { 0 , 1 , 2 , … } Y_{s,t}\in\{0,1,2,\ldots\} Y s , t ∈ { 0 , 1 , 2 , … } be the count at site s ∈ { 1 , … , S } s\in\{1,\ldots,S\} s ∈ { 1 , … , S } in week t ∈ { 1 , … , T } t\in\{1,\ldots,T\} t ∈ { 1 , … , T } , Y t = ( Y 1 , t , … , Y S , t ) Y_t=(Y_{1,t},\ldots,Y_{S,t}) Y t = ( Y 1 , t , … , Y S , t ) , and let I t \mathcal{I}_t I t be the σ \sigma σ -field generated by Y u Y_u Y u , u ≤ t u\le t u ≤ t , together with any covariates known by the start of week t + 1 t+1 t + 1 . The model has two ingredients. The first is a covariate map: for each site and week,
X s , t = Φ s ( Y t − 1 , … , Y t − m ; t ) ∈ [ 0 , 1 ] d (1) X_{s,t}=\Phi_s(Y_{t-1},\ldots,Y_{t-m};t)\in[0,1]^d \tag*{(1)} X s , t = Φ s ( Y t − 1 , … , Y t − m ; t ) ∈ [ 0 , 1 ] d (1)
is a vector of d d d summaries of the last m m m weeks, computed by a known measurable map Φ s \Phi_s Φ s ; we call m m m the memory of the model. Independent exogenous inputs can be added as further arguments of Φ s \Phi_s Φ s (Assumption 4). The second is a pair of functions, the log-mean f 0 : [ 0 , 1 ] d → [ − F , F ] f_0:[0,1]^d\to[-F,F] f 0 : [ 0 , 1 ] d → [ − F , F ] and the log-size g 0 : [ 0 , 1 ] d → [ γ l o , γ h i ] g_0:[0,1]^d\to[\gamma_{\mathrm{lo}},\gamma_{\mathrm{hi}}] g 0 : [ 0 , 1 ] d → [ γ lo , γ hi ] . DeepNB-STAR specifies that, given I t − 1 \mathcal{I}_{t-1} I t − 1 ,
Y s , t ∣ I t − 1 ∼ NB ( exp { f 0 ( X s , t ) } , exp { g 0 ( X s , t ) } ) independently for s = 1 , … , S , (2) Y_{s,t}\mid\mathcal{I}_{t-1}\sim\operatorname{NB}\bigl(\exp\{f_0(X_{s,t})\},\exp\{g_0(X_{s,t})\}\bigr)\quad\text{independently for }s=1,\ldots,S, \tag*{(2)} Y s , t ∣ I t − 1 ∼ NB ( exp { f 0 ( X s , t )} , exp { g 0 ( X s , t )} ) independently for s = 1 , … , S , (2)
so that E ( Y s , t ∣ I t − 1 ) = μ s , t = e f 0 ( X s , t ) \mathbb{E}(Y_{s,t}\mid\mathcal{I}_{t-1})=\mu_{s,t}=e^{f_0(X_{s,t})} E ( Y s , t ∣ I t − 1 ) = μ s , t = e f 0 ( X s , t ) and var ( Y s , t ∣ I t − 1 ) = μ s , t + μ s , t 2 e − g 0 ( X s , t ) \operatorname{var}(Y_{s,t}\mid\mathcal{I}_{t-1})=\mu_{s,t}+\mu_{s,t}^2e^{-g_0(X_{s,t})} var ( Y s , t ∣ I t − 1 ) = μ s , t + μ s , t 2 e − g 0 ( X s , t ) : the size e g 0 e^{g_0} e g 0 controls the overdispersion, which can thus vary with the local level, the neighbors and the season. The special case of a constant size r r r ,
Y s , t ∣ I t − 1 ∼ NB ( exp { f 0 ( X s , t ) } , r ) independently for s = 1 , … , S , (3) Y_{s,t}\mid\mathcal{I}_{t-1}\sim\operatorname{NB}\bigl(\exp\{f_0(X_{s,t})\},r\bigr)\quad\text{independently for }s=1,\ldots,S, \tag*{(3)} Y s , t ∣ I t − 1 ∼ NB ( exp { f 0 ( X s , t )} , r ) independently for s = 1 , … , S , (3)
is the one analyzed in Sections 5.2 to 5.6; Section 5.7 extends every result to (2) with unknown g 0 g_0 g 0 . Other familiar models are special cases as well. When Φ s \Phi_s Φ s uses only the history of site s s s and the season, (2) is a deep negative binomial autoregression for each site with a function shared by all sites, which we call DeepNB-AR; when, in addition, f 0 f_0 f 0 is linear in log ( 1 + Y s , t − 1 ) \log(1 + Y_{s,t-1}) log ( 1 + Y s , t − 1 ) and the season, it is a log-linear count autoregression of the kind studied by Fokianos et al. [4 ] , with negative binomial instead of Poisson errors; and a log-mean linear in transformed own, neighbor and seasonal summaries gives a log-linear negative binomial autoregression. This differs from the classical endemic–epidemic model of Held et al. (2005), whose conditional mean is an additive sum of endemic, own-history and neighboring contributions. Together with initial values Y 0 , … , Y 1 − m Y_0,\ldots,Y_{1-m} Y 0 , … , Y 1 − m , (1) and (2) define the joint law of the whole panel, so the model is generative: it can be simulated forward from any history.
Conditional independence across sites given the past is the standard assumption of endemic–epidemic models (Held et al. (2005)); spatial dependence between contemporaneous counts arises through the shared past. The function f 0 f_0 f 0 is common to all sites, which allows short and sparse series to inform one another, and site-specific behavior enters through the long-run level of the site, which is a coordinate of X s , t X_{s,t} X s , t , and, in the estimator of § 4 , through a learned encoding of the site. Sparsity needs no separate mechanism: under (3) the probability of a zero is { r / ( r + μ ) } r \left\{r/(r+\mu)\right\}^{r} { r / ( r + μ ) } r , which is close to one for small means.
Covariates: Temporal Memory and Nearest-Neighbor Encoding
In the application of § 8 , m = 52 m=52 m = 52 , and the covariate vector starts with 13 summaries. Let ℓ ( y ) = min { log ( 1 + y ) / 6 , 1 } \ell(y)=\min\{\log(1+y)/6,1\} ℓ ( y ) = min { log ( 1 + y ) /6 , 1 } , which maps counts up to e 6 − 1 ≈ 402 e^6-1\approx402 e 6 − 1 ≈ 402 , more than any weekly count in our data, into [ 0 , 1 ] [0,1] [ 0 , 1 ] . With Y ˉ s , t ( k ) \bar{Y}_{s,t}^{(k)} Y ˉ s , t ( k ) the mean of Y s , t − 1 , … , Y s , t − k Y_{s,t-1},\ldots,Y_{s,t-k} Y s , t − 1 , … , Y s , t − k , the coordinates of X s , t X_{s,t} X s , t are as follows. Seven coordinates describe the history of the site itself, namely ℓ ( Y s , t − 1 ) , … , ℓ ( Y s , t − 4 ) , ℓ ( Y ˉ s , t ( 8 ) ) \ell(Y_{s,t-1}),\ldots,\ell(Y_{s,t-4}),\ell(\bar{Y}_{s,t}^{(8)}) ℓ ( Y s , t − 1 ) , … , ℓ ( Y s , t − 4 ) , ℓ ( Y ˉ s , t ( 8 ) ) , ℓ ( Y ˉ s , t ( 26 ) ) \ell(\bar{Y}_{s,t}^{(26)}) ℓ ( Y ˉ s , t ( 26 ) ) and ℓ ( Y ˉ s , t ( 52 ) ) \ell(\bar{Y}_{s,t}^{(52)}) ℓ ( Y ˉ s , t ( 52 ) ) . Two coordinates describe its nearest neighbors, namely ℓ \ell ℓ of the average of Y ˉ s ′ , t ( 4 ) \bar{Y}_{s',t}^{(4)} Y ˉ s ′ , t ( 4 ) and of Y ˉ s ′ , t ( 26 ) \bar{Y}_{s',t}^{(26)} Y ˉ s ′ , t ( 26 ) over the five sites s ′ s' s ′ nearest to s s s in great-circle distance. Two coordinates describe the overall level, namely ℓ \ell ℓ of the average of Y ˉ s ′ , t ( 4 ) \bar{Y}_{s',t}^{(4)} Y ˉ s ′ , t ( 4 ) and of Y ˉ s ′ , t ( 26 ) \bar{Y}_{s',t}^{(26)} Y ˉ s ′ , t ( 26 ) over all sites. The last two coordinates are the seasonal harmonics { 1 + sin ( 2 π w t / 52.18 ) } / 2 \{1+\sin(2\pi w_t/52.18)\}/2 { 1 + sin ( 2 π w t /52.18 )} /2 and { 1 + cos ( 2 π w t / 52.18 ) } / 2 \{1+\cos(2\pi w_t/52.18)\}/2 { 1 + cos ( 2 π w t /52.18 )} /2 , with w t ∈ { 1 , … , 53 } w_t\in\{1,\ldots,53\} w t ∈ { 1 , … , 53 } the week of the year and 52.18 the average number of weeks in a year. The nearest-neighbor coordinates carry the spatial information that a nearest-neighbor Gaussian process (Datta et al. [3 ] ) carries through its conditioning sets, and the lagged coordinates carry the temporal information that a recurrent or attention layer would extract. What the network must learn is how these summaries combine.
The estimator of § 4 adds two groups of inputs to these 13 summaries. The first is the raw recent history: ℓ ( Y s , t − k ) \ell(Y_{s,t-k}) ℓ ( Y s , t − k ) , ℓ \ell ℓ of the mean of Y s ′ , t − k Y_{s',t-k} Y s ′ , t − k over the five nearest sites s ′ s' s ′ , and ℓ \ell ℓ of the mean of Y s ′ , t − k Y_{s',t-k} Y s ′ , t − k over all sites, for k = 1 , … , 26 k=1,\ldots,26 k = 1 , … , 26 , which lets the network learn its own temporal filters, as the recurrent encoder of a Temporal Fusion Transformer does. The second is the indicator e s ∈ { 0 , 1 } S e_s\in\{0,1\}^{S} e s ∈ { 0 , 1 } S of the site, which enters the network only through a learned linear encoding of dimension three, the analogue of a static covariate encoder; it lets the log-mean and the log-size of sites with the same recent history differ. Both groups are functions of the past and of s s s , so they are coordinates of X s , t X_{s,t} X s , t in (1), now with d = 13 + 78 + S d=13+78+S d = 13 + 78 + S , and the covariate formulation of § 5 accommodates them.
Target Function with a Compositional Structure
The statistical rate we can achieve depends on the regularity of f 0 f_0 f 0 . It is natural to suppose that f 0 f_0 f 0 combines a few low-dimensional components, for example
f 0 ( x ) = g 1 ( g 01 ( x o w n ) , g 02 ( x n b r ) , g 03 ( x n a t ) , g 04 ( x s e a s ) ) , (4) f_0(x) = g_1\left(g_{01}(x_{\mathrm{own}}),\ g_{02}(x_{\mathrm{nbr}}),\ g_{03}(x_{\mathrm{nat}}),\ g_{04}(x_{\mathrm{seas}})\right), \tag*{(4)} f 0 ( x ) = g 1 ( g 01 ( x own ) , g 02 ( x nbr ) , g 03 ( x nat ) , g 04 ( x seas ) ) , (4)
where x o w n x_{\mathrm{own}} x own , x n b r x_{\mathrm{nbr}} x nbr , x n a t x_{\mathrm{nat}} x nat and x s e a s x_{\mathrm{seas}} x seas are the sub-vectors of x x x formed by the seven, two, two and two coordinates of the four groups of § 2.2 , and in which the history of the site is first reduced to a local level and growth, the neighborhood and the overall level to an external pressure, the season to a phase effect, and these are then combined. An additive positive-component mean can be represented on the log scale by a log-sum-exp outer map applied to component log-means. Exact inclusion of an endemic–epidemic specification also requires suitable covariates and bounded ranges; it does not follow merely by making f 0 f_0 f 0 log-linear. We formalize (4) with the compositional Hölder class of Schmidt-Hieber [12 ] . For β > 0 \beta> 0 β > 0 and K > 0 K > 0 K > 0 , let C β ( D , K ) C^\beta(D, K) C β ( D , K ) be the ball of radius K K K of β \beta β -Hölder functions on D ⊂ R k D \subset\mathbb{R}^k D ⊂ R k , that is, the functions g : D → R g : D \to\mathbb{R} g : D → R whose partial derivatives up to order ⌊ β ⌋ \lfloor\beta\rfloor ⌊ β ⌋ exist and satisfy
∑ ∣ α ∣ < β ∥ ∂ α g ∥ ∞ + ∑ ∣ α ∣ = ⌊ β ⌋ sup u ≠ v ∣ ∂ α g ( u ) − ∂ α g ( v ) ∣ ∥ u − v ∥ ∞ β − ⌊ β ⌋ ≤ K . \sum_{|\alpha|<\beta} \lVert\partial^\alpha g\rVert_\infty+ \sum_{|\alpha|=\lfloor\beta\rfloor} \sup_{u\ne v} \frac{\left|\partial^\alpha g(u)-\partial^\alpha g(v)\right|}{\lVert u-v\rVert_\infty^{\beta-\lfloor\beta\rfloor}} \le K. ∣ α ∣ < β ∑ ∥ ∂ α g ∥ ∞ + ∣ α ∣ = ⌊ β ⌋ ∑ u = v sup ∥ u − v ∥ ∞ β − ⌊ β ⌋ ∣ ∂ α g ( u ) − ∂ α g ( v ) ∣ ≤ K .
For q ≥ 0 q \ge0 q ≥ 0 , d = ( d 0 , … , d q + 1 ) \mathbf{d} = (d_0,\ldots,d_{q+1}) d = ( d 0 , … , d q + 1 ) with d 0 = d d_0=d d 0 = d and d q + 1 = 1 d_{q+1}=1 d q + 1 = 1 , t = ( t 0 , … , t q ) \mathbf{t}=(t_0,\ldots,t_q) t = ( t 0 , … , t q ) with t i ≤ d i t_i\le d_i t i ≤ d i , and β = ( β 0 , … , β q ) \boldsymbol{\beta}=(\beta_0,\ldots,\beta_q) β = ( β 0 , … , β q ) , define
G ( q , d , t , β , K ) = { f = g q ∘ ⋯ ∘ g 0 : g i = ( g i j ) j : [ a i , b i ] d i → [ a i + 1 , b i + 1 ] d i + 1 , g i j ∈ C t i β i ( [ a i , b i ] t i , K ) , ∣ a i ∣ , ∣ b i ∣ ≤ K } . \mathcal{G}(q,\mathbf{d},\mathbf{t},\boldsymbol{\beta},K)=\left\{f=g_q\circ\cdots\circ g_0:g_i=(g_{ij})_j:[a_i,b_i]^{d_i}\to[a_{i+1},b_{i+1}]^{d_{i+1}},\ g_{ij}\in C^{\beta_i}_{t_i}([a_i,b_i]^{t_i},K),\ |a_i|,|b_i|\le K\right\}. G ( q , d , t , β , K ) = { f = g q ∘ ⋯ ∘ g 0 : g i = ( g ij ) j : [ a i , b i ] d i → [ a i + 1 , b i + 1 ] d i + 1 , g ij ∈ C t i β i ([ a i , b i ] t i , K ) , ∣ a i ∣ , ∣ b i ∣ ≤ K } .
where C t i β i C^{\beta_i}_{t_i} C t i β i indicates that each g i j g_{ij} g ij depends on at most t i t_i t i of its d i d_i d i arguments. Thus q + 1 q+1 q + 1 is the number of composed maps, d i d_i d i the number of arguments of g i g_i g i , t i t_i t i its intrinsic dimension and β i \beta_i β i its smoothness. With the effective smoothness β i ∗ = β i ∏ l = i + 1 q ( β l ∧ 1 ) \beta_i^*=\beta_i\prod_{l=i+1}^q(\beta_l\wedge1) β i ∗ = β i ∏ l = i + 1 q ( β l ∧ 1 ) , the rate attached to this class is
ϕ n = max i = 0 , … , q n − 2 β i ∗ / ( 2 β i ∗ + t i ) . (5) \phi_n=\max_{i=0,\ldots,q} n^{-2\beta_i^*/(2\beta_i^*+t_i)}. \tag*{(5)} ϕ n = i = 0 , … , q max n − 2 β i ∗ / ( 2 β i ∗ + t i ) . (5)
In (4) with twice differentiable components, q = 1 q=1 q = 1 , t = ( 7 , 4 ) \mathbf{t}=(7,4) t = ( 7 , 4 ) and ϕ n = n − 4 / 11 \phi_n=n^{-4/11} ϕ n = n − 4/11 , whereas an unstructured twice differentiable function of 13 variables would give n − 4 / 17 n^{-4/17} n − 4/17 .
Summary of Main Results
This section summarizes our main results and places them in the context of prior work on nonparametric estimation with deep neural networks. Let n = S T n=ST n = S T be the number of site-weeks. The key result is that, under the conditional model (3) and the compositional assumption on f 0 f_0 f 0 , the maximum likelihood estimator over sparse deep ReLU networks satisfies
1 n ∑ s , t { f ^ ( X s , t ) − f 0 ( X s , t ) } 2 ≲ ϕ n log 3 n \frac{1}{n}\sum_{s,t}\{\hat f(X_{s,t})-f_0(X_{s,t})\}^2\lesssim\phi_n\log^3 n n 1 s , t ∑ { f ^ ( X s , t ) − f 0 ( X s , t ) } 2 ≲ ϕ n log 3 n
with high probability, under the stated conditional distribution and within-week independence assumptions (Theorems 1 and 2). The same rate, with one more logarithmic factor, holds for the risk on an independent copy of the process (Theorem 4), because the model is geometrically absolutely regular (Proposition 3). In the regression experiment defined in § 5.5 , Theorem 5 shows that no estimator can improve on n − 2 β / ( 2 β + d ∗ ) n^{-2\beta/(2\beta+d^*)} n − 2 β / ( 2 β + d ∗ ) uniformly over β \beta β -Hölder log-means that depend on d ∗ d^* d ∗ variables, which is ϕ n \phi_n ϕ n for that class. Theorem 6 turns the risk into prediction error bounds: the difference between true and fitted-model coverage of a one-step prediction interval is at most a constant multiple of ∣ f ^ − f 0 ∣ |\hat f-f_0| ∣ f ^ − f 0 ∣ at the covariate value in question, and the independent-copy average coverage shortfall of h h h -step intervals computed from B B B simulated paths, under the additional conditions stated after Theorem 6 , is bounded in order by ( h S ϕ n ) 1 / 2 log 2 n + B − 1 / 2 (hS\phi_n)^{1/2}\log^2 n+B^{-1/2} ( h S ϕ n ) 1/2 log 2 n + B − 1/2 . Theorem 7 shows that the same rates hold when the size is unknown and may depend on the covariates, so that f 0 f_0 f 0 and the log-size g 0 g_0 g 0 are estimated jointly, and that functionals satisfying the empirical Lipschitz condition have absolute error of the square-root order of the squared-function-risk bound. This is consistency, not a distributional limit or a bootstrap validity theorem. Theorem 8 shows that the estimation bounds need only the conditional law of each count: under arbitrary dependence between the sites they hold with T = n / S T=n/S T = n / S in place of n n n .
Supplementary Table S23 compares these results with the closest works. Schmidt-Hieber [12 ] establishes the rate ϕ n log 3 n \phi_n\log^3 n ϕ n log 3 n with a lower bound of order ϕ n \phi_n ϕ n for least squares with Gaussian noise and independent observations, and Yara and Terada [20 ] the analogous Hellinger rate for the likelihood of a Poisson process observed in independent replications. Ma and Safikhani (2022) and Kurisu et al. [9 ] obtain rates for least squares under mixing, Kurisu et al. [9 ] also verifying geometric mixing for their autoregressive class, and Alquier and Kengne [2 ] for least squares and logistic losses on Markov chains with a spectral gap. Our results differ in four respects: the loss is the likelihood of an unbounded, overdispersed count, handled through the Hellinger distance and its equivalence with the squared difference of log-means (Lemma 9); the dispersion is a second unknown function, estimated at the same rate (Theorem 7 ); the main bound holds along one observed trajectory without stationarity or mixing, through a martingale argument; and the estimation risk is connected to multi-step predictive distributions and the coverage of their intervals.
Table S23. The closest related works. “Network” is the role of the neural network, and “Guarantees” lists what is established for the estimator.
The rate theorems concern sparse networks with weights bounded by one and an approximate maximizer of the likelihood, and the oracle inequalities hold for any bounded class with finite covering numbers (§ 5.7 ); the networks of the case study are unconstrained and trained by a stochastic gradient method, whose optimization error our results do not certify. Simulation A therefore reports both a fit that respects the constraints of the theory and the practical fit.
Estimation by Maximum Likelihood and Forecasting by Simulation
We next describe the estimator and the procedure that turns it into predictive distributions.
Maximum Likelihood over ReLU Networks
The log-likelihood of a candidate f f f is
ℓ n ( f ) = ∑ t = 1 T ∑ s = 1 S log p f ( X s , t , Y s , t ) . (6) \ell_n(f)=\sum_{t=1}^{T}\sum_{s=1}^{S}\log p_f(X_{s,t},Y_{s,t}). \tag*{(6)} ℓ n ( f ) = t = 1 ∑ T s = 1 ∑ S log p f ( X s , t , Y s , t ) . (6)
Let σ ( u ) = max ( u , 0 ) \sigma(u)=\max(u,0) σ ( u ) = max ( u , 0 ) be the ReLU activation and, for a shift vector v = ( v 1 , … , v k ) v=(v_1,\ldots,v_k) v = ( v 1 , … , v k ) , let σ v ( u 1 , … , u k ) = ( σ ( u 1 − v 1 ) , … , σ ( u k − v k ) ) \sigma_v(u_1,\ldots,u_k)=(\sigma(u_1-v_1),\ldots,\sigma(u_k-v_k)) σ v ( u 1 , … , u k ) = ( σ ( u 1 − v 1 ) , … , σ ( u k − v k )) . A ReLU network with L L L hidden layers and width vector p = ( p 0 , … , p L + 1 ) \mathbf{p}=(p_0,\ldots,p_{L+1}) p = ( p 0 , … , p L + 1 ) , p 0 = d p_0=d p 0 = d and p L + 1 = 1 p_{L+1}=1 p L + 1 = 1 , is a function
f ( x ) = W L σ v L W L − 1 σ v L − 1 ⋯ W 1 σ v 1 W 0 x , x ∈ [ 0 , 1 ] d , f(x)=W_L\sigma_{v_L}W_{L-1}\sigma_{v_{L-1}}\cdots W_1\sigma_{v_1}W_0x,\qquad x\in[0,1]^d, f ( x ) = W L σ v L W L − 1 σ v L − 1 ⋯ W 1 σ v 1 W 0 x , x ∈ [ 0 , 1 ] d ,
with weight matrices W l ∈ R p l + 1 × p l W_l\in\mathbb{R}^{p_{l+1}\times p_l} W l ∈ R p l + 1 × p l and shift vectors v l ∈ R p l v_l\in\mathbb{R}^{p_l} v l ∈ R p l . Following Schmidt-Hieber [12 ] , let F ( L , p , s n , F ) \mathcal{F}(L,\mathbf{p},s_n,F) F ( L , p , s n , F ) be the set of such functions with all entries of the W l W_l W l and v l v_l v l in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , at most s n s_n s n of them non-zero, and ∥ f ∥ ∞ ≤ F \lVert f\rVert_\infty\le F ∥ f ∥ ∞ ≤ F . The estimator is any measurable f ^ ∈ F n = F ( L , p , s n , F ) \hat{f}\in\mathcal{F}_n=\mathcal{F}(L,\mathbf{p},s_n,F) f ^ ∈ F n = F ( L , p , s n , F ) with
ℓ n ( f ^ ) ≥ sup f ∈ F n ℓ n ( f ) − n Δ n , (7) \ell_n(\hat{f})\ge\sup_{f\in\mathcal{F}_n}\ell_n(f)-n\Delta_n, \tag*{(7)} ℓ n ( f ^ ) ≥ f ∈ F n sup ℓ n ( f ) − n Δ n , (7)
where Δ n ≥ 0 \Delta_n\ge0 Δ n ≥ 0 is the optimization error per observation, which measures how far the optimizer is from the maximum. In the experiments we use a fully connected network with three hidden layers of width 64 and output truncated to [ − F , F ] [-F,F] [ − F , F ] with F = 7 F=7 F = 7 , trained by Adam ((Kingma and Ba, 2015)) with weight decay 10 − 5 10^{-5} 1 0 − 5 and batches of 1,024. The estimator uses the inputs of § 2.2 including the raw history and the site encoding, gives the network a second output, the log-size g ( X s , t ) g(X_{s,t}) g ( X s , t ) , truncated to [ log 0.5 , log 200 ] [\log0.5,\log200] [ log 0.5 , log 200 ] , and maximizes the likelihood (17) of the model with covariate-dependent size jointly over both outputs (§ 5.7 ). Within every fit and yearly refit, the learning rate decreases linearly from 10 − 3 10^{-3} 1 0 − 3 to 5 × 10 − 5 5\times10^{-5} 5 × 1 0 − 5 ; this reduces the optimization error at the end of each fit and, in our experiments, most of the variation between fits from different initializations. The first fit, to the data up to the first forecast origin, uses 40 epochs; each yearly refit continues from the previous estimate for 8 epochs on all data to date. With 13 summaries, a constant size and a constant learning rate, the same procedure gives the special case that we evaluated first; its results and the development that led from it to the present estimator are reported in the supplementary material.
The likelihood is not concave in the network weights, so the fit depends on the random initialization. In the application we therefore use the average f ˉ = n f i t − 1 ∑ k = 1 n f i t f ^ ( k ) \bar{f}=n_{\mathrm{fit}}^{-1}\sum_{k=1}^{n_{\mathrm{fit}}}\hat{f}^{(k)} f ˉ = n fit − 1 ∑ k = 1 n fit f ^ ( k ) of fits from different initializations, together with the average g ˉ \bar{g} g ˉ of the log-sizes (for a constant size, the geometric mean of the estimated sizes); f ˉ \bar{f} f ˉ and g ˉ \bar{g} g ˉ each average n f i t = 3 n_{\mathrm{fit}}=3 n fit = 3 fits. Averaging preserves the error bounds, by convexity of the squared norms and a union bound over the fits (Theorem 7 (d)), and Theorems 6 and 7 (c) apply to the averaged model as to any bounded function. All of these choices were made on the syphilis panel, the development panel of § 8 , and fixed in advance for amebiasis, the test panel.
Predictive Distributions
One step ahead, the predictive distribution at site s s s is NB ( exp { f ^ ( X s , t + 1 ) } , r ^ ) \operatorname{NB}(\exp\{\hat{f}(X_{s,t+1})\},\hat{r}) NB ( exp { f ^ ( X s , t + 1 )} , r ^ ) , available in closed form; here r ^ \hat{r} r ^ is the estimate of the size, r r r itself when it is known, or exp { g ^ ( X s , t + 1 ) } \exp\{\hat{g}(X_{s,t+1})\} exp { g ^ ( X s , t + 1 )} when the size depends on the covariates. For horizons h ≥ 2 h\ge2 h ≥ 2 the predictive distribution of Y t + h Y_{t+h} Y t + h given I t \mathcal{I}_t I t is a mixture over the unobserved intermediate weeks, and we compute it by simulating (1) and (2) forward with ( f ^ , g ^ ) (\hat{f},\hat{g}) ( f ^ , g ^ ) in place of ( f 0 , g 0 ) (f_0,g_0) ( f 0 , g 0 ) , as described by Algorithm 1. The simulated paths are joint over sites and horizons, so they also give predictive distributions of any functional, such as the total over all sites or the cumulative count over four weeks. For the marginal predictive distribution of a single count we Rao–Blackwellize: given the path up to week t + h − 1 t+h-1 t + h − 1 , the count of week t + h t+h t + h is negative binomial with known parameters, so the h h h -step predictive law is estimated by the mixture B − 1 ∑ b NB ( exp { f ^ ( X s , t + h ( b ) ) } , exp { g ^ ( X s , t + h ( b ) ) } ) B^{-1}\sum_b\operatorname{NB}(\exp\{\hat{f}(X_{s,t+h}^{(b)})\},\exp\{\hat{g}(X_{s,t+h}^{(b)})\}) B − 1 ∑ b NB ( exp { f ^ ( X s , t + h ( b ) )} , exp { g ^ ( X s , t + h ( b ) )}) over the paths rather than by the empirical law of the simulated counts. The distribution functions of both have expectation equal to the predictive distribution function of the fitted model, and that of the mixture has the smaller variance, by the Rao–Blackwell theorem.
Algorithm 1 DeepNB-STAR: estimation and forecasting
1: input: counts $Y_1,\ldots,Y_t$, covariate map $\Phi=(\Phi_1,\ldots,\Phi_S)$, largest horizon $h_{\max}$, number of paths $B$
2: Compute $X_{s,u}$ by (1) for $u\le t$ and maximize the likelihood over $(f,r)$, or over $(f,g)$ for a covariate-dependent size, to obtain the fitted model, or the average of $n_{\mathrm{fit}}$ such fits
3: for $b=1,\ldots,B$ do
4: Set $Y_u^{(b)}=Y_u$ for $u\le t$
5: for $k=1,\ldots,h_{\max}$ do
6: $X_{s,t+k}^{(b)}\leftarrow\Phi_s(Y_{t+k-1}^{(b)},\ldots,Y_{t+k-m;t}^{(b)};t+k)$ for all $s$
7: Draw $Y_{s,t+k}^{(b)}\sim\operatorname{NB}(\exp\{\hat{f}(X_{s,t+k}^{(b)})\},\hat{r})$ independently for all $s$, with $\hat{r}=\exp\{\hat{g}(X_{s,t+k}^{(b)})\}$ for a covariate-dependent size
8: return for each $(s,k)$ the quantiles of the mixture $B^{-1}\sum_b\operatorname{NB}(\exp\{\hat{f}(X_{s,t+k}^{(b)})\},\hat{r}_{s,t+k}^{(b)})$ (exact negative binomial quantiles for $k=1$), and the paths for any joint functional
Statistical Inference
DeepNB-STAR is a likelihood model, so it supports inference about the data-generating process and not only prediction. Three kinds of inference are reported in § 8 . The first is predictive: prediction intervals and predictive probabilities, whose coverage error is bounded by Theorems 6 and 7 (c) and checked against the model-implied coverage. The second concerns the conditional mean and size functions themselves, through interpretable functionals: the fitted expected count of the whole panel in every week, the predicted mean and size at stated histories, the seasonal profile, and average partial effects. For a group G G G of covariates (the history of the site, of its neighbors, or of the whole panel), let x ( G ) x^{(G)} x ( G ) be the covariate vector obtained from x x x by replacing each selected count summary a a a by 2 a 2a 2 a , recomputing its transformed coordinate, and holding all other coordinates fixed; the average partial effect of G G G is
APE G ( f ) = exp [ 1 n ∑ s , t { f ( X s , t ( G ) ) − f ( X s , t ) } ] , (8) \operatorname{APE}_G(f)=\exp\left[\frac{1}{n}\sum_{s,t}\{f(X_{s,t}^{(G)})-f(X_{s,t})\}\right], \tag*{(8)} APE G ( f ) = exp [ n 1 s , t ∑ { f ( X s , t ( G ) ) − f ( X s , t )} ] , (8)
the geometric mean, over the observed site-weeks, of the fitted mean ratio. This is a finite feature contrast, not a derivative or a causal intervention. Since own, neighboring and national summaries overlap, holding the other groups fixed can produce combinations that no single panel history realizes; these contrasts describe the fitted response surface. Functionals that average f f f and g g g over observed site-weeks, such as the fitted expected count of the panel, are estimated at the rate of Theorem 7 (e); partial effects and curves at stated histories evaluate the functions at covariate values that need not have been observed, and the theorem does not cover them. Approximate pointwise intervals come from a moving-block bootstrap of the conditional likelihood: the weeks are resampled in blocks of consecutive weeks, keeping all sites of a week and their covariates together, the estimator is refitted to each resample, and the standard deviation of a functional over the refits, on the logarithmic scale for a positive functional, is its standard error se ^ \widehat{\operatorname{se}} se . For a positive functional Ψ \Psi Ψ the 95% interval is Ψ ( f ˉ , g ˉ ) exp ( ± 1.96 se ^ ) \Psi(\bar{f},\bar{g})\exp(\pm1.96\widehat{\operatorname{se}}) Ψ ( f ˉ , g ˉ ) exp ( ± 1.96 se ) . This resampling preserves the observed response–history pairs and within-block dependence, but does not generate a new autoregressive trajectory; under correct specification the score of the conditional likelihood is a martingale difference sequence, which makes it reasonable for parametric autoregressions. We do not prove that the bootstrap is valid for deep network estimators: geometric β \beta β -mixing alone does not justify the stationary moving-block bootstrap Künsch (1989) for these seasonal, changing panels, and regularization bias and the small number of refits can affect the intervals. Simulation C checks the standard errors and the coverage. The third kind is comparative: whether a group of covariates or a feature of the model improves prediction is assessed by paired weekly differences of proper scores between the model with and without it, with block-bootstrap intervals, on forecasts that are out of sample.
Main Results
We present the assumptions in § 5.1 and the main results in § 5.2 to § 5.7 .
Assumptions and Risks
Assumption 1 (Conditional model) For every t t t , X s , t X_{s,t} X s , t is I t − 1 \mathcal{I}_{t-1} I t − 1 -measurable with values in [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d and, given I t − 1 \mathcal{I}_{t-1} I t − 1 , the counts Y 1 , t , … , Y S , t Y_{1,t},\ldots,Y_{S,t} Y 1 , t , … , Y S , t are independent with Y s , t ∼ NB ( exp { f 0 ( X s , t ) } , r ) Y_{s,t} \sim\operatorname{NB}(\exp\{f_0(X_{s,t})\},r) Y s , t ∼ NB ( exp { f 0 ( X s , t )} , r ) , where r > 0 r>0 r > 0 is known.
Assumption 2 (Boundedness) ∥ f 0 ∥ ∞ ≤ F \lVert f_0\rVert_\infty\le F ∥ f 0 ∥ ∞ ≤ F , and every f ∈ F n f\in\mathcal{F}_n f ∈ F n satisfies ∥ f ∥ ∞ ≤ F \lVert f\rVert_\infty\le F ∥ f ∥ ∞ ≤ F .
Assumption 3 (Compositional smoothness) f 0 ∈ G ( q , d , t , β , K ) f_0\in\mathcal{G}(q,d,\mathfrak{t},\beta,K) f 0 ∈ G ( q , d , t , β , K ) with K ≤ F K\le F K ≤ F .
Assumption 4 (Finite memory) X s , t = Φ s ( Y t − 1 , … , Y t − m , U t ; t ) X_{s,t}=\Phi_s(Y_{t-1},\ldots,Y_{t-m},U_t;t) X s , t = Φ s ( Y t − 1 , … , Y t − m , U t ; t ) for measurable maps Φ s \Phi_s Φ s , a fixed integer m ≥ 1 m\ge1 m ≥ 1 and exogenous innovations U 1 , U 2 , … U_1,U_2,\ldots U 1 , U 2 , … that are independent and identically distributed on a Polish space U \mathcal{U} U , with U t U_t U t independent of ( Y u , U u ) u < t (Y_u,U_u)_{u<t} ( Y u , U u ) u < t and I t − 1 \mathcal{I}_{t-1} I t − 1 -measurable.
Assumption 5 (Absolute regularity) The β \beta β -mixing coefficients (9) of the covariate process X t = ( X 1 , t , … , X S , t ) X_t=(X_{1,t},\ldots,X_{S,t}) X t = ( X 1 , t , … , X S , t ) satisfy β X ( a ) ≤ C β e − c β a \beta_X(a)\le C_\beta e^{-c_\beta a} β X ( a ) ≤ C β e − c β a for all integers a ≥ 1 a\ge1 a ≥ 1 and some constants C β ≥ 1 C_\beta\ge1 C β ≥ 1 and c β > 0 c_\beta>0 c β > 0 .
In Assumption 5, the coefficient of absolute regularity, or β \beta β -mixing coefficient, between two random elements U U U and V V V is the total variation distance β ( U , V ) = TV ( P ( U , V ) , P U ⊗ P V ) \beta(U,V)=\operatorname{TV}(P_{(U,V)},P_U\otimes P_V) β ( U , V ) = TV ( P ( U , V ) , P U ⊗ P V ) between their joint law and the product of their marginal laws (Bradley, 2005; Yu, 1994), and
β X ( a ) = sup t β { ( X u ) u ≤ t , ( X u ) u ≥ t + a } . (9) \beta_X(a)=\sup_t\beta\{(X_u)_{u\le t},(X_u)_{u\ge t+a}\}. \tag*{(9)} β X ( a ) = t sup β {( X u ) u ≤ t , ( X u ) u ≥ t + a } . (9)
Assumption 1 is the model (3) ; it allows any dependence of the covariates on the past and does not require stationarity. Assumption 2 bounds the weekly mean between e − F e^{-F} e − F and e F e^F e F . Assumption 4 is used for model-derived mixing and multi-step forecasting, and Assumption 5 for the independent-copy risk bound; Proposition 3 shows that the former implies the latter. The covariate map of § 2.2 has no innovation (U \mathcal{U} U a single point); the innovations cover exogenous inputs such as the uniform covariate of Simulation A.
Two risks are used. Along the observed trajectory,
R n H ( f ) = 1 n ∑ s , t H 2 ( p f ( X s , t ) , p f 0 ( X s , t ) ) , ∥ f − f 0 ∥ n 2 = 1 n ∑ s , t { f ( X s , t ) − f 0 ( X s , t ) } 2 . R_n^H(f)=\frac{1}{n}\sum_{s,t}H^2\bigl(p_f(X_{s,t}),p_{f_0}(X_{s,t})\bigr),\qquad\lVert f-f_0\rVert_n^2=\frac{1}{n}\sum_{s,t}\{f(X_{s,t})-f_0(X_{s,t})\}^2. R n H ( f ) = n 1 s , t ∑ H 2 ( p f ( X s , t ) , p f 0 ( X s , t ) ) , ∥ f − f 0 ∥ n 2 = n 1 s , t ∑ { f ( X s , t ) − f 0 ( X s , t ) } 2 .
Out of sample, let ( Y t ′ ) (Y'_t) ( Y t ′ ) be an independent copy of the panel, with covariates X t ′ = ( X 1 , t ′ , … , X S , t ′ ) X'_t = (X'_{1,t}, \ldots, X'_{S,t}) X t ′ = ( X 1 , t ′ , … , X S , t ′ ) and states Z t ′ Z'_t Z t ′ defined as Z t Z_t Z t in § 5.6 , and let
R ( f ) = 1 n ∑ s , t E { f ( X s , t ′ ) − f 0 ( X s , t ′ ) } 2 , R(f) = \frac{1}{n} \sum_{s,t} \mathbb{E}\{f(X'_{s,t}) - f_0(X'_{s,t})\}^2, R ( f ) = n 1 s , t ∑ E { f ( X s , t ′ ) − f 0 ( X s , t ′ ) } 2 ,
the average squared error of f f f at covariate values that were not used for estimation; R ( f ^ ) R(\hat{f}) R ( f ^ ) denotes R ( f ) R(f) R ( f ) evaluated at f = f ^ f = \hat{f} f = f ^ . The two scales are equivalent: under Assumption 2, c 1 ( f − f 0 ) 2 ≤ H 2 ( p f , p f 0 ) ≤ c 2 ( f − f 0 ) 2 c_1(f-f_0)^2 \le H^2(p_f,p_{f_0}) \le c_2(f-f_0)^2 c 1 ( f − f 0 ) 2 ≤ H 2 ( p f , p f 0 ) ≤ c 2 ( f − f 0 ) 2 pointwise, with explicit constants c 1 , c 2 c_1,c_2 c 1 , c 2 depending only on ( F , r ) (F,r) ( F , r ) (Lemma 9).
An Oracle Inequality along the Trajectory
For ε > 0 \varepsilon> 0 ε > 0 let N n ( ε ) N_n(\varepsilon) N n ( ε ) , the covering number of the class, be the smallest number of sup-norm balls of radius ε \varepsilon ε , centered in F n \mathcal{F}_n F n , that cover F n \mathcal{F}_n F n .
Theorem 1 (Oracle inequality). Let Assumptions 1 and 2 hold, let f ^ \hat{f} f ^ satisfy (7), and let f ∗ ∈ F n f^* \in\mathcal{F}_n f ∗ ∈ F n be any fixed function. For every ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] and δ ∈ ( 0 , 1 / 3 ) \delta\in(0,1/3) δ ∈ ( 0 , 1/3 ) , with probability at least 1 − 3 δ 1-3\delta 1 − 3 δ ,
R n H ( f ^ ) ≤ c ˉ ∥ f ∗ − f 0 ∥ ∞ 2 + Δ n + 2 log N n ( ε ) + ( 2 + λ 0 − 1 + ε λ 1 − 1 ) log ( 1 / δ ) n + ε ( μ ˉ + r ) + 2 c 2 ε 2 , (10) R_n^H(\hat{f}) \le\bar{c}\lVert f^* - f_0\rVert_\infty^2 + \Delta_n + \frac{2\log N_n(\varepsilon) + (2+\lambda_0^{-1}+\varepsilon\lambda_1^{-1})\log(1/\delta)}{n} + \varepsilon(\bar{\mu}+r) + 2c_2\varepsilon^2, \tag*{(10)} R n H ( f ^ ) ≤ c ˉ ∥ f ∗ − f 0 ∥ ∞ 2 + Δ n + n 2 log N n ( ε ) + ( 2 + λ 0 − 1 + ε λ 1 − 1 ) log ( 1/ δ ) + ε ( μ ˉ + r ) + 2 c 2 ε 2 , (10) and ∥ f ^ − f 0 ∥ n 2 ≤ R n H ( f ^ ) / c 1 \lVert\hat{f}-f_0\rVert_n^2 \le R_n^H(\hat{f})/c_1 ∥ f ^ − f 0 ∥ n 2 ≤ R n H ( f ^ ) / c 1 . The constants c ˉ , μ ˉ , λ 0 , λ 1 , c 1 , c 2 \bar{c},\bar{\mu},\lambda_0,\lambda_1,c_1,c_2 c ˉ , μ ˉ , λ 0 , λ 1 , c 1 , c 2 are given in (22) and depend only on ( F , r ) (F,r) ( F , r ) .
The bound has the fast form, entropy over n n n and not its square root, and its three parts are the approximation error of the class, the optimization error, and the complexity of the class. No assumption is made on the dependence of the data beyond the conditional specification.
The maximizer itself is not needed, and the optimization error can be measured against the truth. The proof shows that, with probability at least 1 − 2 δ 1-2\delta 1 − 2 δ , every estimator f ^ \hat{f} f ^ with values in F n \mathcal{F}_n F n , however it is computed, satisfies
R n H ( f ^ ) ≤ ℓ n ( f 0 ) − ℓ n ( f ^ ) n + 2 log N n ( ε ) + ( 2 + ε λ 1 − 1 ) log ( 1 / δ ) n + ε ( μ ˉ + r ) + 2 c 2 ε 2 . (11) R_n^H(\hat{f}) \le\frac{\ell_n(f_0)-\ell_n(\hat{f})}{n} + \frac{2\log N_n(\varepsilon)+(2+\varepsilon\lambda_1^{-1})\log(1/\delta)}{n}+\varepsilon(\bar{\mu}+r)+2c_2\varepsilon^2. \tag*{(11)} R n H ( f ^ ) ≤ n ℓ n ( f 0 ) − ℓ n ( f ^ ) + n 2 log N n ( ε ) + ( 2 + ε λ 1 − 1 ) log ( 1/ δ ) + ε ( μ ˉ + r ) + 2 c 2 ε 2 . (11)
A fit whose likelihood on the trajectory is at least that of the truth thus attains the complexity term alone, whatever optimizer produced it.
Rate of Convergence
Theorem 2 (Rate along the trajectory). Let Assumptions 1–3 hold and let F n = F ( L , p , s n , F ) \mathcal{F}_n=\mathcal{F}(L,p,s_n,F) F n = F ( L , p , s n , F ) with (i) F ≥ max ( K , 1 ) F \ge\max(K,1) F ≥ max ( K , 1 ) , (ii) ∑ i = 0 q β i + t i 2 β i + t i log 2 ( 4 t i ∨ 4 β i ) log 2 n ≤ L ≲ n ϕ n \sum_{i=0}^{q}\frac{\beta_i+t_i}{2^{\beta_i+t_i}}\log_2(4t_i\lor4\beta_i)\log_2 n \le L \lesssim n\phi_n ∑ i = 0 q 2 β i + t i β i + t i log 2 ( 4 t i ∨ 4 β i ) log 2 n ≤ L ≲ n ϕ n , (iii) n ϕ n ≲ min 1 ≤ l ≤ L p l n\phi_n \lesssim\min_{1\le l\le L}p_l n ϕ n ≲ min 1 ≤ l ≤ L p l and (iv) s n ≍ n ϕ n log n s_n \asymp n\phi_n\log n s n ≍ n ϕ n log n . Then there is a constant C C C , depending only on q , d , t , β , F , r q,d,t,\beta,F,r q , d , t , β , F , r and the implicit constants in (ii)–(iv), such that for every δ ∈ ( 0 , 1 / 3 ) \delta\in(0,1/3) δ ∈ ( 0 , 1/3 ) , with probability at least 1 − 3 δ 1-3\delta 1 − 3 δ ,
∥ f ^ − f 0 ∥ n 2 ≤ C { ϕ n L log 2 n + Δ n + log ( 1 / δ ) n } . (12) \lVert\hat{f}-f_0\rVert_n^2 \le C\left\{\phi_n L\log^2 n+\Delta_n+\frac{\log(1/\delta)}{n}\right\}. \tag*{(12)} ∥ f ^ − f 0 ∥ n 2 ≤ C { ϕ n L log 2 n + Δ n + n log ( 1/ δ ) } . (12) In particular, if L ≍ log n L\asymp\log n L ≍ log n and Δ n ≲ ϕ n log 3 n \Delta_n\lesssim\phi_n\log^3 n Δ n ≲ ϕ n log 3 n , then ∥ f ^ − f 0 ∥ n 2 ≲ ϕ n log 3 n \lVert\hat{f}-f_0\rVert_n^2\lesssim\phi_n\log^3 n ∥ f ^ − f 0 ∥ n 2 ≲ ϕ n log 3 n with probability at least 1 − 3 / n 1-3/n 1 − 3/ n .
The rate is that of Schmidt-Hieber [12 ] for Gaussian regression with independent observations; here it holds for a negative binomial likelihood and for the dependent panel, in the empirical norm at the visited covariates. Its exponent depends on the component dimensions t i t_i t i ; constants and architecture requirements can still depend on the ambient dimension d d d .
The depth condition uses the correction of Schmidt-Hieber and Vu (2024); the asymptotic rate is unchanged. The approximation statements are understood for sufficiently large n n n .
Out-of-Sample Risk
To pass from the trajectory to new data we need the covariate process to forget its past. For DeepNB-STAR this is a consequence of the model.
Proposition 3 (The model is geometrically absolutely regular) Under Assumptions 1, 2 and 4,
β X ( a ) ≤ ( 1 − ϵ 0 ) ⌊ a / m ⌋ for all integers a ≥ 1 , where ϵ 0 = { r r + e F } r S m . \beta_X(a) \le(1-\epsilon_0)^{\lfloor a/m\rfloor}\quad\text{for all integers }a\ge1,\quad\text{where }\epsilon_0=\left\{\frac{r}{r+e^F}\right\}^{rS^m}. β X ( a ) ≤ ( 1 − ϵ 0 ) ⌊ a / m ⌋ for all integers a ≥ 1 , where ϵ 0 = { r + e F r } r S m . Hence Assumption 5 holds with C β = ( 1 − ϵ 0 ) − 1 C_\beta=(1-\epsilon_0)^{-1} C β = ( 1 − ϵ 0 ) − 1 and c β = − m − 1 log ( 1 − ϵ 0 ) c_\beta=-m^{-1}\log(1-\epsilon_0) c β = − m − 1 log ( 1 − ϵ 0 ) .
The constant ϵ 0 \epsilon_0 ϵ 0 is very small for realistic S S S and m m m , so the proposition should be read as a qualitative statement that no separate mixing assumption is needed. Seasonal covariates and non-stationarity are allowed because the bound is uniform in time.
Theorem 4 (Out-of-sample rate) Let Assumptions 1–3 and 5 hold, with F n \mathcal{F}_n F n as in Theorem 2, L ≍ log n L\asymp\log n L ≍ log n and S S S fixed. There are constants C C C and T 0 T_0 T 0 , depending only on the quantities in Theorem 2 and on ( S , C β , c β ) (S,C_\beta,c_\beta) ( S , C β , c β ) , such that for T ≥ T 0 T\ge T_0 T ≥ T 0 and every δ ∈ ( 0 , 1 / 4 ) \delta\in(0,1/4) δ ∈ ( 0 , 1/4 ) , with probability at least 1 − 4 δ − C β / T 1-4\delta-C_\beta/T 1 − 4 δ − C β / T ,
R ( f ^ ) ≤ C { ϕ n log 4 n + Δ n + log n log ( 1 / δ ) n } . (13) R(\hat f)\le C\left\{\phi_n\log^4 n+\Delta_n+\frac{\log n\log(1/\delta)}{n}\right\}. \tag*{(13)} R ( f ^ ) ≤ C { ϕ n log 4 n + Δ n + n log n log ( 1/ δ ) } . (13) and
E R ( f ^ ) ≤ C ( ϕ n log 4 n + Δ n ) . \mathbb{E}R(\hat f)\le C(\phi_n\log^4 n+\Delta_n). E R ( f ^ ) ≤ C ( ϕ n log 4 n + Δ n ) .
Minimax Lower Bound
Let G β , d ∗ ( K ) \mathcal{G}_{\beta,d^*}(K) G β , d ∗ ( K ) be the functions f ( x ) = g ( x J ) f(x)=g(x_J) f ( x ) = g ( x J ) with J ⊂ { 1 , … , d } J\subset\{1,\ldots,d\} J ⊂ { 1 , … , d } , ∣ J ∣ = d ∗ |J|=d^* ∣ J ∣ = d ∗ and g ∈ C β ( [ 0 , 1 ] d ∗ , K ) g\in C^\beta([0,1]^{d^*},K) g ∈ C β ([ 0 , 1 ] d ∗ , K ) . It is the class G ( q , d , t , β , K ) \mathcal{G}(q,d,t,\beta,K) G ( q , d , t , β , K ) with q = 0 q=0 q = 0 and t 0 = d ∗ t_0=d^* t 0 = d ∗ , for which ϕ n = n − 2 β / ( 2 β + d ∗ ) \phi_n=n^{-2\beta/(2\beta+d^*)} ϕ n = n − 2 β / ( 2 β + d ∗ ) . For a class G \mathcal{G} G of log-mean functions and fixed constants ( F , r , C β , c β ) (F,r,C_\beta,c_\beta) ( F , r , C β , c β ) , let P n ( G ) \mathcal{P}_n(\mathcal{G}) P n ( G ) be the set of laws P P P of ( X s , t , Y s , t ) s ≤ S , t ≤ T (X_{s,t},Y_{s,t})_{s\le S,t\le T} ( X s , t , Y s , t ) s ≤ S , t ≤ T , for which Assumption 1 holds with some f 0 ∈ G f_0\in\mathcal{G} f 0 ∈ G , ∥ f 0 ∥ ∞ ≤ F \lVert f_0\rVert_\infty\le F ∥ f 0 ∥ ∞ ≤ F , and Assumption 5 holds, for a fixed number of sites S ≥ 1 S\ge1 S ≥ 1 and T = n / S T=n/S T = n / S weeks. The risk R R R depends on P P P through f 0 f_0 f 0 and through the law of the independent copy, and E P \mathbb{E}_P E P denotes expectation under P P P .
Theorem 5 (Lower bound) Let 0 < K ≤ F 0<K\le F 0 < K ≤ F and 1 ≤ d ∗ ≤ d 1\le d^*\le d 1 ≤ d ∗ ≤ d . There is a constant c > 0 c>0 c > 0 , depending only on ( β , d ∗ , K , F , r ) (\beta,d^*,K,F,r) ( β , d ∗ , K , F , r ) and not on S S S , such that for all n n n ,
inf f ^ sup P ∈ P n ( G β , d ∗ ( K ) ) E P R ( f ^ ) ≥ c n − 2 β / ( 2 β + d ∗ ) . \inf_{\hat f}\ \sup_{P\in\mathcal{P}_n(\mathcal{G}_{\beta,d^*}(K))}\mathbb{E}_P R(\hat f)\ge c n^{-2\beta/(2\beta+d^*)}. f ^ inf P ∈ P n ( G β , d ∗ ( K )) sup E P R ( f ^ ) ≥ c n − 2 β / ( 2 β + d ∗ ) . where the infimum is over all estimators, that is, all measurable maps from the data to functions on [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d .
Theorem 4 applies to every law in P n ( G β , d ∗ ( K ) ) \mathcal{P}_n(\mathcal{G}_{\beta,d_*}(K)) P n ( G β , d ∗ ( K )) , so for every fixed S S S the two theorems match up to logarithmic factors when the optimization error has the required order. The least favorable laws in the proof have independent uniform covariates; they satisfy all of Assumptions 1–5, with the covariates as exogenous innovations in Assumption 4, and Simulation A uses a design of this type. The theorem does not establish minimax optimality for a covariate map that depends on past counts alone, such as the map of § 2.2 . For such a map the covariates take countably many values, the law of the design is determined by f 0 f_0 f 0 itself, and the risk R R R weights the error of f f f only on the support of that law, so the packing argument in L 2 L^2 L 2 does not apply; the minimax rate for a fixed map of past counts is an open question. We also do not state a lower bound for the full compositional class, which requires a separate packing argument.
Prediction Error Bounds
Forecast users care about predictive distributions more than about f 0 f_0 f 0 . Let P f ( ⋅ ∣ x ) = NB ( e f ( x ) , r ) P_f(\cdot\mid x)=\operatorname{NB}(e^{f(x)},r) P f ( ⋅ ∣ x ) = NB ( e f ( x ) , r ) be the one-step predictive law and, under Assumption 4, let P f ( h ) ( ⋅ ∣ z , t ) P_f^{(h)}(\cdot\mid z,t) P f ( h ) ( ⋅ ∣ z , t ) be the joint law of ( Y t + 1 , … , Y t + h ) (Y_{t+1},\ldots,Y_{t+h}) ( Y t + 1 , … , Y t + h ) when the last m m m weeks are z z z and the panel evolves according to {(1)–(3)} with f f f in place of f 0 f_0 f 0 . Write TV h ( z , t ) = TV { P f 0 ( h ) ( ⋅ ∣ z , t ) , P f ( h ) ( ⋅ ∣ z , t ) } \operatorname{TV}_h(z,t)=\operatorname{TV}\{P_{f_0}^{(h)}(\cdot\mid z,t),P_f^{(h)}(\cdot\mid z,t)\} TV h ( z , t ) = TV { P f 0 ( h ) ( ⋅ ∣ z , t ) , P f ( h ) ( ⋅ ∣ z , t )} and Z t = ( Y t , … , Y t − m + 1 , U t + 1 ) Z_t=(Y_t,\ldots,Y_{t-m+1},U_{t+1}) Z t = ( Y t , … , Y t − m + 1 , U t + 1 ) for the state of the panel at the end of week t t t (without U t + 1 U_{t+1} U t + 1 when there are no innovations); future innovations are drawn from their common law under both models, and E f 0 [ ⋅ ∣ Z t = z ] \mathbb{E}_{f_0}[\cdot\mid Z_t=z] E f 0 [ ⋅ ∣ Z t = z ] is the expectation under the true model started from z z z .
Theorem 6 (Prediction error) Let Assumptions 1 and 2 hold and let f f f be any function with ∥ f ∥ ∞ ≤ F \lVert f\rVert_\infty\le F ∥ f ∥ ∞ ≤ F .
(a) One step. For every x x x and every set C C C of counts,
∣ P f ( C ∣ x ) − P f 0 ( C ∣ x ) ∣ ≤ TV { P f ( ⋅ ∣ x ) , P f 0 ( ⋅ ∣ x ) } ≤ ( 2 c 2 ) 1 / 2 ∣ f ( x ) − f 0 ( x ) ∣ . (14) \left|P_f(C\mid x)-P_{f_0}(C\mid x)\right|\le\operatorname{TV}\{P_f(\cdot\mid x),P_{f_0}(\cdot\mid x)\}\le(2c_2)^{1/2}\left|f(x)-f_0(x)\right|. \tag*{(14)} ∣ P f ( C ∣ x ) − P f 0 ( C ∣ x ) ∣ ≤ TV { P f ( ⋅ ∣ x ) , P f 0 ( ⋅ ∣ x )} ≤ ( 2 c 2 ) 1/2 ∣ f ( x ) − f 0 ( x ) ∣ . (14) Consequently, for α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) , a prediction set C ^ α ( x ) \widehat{C}_\alpha(x) C α ( x ) with P f ( C ^ α ( x ) ∣ x ) ≥ 1 − α P_f(\widehat{C}_\alpha(x)\mid x)\ge1-\alpha P f ( C α ( x ) ∣ x ) ≥ 1 − α has true coverage at least 1 − α − ( 2 c 2 ) 1 / 2 ∣ f ( x ) − f 0 ( x ) ∣ 1-\alpha-(2c_2)^{1/2}|f(x)-f_0(x)| 1 − α − ( 2 c 2 ) 1/2 ∣ f ( x ) − f 0 ( x ) ∣ , and its coverage averaged over an independent copy of the process is at least 1 − α − { 2 c 2 R ( f ) } 1 / 2 1-\alpha-\{2c_2R(f)\}^{1/2} 1 − α − { 2 c 2 R ( f ) } 1/2 . Moreover the excess mean squared prediction error of the point forecast e f ( x ) e^{f(x)} e f ( x ) satisfies E [ ( Y − e f ( x ) ) 2 − ( Y − e f 0 ( x ) ) 2 ∣ X = x ] ≤ e 2 F { f ( x ) − f 0 ( x ) } 2 \mathbb{E}[(Y-e^{f(x)})^2-(Y-e^{f_0(x)})^2\mid X=x]\le e^{2F}\{f(x)-f_0(x)\}^2 E [( Y − e f ( x ) ) 2 − ( Y − e f 0 ( x ) ) 2 ∣ X = x ] ≤ e 2 F { f ( x ) − f 0 ( x ) } 2 .
(b) h h h steps. Under Assumption 4 in addition, for every state z z z , week t t t and h ≥ 1 h\ge1 h ≥ 1 ,
TV h ( z , t ) ≤ { V max 4 E f 0 [ ∑ k = 1 h ∑ s = 1 S { f ( X s , t + k ) − f 0 ( X s , t + k ) } 2 ∣ Z t = z ] } 1 / 2 , (15) \operatorname{TV}_h(z,t)\le\left\{\frac{V_{\max}}{4}\mathbb{E}_{f_0}\left[\sum_{k=1}^{h}\sum_{s=1}^{S}\{f(X_{s,t+k})-f_0(X_{s,t+k})\}^2\mid Z_t=z\right]\right\}^{1/2}, \tag*{(15)} TV h ( z , t ) ≤ { 4 V m a x E f 0 [ k = 1 ∑ h s = 1 ∑ S { f ( X s , t + k ) − f 0 ( X s , t + k ) } 2 ∣ Z t = z ] } 1/2 , (15) with V max = e F + e 2 F / r V_{\max}=e^F+e^{2F}/r V m a x = e F + e 2 F / r , and, averaging over forecast origins of an independent copy,
1 T − h ∑ t = 1 T − h E TV h ( Z t ′ , t ) ≤ { V max h S T 4 ( T − h ) R ( f ) } 1 / 2 . (16) \frac{1}{T-h}\sum_{t=1}^{T-h}\mathbb{E}\operatorname{TV}_h(Z'_t,t)\le\left\{\frac{V_{\max}hST}{4(T-h)}R(f)\right\}^{1/2}. \tag*{(16)} T − h 1 t = 1 ∑ T − h E TV h ( Z t ′ , t ) ≤ { 4 ( T − h ) V m a x h S T R ( f ) } 1/2 . (16) Any prediction region for a function of ( Y t + 1 , … , Y t + h ) (Y_{t+1},\ldots,Y_{t+h}) ( Y t + 1 , … , Y t + h ) that has probability at least 1 − α 1-\alpha 1 − α under the fitted model therefore has true coverage at least 1 − α − TV h ( Z t , t ) 1-\alpha-\operatorname{TV}_h(Z_t,t) 1 − α − TV h ( Z t , t ) .
(c) Monte Carlo quantiles. Let G G G be the fitted-model distribution function of a real-valued function of ( Y t + 1 , … , Y t + h ) (Y_{t+1},\ldots,Y_{t+h}) ( Y t + 1 , … , Y t + h ) given Z t Z_t Z t , let G B G_B G B be the empirical distribution function of B B B independent draws from it, and let q ^ − ≤ q ^ + \hat{q}_{-} \le\hat{q}_{+} q ^ − ≤ q ^ + satisfy G B ( q ^ + ) ≥ 1 − α / 2 − ϰ B G_B(\hat{q}_{+}) \ge1-\alpha/2-\varkappa_B G B ( q ^ + ) ≥ 1 − α /2 − ϰ B and G B ( q ^ − − ) ≤ α / 2 + ϰ B G_B(\hat{q}_{-}^{-}) \le\alpha/2+\varkappa_B G B ( q ^ − − ) ≤ α /2 + ϰ B for some ϰ B ≥ 0 \varkappa_B \ge0 ϰ B ≥ 0 , where G B ( q − ) G_B(q^{-}) G B ( q − ) is the left limit. For every η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) , with probability at least 1 − η 1-\eta 1 − η over the draws, the interval [ q ^ − , q ^ + ] [\hat{q}_{-},\hat{q}_{+}] [ q ^ − , q ^ + ] has fitted-model probability at least 1 − α − 2 ϰ B − 2 { log ( 2 / η ) / ( 2 B ) } 1 / 2 1-\alpha-2\varkappa_B-2\{\log(2/\eta)/(2B)\}^{1/2} 1 − α − 2 ϰ B − 2 { log ( 2/ η ) / ( 2 B ) } 1/2 . The empirical quantiles q ^ ± = G B − 1 ( ⋅ ) \hat{q}_{\pm}=G_B^{-1}(\mathord{\cdot}) q ^ ± = G B − 1 ( ⋅ ) satisfy the condition with ϰ B = 0 \varkappa_B=0 ϰ B = 0 , and quantiles computed by linear interpolation of the order statistics and rounded to an integer satisfy it with ϰ B = 1 / B \varkappa_B=1/B ϰ B = 1/ B .
(d) Rao–Blackwellized marginal quantiles. Conditional on the fitted model and a forecast origin, let V 1 , … , V B V_1,\ldots,V_B V 1 , … , V B be independent intermediate histories for a fixed site and horizon, and let K b ( q ) K_b(q) K b ( q ) be the conditional distribution function of its terminal count given V b V_b V b . Put G ~ B ( q ) = B − 1 ∑ b K b ( q ) \widetilde{G}_B(q)=B^{-1}\sum_b K_b(q) G B ( q ) = B − 1 ∑ b K b ( q ) , so G ( q ) = E K b ( q ) G(q)=\mathbb{E}K_b(q) G ( q ) = E K b ( q ) . With probability at least 1 − η 1-\eta 1 − η ,
sup q ∣ G ~ B ( q ) − G ( q ) ∣ ≤ e B ( η ) : = π 2 B + log ( 1 / η ) 2 B . \sup_q \lvert\widetilde{G}_B(q)-G(q)\rvert\le e_B(\eta):=\sqrt{\frac{\pi}{2B}}+\sqrt{\frac{\log(1/\eta)}{2B}}. q sup ∣ G B ( q ) − G ( q )∣ ≤ e B ( η ) := 2 B π + 2 B log ( 1/ η ) .
If q ~ ± \widetilde{q}_{\pm} q ± satisfy the two quantile inequalities in (c) with G ~ B \widetilde{G}_B G B in place of G B G_B G B , their interval has fitted-model probability at least 1 − α − 2 ϰ B − 2 e B ( η ) 1-\alpha-2\varkappa_B-2e_B(\eta) 1 − α − 2 ϰ B − 2 e B ( η ) . Exact mixture quantiles have ϰ B = 0 \varkappa_B=0 ϰ B = 0 , and a numerical inversion that is accurate to a tolerance τ \tau τ in probability has ϰ B = τ \varkappa_B=\tau ϰ B = τ . One step ahead, the conditional negative binomial distribution is known exactly and this Monte Carlo term is zero.
Combining (b) with (c) or (d) with Theorem 4, for h < T h<T h < T with T / ( T − h ) T/(T-h) T / ( T − h ) bounded and optimization error Δ n ≲ ϕ n log 4 n \Delta_n\lesssim\phi_n\log^4 n Δ n ≲ ϕ n log 4 n , the coverage of the h h h -step intervals of Algorithm 1, averaged over the origins of an independent copy, falls short of their fitted-model probability by at most a quantity of order ( h S ϕ n ) 1 / 2 log 2 n + B − 1 / 2 (hS\phi_n)^{1/2}\log^2 n+B^{-1/2} ( h S ϕ n ) 1/2 log 2 n + B − 1/2 , and the excess one-step mean squared prediction error is of order ϕ n log 4 n \phi_n\log^4 n ϕ n log 4 n . Three qualifications apply. The bounds compare true and fitted-model probabilities; discrete intervals can cover more than their nominal level even under the true model. The average is over the time-indexed marginal laws of the observation period, so it does not bound conditional coverage at a particular origin or under a shift of the covariate law in the future. And the dependence on h h h is an upper bound.
The bound also speaks to a common objection to recursive forecasting, that feeding forecasts back into the model accumulates errors over the horizon, which direct multi-horizon forecasters such as the Temporal Fusion Transformer avoid. For a likelihood model, (16) quantifies the accumulation: the error of the h h h -step predictive law grows at most like the square root of the horizon, and its rate in n n n is the one-step rate. Moreover, the predictive distributions of all sites and horizons are marginals of one joint law, so quantiles never cross, and the predictive distribution of any functional of the path, such as a national total or a four-week cumulative count, is available with the same guarantee. In our development experiments, a direct multi-horizon version of DeepNB-STAR was worse than recursive simulation at every horizon (supplementary § 20 ), and in the application DeepNB-STAR has a lower score than the three-seed transformer ensemble at every horizon on every panel, significantly so one week ahead on three panels and at all horizons on amebiasis (Table 5 ).
Table 5. Where the TFT ensemble and DeepNB-STAR differ: paired weekly WIS difference, TFT ensemble minus DeepNB-STAR, by horizon, by third of the prefectures ordered by their mean weekly count in 2012–2024, and by period. Positive values favor DeepNB-STAR; an asterisk marks a moving-block bootstrap 95% interval (blocks of 8 weeks) that excludes zero.
Estimated and Covariate-Dependent Dispersion
In practice the size is unknown, and it need not be constant: how overdispersed a count is can depend on the local level, on the neighbors and on the season. We therefore replace the known size of Assumption 1 by the general model (2), with an unknown log-size function g 0 g_0 g 0 taking values in [ γ l o , γ h i ] [\gamma_{\mathrm{lo}},\gamma_{\mathrm{hi}}] [ γ lo , γ hi ] , where r l o = e γ l o ≤ r h i = e γ h i r_{\mathrm{lo}}=e^{\gamma_{\mathrm{lo}}}\leq r_{\mathrm{hi}}=e^{\gamma_{\mathrm{hi}}} r lo = e γ lo ≤ r hi = e γ hi are known; a constant size r 0 r_0 r 0 is the case g 0 ≡ log r 0 g_0\equiv\log r_0 g 0 ≡ log r 0 . Write p f , r p_{f,r} p f , r for the NB( e f , r ) (e^f,r) ( e f , r ) mass function. Let P n \mathcal{P}_n P n be a class of pairs ( f , g ) (f,g) ( f , g ) of measurable functions with ∥ f ∥ ∞ ≤ F \|f\|_\infty\leq F ∥ f ∥ ∞ ≤ F and γ l o ≤ g ≤ γ h i \gamma_{\mathrm{lo}}\leq g\leq\gamma_{\mathrm{hi}} γ lo ≤ g ≤ γ hi , and let N n ( ε ) N_n(\varepsilon) N n ( ε ) be its covering number for the norm max ( ∥ f − f ′ ∥ ∞ , ∥ g − g ′ ∥ ∞ ) \max(\|f-f'\|_\infty,\|g-g'\|_\infty) max ( ∥ f − f ′ ∥ ∞ , ∥ g − g ′ ∥ ∞ ) . Two examples matter. For a constant size, P n = F n × { constants } \mathcal{P}_n=\mathcal{F}_n\times\{\text{constants}\} P n = F n × { constants } , and N n ( ε ) ≤ N F n ( ε ) { ⌈ ( γ h i − γ l o ) / ( 2 ε ) ⌉ + 1 } N_n(\varepsilon)\leq N_{\mathcal{F}_n}(\varepsilon)\{\lceil(\gamma_{\mathrm{hi}}-\gamma_{\mathrm{lo}})/(2\varepsilon)\rceil+1\} N n ( ε ) ≤ N F n ( ε ) {⌈( γ hi − γ lo ) / ( 2 ε )⌉ + 1 } , with N F n N_{\mathcal{F}_n} N F n the covering number of F n \mathcal{F}_n F n . For a covariate-dependent size, P n = F ( 2 ) ( L , p , s n , F ) \mathcal{P}_n=\mathcal{F}^{(2)}(L,p,s_n,F) P n = F ( 2 ) ( L , p , s n , F ) is the class of sparse ReLU networks with two outputs, the first truncated to [ − F , F ] [-F,F] [ − F , F ] and the second to [ γ l o , γ h i ] [\gamma_{\mathrm{lo}},\gamma_{\mathrm{hi}}] [ γ lo , γ hi ] ; this is a constrained theoretical analogue of the estimator used in Section 8. The estimator is any measurable ( f ^ , g ^ ) ∈ P n (\hat f,\hat g)\in\mathcal{P}_n ( f ^ , g ^ ) ∈ P n with
ℓ n ( f ^ , g ^ ) ≥ sup ( f , g ) ∈ P n ℓ n ( f , g ) − n Δ n , ℓ n ( f , g ) = ∑ s , t log p f ( X s , t ) , exp g ( X s , t ) ( Y s , t ) , (17) \ell_n(\hat f,\hat g)\geq\sup_{(f,g)\in\mathcal{P}_n}\ell_n(f,g)-n\Delta_n,\qquad\ell_n(f,g)=\sum_{s,t}\log p_{f(X_{s,t}),\exp g(X_{s,t})}(Y_{s,t}), \tag*{(17)} ℓ n ( f ^ , g ^ ) ≥ ( f , g ) ∈ P n sup ℓ n ( f , g ) − n Δ n , ℓ n ( f , g ) = s , t ∑ log p f ( X s , t ) , e x p g ( X s , t ) ( Y s , t ) , (17)
and its trajectory risk is the Hellinger risk of the fitted one-step predictive laws, R n H ( f , g ) = n − 1 ∑ s , t H 2 ( p f ( X s , t ) , e g ( X s , t ) , p f 0 ( X s , t ) , e g 0 ( X s , t ) ) R_n^H(f,g)=n^{-1}\sum_{s,t}H^2(p_{f(X_{s,t}),e^{g(X_{s,t})}},p_{f_0(X_{s,t}),e^{g_0(X_{s,t})}}) R n H ( f , g ) = n − 1 ∑ s , t H 2 ( p f ( X s , t ) , e g ( X s , t ) , p f 0 ( X s , t ) , e g 0 ( X s , t ) ) ; R H ( f , g ) R^H(f,g) R H ( f , g ) is the same average of expectations over an independent copy, and R g ( g ) = n − 1 ∑ s , t E { g ( X s , t ′ ) − g 0 ( X s , t ′ ) } 2 R_g(g)=n^{-1}\sum_{s,t}\mathbb{E}\{g(X'_{s,t})-g_0(X'_{s,t})\}^2 R g ( g ) = n − 1 ∑ s , t E { g ( X s , t ′ ) − g 0 ( X s , t ′ ) } 2 . The constants c ˉ γ , λ γ , ρ , s 0 , μ ˉ γ , c 0 , κ γ , c f , c γ \bar c_\gamma,\lambda_\gamma,\rho,s_0,\bar\mu_\gamma,c_0,\kappa_\gamma,c_f,c_\gamma c ˉ γ , λ γ , ρ , s 0 , μ ˉ γ , c 0 , κ γ , c f , c γ of the next theorem are given in (28) and (29) and depend only on ( F , γ l o , γ h i ) (F,\gamma_{\mathrm{lo}},\gamma_{\mathrm{hi}}) ( F , γ lo , γ hi ) .
Theorem 7 (Estimated and covariate-dependent dispersion) Let (2) and Assumption 2 hold, and let ( f ^ , g ^ ) (\hat f,\hat g) ( f ^ , g ^ ) satisfy (17).
(a) For every fixed ( f ∗ , g ∗ ) ∈ P n (f^*,g^*)\in\mathcal{P}_n ( f ∗ , g ∗ ) ∈ P n with a = max ( ∥ f ∗ − f 0 ∥ ∞ , ∥ g ∗ − g 0 ∥ ∞ ) a=\max(\|f^*-f_0\|_\infty,\|g^*-g_0\|_\infty) a = max ( ∥ f ∗ − f 0 ∥ ∞ , ∥ g ∗ − g 0 ∥ ∞ ) , every ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] and δ ∈ ( 0 , 1 / 3 ) \delta\in(0,1/3) δ ∈ ( 0 , 1/3 ) , with probability at least 1 − 3 δ 1-3\delta 1 − 3 δ ,
R n H ( f ^ , g ^ ) ≤ c ˉ γ a 2 + Δ n + 2 log N n ( ε ) + ( 2 + λ γ − 1 + 2 ρ ε s 0 − 1 ) log ( 1 / δ ) n + 2 ρ ε ( μ ˉ γ + c 0 ) + κ γ ε 2 , R_n^H(\hat f,\hat g)\leq\bar c_\gamma a^2+\Delta_n+\frac{2\log N_n(\varepsilon)+(2+\lambda_\gamma^{-1}+2\rho\varepsilon s_0^{-1})\log(1/\delta)}{n}+2\rho\varepsilon(\bar\mu_\gamma+c_0)+\kappa_\gamma\varepsilon^2, R n H ( f ^ , g ^ ) ≤ c ˉ γ a 2 + Δ n + n 2 log N n ( ε ) + ( 2 + λ γ − 1 + 2 ρε s 0 − 1 ) log ( 1/ δ ) + 2 ρε ( μ ˉ γ + c 0 ) + κ γ ε 2 , and c f ∥ f ^ − f 0 ∥ n 2 + c γ ∥ g ^ − g 0 ∥ n 2 ≤ 2 R n H ( f ^ , g ^ ) c_f\|\hat f-f_0\|_n^2+c_\gamma\|\hat g-g_0\|_n^2\leq2R_n^H(\hat f,\hat g) c f ∥ f ^ − f 0 ∥ n 2 + c γ ∥ g ^ − g 0 ∥ n 2 ≤ 2 R n H ( f ^ , g ^ ) .
(b) Let f 0 f_0 f 0 and g 0 g_0 g 0 belong to classes G ( q , d , t , β , K ) \mathcal{G}(q,d,t,\beta,K) G ( q , d , t , β , K ) , possibly different, let φ n \varphi_n φ n be the larger of their rates (5), and let P n = F ( 2 ) ( L , p , s n , F ) \mathcal{P}_n=\mathcal{F}^{(2)}(L,p,s_n,F) P n = F ( 2 ) ( L , p , s n , F ) satisfy conditions (i)–(iv) of Theorem 2 for both. Then ∥ f ^ − f 0 ∥ n 2 + ∥ g ^ − g 0 ∥ n 2 ≤ C { φ n L log 2 n + Δ n + log ( 1 / δ ) / n } \|\hat f-f_0\|_n^2+\|\hat g-g_0\|_n^2\leq C\{\varphi_nL\log^2n+\Delta_n+\log(1/\delta)/n\} ∥ f ^ − f 0 ∥ n 2 + ∥ g ^ − g 0 ∥ n 2 ≤ C { φ n L log 2 n + Δ n + log ( 1/ δ ) / n } with probability at least 1 − 3 δ 1-3\delta 1 − 3 δ , and under the conditions of Theorem 4, R ( f ^ ) + R g ( g ^ ) ≤ C { φ n log 4 n + Δ n + log n log ( 1 / δ ) / n } R(\hat f)+R_g(\hat g)\leq C\{\varphi_n\log^4n+\Delta_n+\log n\log(1/\delta)/n\} R ( f ^ ) + R g ( g ^ ) ≤ C { φ n log 4 n + Δ n + log n log ( 1/ δ ) / n } with probability at least 1 − 4 δ − C β / T 1-4\delta-C_\beta/T 1 − 4 δ − C β / T . The constants C C C depend in addition on ( γ l o , γ h i ) (\gamma_{\mathrm{lo}},\gamma_{\mathrm{hi}}) ( γ lo , γ hi ) .
(c) Proposition 3 holds with ϵ 0 = { ( r h i / ( r h i + e F ) ) r h i S m } \epsilon_0=\{(r_{\mathrm{hi}}/(r_{\mathrm{hi}}+e^F))^{r_{\mathrm{hi}}}S^m\} ϵ 0 = {( r hi / ( r hi + e F ) ) r hi S m } , and Theorem 6 holds for fitted laws p f , e g p_{f,e^g} p f , e g with γ l o ≤ g ≤ γ h i \gamma_{\mathrm{lo}}\leq g\leq\gamma_{\mathrm{hi}} γ lo ≤ g ≤ γ hi , with ( 2 c 2 ) 1 / 2 ∣ f ( x ) − f 0 ( x ) ∣ (2c_2)^{1/2}|f(x)-f_0(x)| ( 2 c 2 ) 1/2 ∣ f ( x ) − f 0 ( x ) ∣ in (14) replaced by 1 2 κ γ 1 / 2 [ { f ( x ) − f 0 ( x ) } 2 + { g ( x ) − g 0 ( x ) } 2 ] 1 / 2 \frac{1}{2}\kappa_\gamma^{1/2}[\{f(x)-f_0(x)\}^2+\{g(x)-g_0(x)\}^2]^{1/2} 2 1 κ γ 1/2 [{ f ( x ) − f 0 ( x ) } 2 + { g ( x ) − g 0 ( x ) } 2 ] 1/2 , V max V_{\max} V m a x in (15) and (16) replaced by κ γ \kappa_\gamma κ γ , the squared error of f f f in (15) by the sum of the squared errors of f f f and g g g , and R ( f ) R(f) R ( f ) in (16) by R ( f ) + R g ( g ) R(f)+R_g(g) R ( f ) + R g ( g ) .
(d) If ( f ˉ , g ˉ ) = n f i t − 1 ∑ k = 1 n f i t ( f ^ k , g ^ k ) (\bar f,\bar g)=n_{\mathrm{fit}}^{-1}\sum_{k=1}^{n_{\mathrm{fit}}}(\hat f_k,\hat g_k) ( f ˉ , g ˉ ) = n fit − 1 ∑ k = 1 n fit ( f ^ k , g ^ k ) is the average of n f i t n_{\mathrm{fit}} n fit pairs with values in the same ranges, then R n H ( f ˉ , g ˉ ) ≤ { κ γ / ( 2 c min ) } n f i t − 1 ∑ k R n H ( f ^ k , g ^ k ) R_n^H(\bar f,\bar g)\leq\{\kappa_\gamma/(2c_{\min})\}n_{\mathrm{fit}}^{-1}\sum_k R_n^H(\hat f_k,\hat g_k) R n H ( f ˉ , g ˉ ) ≤ { κ γ / ( 2 c m i n )} n fit − 1 ∑ k R n H ( f ^ k , g ^ k ) with c min = min ( c f , c γ ) c_{\min}=\min(c_f,c_\gamma) c m i n = min ( c f , c γ ) , and the same holds for R H R^H R H .
(e) Let Ψ \Psi Ψ be a real functional of ( f , g ) (f,g) ( f , g ) such that ∣ Ψ ( f , g ) − Ψ ( f 0 , g 0 ) ∣ ≤ L Ψ ( ∥ f − f 0 ∥ n + ∥ g − g 0 ∥ n ) |\Psi(f,g)-\Psi(f_0,g_0)|\leq L_\Psi(\lVert f-f_0\rVert_n+\lVert g-g_0\rVert_n) ∣Ψ ( f , g ) − Ψ ( f 0 , g 0 ) ∣ ≤ L Ψ (∥ f − f 0 ∥ n + ∥ g − g 0 ∥ n ) for all pairs in P n \mathcal{P}_n P n . Under the conditions of (b), ∣ Ψ ( f ^ , g ^ ) − Ψ ( f 0 , g 0 ) ∣ ≤ C L Ψ { ϕ n L log 2 n + Δ n + log ( 1 / δ ) / n } 1 / 2 |\Psi(\hat f,\hat g)-\Psi(f_0,g_0)|\leq CL_\Psi\{\phi_nL\log^2 n+\Delta_n+\log(1/\delta)/n\}^{1/2} ∣Ψ ( f ^ , g ^ ) − Ψ ( f 0 , g 0 ) ∣ ≤ C L Ψ { ϕ n L log 2 n + Δ n + log ( 1/ δ ) / n } 1/2 with probability at least 1 − 3 δ 1-3\delta 1 − 3 δ . This applies, with L Ψ ≤ e F w − 1 / 2 L_\Psi\leq e^F w^{-1/2} L Ψ ≤ e F w − 1/2 , to the average of e f e^f e f over any set of site-weeks that contains a fraction w w w of all site-weeks, for example the expected count of the whole panel averaged over a period; for averages of e g e^g e g the constant is e γ h i w − 1 / 2 e^{\gamma_{\mathrm{hi}}}w^{-1/2} e γ hi w − 1/2 , and averages of one-step predictive probabilities are covered by Lemma 17(b).
The size enters as a second function. With a constant size it adds log ⌈ ( γ h i − γ l o ) / ( 2 ϵ ) ⌉ ≲ log n \log\lceil(\gamma_{\mathrm{hi}}-\gamma_{\mathrm{lo}})/(2\epsilon)\rceil\lesssim\log n log ⌈( γ hi − γ lo ) / ( 2 ϵ )⌉ ≲ log n to the entropy, and with a covariate-dependent size it doubles the output layer of the network; in both cases the rates are those of Theorems 2 and 4, and the log-size is estimated at the same rate as the log-mean. Part (d) covers the estimator of § 4 , which averages the log-means and log-sizes of several fits: any rate that holds for each fit with probability at least 1 − η 1-\eta 1 − η holds for the average with probability at least 1 − n f i t η 1-n_{\mathrm{fit}}\eta 1 − n fit η , up to the constant κ γ / ( 2 c min ) \kappa_\gamma/(2c_{\min}) κ γ / ( 2 c m i n ) . Unlike the constant-size model, the model (2) can represent a variance that grows faster or slower than the square of the mean across the range of the covariates, which matters when sites of very different size share one network.
Theorems 1 and 7(a) hold for any class of bounded functions, or pairs of functions, with finite covering numbers. In particular they apply to fully connected networks whose weights and shifts are bounded by one, the class F ( L , p , s n , F ) \mathcal{F}(L,p,s_n,F) F ( L , p , s n , F ) with s n s_n s n equal to the number of parameters, for which log N n ( ϵ ) ≤ ( s n + 1 ) log { 4 ϵ − 1 ( L + 1 ) V 2 } \log N_n(\epsilon)\leq(s_n+1)\log\{4\epsilon^{-1}(L+1)V^2\} log N n ( ϵ ) ≤ ( s n + 1 ) log { 4 ϵ − 1 ( L + 1 ) V 2 } with V = ∏ l = 0 L + 1 ( p l + 1 ) V=\prod_{l=0}^{L+1}(p_l+1) V = ∏ l = 0 L + 1 ( p l + 1 ) , by Lemma 12. Simulation A fits such a network by projected stochastic gradient steps; the networks of the case study, with unconstrained weights and weight decay, lie outside this class.
Dependence Between Sites
Conditional independence across sites is the part of the model that data contradict most visibly: national totals vary more than a sum of independent counts allows (§ 8.5 ). The estimation theory does not need it. Suppose only that every count has the conditional law of the model.
Assumption 6 (Marginal specification) For every s s s and t t t , X s , t X_{s,t} X s , t is T t − 1 \mathcal{T}_{t-1} T t − 1 -measurable with values in [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d and the conditional law of Y s , t Y_{s,t} Y s , t given T t − 1 \mathcal{T}_{t-1} T t − 1 is NB ( exp { f 0 ( X s , t ) } , exp { g 0 ( X s , t ) } ) \operatorname{NB}(\exp\{f_0(X_{s,t})\},\exp\{g_0(X_{s,t})\}) NB ( exp { f 0 ( X s , t )} , exp { g 0 ( X s , t )}) , with ∥ f 0 ∥ ∞ ≤ F \lVert f_0\rVert_\infty\leq F ∥ f 0 ∥ ∞ ≤ F and γ l o ≤ g 0 ≤ γ h i \gamma_{\mathrm{lo}}\leq g_0\leq\gamma_{\mathrm{hi}} γ lo ≤ g 0 ≤ γ hi . The joint conditional law of ( Y 1 , t , … , Y S , t ) (Y_{1,t},\ldots,Y_{S,t}) ( Y 1 , t , … , Y S , t ) is arbitrary.
Under Assumption 6 the criterion ℓ n \ell_n ℓ n of (17) is no longer the log-likelihood of the panel; it is a composite likelihood (Varin et al., 2011), the sum of the log-likelihoods of the sites.
Theorem 8 (Dependent sites) Let Assumption 6 hold and let ( f ^ , g ^ ) ∈ P n (\hat f,\hat g)\in\mathcal{P}_n ( f ^ , g ^ ) ∈ P n satisfy (17). Write T = n / S T=n/S T = n / S .
(a) For every fixed ( f ⋆ , g ⋆ ) ∈ P n (f^\star,g^\star)\in\mathcal{P}_n ( f ⋆ , g ⋆ ) ∈ P n with a = max ( ∥ f ⋆ − f 0 ∥ ∞ , ∥ g ⋆ − g 0 ∥ ∞ ) a=\max(\lVert f^\star-f_0\rVert_\infty,\lVert g^\star-g_0\rVert_\infty) a = max (∥ f ⋆ − f 0 ∥ ∞ , ∥ g ⋆ − g 0 ∥ ∞ ) , every ϵ ∈ ( 0 , 1 ] \epsilon\in(0,1] ϵ ∈ ( 0 , 1 ] and δ ∈ ( 0 , 1 / 3 ) \delta\in(0,1/3) δ ∈ ( 0 , 1/3 ) , with probability at least 1 − 3 δ 1-3\delta 1 − 3 δ ,
R n H ( f ^ , g ^ ) ≤ c ˉ γ a 2 + Δ n + 2 log N n ( ϵ ) + ( 2 + λ − 1 + 2 ρ ϵ − 1 ) log ( 1 / δ ) T + 2 ρ ϵ ( μ ˉ γ + c 0 ) + κ γ ϵ 2 , (18) R_n^H(\hat f,\hat g)\leq\bar c_\gamma a^2+\Delta_n+\frac{2\log N_n(\epsilon)+(2+\lambda^{-1}+2\rho\epsilon^{-1})\log(1/\delta)}{T}+2\rho\epsilon(\bar\mu_\gamma+c_0)+\kappa_\gamma\epsilon^2, \tag*{(18)} R n H ( f ^ , g ^ ) ≤ c ˉ γ a 2 + Δ n + T 2 log N n ( ϵ ) + ( 2 + λ − 1 + 2 ρ ϵ − 1 ) log ( 1/ δ ) + 2 ρ ϵ ( μ ˉ γ + c 0 ) + κ γ ϵ 2 , (18)
and c f ∥ f ^ − f 0 ∥ n 2 + c g ∥ g ^ − g 0 ∥ n 2 ≤ 2 R n H ( f ^ , g ^ ) c_f\|\hat f-f_0\|_n^2+c_g\|\hat g-g_0\|_n^2\leq2R_n^H(\hat f,\hat g) c f ∥ f ^ − f 0 ∥ n 2 + c g ∥ g ^ − g 0 ∥ n 2 ≤ 2 R n H ( f ^ , g ^ ) . This is the bound of Theorem 7 (a) with T T T in place of n n n in the stochastic term.
(b) Let f 0 f_0 f 0 and g 0 g_0 g 0 be as in Theorem 7 (b) and let P n = F ( 2 ) ( L , p , s , F ) \mathcal{P}_n=\mathcal{F}^{(2)}(L,p,s,\mathcal{F}) P n = F ( 2 ) ( L , p , s , F ) satisfy conditions (i)–(iv) of Theorem 2 with T T T in place of n n n . Then ∥ f ^ − f 0 ∥ n 2 + ∥ g ^ − g 0 ∥ n 2 ≤ C { ϕ T L log 2 T + Δ n + log ( 1 / δ ) / T } \|\hat f-f_0\|_n^2+\|\hat g-g_0\|_n^2\leq C\{\phi_TL\log^2T+\Delta_n+\log(1/\delta)/T\} ∥ f ^ − f 0 ∥ n 2 + ∥ g ^ − g 0 ∥ n 2 ≤ C { ϕ T L log 2 T + Δ n + log ( 1/ δ ) / T } with probability at least 1 − 3 δ 1-3\delta 1 − 3 δ , and Theorem 7 (d) and (e) hold with this bound.
(c) The one-step bound (14), in the form of Theorem 7 (c), holds for every site.
(d) The replacement of n n n by T T T cannot be avoided. For a known constant size, let ( X 1 , t , Y 1 , t ) t ≤ T (X_{1,t},Y_{1,t})_{t\leq T} ( X 1 , t , Y 1 , t ) t ≤ T follow a law of the class P T ( G β , d ∗ ( K ) ) \mathcal{P}_T(\mathcal{G}_{\beta,d^*}(K)) P T ( G β , d ∗ ( K )) of Theorem 5 for one site, and let X s , t = X 1 , t X_{s,t}=X_{1,t} X s , t = X 1 , t and Y s , t = Y 1 , t Y_{s,t}=Y_{1,t} Y s , t = Y 1 , t for s = 2 , … , S s=2,\ldots,S s = 2 , … , S . These laws satisfy Assumption 6, and over them inf f ^ sup E R ( f ^ ) ≥ c T − 2 β / ( 2 β + d ∗ ) \inf_{\hat f}\sup\mathop{\rm E}R(\hat f)\geq cT^{-2\beta/(2\beta+d^*)} inf f ^ sup E R ( f ^ ) ≥ c T − 2 β / ( 2 β + d ∗ ) with the constant c c c of Theorem 5.
The proof replaces one step of the martingale argument: by the generalized Hölder inequality, the conditional expectation of ∏ s { p f , g / p f 0 , g 0 } 1 / ( 2 S ) ( Y s , t ) \prod_s\{p_{f,g}/p_{f_0,g_0}\}^{1/(2S)}(Y_{s,t}) ∏ s { p f , g / p f 0 , g 0 } 1/ ( 2 S ) ( Y s , t ) is at most ∏ s ( 1 − H s , t 2 ) 1 / S \prod_s(1-H_{s,t}^2)^{1/S} ∏ s ( 1 − H s , t 2 ) 1/ S whatever the dependence between the sites, so the likelihood ratio raised to the power 1 / ( 2 S ) 1/(2S) 1/ ( 2 S ) still yields a supermartingale, at the price of a factor S S S in the deviation terms. The two functions are thus estimated consistently, with the number of periods as sample size in the worst case and with the rate ϕ n \phi_n ϕ n of the independent case, up to a constant, when S S S is fixed; every statement about one site and one step remains valid. What is lost is the joint law. The bound of Theorem 6 (b) on the distance between the fitted and the true h h h -step laws, and with it the coverage of intervals for several steps ahead or for sums over sites, requires the dependence to be specified; beyond one step even the law of a single site depends on it, through the covariates. Parts (c) and (d) of that theorem remain valid, because they bound the Monte Carlo error relative to the fitted law, but they no longer translate into true coverage. The surveillance panels (§ 8.5 ), Simulation D with a Gaussian copula between sites (supplementary § 26 ) and daily taxi-flow networks (§ 27 ) all show this pattern: intervals for single counts are calibrated and those for totals over sites too narrow, and in Simulation D the risk decreases at the same rate whatever the copula correlation.
Roadmap of Proofs
The complete proofs are in the appendix; here we outline the arguments and where they depart from existing analyses of deep nonparametric estimation.
A martingale argument for the likelihood ratio. Existing rates for deep networks compare an empirical risk with its population counterpart, which requires independent or mixing observations and a bounded or sub-Gaussian loss. We instead order the n n n observations in time and, within a week, by site. For a fixed f f f , the likelihood ratio Λ i = p f ( X i ) ( Y i ) / p f 0 ( X i ) ( Y i ) \Lambda_i=p_f(X_i)(Y_i)/p_{f_0}(X_i)(Y_i) Λ i = p f ( X i ) ( Y i ) / p f 0 ( X i ) ( Y i ) satisfies E [ Λ i 1 / 2 ∣ H i − 1 ] = 1 − H 2 ( p f ( X i ) , p f 0 ( X i ) ) \operatorname{E}[\Lambda_i^{1/2}\mid\mathcal{H}_{i-1}]=1-H^2(p_f(X_i),p_{f_0}(X_i)) E [ Λ i 1/2 ∣ H i − 1 ] = 1 − H 2 ( p f ( X i ) , p f 0 ( X i )) whatever the dependence between X i X_i X i and the past, so an exponential supermartingale inequality (Lemma 11) gives ∑ i H 2 ( p f ( X i ) , p f 0 ( X i ) ) ≤ 1 2 { ℓ ( f 0 ) − ℓ ( f ) } + log ( 1 / δ ) \sum_i H^2(p_f(X_i),p_{f_0}(X_i))\leq\frac{1}{2}\{\ell(f_0)-\ell(f)\}+\log(1/\delta) ∑ i H 2 ( p f ( X i ) , p f 0 ( X i )) ≤ 2 1 { ℓ ( f 0 ) − ℓ ( f )} + log ( 1/ δ ) with probability at least 1 − δ 1-\delta 1 − δ , and a union bound over a sup-norm net makes this uniform at the price of the metric entropy. The device is that of van de Geer [16 ] , Zhang [21 ] and Agarwal et al. [1 ] ; what is new is its combination with sparse-network approximation for dependent negative binomial data, where the likelihood ratio is unbounded. The passage from the net to the estimator costs ε ∑ i ( Y i + r ) \varepsilon\sum_i(Y_i+r) ε ∑ i ( Y i + r ) , because the log-likelihood is Lipschitz in f f f with constant y + r y+r y + r (Lemma 10), and the sum of the counts is bounded by a second supermartingale; the approximation term ℓ n ( f 0 ) − ℓ n ( f ∗ ) \ell_n(f_0)-\ell_n(f^*) ℓ n ( f 0 ) − ℓ n ( f ∗ ) is controlled through its conditional moment generating function, rather than its second moment, which keeps the fast rate. Lemma 9 then gives Theorem 1, and Theorem 2 follows with the approximation and entropy bounds of Schmidt-Hieber [12 ] .
New data, the lower bound and the horizon. Proposition 3 is a Doeblin minorization (Meyn and Tweedie (2009)): whatever the history, the whole panel is zero for m m m consecutive weeks with probability at least ϵ 0 \epsilon_0 ϵ 0 , after which the past is forgotten. Theorem 4 follows by blocking (Yu (1994)) and Bernstein’s inequality on the net; mixing is needed only for this comparison. Theorem 5 applies Fano’s method (Tsybakov (2009), Theorem 2.5) to a Varshamov–Gilbert packing in negative binomial regression with independent uniform covariates. For the horizon, the simulation lemma of reinforcement learning (Kearns and Singh (2002); Munos and Szepesvári (2008)) adds one-step total variation distances, which grows linearly in h h h ; Theorem 6 (b) uses the chain rule for the Kullback–Leibler divergence, as does Xu et al. [19 ] for independent trajectories, and applies Pinsker’s inequality once, so that the sum over S S S sites and h h h steps sits under one square root. Parts (c) and (d) add the Monte Carlo errors by the Dvoretzky–Kiefer–Wolfowitz inequality and by conditional Jensen with bounded differences.
Unknown and covariate-dependent size. The martingale steps use only that the true conditional law belongs to the model. The two-parameter family (Lemma 16) has a log-likelihood that is Lipschitz with constants linear in the count, a Kullback–Leibler divergence bounded by a quadratic form, and a Hellinger distance bounded below by the squared differences of both parameters, through the first two factorial moments, so that the Hellinger risk controls the size as well as the log-mean.
Simulations
Rates of Convergence
The first experiment illustrates the rate scales of Theorems 2, 4 and 6 in a model where f 0 f_0 f 0 is known. A single series (S = 1 S=1 S = 1 ) follows
Y t ∣ I t − 1 ∼ NB ( exp { f 0 ( X t ) } , 3 ) , X t = ( ℓ 0 ( Y t − 1 ) , ℓ 0 ( Y t − 2 ) , U t ) , Y_t \mid\mathcal{I}_{t-1} \sim\operatorname{NB}\left(\exp\{f_0(X_t)\},3\right), \qquad X_t=\left(\ell_0(Y_{t-1}),\ell_0(Y_{t-2}),U_t\right), Y t ∣ I t − 1 ∼ NB ( exp { f 0 ( X t )} , 3 ) , X t = ( ℓ 0 ( Y t − 1 ) , ℓ 0 ( Y t − 2 ) , U t ) ,
with memory m = 2 m=2 m = 2 , ℓ 0 ( y ) = min { log ( 1 + y ) / log 61 , 1 } \ell_0(y)=\min\{\log(1+y)/\log61,1\} ℓ 0 ( y ) = min { log ( 1 + y ) / log 61 , 1 } , exogenous covariates U t U_t U t that are independent and uniform on [ 0 , 1 ] [0,1] [ 0 , 1 ] , and
f 0 ( x ) = 0.4 + 1.8 x 1 − 0.9 ( x 1 − 0.5 ) + + 0.8 ∣ x 2 − 0.4 ∣ + 2 min ( x 3 , 1 − x 3 ) . f_0(x)=0.4+1.8x_1-0.9(x_1-0.5)_++0.8\lvert x_2-0.4\rvert+2\min(x_3,1-x_3). f 0 ( x ) = 0.4 + 1.8 x 1 − 0.9 ( x 1 − 0.5 ) + + 0.8 ∣ x 2 − 0.4 ∣ + 2 min ( x 3 , 1 − x 3 ) .
The log-mean is a sum of three Lipschitz functions of one variable, so f 0 ∈ G ( q , d , t , β , K ) f_0\in\mathcal{G}(q,d,t,\beta,K) f 0 ∈ G ( q , d , t , β , K ) with q = 1 q=1 q = 1 , t = ( 1 , 3 ) t=(1,3) t = ( 1 , 3 ) , β 0 = 1 \beta_0=1 β 0 = 1 and β 1 \beta_1 β 1 arbitrarily large, and ϕ n = n − 2 / 3 \phi_n=n^{-2/3} ϕ n = n − 2/3 . The process satisfies Assumptions 1–5, with U t U_t U t an exogenous innovation in Assumption 4, and it uses exogenous inputs as allowed in Theorem 5, although its lagged covariates are dependent and it is not the independent-design subexperiment of that proof.
For n n n between 250 and 16,000 we fit two estimators to the same data. The practical fit is a configuration similar to that of the case study: a fully connected ReLU network with three hidden layers of width 32 and F = 4 F=4 F = 4 , trained by Adam with r = 3 r=3 r = 3 known on the first 0.8 n 0.8n 0.8 n observations, with the number of epochs (passes through the training data) chosen on the remaining 0.2 n 0.2n 0.2 n . The theory-aligned fit is the estimator of Theorem 7 over a fully connected class: the same architecture, with all weights and shifts projected onto [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] after every step and the output truncated to [ − F , F ] [-F,F] [ − F , F ] , so that it lies in F ( L , p , s n , F ) \mathcal{F}(L,\mathbf{p},s_n,F) F ( L , p , s n , F ) with s n s_n s n the number of parameters; the size estimated jointly in [ r l o , r h i ] = [ 0.5 , 50 ] [r_{\mathrm{lo}},r_{\mathrm{hi}}]=[0.5,50] [ r lo , r hi ] = [ 0.5 , 50 ] ; all n n n observations; and a fixed budget of 3,000 projected Adam steps on batches of 512, with no data-dependent stopping. Neither fit certifies the optimization error Δ n \Delta_n Δ n . For each n n n we record, over 30 replications, the trajectory risk ∥ f ^ − f 0 ∥ n 2 \lVert\hat f-f_0\rVert_n^2 ∥ f ^ − f 0 ∥ n 2 , the out-of-sample risk R ( f ^ ) R(\hat f) R ( f ^ ) , estimated on an independent trajectory of length 5,000, and the total variation distance between the fitted and true one-step predictive laws (with the estimated size for the aligned fit), averaged over 1,000 new covariate values. In 5 replications we also record the coverage error of the nominal 90% four-step prediction interval of Algorithm 1 at 50 origins drawn from the true process. From each origin, three independent sets of 10,000 paths give the interval (fitted model), the probability that the fitted model assigns to it (fitted model) and its true coverage (true model); we report the mean over origins of the absolute difference between the last two, and the same procedure with f 0 f_0 f 0 in place of the fit gives the Monte Carlo floor of this statistic. A negative binomial regression that is log-linear in X t X_t X t serves as a parametric benchmark.
Table 1 and Figure 1 give the results. First, the risks of both fits decrease with n n n , from 0.041 (practical) and 0.049 (aligned) at n = 500 n=500 n = 500 to 0.0023 and 0.0034 at n = 16 , 000 n=16,000 n = 16 , 000 , with log-log slopes of −0.86 and −0.79. These are steeper than the reference rate −2/3; the guarantee is a worst case over the class, and this f 0 f_0 f 0 is piecewise linear, hence exactly representable by a ReLU network. The parametric benchmark stays at its misspecification error of 0.094. At n = 250 n=250 n = 250 both networks are worse than the parametric model, which is the price of flexibility in small samples. Second, the theory-aligned fit, which respects the weight bound, uses no validation data and estimates r r r , behaves much like the practical fit: it is better at n = 250 n=250 n = 250 and n = 1 , 000 n=1,000 n = 1 , 000 , worse at n = 500 n=500 n = 500 , and worse by 7% to 48% for n ≥ 2 , 000 n \ge2,000 n ≥ 2 , 000 , where its fixed budget of gradient steps, rather than the sample size, appears to limit it. Its estimate of the size has median 4.62 at n = 250 n=250 n = 250 and between 2.96 and 3.07 for n ≥ 2 , 000 n \ge2,000 n ≥ 2 , 000 , and its mean squared error falls from 0.15 at n = 1 , 000 n=1,000 n = 1 , 000 to 0.012 at n = 16 , 000 n=16,000 n = 16 , 000 , in line with Theorem 7 (b). Third, the trajectory risk and the out-of-sample risk agree to within 3% for the practical fit at every n n n , and for the aligned fit from n = 2,000 n = 2{,}000 n = 2 , 000 on; the theorems bound their orders but do not assert equality. Fourth, the total variation error of the one-step predictive law has slopes − 0.41 -0.41 − 0.41 and − 0.39 -0.39 − 0.39 , about half those of the risks, and for the practical fit its ratio to the square root of the risk lies between 0.39 and 0.42 at every n n n , consistent with (14) . Fifth, the coverage error of four-step intervals, computed from independent path sets, falls from 0.037 (practical) and 0.019 (aligned) at n = 250 n = 250 n = 250 to 0.004 and 0.005 at n = 16,000 n = 16{,}000 n = 16 , 000 , against a Monte Carlo floor of 0.0025. The signed differences show that, where the error is distinguishable from the floor, the true coverage is below the probability that the fitted model assigns to its interval, which is the direction controlled by Theorem 6 (b) and (c); the bound itself, which holds for every event simultaneously, is far from tight for a single interval.
Table 1. Simulation A. Means over 30 replications of the trajectory risk ∥ f ^ − f 0 ∥ n 2 \lVert\hat f-f_0\rVert_n^2 ∥ f ^ − f 0 ∥ n 2 (Traj.), the out-of-sample risk R ( f ^ ) R(\hat f) R ( f ^ ) (Out) and the total variation distance between fitted and true one-step predictive laws (TV); and, over 5 replications, of the absolute coverage error of 90% four-step prediction intervals (Cov.), whose Monte Carlo floor is 0.0025. For the theory-aligned fit, r ^ \hat r r ^ is the median estimated size (true value 3). “Slope” is the least squares slope of the logarithm of each column on log n \log n log n for n ≥ 500 n \ge500 n ≥ 500 ; “Reference” is the exponent of the upper bounds in Theorems 2, 4 and 6 , without logarithmic factors.
Figure 1. Simulation A. Left: out-of-sample risk of the practical fit (blue, with two standard errors) and of the theory-aligned fit (orange), trajectory risk of the practical fit (dashed; it nearly coincides with the out-of-sample risk), and risk of a log-linear negative binomial regression (gray), against the sample size. Right: total variation error of the one-step predictive law and coverage error of 90% four-step prediction intervals for both fits; the dash-dotted line is the Monte Carlo floor of the coverage error. Dotted lines show the reference slopes.
Forecasting a Spatial Panel
The second experiment, reported in full in supplementary § 25 , simulates panels of 47 sites at the locations of the Japanese prefectures, with negative binomial counts whose log-mean is either log-linear in lagged own, neighbor and seasonal summaries, so that the NB regression benchmark of § 8.2 is correctly specified one week ahead, or nonlinear, with saturating self-excitation and a neighborhood effect that switches on above a threshold only where the local level is low. Over 10 replications and 104 test weeks, the constant-size special case of DeepNB-STAR with the 13 summaries loses 2.8% in WIS to the correctly specified regression under the log-linear process, the cost of a nonparametric log-mean, and is better than the regression by 3.4% under the nonlinear process, in each replication; both improve on persistence by more than 20%.
Covariate-Dependent Dispersion and Bootstrap Confidence Intervals
The third experiment is the variant of Simulation A in which the dispersion depends on the covariates, the setting of Theorem 7 , and it checks the confidence intervals of § 4.3 . The process is that of Simulation A with the size r = 3 r=3 r = 3 replaced by exp { g 0 ( X t ) } \exp\{g_0(X_t)\} exp { g 0 ( X t )} ,
g 0 ( x ) = log 3 + 1.2 ( x 3 − 0.5 ) + 0.8 ( x 1 − 0.5 ) , g_0(x)=\log3+1.2\left(x_3-0.5\right)+0.8\left(x_1-0.5\right), g 0 ( x ) = log 3 + 1.2 ( x 3 − 0.5 ) + 0.8 ( x 1 − 0.5 ) ,
so that the size ranges from about 1.1 to 8.2 and the overdispersion of a count depends on the previous count and on the exogenous input. The estimator is the two-output network of the application, with three hidden layers of width 32, the log-mean truncated to [ − 4 , 4 ] [-4,4] [ − 4 , 4 ] and the log-size to [ log 0.5 , log 50 ] [\log0.5,\log50] [ log 0.5 , log 50 ] , fitted jointly by maximum likelihood with Adam and a learning rate decreasing linearly from 2 × 10 − 3 2\times10^{-3} 2 × 1 0 − 3 to 10 − 4 10^{-4} 1 0 − 4 over max ( 2,000 , n ) \max(2{,}000,n) max ( 2 , 000 , n ) steps on batches of 256, and averaged over two fits.
For n n n between 500 and 16,000 we record, over 20 replications, the out-of-sample risks R ( f ^ ) R(\hat f) R ( f ^ ) and R g ( g ^ ) = E { ( g ^ ( X ) − g 0 ( X ) ) 2 } R_g(\hat g)=\mathbb{E}\{(\hat g(X)-g_0(X))^2\} R g ( g ^ ) = E {( g ^ ( X ) − g 0 ( X ) ) 2 } , estimated on an independent trajectory of length 5,000, and the total variation distance between the fitted and true one-step laws. For n = 2,000 n=2{,}000 n = 2 , 000 and 8,000 we estimate, in each of 100 replications, the standard errors of f ^ ( x ) \hat f(x) f ^ ( x ) and g ^ ( x ) \hat g(x) g ^ ( x ) at three covariate values fixed in advance, x ( 1 ) = ( 0.3 , 0.3 , 0.25 ) x^{(1)}=(0.3,0.3,0.25) x ( 1 ) = ( 0.3 , 0.3 , 0.25 ) , x ( 2 ) = ( 0.6 , 0.5 , 0.5 ) x^{(2)}=(0.6,0.5,0.5) x ( 2 ) = ( 0.6 , 0.5 , 0.5 ) and x ( 3 ) = ( 0.8 , 0.2 , 0.75 ) x^{(3)}=(0.8,0.2,0.75) x ( 3 ) = ( 0.8 , 0.2 , 0.75 ) , and of two averaged functionals like those of the application: the mean expected count n − 1 ∑ t exp { f ( X t ) } n^{-1}\sum_t\exp\{f(X_t)\} n − 1 ∑ t exp { f ( X t )} and the average partial effect exp { n − 1 ∑ t [ f ( X t ′ ) − f ( X t ) ] } \exp\{n^{-1}\sum_t[f(X'_t)-f(X_t)]\} exp { n − 1 ∑ t [ f ( X t ′ ) − f ( X t )]} of doubling one plus the previous count (the transformation y ↦ 2 y + 1 y\mapsto2y+1 y ↦ 2 y + 1 before clipping), where X t ′ X'_t X t ′ is X t X_t X t with its first coordinate increased by log 2 / log 61 \log2/\log61 log 2/ log 61 (and truncated at one). The standard errors come from a moving-block bootstrap of the pairs ( X t , Y t ) (X_t,Y_t) ( X t , Y t ) with blocks of 20 observations and 20 refits, each of which, like the estimate, averages two fits; the intervals are normal, on the logarithmic scale for the two functionals, and we record how often they contain the true values.
Table 2 gives the results. The observed slopes are consistent with the reference exponents: the out-of-sample risk of the log-mean falls from 0.021 at n = 500 n=500 n = 500 to 0.0017 at n = 16,000 n=16{,}000 n = 16 , 000 , with log-log slope − 0.67 -0.67 − 0.67 , and that of the log-size from 0.097 to 0.0057, with slope − 0.72 -0.72 − 0.72 ; the size is harder to estimate than the mean, and its risk is between 2.7 and 4.6 times larger. The total variation error of the one-step law has slope − 0.36 -0.36 − 0.36 , close to half that of the risks, consistent with the upper-bound scale in Theorem 7 (c), which does not assert equality of empirical slopes. The bootstrap standard errors are close to the sampling standard deviations: averaged over replications, their ratio to the Monte Carlo standard deviation of the estimate is between 0.96 and 1.22 for f ^ ( x ) \hat f(x) f ^ ( x ) and g ^ ( x ) \hat g(x) g ^ ( x ) at the three points and between 0.99 and 1.05 for the two averaged functionals. With 100 replications the binomial standard error of an estimated coverage near 95% is about 0.02. The coverage of the 95% intervals is between 0.87 and 0.94 for the averaged functionals, between 0.91 and 1.00 for g ^ \hat g g ^ at all three points, and between 0.93 and 0.97 for f ^ \hat f f ^ at x ( 1 ) x^{(1)} x ( 1 ) and, at n = 8,000 n=8{,}000 n = 8 , 000 , at x ( 3 ) x^{(3)} x ( 3 ) . It is 0.82 and 0.79 for f ^ \hat f f ^ at x ( 2 ) x^{(2)} x ( 2 ) , where f 0 f_0 f 0 has a kink in x 3 x_3 x 3 : there the network estimator rounds the kink, its bias (− 0.056 -0.056 − 0.056 and − 0.049 -0.049 − 0.049 ) is comparable to or larger than its standard deviation (0.056 and 0.035), and an interval that is centered at the estimate cannot correct it. At n = 2,000 n=2{,}000 n = 2 , 000 the coverage is also low at x ( 3 ) x^{(3)} x ( 3 ) , a point in a sparse region of the covariate distribution (0.82), where the bias falls from 0.088 to 0.037 at n = 8,000 n=8{,}000 n = 8 , 000 and the coverage recovers to 0.93. The intervals of the application are therefore exploratory: they reflect the sampling variability of the estimator well, but not its bias where the fitted functions bend sharply or the data are sparse.
Table 2 : Simulation C (covariate-dependent dispersion). Top: means over 20 replications of the out-of-sample risks of the log-mean and the log-size and of the total variation distance between fitted and true one-step laws; “Slope” is the least squares slope of the logarithm of each column on log n \log n log n for n ≥ 1,000 n \ge1{,}000 n ≥ 1 , 000 , and “Reference” the exponent of the bounds of Theorem 7 , without logarithmic factors. Bottom: coverage of 95% normal intervals with moving-block bootstrap standard errors for f 0 f_0 f 0 and g 0 g_0 g 0 at three covariate values and for the mean expected count (Mean) and the average feature contrast for doubling one plus the previous count (APE), with the number of replications in parentheses (100, so that the binomial standard error is about 0.02 near 95%).
Table 2.
Application to Infectious Disease Surveillance in Japan
We forecast four panels of weekly notifications in the 47 prefectures of Japan and summarize the fitted model. Section 8.1 describes the data, Section 8.2 the forecasting protocol and the benchmarks, Section 8.3 the accuracy of the forecasts, Section 8.4 exploratory inference for the fitted model, and Section 8.5 the calibration of its predictive distributions.
Data
Syphilis, enterohemorrhagic Escherichia coli (EHEC) infection, legionellosis and amebiasis are notifiable diseases in Japan, and every diagnosed case is reported to the National Epidemiological Surveillance of Infectious Diseases (Takahashi et al., 2018). The Japan Institute for Health Security publishes the weekly number of notifications in each of the 47 prefectures as open data, which we obtained through the R package jpinfect (Hoshi et al., 2025). Each series runs from the week ending 11 April 1999, when the current surveillance law took effect, to the week ending 29 December 2024: 1,342 weeks and 63,074 prefecture-weeks. Provisional counts for 2025 and later are subject to revision and are not used. EHEC infection was renamed in 2006, and the two series are joined.
The panels differ in the ways that matter for a forecaster (Table 3 and Figure 2 ). Syphilis notifications rose about seventeen-fold, from 875 in 2012 to 14,829 in 2024, after a decade between 500 and 900 a year; in 2022 to 2024 Tokyo accounts for 26% of them, while 13 prefectures still record no case in more than a quarter of the weeks. EHEC infection has a stable level and a strong season, with a national weekly mean of 203 at its peak in week 34 against 10 at its trough, and outbreak clusters. Legionellosis rose from a few hundred notifications a year to about 2,400 and is sparse; amebiasis is sparser still, with 78% of the prefecture-weeks in the evaluation period equal to zero, a mean of 0.34 notifications a week and a level that has declined since 2016. Syphilis is the panel on which the estimator was developed; EHEC and legionellosis were the test panels of the earlier protocols; amebiasis is the test panel of the final protocol (§ 8.2 ). It was selected by a rule fixed before it was examined: among the diseases of the same source that are reported in every week from 1999 to 2024, the most notified other than syphilis and legionellosis. EHEC infection does not qualify, because each of its two names is reported in only part of the period. Before the protocol was written we inspected only its total and its fraction of zero prefecture-weeks.
Table 3. The four panels: total notifications in 1999–2024, notifications in three years, and, for the prefecture-weeks of the evaluation period 2012–2024, the fraction of zeros, the mean, the ratio of variance to mean pooled over prefectures and the maximum. “Season” is the ratio of the largest to the smallest national mean by week of the year over 1999–2024.
Figure 2. Weekly national notifications (black) of the four panels. Dark band: the fitted expected national count ∑ s exp { f ^ ( X s , t ) } \sum_s \exp\{\hat{f}(X_{s,t})\} ∑ s exp { f ^ ( X s , t )} of DeepNB-STAR fitted to all weeks (line), with an exploratory 95% moving-block bootstrap band. Light band: the out-of-sample one-week-ahead 95% prediction interval for the national count, 2010–2024, from the yearly refits. The dark exploratory bands are normal intervals on the logarithmic scale with standard errors from 40 moving-block bootstrap refits (syphilis) or 30 (the other panels).
Forecasting Protocol and Benchmarks
Forecasts are issued every week for horizons of one to four weeks and are evaluated on the target weeks from January 2012 to 29 December 2024 for which every method has forecasts at every horizon. Every method is refitted once a year: the refit at the final observed week of year y − 1 y - 1 y − 1 is used for the origins of year y y y , and training targets never exceed the forecast origin. These are rolling historical forecasts of finalized counts, not a prospective real-time evaluation.
DeepNB-STAR is the estimator of § 4 : the 13 summaries of § 2.2 together with the raw history of 26 weeks and a three-dimensional site encoding, a network with three hidden layers of width 64 and two outputs, the log-mean truncated to [ − 7 , 7 ] [-7, 7] [ − 7 , 7 ] and the log-size to [ log 0.5 , log 200 ] [\log0.5, \log200] [ log 0.5 , log 200 ] , the average of three fits with seeds 1, 2 and 3, and B = 1,000 B = 1{,}000 B = 1 , 000 simulated paths with Rao–Blackwellized quantiles. It was developed on the syphilis panel, starting from the constant-size special case; the development, including direct multi-horizon heads that did not help, is reported in supplementary § 20 –S3. Each version was fixed in a protocol, written with SHA-256 digests of the code and data before any model was fitted to a new test panel; the final protocol fixed the estimator described here and selected amebiasis as its test panel. On syphilis the comparison is therefore post hoc, on EHEC and legionellosis the estimator had been tested in an earlier version, and amebiasis is the one held-out-panel test. A regeneration from scratch of all DeepNB-STAR forecasts, and of every benchmark of the primary comparison, reproduced every stored quantile exactly (supplementary § 24 ).
We compare DeepNB-STAR with five benchmarks. The first is persistence : the last observed count plus the empirical quantiles of the symmetrized h h h -week increments of the same prefecture over the previous three years, truncated at zero. The second is a negative binomial regression (NB regression ) with lagged spatial summaries, distinct from the additive endemic–epidemic model of Held et al. (2005), with prefecture-specific intercepts and a log-mean that is linear in the logarithms of one plus the last count, the 4-week and 26-week means, the 4-week mean of the five nearest prefectures and the national 4-week mean, with annual harmonics, fitted by maximum likelihood separately for each horizon to the most recent three years. The third, on syphilis only because of its computational cost, is a Bayesian zero-inflated negative binomial regression with Gaussian process random effects (ZINB-GP ; He and Huang, [6 ] ), fitted by the Pólya–Gamma Gibbs sampler of the R package ZINB.GP (Scott et al., [13 ] ), which we reimplemented in Python and compared with the package (§ 23 ); some parameters of both samplers mix slowly, so this benchmark carries Monte Carlo uncertainty that we do not quantify. The fourth is a compact implementation of the Temporal Fusion Transformer (TFT ; Lim et al., 2021) with variable selection, a recurrent encoder over the last 26 weeks, self-attention and a four-week decoder (105,137 parameters), trained with the quantile loss (Koenker and Bassett, 1978) on log ( 1 + y ) \log(1+y) log ( 1 + y ) for 20 epochs and 5 per refit; it forecasts all four horizons directly. The fifth is DeepAR (Salinas et al., 2020) with a negative binomial likelihood: a two-layer recurrent network with 40 cells, dropout 0.1 and a prefecture embedding, shared by all prefectures, conditioned on the last 52 weeks of the prefecture and trained by maximum likelihood with the scaling of the original paper (22,058 parameters, 20 epochs and 5 per refit); it does not see the neighbors. The neural benchmarks are run with seeds 1, 2 and 3, and their ensembles average the count-scale quantiles of the three seeds, so that every neural method combines three fits. The TFT and DeepAR implementations are compact custom benchmarks, run with default settings, and their performance should not be generalized to every implementation of these architectures. Because counts are integers, all quantile forecasts are rounded to the nearest integer.
Forecasts are scored by the weighted interval score (Bracher et al., 2021) in its quantile form,
WIS ( q , y ) = 1 n τ ∑ k = 1 n τ 2 { 1 ( y ≤ q k ) − τ k } ( q k − y ) , \operatorname{WIS}(q,y)=\frac{1}{n_\tau}\sum_{k=1}^{n_\tau}2\{ \mathbf{1}(y\le q_k)-\tau_k\}(q_k-y), WIS ( q , y ) = n τ 1 k = 1 ∑ n τ 2 { 1 ( y ≤ q k ) − τ k } ( q k − y ) ,
where y y y is the observed count and q = ( q 1 , … , q n τ ) q=(q_1,\ldots,q_{n_\tau}) q = ( q 1 , … , q n τ ) are the predictive quantiles at the n τ = 9 n_\tau=9 n τ = 9 levels τ k ∈ { 0.025 , 0.05 , 0.1 , 0.25 , 0.5 , 0.75 , 0.9 , 0.95 , 0.975 } \tau_k\in\{0.025,0.05,0.1,0.25,0.5,0.75,0.9,0.95,0.975\} τ k ∈ { 0.025 , 0.05 , 0.1 , 0.25 , 0.5 , 0.75 , 0.9 , 0.95 , 0.975 } . The score is the average of the quantile losses, is negatively oriented, is a proper scoring rule and approximates the continuous ranked probability score (Gneiting and Raftery, 2007). We also report the mean absolute error (MAE) of the predictive median and the coverage of the central prediction intervals [ q α / 2 , q 1 − α / 2 ] [q_{\alpha/2},q_{1-\alpha/2}] [ q α /2 , q 1 − α /2 ] of nominal level 1 − α 1-\alpha 1 − α . Differences in WIS between two methods are assessed by a moving-block bootstrap (Künsch, 1989) of the weekly mean differences, with 4,000 resamples and blocks of 8 weeks; the intervals for blocks of 4, 13 and 26 weeks are similar (supplementary § 24 ). The primary comparison of the final protocol is the paired difference between the TFT ensemble and DeepNB-STAR on amebiasis.
Forecast Accuracy
Table 4 gives the main comparison; scores by horizon, absolute errors and coverages for each panel are in supplementary Table S15 –S18. In the primary comparison of the final protocol, on amebiasis, DeepNB-STAR has a WIS of 0.1476 and the TFT ensemble 0.1490; the difference of 0.0014, or 0.9% of the score of the TFT ensemble, favors DeepNB-STAR, and its interval, (0.0006, 0.0021), excludes zero, as it does for blocks of 4, 13 and 26 weeks. On amebiasis DeepNB-STAR also has the lowest score at every horizon, and it is better than the NB regression by 1.0% (interval (0.0004, 0.0028)), than DeepAR by 8.6% and than persistence by 31%. On the other three panels its WIS is also below that of the TFT ensemble: by 0.8% on syphilis (0.5032 against 0.5073), by 1.0% on EHEC (0.5936 against 0.5996), and by 0.6% on legionellosis (0.2858 against 0.2877), but on these panels the intervals for blocks of 8 weeks include zero. On legionellosis a TFT ensemble of six seeds is as good as DeepNB-STAR (0.2863), and the constant-size special case of DeepNB-STAR that we evaluated first scores slightly better, 0.2841, a difference that is not distinguishable from zero either (supplementary Section S3). DeepNB-STAR is clearly better than DeepAR, by 4.8% to 9.6%, and than persistence on every panel, better than the NB regression on syphilis, EHEC and amebiasis, and better than ZINB-GP on syphilis; on legionellosis the NB regression is within 0.7% of it. Its median has the lowest absolute error on three panels and is within 0.1% of the lowest on syphilis, and over all horizons its central intervals cover at least their nominal level on every panel.
Table 4. DeepNB-STAR and the benchmarks on the four panels, 677 common target weeks of 2012 to 2024 in each: WIS over horizons 1–4 of DeepNB-STAR and, for each competitor, its WIS and the paired weekly difference, competitor minus DeepNB-STAR, with a moving-block bootstrap 95% interval (blocks of 8 weeks, 4,000 resamples). Positive differences favor DeepNB-STAR. Amebiasis is the test panel of the final protocol; the TFT ensemble of six seeds was run on legionellosis only and ZINB-GP on syphilis only.
Table S15. Syphilis: DeepNB-STAR and the benchmarks on the common target weeks of 2012–2024. Top: WIS by horizon and over all horizons, WIS relative to persistence, MAE of the median and coverage of central prediction intervals; bold marks the best value in each column. Bottom: paired weekly WIS differences, competitor minus DeepNB-STAR, with moving-block bootstrap 95% intervals for four block lengths; positive values favor DeepNB-STAR.
Table 5 shows where the two best methods differ. The advantage of DeepNB-STAR is largest one week ahead, where its predictive law is exact, and it is significant one week ahead on three panels and at every horizon on amebiasis; it persists at four weeks, where the Rao–Blackwellized simulation of Algorithm 1 is used. The transformer, which forecasts each horizon directly and is fitted to the quantiles, is therefore not more accurate at long horizons than recursive simulation from the likelihood model. By size of prefecture and by period the picture is the same, except that the transformer ensemble is ahead of DeepNB-STAR in three of the 44 cells of the table: in the small prefectures of EHEC and the medium prefectures of legionellosis, by differences below 0.001 that are not distinguishable from zero, and on EHEC in 2012–2015, by 0.011 with an interval that excludes zero. In that period, before the disruptions of the COVID-19 pandemic, the transformer forecasts the seasonal EHEC series better; in 2020–2021 and 2022–2024 DeepNB-STAR is better, by 0.026 and 0.015. DeepNB-STAR is ahead with an interval that excludes zero in 17 cells. These subgroup comparisons are exploratory and unadjusted for multiplicity.
Exploratory Inference for the Fitted Model
The fitted likelihood describes associations in the conditional mean and size functions, but the rate theorems do not establish the validity of bootstrap confidence intervals; we therefore present the intervals as exploratory uncertainty summaries, alongside the predictive evaluation. We fit the estimator to all weeks of each panel (40 epochs, three fits) and compute the functionals of § 4.3 . Their standard errors are the standard deviations, on the logarithmic scale, of the functionals over 40 moving-block bootstrap refits with blocks of 26 weeks for syphilis and 30 refits for the other panels, and the 95% intervals are the estimates multiplied and divided by exp ( 1.96 se ) \exp(1.96\operatorname{se}) exp ( 1.96 se ) . Simulation C (§ 7.3 ) provides a limited check in a smaller model and shows undercoverage where the estimator is biased. The intervals below are exploratory pointwise uncertainty summaries, not simultaneous confidence bands or established frequentist coverage guarantees. We report the syphilis panel in detail; Table 6 gives the average partial effects for all four panels.
Table 6. Average partial effects of the fitted DeepNB-STAR, with 95% intervals from moving-block bootstrap standard errors (40 refits for syphilis and 30 for the other panels, blocks of 26 weeks). The first three rows are the factor by which the mean count changes, averaged over all prefecture-weeks on the log scale, when the past counts of the prefecture, of its five nearest neighbors, or of the whole country are doubled; the last row is the ratio of the average fitted size in the tenth of prefecture-weeks with the largest fitted mean to that in the tenth with the smallest.
The fitted expected national count follows the observed series closely (Figure 2 ); its exploratory bootstrap band has a median half-width of 5.3% of the fitted value on syphilis. Table 6 quantifies the three sources of information in the log-mean. On syphilis, doubling the past counts of a prefecture raises its expected count by 36% (95% interval 33% to 38%), a strongly sublinear response, doubling the counts of the five nearest prefectures raises it by 11% (8% to 14%), and doubling the national level by 16% (12% to 19%); none of the three intervals includes one. The neighbor effect is not constant (Figure 3 ): as the neighbors go from no cases to 32 a week, the predicted mean of a prefecture with one case a week rises by a factor of 1.52 (1.31 to 1.76), of a prefecture with three cases by 1.23 (1.10 to 1.37), and of a prefecture with 20 cases by 1.07 (0.94 to 1.22), an interval that includes one. The fitted neighbor association is strongest at low local levels; this interaction cannot be expressed by a log-linear model with a single neighbor coefficient and does not identify transmission between prefectures. The seasonal factor of the mean varies only between 0.93 and 1.07 (Figure 4 , left). The size is far from constant: at a constant history the fitted size increases from 6.6 (5.1 to 8.6) for a prefecture without cases to 55 (43 to 72) at 80 cases a week (Figure 4 ), and the ratio of the average fitted size in the tenth of prefecture-weeks with the largest mean to that in the tenth with the smallest is 19.7 (9.2 to 42.3). A larger fitted size means a smaller coefficient 1 / r 1/r 1/ r of the quadratic variance term, not necessarily a smaller variance-to-mean ratio 1 + μ / r 1 + \mu/r 1 + μ / r . Across the panels (Table 6 ), the response to a prefecture’s own history weakens as the counts become sparser, from a factor of 1.36 for doubling on syphilis to 1.30 on EHEC, 1.21 on legionellosis and 1.07 on amebiasis, whereas the response to the national level strengthens, to 1.39 on legionellosis and 1.98 (1.81 to 2.16) on amebiasis: where a prefecture has few cases, the country carries most of the information about its next week. The neighbor effect is between 1.11 and 1.16 on all four panels, and on every panel the fitted size is larger where the mean is larger, with intervals for the ratio that exclude one.
Figure 3. Syphilis: the fitted conditional mean of DeepNB-STAR with exploratory 95% bootstrap bands. Left: predicted mean for next week against the weekly count of the prefecture, for three levels of its five nearest neighbors. Right: predicted mean relative to its value when the neighbors have no cases, against the level of the neighbors, for three levels of the prefecture itself. The history of the prefecture is constant at the stated weekly count, the national level is held at its 2022–2024 mean, and the predicted mean is averaged over the weeks of the year and the site encodings.
Figure 4. Syphilis: seasonal factor of the mean (left), at a constant history of 3 cases a week in the prefecture and its neighbors, and fitted size e g ^ e^{\hat{g}} e g ^ against the weekly count of the prefecture, with neighbors at 3 cases a week (right), with exploratory 95% bootstrap bands.
These intervals are conditional on the model, pointwise, unadjusted for the many contrasts, and not causal; they include the variability between optimizer runs through the refits.
Calibration
Figure 5 examines the predictive distributions on syphilis. The randomized probability integral transform (Czado et al., 2009) is uniformly distributed when the predictive distribution is correct. One week ahead it is close to uniform: its empirical distribution function differs from the uniform one by at most 0.011, a descriptive statistic, since the forecasts are dependent. The predicted probability of a zero count averages 0.456 against an observed frequency of 0.451, and the agreement holds across the range of predicted probabilities. Central prediction intervals cover more than their nominal level at every horizon (Figure 5 , right), largely because an interval of integers that contains at least the nominal probability usually contains more. The comparison addressed by Theorem 6 is between the probability that the fitted model assigns to its own interval and the realized coverage. One week ahead these are 0.791 and 0.781 for the nominal 50% interval, 0.927 and 0.920 for 80%, 0.968 and 0.964 for 90%, and 0.985 and 0.981 for 95%; the moving-block bootstrap intervals for the differences (blocks of 8 weeks) exclude zero. Theorem 7 (c) bounds the absolute gap under correct specification; it neither predicts its sign nor attributes these gaps to estimation error, and no numerical bound is evaluated here. On the other panels the realized coverage is at most 1.4 points below and 2.7 points above the model-implied one (supplementary Table S19). These pooled one-step comparisons do not establish conditional calibration at each prefecture and time.
Figure 5. Syphilis: calibration of DeepNB-STAR, target weeks of 2012 to 2024. Left: randomized probability integral transform of the one-week-ahead predictive distributions. Center: observed frequency of zero counts against the predicted probability of zero, in tenths of the predicted probability. Right: empirical coverage of central prediction intervals at horizons of one to four weeks, and the coverage implied by the fitted model one week ahead, against the nominal level.
Calibration of the prefecture counts does not imply calibration of their sum, and here the model falls short. Out of sample, the one-week-ahead 95% prediction interval for the national count (Figure 2 ), computed exactly from the joint predictive law under conditional independence across prefectures, covers only 83% of the target weeks of 2012–2024 on syphilis, 86% on EHEC, 81% on legionellosis and 92% on amebiasis. Two sources can be separated (supplementary Table S14 ). The first is reporting holidays: on syphilis the interval covers 41% of the 63 weeks that contain New Year, Golden Week or Obon days, when reporting falls in all prefectures at once, and 87% of the other weeks. The second is contemporaneous dependence between prefectures. The standardized residuals of different prefectures have an average pairwise correlation of only 0.01 to 0.03, but over 47 sites this raises the variance of the standardized national residual to between 1.3 and 3.2 outside holiday weeks, where the model implies one. Shocks common to all sites are outside the conditional model (2) . By Theorem 8 they leave the estimation bounds and the one-step comparison of fitted and true count probabilities intact, but not the guarantees for joint or multi-step predictive laws, so the national intervals should not be used as they stand. Inflating their variance by the factor estimated from earlier forecast weeks gives a coverage of 92% to 96%. Forecast paths for four prefectures are in supplementary Figure S1 .
Table S14. One-week-ahead 95% prediction intervals for the national count, 677 target weeks of 2012–2024: coverage over all weeks, over the 63 holiday weeks and over the other weeks; variance of the standardized national residual z ~ t \tilde z_t z ~ t (one under a correct model with conditionally independent sites); average pairwise correlation ρ ˉ \bar{\rho} ρ ˉ of the standardized prefecture residuals; and coverage after the out-of-sample variance inflation described in the text.
Figure S1. Syphilis: four-week-ahead forecasts of DeepNB-STAR for four prefectures, 2018 to 2024: observed counts (black), predictive median (blue) and 90% prediction interval (shaded).
Conclusion
DeepNB-STAR models each site’s count given the past by a negative binomial law whose log-mean and log-size are functions of temporal and nearest-neighbor summaries, estimated by maximum likelihood over deep ReLU networks. The oracle inequality holds along the observed trajectory without mixing; mixing implied by the bounded model permits an independent-copy risk bound. A lower bound applies to an exogenous-covariate subexperiment. The Kullback–Leibler chain rule controls multi-step prediction error with a square-root dependence on the horizon, and the results extend to an unknown covariate-dependent size. Empirically, DeepNB-STAR had a lower weighted interval score than a three-member Temporal Fusion Transformer ensemble on four panels; the primary difference was distinguishable from zero only on the held-out amebiasis panel. The fitted functions describe associations with local, neighboring and national history, changes in dispersion and seasonality.
Several limitations should be kept in mind. First, the rate theorems concern sparse networks with weights bounded by one and an approximate maximizer of the likelihood, whereas the case study trains fully connected networks with unconstrained weights by a stochastic gradient method; in Simulation A a fit that respects the constraints behaves much like the practical fit, but the optimization error Δ n \Delta_n Δ n is not certified, and rates for fully connected networks without a sparsity constraint (Kohler and Langer, 2021) motivate a separate analysis of the implemented class. Second, the lower bound is attained by laws with exogenous covariates; for a covariate map of past counts alone the design law is determined by f 0 f_0 f 0 , and the minimax rate is open. Third, the constant ϵ 0 \epsilon_0 ϵ 0 of Proposition 3 is extremely small for 47 sites, so the proposition is qualitative and Theorem 1, which needs no mixing, carries the quantitative content; likewise the factor S 1 / 2 S^{1/2} S 1/2 in Theorem 6(b) is conservative for a single site. Fourth, the theory assumes a correctly specified negative binomial law; under misspecification the likelihood targets a distribution-dependent approximation, and the calibration diagnostics are descriptive. Fifth, the bootstrap intervals are not justified by a theorem; in Simulation C, intervals centered at the estimate covered as little as 0.79 where the estimator is biased. Sixth, the model treats sites as independent given the past, so it cannot represent shocks common to all sites, such as reporting holidays or outbreaks that span several prefectures. Theorem 8 shows that the estimator survives such dependence, but the joint predictive law does not: the national one-week-ahead 95% intervals covered only 81% to 92% of the weeks, because of holiday weeks and of a weak but pervasive correlation between prefectures (§ 8.5 ); holiday indicators or a latent common factor are natural extensions. Finally, the empirical comparison is less conclusive than the theory. DeepNB-STAR was developed on syphilis after its first version had been behind the transformer ensemble, earlier versions had been tested on EHEC and legionellosis, and only on the held-out amebiasis panel is its advantage, about 1%, distinguishable from zero; in some strata the transformer is ahead (Table 5 ). The scores are competitive with a transformer benchmark, but neither general superiority nor noninferiority has been established, the evidence comes from four panels of one surveillance system and, with fewer benchmarks, one transport panel, and the neural benchmarks are compact implementations with default hyperparameters.
Natural extensions are zero inflation or a hurdle in the likelihood [6 ] , a factor shared by the sites within a period, further covariates such as testing volume or mobility, and, for operational use with provisional counts, a nowcasting step.
Acknowledgments and Disclosure of Funding
H.-H. Huang was supported by National Science Foundation grants DMS-1924792 and DMS-2318925 and by the National Institutes of Health, National Institute of Allergy and Infectious Diseases, award R01AI206603. The weekly notifications of the four diseases are taken from the R package jpinfect (Hoshi et al., 2025), which redistributes the open data of the Japan Institute for Health Security. A demonstration notebook and the replication archive, with the code, data, cached forecasts and evaluation protocols, are available at https://github.com/hhuang45/DeepNB-STAR . The author has no competing interests to declare.
Preliminaries on the Negative Binomial Family
Throughout, r > 0 r > 0 r > 0 is fixed, μ = e f \mu= e^f μ = e f , and the NB ( μ , r ) \operatorname{NB}(\mu,r) NB ( μ , r ) probability mass function is written in exponential-family form
p f ( y ) = c y exp { y θ ( f ) − A ( θ ( f ) ) } , c y = Γ ( y + r ) Γ ( r ) y ! , p_f(y) = c_y \exp\{y\theta(f) - A(\theta(f))\}, \qquad c_y = \frac{\Gamma(y+r)}{\Gamma(r)y!}, p f ( y ) = c y exp { y θ ( f ) − A ( θ ( f ))} , c y = Γ ( r ) y ! Γ ( y + r ) ,
θ ( f ) = f − log ( e f + r ) , A ( θ ) = − r log ( 1 − e θ ) , (19) \theta(f) = f - \log(e^f+r), \qquad A(\theta) = -r\log(1-e^\theta), \tag*{(19)} θ ( f ) = f − log ( e f + r ) , A ( θ ) = − r log ( 1 − e θ ) , (19)
for y = 0 , 1 , 2 , … y = 0,1,2,\ldots y = 0 , 1 , 2 , … , where θ ( f ) < 0 \theta(f) < 0 θ ( f ) < 0 is the natural parameter and A A A the cumulant function; this is the mass function of Section 1 with μ = e f \mu= e^f μ = e f . Direct differentiation gives
A ′ ( θ ) = r e θ 1 − e θ = μ , A ′ ′ ( θ ) = r e θ ( 1 − e θ ) 2 = μ + μ 2 r , θ ′ ( f ) = r e f + r ∈ ( 0 , 1 ] , (20) A'(\theta) = \frac{re^\theta}{1-e^\theta} = \mu,\qquad A''(\theta) = \frac{re^\theta}{(1-e^\theta)^2} = \mu+ \frac{\mu^2}{r},\qquad\theta'(f) = \frac{r}{e^f+r} \in(0,1], \tag*{(20)} A ′ ( θ ) = 1 − e θ r e θ = μ , A ′′ ( θ ) = ( 1 − e θ ) 2 r e θ = μ + r μ 2 , θ ′ ( f ) = e f + r r ∈ ( 0 , 1 ] , (20)
and both A ′ A' A ′ and A ′ ′ A'' A ′′ are increasing on ( − ∞ , 0 ) (-\infty,0) ( − ∞ , 0 ) . For u < − θ u < -\theta u < − θ the moment generating function is
E θ e u Y = ∑ y c y e y ( θ + u ) − A ( θ ) = exp { A ( θ + u ) − A ( θ ) } . (21) \mathbb{E}_{\theta}e^{uY} = \sum_y c_y e^{y(\theta+u)-A(\theta)} = \exp\{A(\theta+u)-A(\theta)\}. \tag*{(21)} E θ e u Y = y ∑ c y e y ( θ + u ) − A ( θ ) = exp { A ( θ + u ) − A ( θ )} . (21)
For ∣ f ∣ ≤ F |f| \le F ∣ f ∣ ≤ F write θ l o = θ ( − F ) \theta_{\mathrm{lo}} = \theta(-F) θ lo = θ ( − F ) , θ h i = θ ( F ) < 0 \theta_{\mathrm{hi}} = \theta(F) < 0 θ hi = θ ( F ) < 0 , V min = A ′ ′ ( θ l o ) = e − F + e − 2 F / r V_{\min} = A''(\theta_{\mathrm{lo}}) = e^{-F}+e^{-2F}/r V m i n = A ′′ ( θ lo ) = e − F + e − 2 F / r and V max = A ′ ′ ( θ h i ) = e F + e 2 F / r V_{\max} = A''(\theta_{\mathrm{hi}}) = e^F+e^{2F}/r V m a x = A ′′ ( θ hi ) = e F + e 2 F / r . By (19) and the mean value theorem, for ∣ f 1 ∣ , ∣ f 2 ∣ ≤ F |f_1|,|f_2| \le F ∣ f 1 ∣ , ∣ f 2 ∣ ≤ F ,
r e F + r ∣ f 1 − f 2 ∣ ≤ ∣ θ ( f 1 ) − θ ( f 2 ) ∣ ≤ ∣ f 1 − f 2 ∣ . (22) \frac{r}{e^F+r}|f_1-f_2| \le|\theta(f_1)-\theta(f_2)| \le|f_1-f_2|. \tag*{(22)} e F + r r ∣ f 1 − f 2 ∣ ≤ ∣ θ ( f 1 ) − θ ( f 2 ) ∣ ≤ ∣ f 1 − f 2 ∣. (22)
Here E θ \mathbb{E}_\theta E θ is the expectation when Y Y Y has the mass function (18) with natural parameter θ \theta θ . The squared Hellinger distance of Section 1 is also H 2 ( p , q ) = 1 2 ∑ y ( p ( y ) − q ( y ) ) 2 H^2(p,q)=\frac{1}{2}\sum_y(\sqrt{p(y)}-\sqrt{q(y)})^2 H 2 ( p , q ) = 2 1 ∑ y ( p ( y ) − q ( y ) ) 2 , and H H H is a metric. For probability measures P P P and Q Q Q on a general space, with densities p p p and q q q with respect to a dominating measure λ \lambda λ , H 2 ( P , Q ) = 1 − ∫ p q d λ H^2(P,Q)=1-\int\sqrt{pq}\,\mathrm{d}\lambda H 2 ( P , Q ) = 1 − ∫ pq d λ and TV ( P , Q ) = sup B ∣ P ( B ) − Q ( B ) ∣ = 1 2 ∫ ∣ p − q ∣ d λ \operatorname{TV}(P,Q)=\sup_B|P(B)-Q(B)|=\frac{1}{2}\int|p-q|\,\mathrm{d}\lambda TV ( P , Q ) = sup B ∣ P ( B ) − Q ( B ) ∣ = 2 1 ∫ ∣ p − q ∣ d λ , and P ⊗ Q P\otimes Q P ⊗ Q denotes a product measure. N 0 = { 0 , 1 , 2 , … } \mathbb{N}_0=\{0,1,2,\ldots\} N 0 = { 0 , 1 , 2 , … } .
The constants used below depend only on ( F , r ) (F,r) ( F , r ) :
c 2 = V max 8 , c 1 = V min 8 ( 1 + V max F 2 / 2 ) ( r e F + r ) 2 , ω = ( e F e F + r ) 1 / 2 = e θ h i / 2 , c_2=\frac{V_{\max}}{8},\qquad c_1=\frac{V_{\min}}{8(1+V_{\max}F^2/2)}\left(\frac{r}{e^F+r}\right)^2,\qquad\omega=\left(\frac{e^F}{e^F+r}\right)^{1/2}=e^{\theta_{\mathrm{hi}}/2}, c 2 = 8 V m a x , c 1 = 8 ( 1 + V m a x F 2 /2 ) V m i n ( e F + r r ) 2 , ω = ( e F + r e F ) 1/2 = e θ hi /2 ,
c ˉ = r ω ( 1 − ω ) 2 = A ′ ′ ( θ h i / 2 ) , μ ˉ = r ω 1 − ω = A ′ ( θ h i / 2 ) , \bar{c}=\frac{r\omega}{(1-\omega)^2}=A''(\theta_{\mathrm{hi}}/2),\qquad\bar{\mu}=\frac{r\omega}{1-\omega}=A'(\theta_{\mathrm{hi}}/2), c ˉ = ( 1 − ω ) 2 r ω = A ′′ ( θ hi /2 ) , μ ˉ = 1 − ω r ω = A ′ ( θ hi /2 ) ,
λ 0 = min { 1 , ∣ θ h i ∣ 2 ( θ h i − θ l o ) } , λ 1 = ∣ θ h i ∣ 2 . (23) \lambda_0=\min\left\{1,\frac{|\theta_{\mathrm{hi}}|}{2(\theta_{\mathrm{hi}}-\theta_{\mathrm{lo}})}\right\},\qquad\lambda_1=\frac{|\theta_{\mathrm{hi}}|}{2}. \tag*{(23)} λ 0 = min { 1 , 2 ( θ hi − θ lo ) ∣ θ hi ∣ } , λ 1 = 2 ∣ θ hi ∣ . (23)
Lemma 9 (Hellinger and Kullback–Leibler versus the log-mean). Let ∣ f 1 ∣ , ∣ f 2 ∣ ≤ F |f_1|, |f_2| \le F ∣ f 1 ∣ , ∣ f 2 ∣ ≤ F . Then
c 1 ( f 1 − f 2 ) 2 ≤ H 2 ( p f 1 , p f 2 ) ≤ c 2 ( f 1 − f 2 ) 2 , KL ( p f 1 ∥ p f 2 ) ≤ V max 2 ( f 1 − f 2 ) 2 . c_1(f_1-f_2)^2 \le H^2(p_{f_1},p_{f_2}) \le c_2(f_1-f_2)^2,\qquad\operatorname{KL}(p_{f_1}\mathbin\Vert p_{f_2}) \le\frac{V_{\max}}{2}(f_1-f_2)^2. c 1 ( f 1 − f 2 ) 2 ≤ H 2 ( p f 1 , p f 2 ) ≤ c 2 ( f 1 − f 2 ) 2 , KL ( p f 1 ∥ p f 2 ) ≤ 2 V m a x ( f 1 − f 2 ) 2 . Proof. Write θ i = θ ( f i ) \theta_i=\theta(f_i) θ i = θ ( f i ) and θ ˉ = ( θ 1 + θ 2 ) / 2 < 0 \bar{\theta}=(\theta_1+\theta_2)/2<0 θ ˉ = ( θ 1 + θ 2 ) /2 < 0 . By (18), ∑ y p f 1 ( y ) p f 2 ( y ) = ∑ y c y exp { y θ ˉ − ( A ( θ 1 ) + A ( θ 2 ) ) / 2 } = e − J \sum_y\sqrt{p_{f_1}(y)p_{f_2}(y)}=\sum_y c_y\exp\{y\bar{\theta}-(A(\theta_1)+A(\theta_2))/2\}=e^{-J} ∑ y p f 1 ( y ) p f 2 ( y ) = ∑ y c y exp { y θ ˉ − ( A ( θ 1 ) + A ( θ 2 )) /2 } = e − J with J = { A ( θ 1 ) + A ( θ 2 ) } / 2 − A ( θ ˉ ) J=\{A(\theta_1)+A(\theta_2)\}/2-A(\bar{\theta}) J = { A ( θ 1 ) + A ( θ 2 )} /2 − A ( θ ˉ ) , because ∑ y c y e y θ ˉ = e A ( θ ˉ ) \sum_y c_y e^{y\bar{\theta}}=e^{A(\bar{\theta})} ∑ y c y e y θ ˉ = e A ( θ ˉ ) . Put ϑ = ( θ 2 − θ 1 ) / 2 \vartheta=(\theta_2-\theta_1)/2 ϑ = ( θ 2 − θ 1 ) /2 . Taylor’s theorem at θ ˉ \bar{\theta} θ ˉ gives A ( θ ˉ ± ϑ ) = A ( θ ˉ ) ± ϑ A ′ ( θ ˉ ) + 1 2 ϑ 2 A ′ ′ ( θ ~ ± ) A(\bar{\theta}\pm\vartheta)=A(\bar{\theta})\pm\vartheta A'(\bar{\theta})+\frac{1}{2}\vartheta^2 A''(\tilde{\theta}_{\pm}) A ( θ ˉ ± ϑ ) = A ( θ ˉ ) ± ϑ A ′ ( θ ˉ ) + 2 1 ϑ 2 A ′′ ( θ ~ ± ) for some θ ~ ± \tilde{\theta}_{\pm} θ ~ ± between θ 1 \theta_1 θ 1 and θ 2 \theta_2 θ 2 , so J = 1 4 ϑ 2 { A ′ ′ ( θ ~ + ) + A ′ ′ ( θ ~ − ) } J=\frac{1}{4}\vartheta^2\{A''(\tilde{\theta}_+)+A''(\tilde{\theta}_-)\} J = 4 1 ϑ 2 { A ′′ ( θ ~ + ) + A ′′ ( θ ~ − )} and, since A ′ ′ A'' A ′′ is increasing and θ l o ≤ θ i ≤ θ h i \theta_{\mathrm{lo}}\le\theta_i\le\theta_{\mathrm{hi}} θ lo ≤ θ i ≤ θ hi ,
V min 8 ( θ 1 − θ 2 ) 2 ≤ J ≤ V max 8 ( θ 1 − θ 2 ) 2 . \frac{V_{\min}}{8}(\theta_1-\theta_2)^2\le J\le\frac{V_{\max}}{8}(\theta_1-\theta_2)^2. 8 V m i n ( θ 1 − θ 2 ) 2 ≤ J ≤ 8 V m a x ( θ 1 − θ 2 ) 2 . Now H 2 = 1 − e − J ≤ J ≤ c 2 ( f 1 − f 2 ) 2 H^2=1-e^{-J}\le J\le c_2(f_1-f_2)^2 H 2 = 1 − e − J ≤ J ≤ c 2 ( f 1 − f 2 ) 2 by (21). For the lower bound, e J ≥ 1 + J e^J\ge1+J e J ≥ 1 + J gives 1 − e − J ≥ J / ( 1 + J ) 1-e^{-J}\ge J/(1+J) 1 − e − J ≥ J / ( 1 + J ) , and J ≤ V max ( 2 F ) 2 / 8 = V max F 2 / 2 J\le V_{\max}(2F)^2/8=V_{\max}F^2/2 J ≤ V m a x ( 2 F ) 2 /8 = V m a x F 2 /2 because ∣ θ 1 − θ 2 ∣ ≤ ∣ f 1 − f 2 ∣ ≤ 2 F |\theta_1-\theta_2|\le|f_1-f_2|\le2F ∣ θ 1 − θ 2 ∣ ≤ ∣ f 1 − f 2 ∣ ≤ 2 F ; hence H 2 ≥ J / ( 1 + V max F 2 / 2 ) ≥ c 1 ( f 1 − f 2 ) 2 H^2\ge J/(1+V_{\max}F^2/2)\ge c_1(f_1-f_2)^2 H 2 ≥ J / ( 1 + V m a x F 2 /2 ) ≥ c 1 ( f 1 − f 2 ) 2 by (21). Finally, for an exponential family KL ( p f 1 ∥ p f 2 ) = A ( θ 2 ) − A ( θ 1 ) − ( θ 2 − θ 1 ) A ′ ( θ 1 ) = 1 2 ( θ 2 − θ 1 ) 2 A ′ ′ ( θ ~ ) ≤ 1 2 V max ( f 1 − f 2 ) 2 \operatorname{KL}(p_{f_1}\mathbin\Vert p_{f_2})=A(\theta_2)-A(\theta_1)-(\theta_2-\theta_1)A'(\theta_1)=\frac{1}{2}(\theta_2-\theta_1)^2A''(\tilde{\theta})\le\frac{1}{2}V_{\max}(f_1-f_2)^2 KL ( p f 1 ∥ p f 2 ) = A ( θ 2 ) − A ( θ 1 ) − ( θ 2 − θ 1 ) A ′ ( θ 1 ) = 2 1 ( θ 2 − θ 1 ) 2 A ′′ ( θ ~ ) ≤ 2 1 V m a x ( f 1 − f 2 ) 2 for some θ ~ \tilde{\theta} θ ~ between θ 1 \theta_1 θ 1 and θ 2 \theta_2 θ 2 , by Taylor’s theorem, the monotonicity of A ′ ′ A'' A ′′ and (21).
Lemma 10 (Lipschitz log-likelihood). For all f 1 , f 2 ∈ R f_1,f_2\in\mathbb{R} f 1 , f 2 ∈ R and y ∈ { 0 , 1 , … } y\in\{0,1,\ldots\} y ∈ { 0 , 1 , … } , ∣ log p f 1 ( y ) − log p f 2 ( y ) ∣ ≤ ( y + r ) ∣ f 1 − f 2 ∣ |\log p_{f_1}(y)-\log p_{f_2}(y)|\le(y+r)|f_1-f_2| ∣ log p f 1 ( y ) − log p f 2 ( y ) ∣ ≤ ( y + r ) ∣ f 1 − f 2 ∣ .
Proof. By (18)–(19), ∂ f log p f ( y ) = { y − A ′ ( θ ( f ) ) } θ ′ ( f ) = ( y − μ ) r / ( μ + r ) \partial_f\log p_f(y)=\{y-A'(\theta(f))\}\theta'(f)=(y-\mu)r/(\mu+r) ∂ f log p f ( y ) = { y − A ′ ( θ ( f ))} θ ′ ( f ) = ( y − μ ) r / ( μ + r ) , which lies between − μ r / ( μ + r ) ≥ − r -\mu r/(\mu+r)\ge-r − μ r / ( μ + r ) ≥ − r and y r / ( μ + r ) ≤ y yr/(\mu+r)\le y y r / ( μ + r ) ≤ y . Hence ∣ ∂ f log p f ( y ) ∣ ≤ y + r |\partial_f\log p_f(y)|\le y+r ∣ ∂ f log p f ( y ) ∣ ≤ y + r , and the claim follows from the mean value theorem.
Lemma 11 (Exponential supermartingale bound). Let ( ξ i ) i = 1 n (\xi_i)_{i=1}^n ( ξ i ) i = 1 n be adapted to a filtration ( H i ) (\mathcal{H}_i) ( H i ) with E [ e ξ i ∣ H i − 1 ] ≤ 1 \mathbb{E}[e^{\xi_i}\mid\mathcal{H}_{i-1}]\le1 E [ e ξ i ∣ H i − 1 ] ≤ 1 almost surely for every i i i . Then P ( ∑ i = 1 n ξ i ≥ log ( 1 / δ ) ) ≤ δ \mathbb{P}(\sum_{i=1}^n\xi_i\ge\log(1/\delta))\le\delta P ( ∑ i = 1 n ξ i ≥ log ( 1/ δ )) ≤ δ for every δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) .
Proof. M k = exp ( ∑ i ≤ k ξ i ) M_k=\exp(\sum_{i\le k}\xi_i) M k = exp ( ∑ i ≤ k ξ i ) satisfies E [ M k ∣ H k − 1 ] = M k − 1 E [ e ξ k ∣ H k − 1 ] ≤ M k − 1 \mathbb{E}[M_k\mid\mathcal{H}_{k-1}]=M_{k-1}\mathbb{E}[e^{\xi_k}\mid\mathcal{H}_{k-1}]\le M_{k-1} E [ M k ∣ H k − 1 ] = M k − 1 E [ e ξ k ∣ H k − 1 ] ≤ M k − 1 , so E M n ≤ 1 \mathbb{E}M_n\le1 E M n ≤ 1 and Markov’s inequality gives P ( M n ≥ 1 / δ ) ≤ δ \mathbb{P}(M_n\ge1/\delta)\le\delta P ( M n ≥ 1/ δ ) ≤ δ .
Proof of Theorem 1
Order the n = S T n=ST n = S T observations lexicographically, i = ( t − 1 ) S + s i=(t-1)S+s i = ( t − 1 ) S + s . Set H 0 = I 0 \mathcal{H}_0=\mathcal{I}_0 H 0 = I 0 and
H i = σ ( I t − 1 , Y 1 , t , … , Y s , t ) ( s < S ) , H t S = I t . \mathcal{H}_i=\sigma(\mathcal{I}_{t-1},Y_{1,t},\ldots,Y_{s,t})\quad(s<S),\qquad\mathcal{H}_{tS}=\mathcal{I}_t. H i = σ ( I t − 1 , Y 1 , t , … , Y s , t ) ( s < S ) , H tS = I t .
Thus any newly revealed predictable covariates are included before the next response is observed. Write ( X i , Y i ) (X_i,Y_i) ( X i , Y i ) for the i i i th pair. By Assumption 1, X i X_i X i is H i − 1 \mathcal{H}_{i-1} H i − 1 -measurable and, because the sites are conditionally independent given I t − 1 \mathcal{I}_{t-1} I t − 1 , the conditional law of Y i Y_i Y i given H i − 1 \mathcal{H}_{i-1} H i − 1 is p f 0 ( X i ) p_{f_0}(X_i) p f 0 ( X i ) . Put ℓ n ( f ) = ∑ i log p f ( X i ) ( Y i ) \ell_n(f)=\sum_i\log p_{f(X_i)}(Y_i) ℓ n ( f ) = ∑ i log p f ( X i ) ( Y i ) and H i 2 ( f ) = H 2 ( p f ( X i ) , p f 0 ( X i ) ) H_i^2(f)=H^2(p_{f(X_i)},p_{f_0(X_i)}) H i 2 ( f ) = H 2 ( p f ( X i ) , p f 0 ( X i ) ) .
Step 1 (one fixed function). Fix a measurable f f f with ∥ f ∥ ∞ ≤ F \|f\|_\infty\le F ∥ f ∥ ∞ ≤ F , write Λ i = p f ( X i ) ( Y i ) / p f 0 ( X i ) ( Y i ) \Lambda_i = p_{f(X_i)}(Y_i)/p_{f_0(X_i)}(Y_i) Λ i = p f ( X i ) ( Y i ) / p f 0 ( X i ) ( Y i ) and let ξ i = 1 2 log Λ i − log { 1 − H i 2 ( f ) } \xi_i = \frac{1}{2}\log\Lambda_i - \log\{1-H_i^2(f)\} ξ i = 2 1 log Λ i − log { 1 − H i 2 ( f )} . Since
E [ Λ i 1 / 2 ∣ H i − 1 ] = ∑ y { p f ( X i ) ( y ) p f 0 ( X i ) ( y ) } 1 / 2 = 1 − H i 2 ( f ) , \mathbb{E}\left[\Lambda_i^{1/2}\mid\mathcal{H}_{i-1}\right] = \sum_y \{p_{f(X_i)}(y)p_{f_0(X_i)}(y)\}^{1/2}=1-H_i^2(f), E [ Λ i 1/2 ∣ H i − 1 ] = y ∑ { p f ( X i ) ( y ) p f 0 ( X i ) ( y ) } 1/2 = 1 − H i 2 ( f ) ,
we have E [ e ξ i ∣ H i − 1 ] = 1 \mathbb{E}[e^{\xi_i}\mid\mathcal{H}_{i-1}]=1 E [ e ξ i ∣ H i − 1 ] = 1 , and Lemma 11 with − log ( 1 − x ) ≥ x -\log(1-x)\ge x − log ( 1 − x ) ≥ x yields, with probability at least 1 − δ 1-\delta 1 − δ ,
∑ i = 1 n H i 2 ( f ) ≤ 1 2 { ℓ n ( f 0 ) − ℓ n ( f ) } + log ( 1 / δ ) . (24) \sum_{i=1}^{n}H_i^2(f)\le\frac{1}{2}\{\ell_n(f_0)-\ell_n(f)\}+\log(1/\delta). \tag*{(24)} i = 1 ∑ n H i 2 ( f ) ≤ 2 1 { ℓ n ( f 0 ) − ℓ n ( f )} + log ( 1/ δ ) . (24)
Step 2 (a net). Let f 1 , … , f N ∈ F n f_1,\ldots,f_N\in\mathcal{F}_n f 1 , … , f N ∈ F n , N = N n ( ε ) N=N_n(\varepsilon) N = N n ( ε ) , be such that every f ∈ F n f\in\mathcal{F}_n f ∈ F n has some j j j with ∥ f − f j ∥ ∞ ≤ ε \|f-f_j\|_\infty\le\varepsilon ∥ f − f j ∥ ∞ ≤ ε . By (24) and a union bound there is an event Ω 1 \Omega_1 Ω 1 of probability at least 1 − δ 1-\delta 1 − δ on which
∑ i H i 2 ( f j ) ≤ 1 2 { ℓ n ( f 0 ) − ℓ n ( f j ) } + log ( N / δ ) for all j = 1 , … , N . (25) \sum_i H_i^2(f_j)\le\frac{1}{2}\{\ell_n(f_0)-\ell_n(f_j)\}+\log(N/\delta)\qquad\text{for all }j=1,\ldots,N. \tag*{(25)} i ∑ H i 2 ( f j ) ≤ 2 1 { ℓ n ( f 0 ) − ℓ n ( f j )} + log ( N / δ ) for all j = 1 , … , N . (25)
Step 3 (approximation term). Let f ∗ ∈ F n f^*\in\mathcal{F}_n f ∗ ∈ F n be non-random with a = ∥ f ∗ − f 0 ∥ ∞ a=\|f^*-f_0\|_\infty a = ∥ f ∗ − f 0 ∥ ∞ , and let
D i = log p f 0 ( X i ) ( Y i ) p f ∗ ( X i ) ( Y i ) = Y i ζ i − { A ( θ 0 i ) − A ( θ i ∗ ) } , D_i=\log\frac{p_{f_0(X_i)}(Y_i)}{p_{f^*(X_i)}(Y_i)}=Y_i\zeta_i-\{A(\theta_{0i})-A(\theta_i^*)\}, D i = log p f ∗ ( X i ) ( Y i ) p f 0 ( X i ) ( Y i ) = Y i ζ i − { A ( θ 0 i ) − A ( θ i ∗ )} ,
where θ 0 i = θ ( f 0 ( X i ) ) \theta_{0i}=\theta(f_0(X_i)) θ 0 i = θ ( f 0 ( X i )) , θ i ∗ = θ ( f ∗ ( X i ) ) \theta_i^*=\theta(f^*(X_i)) θ i ∗ = θ ( f ∗ ( X i )) and ζ i = θ 0 i − θ i ∗ \zeta_i=\theta_{0i}-\theta_i^* ζ i = θ 0 i − θ i ∗ , so that ∣ ζ i ∣ ≤ min { a , θ h i − θ l o } |\zeta_i|\le\min\{a,\theta_{\mathrm{hi}}-\theta_{\mathrm{lo}}\} ∣ ζ i ∣ ≤ min { a , θ hi − θ lo } by (21). For λ = λ 0 \lambda=\lambda_0 λ = λ 0 in (22), θ 0 i + λ ζ i ≤ θ h i + ∣ θ h i ∣ / 2 = θ h i / 2 < 0 \theta_{0i}+\lambda\zeta_i\le\theta_{\mathrm{hi}}+|\theta_{\mathrm{hi}}|/2=\theta_{\mathrm{hi}}/2<0 θ 0 i + λ ζ i ≤ θ hi + ∣ θ hi ∣/2 = θ hi /2 < 0 , so (20) applies and
log E [ e λ D i ∣ H i − 1 ] = − λ { A ( θ 0 i ) − A ( θ 0 i − ζ i ) } + A ( θ 0 i + λ ζ i ) − A ( θ 0 i ) . \log\mathbb{E}[e^{\lambda D_i}\mid\mathcal{H}_{i-1}]=-\lambda\{A(\theta_{0i})-A(\theta_{0i}-\zeta_i)\}+A(\theta_{0i}+\lambda\zeta_i)-A(\theta_{0i}). log E [ e λ D i ∣ H i − 1 ] = − λ { A ( θ 0 i ) − A ( θ 0 i − ζ i )} + A ( θ 0 i + λ ζ i ) − A ( θ 0 i ) .
By Taylor’s theorem, A ( θ 0 i ) − A ( θ 0 i − ζ i ) = ζ i A ′ ( θ 0 i ) − 1 2 ζ i 2 A ′ ′ ( θ ~ 1 i ) A(\theta_{0i})-A(\theta_{0i}-\zeta_i)=\zeta_iA'(\theta_{0i})-\frac{1}{2}\zeta_i^2A''(\widetilde{\theta}_{1i}) A ( θ 0 i ) − A ( θ 0 i − ζ i ) = ζ i A ′ ( θ 0 i ) − 2 1 ζ i 2 A ′′ ( θ 1 i ) and A ( θ 0 i + λ ζ i ) − A ( θ 0 i ) = λ ζ i A ′ ( θ 0 i ) + 1 2 λ 2 ζ i 2 A ′ ′ ( θ ~ 2 i ) A(\theta_{0i}+\lambda\zeta_i)-A(\theta_{0i})=\lambda\zeta_iA'(\theta_{0i})+\frac{1}{2}\lambda^2\zeta_i^2A''(\widetilde{\theta}_{2i}) A ( θ 0 i + λ ζ i ) − A ( θ 0 i ) = λ ζ i A ′ ( θ 0 i ) + 2 1 λ 2 ζ i 2 A ′′ ( θ 2 i ) for intermediate points θ ~ 1 i , θ ~ 2 i ≤ θ h i / 2 \widetilde{\theta}_{1i},\widetilde{\theta}_{2i}\le\theta_{\mathrm{hi}}/2 θ 1 i , θ 2 i ≤ θ hi /2 . The first-order terms cancel and, as A ′ ′ A'' A ′′ is increasing and λ ≤ 1 \lambda\le1 λ ≤ 1 ,
log E [ e λ D i ∣ H i − 1 ] = 1 2 ζ i 2 { λ A ′ ′ ( θ ~ 1 i ) + λ 2 A ′ ′ ( θ ~ 2 i ) } ≤ λ c ˉ a 2 . \log\mathbb{E}[e^{\lambda D_i}\mid\mathcal{H}_{i-1}]=\frac{1}{2}\zeta_i^2\{\lambda A''(\widetilde{\theta}_{1i})+\lambda^2A''(\widetilde{\theta}_{2i})\}\le\lambda\bar{c}a^2. log E [ e λ D i ∣ H i − 1 ] = 2 1 ζ i 2 { λ A ′′ ( θ 1 i ) + λ 2 A ′′ ( θ 2 i )} ≤ λ c ˉ a 2 .
Lemma 11 applied to ξ i = λ 0 ( D i − c ˉ a 2 ) \xi_i=\lambda_0(D_i-\bar{c}a^2) ξ i = λ 0 ( D i − c ˉ a 2 ) gives an event Ω 2 \Omega_2 Ω 2 of probability at least 1 − δ 1-\delta 1 − δ on which
ℓ n ( f 0 ) − ℓ n ( f ∗ ) = ∑ i D i ≤ n c ˉ a 2 + λ 0 − 1 log ( 1 / δ ) . (26) \ell_n(f_0)-\ell_n(f^*)=\sum_iD_i\le n\bar{c}a^2+\lambda_0^{-1}\log(1/\delta). \tag*{(26)} ℓ n ( f 0 ) − ℓ n ( f ∗ ) = i ∑ D i ≤ n c ˉ a 2 + λ 0 − 1 log ( 1/ δ ) . (26)
Step 4 (sum of the counts). Since θ 0 i + λ 1 ≤ θ h i / 2 \theta_{0i}+\lambda_1\le\theta_{\mathrm{hi}}/2 θ 0 i + λ 1 ≤ θ hi /2 , (20) and the monotonicity of A ′ A' A ′ give log E [ e λ 1 Y i ∣ H i − 1 ] = A ( θ 0 i + λ 1 ) − A ( θ 0 i ) ≤ λ 1 A ′ ( θ h i / 2 ) = λ 1 μ ˉ \log\mathbb{E}[e^{\lambda_1Y_i}\mid\mathcal{H}_{i-1}]=A(\theta_{0i}+\lambda_1)-A(\theta_{0i})\le\lambda_1A'(\theta_{\mathrm{hi}}/2)=\lambda_1\bar{\mu} log E [ e λ 1 Y i ∣ H i − 1 ] = A ( θ 0 i + λ 1 ) − A ( θ 0 i ) ≤ λ 1 A ′ ( θ hi /2 ) = λ 1 μ ˉ . Lemma 11 with ξ i = λ 1 ( Y i − μ ˉ ) \xi_i=\lambda_1(Y_i-\bar{\mu}) ξ i = λ 1 ( Y i − μ ˉ ) gives an event Ω 3 \Omega_3 Ω 3 of probability at least 1 − δ 1-\delta 1 − δ on which
∑ i Y i ≤ n μ ˉ + λ 1 − 1 log ( 1 / δ ) . (27) \sum_iY_i\le n\bar{\mu}+\lambda_1^{-1}\log(1/\delta). \tag*{(27)} i ∑ Y i ≤ n μ ˉ + λ 1 − 1 log ( 1/ δ ) . (27)
Step 5 (assembly). Work on Ω 1 ∩ Ω 2 ∩ Ω 3 \Omega_1\cap\Omega_2\cap\Omega_3 Ω 1 ∩ Ω 2 ∩ Ω 3 , which has probability at least 1 − 3 δ 1-3\delta 1 − 3 δ , and let j j j be an index with ∥ f ^ − f j ∥ ∞ ≤ ε \|\hat{f}-f_j\|_\infty\le\varepsilon ∥ f ^ − f j ∥ ∞ ≤ ε . Because H H H is a metric, the inequality ( x + x ′ ) 2 ≤ 2 x 2 + 2 x ′ 2 (x+x')^2\le2x^2+2x'^2 ( x + x ′ ) 2 ≤ 2 x 2 + 2 x ′2 and Lemma 9 give H i 2 ( f ^ ) ≤ 2 H i 2 ( f j ) + 2 c 2 ε 2 H_i^2(\hat{f}) \le2H_i^2(f_j) + 2c_2\varepsilon^2 H i 2 ( f ^ ) ≤ 2 H i 2 ( f j ) + 2 c 2 ε 2 . By Lemma 10, ℓ n ( f ^ ) − ℓ n ( f j ) ≤ ε ∑ i ( Y i + r ) \ell_n(\hat{f})-\ell_n(f_j) \le\varepsilon\sum_i(Y_i+r) ℓ n ( f ^ ) − ℓ n ( f j ) ≤ ε ∑ i ( Y i + r ) , and by the definition of f ^ \hat{f} f ^ , ℓ n ( f ∗ ) − ℓ n ( f ^ ) ≤ n Δ n \ell_n(f^*)-\ell_n(\hat{f}) \le n\Delta_n ℓ n ( f ∗ ) − ℓ n ( f ^ ) ≤ n Δ n . Therefore, by (24)–(26),
∑ i H i 2 ( f ^ ) ≤ { ℓ n ( f 0 ) − ℓ n ( f j ) } + 2 log ( N / δ ) + 2 n c 2 ε 2 = { ℓ n ( f 0 ) − ℓ n ( f ∗ ) } + { ℓ n ( f ∗ ) − ℓ n ( f ^ ) } + { ℓ n ( f ^ ) − ℓ n ( f j ) } + 2 log ( N / δ ) + 2 n c 2 ε 2 ≤ n c ˉ a ˉ 2 + n Δ n + 2 log N + ( 2 + 1 λ 0 + ε λ 1 ) log 1 δ + n ε ( μ ˉ + r ) + 2 n c 2 ε 2 . \begin{aligned}
\sum_i H_i^2(\hat{f}) \le\{\ell_n(f_0)-\ell_n(f_j)\}+2\log(N/\delta)+2nc_2\varepsilon^2 \\
&= \{\ell_n(f_0)-\ell_n(f^*)\}+\{\ell_n(f^*)-\ell_n(\hat{f})\}+\{\ell_n(\hat{f})-\ell_n(f_j)\}
+2\log(N/\delta)+2nc_2\varepsilon^2 \\
&\le n\bar{c}\bar{a}^2+n\Delta_n+2\log N+\left(2+\frac{1}{\lambda_0}+\frac{\varepsilon}{\lambda_1}\right)\log\frac{1}{\delta}+n\varepsilon(\bar{\mu}+r)+2nc_2\varepsilon^2.
\end{aligned} i ∑ H i 2 ( f ^ ) ≤ { ℓ n ( f 0 ) − ℓ n ( f j )} + 2 log ( N / δ ) + 2 n c 2 ε 2 = { ℓ n ( f 0 ) − ℓ n ( f ∗ )} + { ℓ n ( f ∗ ) − ℓ n ( f ^ )} + { ℓ n ( f ^ ) − ℓ n ( f j )} + 2 log ( N / δ ) + 2 n c 2 ε 2 ≤ n c ˉ a ˉ 2 + n Δ n + 2 log N + ( 2 + λ 0 1 + λ 1 ε ) log δ 1 + n ε ( μ ˉ + r ) + 2 n c 2 ε 2 .
Dividing by n n n proves (10). The bound on ∥ f ^ − f 0 ∥ n 2 \lVert\hat{f}-f_0\rVert_n^2 ∥ f ^ − f 0 ∥ n 2 follows from H i 2 ( f ^ ) ≥ c 1 { f ^ ( X i ) − f 0 ( X i ) } 2 H_i^2(\hat{f})\ge c_1\{\hat{f}(X_i)-f_0(X_i)\}^2 H i 2 ( f ^ ) ≥ c 1 { f ^ ( X i ) − f 0 ( X i ) } 2 (Lemma 9). For (11), stop after the first line of the display on Ω 1 ∩ Ω 3 \Omega_1\cap\Omega_3 Ω 1 ∩ Ω 3 , which does not involve f ∗ f^* f ∗ or the definition of f ^ \hat{f} f ^ , and write ℓ n ( f 0 ) − ℓ n ( f j ) = { ℓ n ( f 0 ) − ℓ n ( f ^ ) } + { ℓ n ( f ^ ) − ℓ n ( f j ) } \ell_n(f_0)-\ell_n(f_j)=\{\ell_n(f_0)-\ell_n(\hat{f})\}+\{\ell_n(\hat{f})-\ell_n(f_j)\} ℓ n ( f 0 ) − ℓ n ( f j ) = { ℓ n ( f 0 ) − ℓ n ( f ^ )} + { ℓ n ( f ^ ) − ℓ n ( f j )} .
Proof of Theorem 2
We use the approximation and entropy results of [12 ] , with the corrected depth condition and parameter discretization in Schmidt-Hieber and Vu (2024).
Lemma 12 [12 Lemma 5 and corrected proof of Theorem 1] . For a class F \mathcal{F} F of functions on [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d and ε > 0 \varepsilon>0 ε > 0 , let N ( ε , F , ∥ ⋅ ∥ ∞ ) \mathcal{N}(\varepsilon,\mathcal{F},\lVert\cdot\rVert_\infty) N ( ε , F , ∥ ⋅ ∥ ∞ ) be the smallest number of sup-norm balls of radius ε \varepsilon ε , with arbitrary centers, that cover F \mathcal{F} F . Let f 0 ∈ G ( q , d , t , β , K ) f_0\in\mathcal{G}(q,d,t,\beta,K) f 0 ∈ G ( q , d , t , β , K ) and let F n = F ( L , p , s n , F ) \mathcal{F}_n=\mathcal{F}(L,p,s_n,F) F n = F ( L , p , s n , F ) satisfy conditions (i)–(iv) of Theorem 2. For sufficiently large n n n , there is a constant C S H C_{\mathrm{SH}} C SH , depending only on q q q , d d d , t t t , β \beta β , F F F and the implicit constants in (ii)–(iv), such that
inf f ∈ F n ∥ f − f 0 ∥ ∞ 2 ≤ C S H ϕ n , \inf_{f\in\mathcal{F}_n}\lVert f-f_0\rVert_\infty^2\le C_{\mathrm{SH}}\phi_n, f ∈ F n inf ∥ f − f 0 ∥ ∞ 2 ≤ C SH ϕ n , log N ( ε , F ( L , p , s n , ∞ ) , ∥ ⋅ ∥ ∞ ) ≤ ( s n + 1 ) log ( 2 ε − 1 ( L + 1 ) V 2 ) , V = ∏ l = 0 L + 1 ( p l + 1 ) , \log\mathcal{N}(\varepsilon,\mathcal{F}(L,p,s_n,\infty),\lVert\cdot\rVert_\infty)\le(s_n+1)\log\left(2\varepsilon^{-1}(L+1)V^2\right),\qquad V=\prod_{l=0}^{L+1}(p_l+1), log N ( ε , F ( L , p , s n , ∞ ) , ∥ ⋅ ∥ ∞ ) ≤ ( s n + 1 ) log ( 2 ε − 1 ( L + 1 ) V 2 ) , V = l = 0 ∏ L + 1 ( p l + 1 ) , for every ε > 0 \varepsilon>0 ε > 0 , where F ( L , p , s n , ∞ ) \mathcal{F}(L,p,s_n,\infty) F ( L , p , s n , ∞ ) is the class without the bound on ∥ f ∥ ∞ \lVert f\rVert_\infty ∥ f ∥ ∞ , and, after removing inactive nodes so that p l ≤ s n p_l\le s_n p l ≤ s n ,
log N ( 1 / ( 2 n ) , F n , ∥ ⋅ ∥ ∞ ) ≤ C S H n ϕ n L log 2 n . \log\mathcal{N}(1/(2n),\mathcal{F}_n,\lVert\cdot\rVert_\infty)\le C_{\mathrm{SH}}n\phi_nL\log^2 n. log N ( 1/ ( 2 n ) , F n , ∥ ⋅ ∥ ∞ ) ≤ C SH n ϕ n L log 2 n .
An internal ε \varepsilon ε -net (centers in F n \mathcal{F}_n F n ) is obtained from an external ε / 2 \varepsilon/2 ε /2 -net by replacing each center whose ball meets F n \mathcal{F}_n F n with a point of F n \mathcal{F}_n F n in that ball, so N n ( ε ) ≤ N ( ε / 2 , F n , ∥ ⋅ ∥ ∞ ) N_n(\varepsilon)\le\mathcal{N}(\varepsilon/2,\mathcal{F}_n,\lVert\cdot\rVert_\infty) N n ( ε ) ≤ N ( ε /2 , F n , ∥ ⋅ ∥ ∞ ) . Apply Theorem 1 with ε = 1 / n \varepsilon=1/n ε = 1/ n and with a fixed f ∗ ∈ F n f^*\in\mathcal{F}_n f ∗ ∈ F n such that ∥ f ∗ − f 0 ∥ ∞ 2 ≤ 2 C S H ϕ n \lVert f^*-f_0\rVert_\infty^2\le2C_{\mathrm{SH}}\phi_n ∥ f ∗ − f 0 ∥ ∞ 2 ≤ 2 C SH ϕ n , which exists by Lemma 12. Then c ˉ ∥ f ∗ − f 0 ∥ ∞ 2 ≤ 2 c ˉ C S H ϕ n \bar{c}\lVert f^*-f_0\rVert_\infty^2\le2\bar{c}C_{\mathrm{SH}}\phi_n c ˉ ∥ f ∗ − f 0 ∥ ∞ 2 ≤ 2 c ˉ C SH ϕ n and 2 log N n ( 1 / n ) / n ≤ 2 C S H ϕ n L log 2 n 2\log N_n(1/n)/n\le2C_{\mathrm{SH}}\phi_nL\log^2 n 2 log N n ( 1/ n ) / n ≤ 2 C SH ϕ n L log 2 n , while ε ( μ ˉ + r ) + 2 c 2 ε 2 ≤ ( μ ˉ + r + 2 c 2 ) / n \varepsilon(\bar{\mu}+r)+2c_2\varepsilon^2\le(\bar{\mu}+r+2c_2)/n ε ( μ ˉ + r ) + 2 c 2 ε 2 ≤ ( μ ˉ + r + 2 c 2 ) / n and ( 2 + 1 / λ 0 + ε / λ 1 ) ≤ 2 + 1 / λ 0 + 1 / λ 1 (2+1/\lambda_0+\varepsilon/\lambda_1)\le2+1/\lambda_0+1/\lambda_1 ( 2 + 1/ λ 0 + ε / λ 1 ) ≤ 2 + 1/ λ 0 + 1/ λ 1 . Since ϕ n ≥ n − 1 \phi_n\ge n^{-1} ϕ n ≥ n − 1 , all terms are bounded by a constant multiple of ϕ n L log 2 n + Δ n + log ( 1 / δ ) / n \phi_nL\log^2 n+\Delta_n+\log(1/\delta)/n ϕ n L log 2 n + Δ n + log ( 1/ δ ) / n , and dividing by c 1 c_1 c 1 gives (12).
Proofs for Section 5.4: Mixing and Out-of-Sample Risk
Recall from § 5.1 that β ( U , V ) = TV ( P ( U , V ) , P U ⊗ P V ) \beta(U,V)=\operatorname{TV}(P_{(U,V)},P_U\otimes P_V) β ( U , V ) = TV ( P ( U , V ) , P U ⊗ P V ) for random elements U , V U,V U , V defined on a common probability space, where P U P_U P U denotes the law of U U U ; for Polish spaces this is the absolute regularity coefficient between the σ \sigma σ -fields generated by U U U and V V V (Bradley, 2005). The coefficients β X ( a ) \beta_X(a) β X ( a ) of the covariate process are defined in (9) . A Markov kernel K K K from a measurable space Z \mathcal{Z} Z to a measurable space W \mathcal{W} W assigns to each z ∈ Z z \in\mathcal{Z} z ∈ Z a probability measure K ( z , ⋅ ) K(z,\cdot) K ( z , ⋅ ) on W \mathcal{W} W , measurably in z z z . For a probability measure π \pi π on Z \mathcal{Z} Z , π K = ∫ π ( d z ) K ( z , ⋅ ) \pi K = \int\pi(dz)K(z,\cdot) π K = ∫ π ( d z ) K ( z , ⋅ ) is a probability measure on W \mathcal{W} W and ( π ⊗ K ) ( d z , d w ) = π ( d z ) K ( z , d w ) (\pi\otimes K)(dz,dw) = \pi(dz)K(z,dw) ( π ⊗ K ) ( d z , d w ) = π ( d z ) K ( z , d w ) one on Z × W \mathcal{Z} \times\mathcal{W} Z × W ; K 1 K 2 K_1K_2 K 1 K 2 denotes the composition of two kernels and δ z \delta_z δ z the point mass at z z z .
Lemma 13 (Markov kernels contract total variation) Let K K K be a Markov kernel and π , π ′ \pi,\pi' π , π ′ probability measures. (a) TV ( π K , π ′ K ) ≤ TV ( π , π ′ ) \operatorname{TV}(\pi K,\pi'K) \le\operatorname{TV}(\pi,\pi') TV ( π K , π ′ K ) ≤ TV ( π , π ′ ) . (b) If K ( z , ⋅ ) ≥ ϵ 0 ν 0 ( ⋅ ) K(z,\cdot) \ge\epsilon_0\nu_0(\cdot) K ( z , ⋅ ) ≥ ϵ 0 ν 0 ( ⋅ ) for all z z z , some ϵ 0 ∈ ( 0 , 1 ] \epsilon_0 \in(0,1] ϵ 0 ∈ ( 0 , 1 ] and a probability measure ν 0 \nu_0 ν 0 , then TV ( π K , π ′ K ) ≤ ( 1 − ϵ 0 ) TV ( π , π ′ ) \operatorname{TV}(\pi K,\pi'K) \le(1-\epsilon_0)\operatorname{TV}(\pi,\pi') TV ( π K , π ′ K ) ≤ ( 1 − ϵ 0 ) TV ( π , π ′ ) . (c) For Markov kernels K 1 , K 2 K_1,K_2 K 1 , K 2 between the same spaces, TV ( π ⊗ K 1 , π ⊗ K 2 ) = ∫ TV ( K 1 ( z , ⋅ ) , K 2 ( z , ⋅ ) ) π ( d z ) \operatorname{TV}(\pi\otimes K_1,\pi\otimes K_2) = \int\operatorname{TV}(K_1(z,\cdot),K_2(z,\cdot))\pi(dz) TV ( π ⊗ K 1 , π ⊗ K 2 ) = ∫ TV ( K 1 ( z , ⋅ ) , K 2 ( z , ⋅ )) π ( d z ) .
Proof. (a) For measurable B B B , ( π − π ′ ) K ( B ) = ∫ K ( z , B ) ( π − π ′ ) ( d z ) (\pi-\pi')K(B) = \int K(z,B)(\pi-\pi')(dz) ( π − π ′ ) K ( B ) = ∫ K ( z , B ) ( π − π ′ ) ( d z ) with 0 ≤ K ( z , B ) ≤ 1 0 \le K(z,B) \le1 0 ≤ K ( z , B ) ≤ 1 , so ∣ ( π K − π ′ K ) ( B ) ∣ ≤ TV ( π , π ′ ) \lvert(\pi K-\pi'K)(B)\rvert\le\operatorname{TV}(\pi,\pi') ∣( π K − π ′ K ) ( B )∣ ≤ TV ( π , π ′ ) . (b) If ϵ 0 = 1 \epsilon_0=1 ϵ 0 = 1 then K ( z , ⋅ ) = ν 0 K(z,\cdot)=\nu_0 K ( z , ⋅ ) = ν 0 and the left side is zero. Otherwise K ~ = ( K − ϵ 0 ν 0 ) / ( 1 − ϵ 0 ) \widetilde{K}=(K-\epsilon_0\nu_0)/(1-\epsilon_0) K = ( K − ϵ 0 ν 0 ) / ( 1 − ϵ 0 ) is a Markov kernel and ( π − π ′ ) K = ( 1 − ϵ 0 ) ( π − π ′ ) K ~ (\pi-\pi')K=(1-\epsilon_0)(\pi-\pi')\widetilde{K} ( π − π ′ ) K = ( 1 − ϵ 0 ) ( π − π ′ ) K because π − π ′ \pi-\pi' π − π ′ has total mass zero; apply (a) to K ~ \widetilde{K} K . (c) With λ \lambda λ a measure dominating K 1 ( z , ⋅ ) K_1(z,\cdot) K 1 ( z , ⋅ ) and K 2 ( z , ⋅ ) K_2(z,\cdot) K 2 ( z , ⋅ ) for π \pi π -almost every z z z (counting measure in our application) and densities k 1 , k 2 k_1,k_2 k 1 , k 2 , both sides equal 1 2 ∬ ∣ k 1 ( z , w ) − k 2 ( z , w ) ∣ λ ( d w ) π ( d z ) \frac{1}{2}\iint\lvert k_1(z,w)-k_2(z,w)\rvert\lambda(dw)\,\pi(dz) 2 1 ∬ ∣ k 1 ( z , w ) − k 2 ( z , w )∣ λ ( d w ) π ( d z ) .
Proof of Proposition 3. Let Z u = ( Y u , … , Y u − m + 1 , U u + 1 ) ∈ Z = ( N 0 S ) m × U Z_u=(Y_u,\ldots,Y_{u-m+1},U_{u+1})\in\mathcal{Z}=(\mathbb{N}_0^S)^m\times\mathcal{U} Z u = ( Y u , … , Y u − m + 1 , U u + 1 ) ∈ Z = ( N 0 S ) m × U , the state of § 5.6 . Under Assumptions 1 and 4, ( Z u ) (Z_u) ( Z u ) is a (time-inhomogeneous) Markov chain: X u + 1 X_{u+1} X u + 1 is a function of ( Z u , u ) (Z_u,u) ( Z u , u ) , the law of Y u + 1 Y_{u+1} Y u + 1 given the past is the product measure ⨂ s = 1 S p f 0 ( X s , u + 1 ) \bigotimes_{s=1}^S p_{f_0}(X_{s,u+1}) ⨂ s = 1 S p f 0 ( X s , u + 1 ) , and U u + 2 U_{u+2} U u + 2 is independent of the past and of Y u + 1 Y_{u+1} Y u + 1 with law P U P_U P U . (Without innovations, U U U is a single point and Z \mathcal{Z} Z is countable.) Write K u , v K_{u,v} K u , v for the transition kernel from time u u u to time v ≥ u v\ge u v ≥ u , 0 0 0 for the element of ( N 0 S ) m (\mathbb{N}_0^S)^m ( N 0 S ) m in which all counts are zero, and ν 0 = δ 0 ⊗ P U \nu_0=\delta_0\otimes P_U ν 0 = δ 0 ⊗ P U . Since P ( NB ( μ , r ) = 0 ) = { r / ( r + μ ) } r \mathbb{P}(\operatorname{NB}(\mu,r)=0)=\left\{r/(r+\mu)\right\}^r P ( NB ( μ , r ) = 0 ) = { r / ( r + μ ) } r is decreasing in μ ≤ e F \mu\le e^F μ ≤ e F , the event A u = { Y u + 1 = ⋯ = Y u + m = 0 } A_u=\{Y_{u+1}=\cdots=Y_{u+m}=0\} A u = { Y u + 1 = ⋯ = Y u + m = 0 } satisfies, for every z z z and u u u ,
P ( A u ∣ Z u = z ) = ∏ k = 1 m P ( Y u + k = 0 ∣ Y u + k − 1 = 0 , … , Y u + 1 = 0 , Z u = z ) ≥ { r r + e F } r S m = ϵ 0 , \begin{aligned}
\mathbb{P}(A_u\mid Z_u=z)=\prod_{k=1}^{m}\mathbb{P}(Y_{u+k}=0\mid Y_{u+k-1}=0,\ldots,Y_{u+1}=0,Z_u=z) \\
&\ge\left\{\frac{r}{r+e^F}\right\}^{rSm}=\epsilon_0,
\end{aligned} P ( A u ∣ Z u = z ) = k = 1 ∏ m P ( Y u + k = 0 ∣ Y u + k − 1 = 0 , … , Y u + 1 = 0 , Z u = z ) ≥ { r + e F r } r S m = ϵ 0 ,
because each conditional probability is an average over the intermediate innovations of a product of S S S such zero probabilities. On A u A_u A u , Z u + m = ( 0 , U u + m + 1 ) Z_{u+m}=(0,U_{u+m+1}) Z u + m = ( 0 , U u + m + 1 ) , and U u + m + 1 U_{u+m+1} U u + m + 1 is independent of Z u Z_u Z u and of A u A_u A u with law P U P_U P U . Hence K u , u + m ( z , B ) ≥ P ( A u ∩ { Z u + m ∈ B } ∣ Z u = z ) ≥ ϵ 0 ν 0 ( B ) K_{u,u+m}(z,B)\ge\mathbb{P}(A_u\cap\{Z_{u+m}\in B\}\mid Z_u=z)\ge\epsilon_0\nu_0(B) K u , u + m ( z , B ) ≥ P ( A u ∩ { Z u + m ∈ B } ∣ Z u = z ) ≥ ϵ 0 ν 0 ( B ) for every measurable B ⊂ Z B\subset\mathcal{Z} B ⊂ Z , that is, K u , u + m ( z , ⋅ ) ≥ ϵ 0 ν 0 K_{u,u+m}(z,\cdot)\ge\epsilon_0\nu_0 K u , u + m ( z , ⋅ ) ≥ ϵ 0 ν 0 . Write a = k m + j a=km+j a = k m + j with integers k ≥ 0 k\ge0 k ≥ 0 and 0 ≤ j < m 0\le j<m 0 ≤ j < m , and factor K u , u + a = K u , u + m K u + m , u + 2 m ⋯ K u + ( k − 1 ) m , u + k m K u + k m , u + a K_{u,u+a}=K_{u,u+m}K_{u+m,u+2m}\cdots K_{u+(k-1)m,u+km}K_{u+km,u+a} K u , u + a = K u , u + m K u + m , u + 2 m ⋯ K u + ( k − 1 ) m , u + k m K u + k m , u + a . Lemma 13(a),(b), applied to the point masses δ z \delta_z δ z and δ z ′ \delta_{z'} δ z ′ , then gives
sup z , z ′ TV ( K u , u + a ( z , ⋅ ) , K u , u + a ( z ′ , ⋅ ) ) ≤ ( 1 − ϵ 0 ) k . \sup_{z,z'}\operatorname{TV}\bigl(K_{u,u+a}(z,\cdot),K_{u,u+a}(z',\cdot)\bigr)\le(1-\epsilon_0)^k. z , z ′ sup TV ( K u , u + a ( z , ⋅ ) , K u , u + a ( z ′ , ⋅ ) ) ≤ ( 1 − ϵ 0 ) k .
Fix t t t and an integer a ≥ 1 a\ge1 a ≥ 1 and let U = ( Z u ) u ≤ t U=(Z_u)_{u\le t} U = ( Z u ) u ≤ t , V = ( Z u ) u > t + a V=(Z_u)_{u>t+a} V = ( Z u ) u > t + a . Let u ˉ \bar{u} u ˉ and v ˉ \bar{v} v ˉ denote generic values of U U U and V V V , with coordinates z t z_t z t and z t + a z_{t+a} z t + a at times t t t and t + a t+a t + a . By the Markov property,
P ( U , V ) ( d u ˉ , d v ˉ ) = P U ( d u ˉ ) K t , t + a ( z t , d z t + a ) Q ( z t + a , d v ˉ ) , P_{(U,V)}(d\bar{u},d\bar{v})=P_U(d\bar{u})K_{t,t+a}(z_t,dz_{t+a})Q(z_{t+a},d\bar{v}), P ( U , V ) ( d u ˉ , d v ˉ ) = P U ( d u ˉ ) K t , t + a ( z t , d z t + a ) Q ( z t + a , d v ˉ ) ,
( P U ⊗ P V ) ( d u ˉ , d v ˉ ) = P U ( d u ˉ ) ν ( d z t + a ) Q ( z t + a , d v ˉ ) , (P_U\otimes P_V)(d\bar{u},d\bar{v})=P_U(d\bar{u})\nu(dz_{t+a})Q(z_{t+a},d\bar{v}), ( P U ⊗ P V ) ( d u ˉ , d v ˉ ) = P U ( d u ˉ ) ν ( d z t + a ) Q ( z t + a , d v ˉ ) ,
where Q Q Q is the conditional law of the future ( Z u ) u ≥ t + a (Z_u)_{u\ge t+a} ( Z u ) u ≥ t + a given Z t + a Z_{t+a} Z t + a and
ν = ∫ P Z t ( d z ′ ) K t , t + a ( z ′ , ⋅ ) \nu= \int P_{Z_t}(dz')\,K_{t,t+a}(z',\cdot) ν = ∫ P Z t ( d z ′ ) K t , t + a ( z ′ , ⋅ )
is the law of Z t + a Z_{t+a} Z t + a . By Lemma 13 (c) and (a),
β ( U , V ) = ∫ TV ( K t , t + a ( z t , ⋅ ) Q , ν Q ) P U ( d u ˉ ) ≤ ∫ TV ( K t , t + a ( z t , ⋅ ) , ν ) P U ( d u ˉ ) ≤ sup z , z ′ TV ( K t , t + a ( z , ⋅ ) , K t , t + a ( z ′ , ⋅ ) ) , \begin{aligned}
\beta(U,V)=\int\operatorname{TV}(K_{t,t+a}(z_t,\cdot)Q,\nu Q)P_U(d\bar{u})\le\int\operatorname{TV}(K_{t,t+a}(z_t,\cdot),\nu)P_U(d\bar{u}) \\
&\le\sup_{z,z'}\operatorname{TV}(K_{t,t+a}(z,\cdot),K_{t,t+a}(z',\cdot)),
\end{aligned} β ( U , V ) = ∫ TV ( K t , t + a ( z t , ⋅ ) Q , ν Q ) P U ( d u ˉ ) ≤ ∫ TV ( K t , t + a ( z t , ⋅ ) , ν ) P U ( d u ˉ ) ≤ z , z ′ sup TV ( K t , t + a ( z , ⋅ ) , K t , t + a ( z ′ , ⋅ )) ,
where the last step uses that ν \nu ν is a mixture of the measures K t , t + a ( z ′ , ⋅ ) K_{t,t+a}(z',\cdot) K t , t + a ( z ′ , ⋅ ) and that total variation is convex. Hence β { ( Z u ) u ≤ t , ( Z u ) u ≥ t + a } ≤ ( 1 − ϵ 0 ) ⌊ a / m ⌋ \beta\{(Z_u)_{u\le t},(Z_u)_{u\ge t+a}\}\le(1-\epsilon_0)^{\lfloor a/m\rfloor} β {( Z u ) u ≤ t , ( Z u ) u ≥ t + a } ≤ ( 1 − ϵ 0 ) ⌊ a / m ⌋ . Finally ( X u ) u ≤ t (X_u)_{u\le t} ( X u ) u ≤ t is a function of ( Z u ) u ≤ t − 1 (Z_u)_{u\le t-1} ( Z u ) u ≤ t − 1 and ( X u ) u ≥ t + a (X_u)_{u\ge t+a} ( X u ) u ≥ t + a a function of ( Z u ) u ≥ t + a − 1 (Z_u)_{u\ge t+a-1} ( Z u ) u ≥ t + a − 1 , and β \beta β does not increase under measurable maps, so β X ( a ) ≤ ( 1 − ϵ 0 ) ⌊ a / m ⌋ \beta_X(a)\le(1-\epsilon_0)^{\lfloor a/m\rfloor} β X ( a ) ≤ ( 1 − ϵ 0 ) ⌊ a / m ⌋ . When U \mathcal{U} U is uncountable, Lemma 13 (c) and the disintegrations above are used on the Polish space Z \mathcal{Z} Z , where regular conditional laws exist.
Lemma 14 (Independent blocks). Let B 1 , … , B N b B_1,\ldots,B_{N_b} B 1 , … , B N b be random elements such that, for k = 1 , … , N b − 1 k=1,\ldots,N_b-1 k = 1 , … , N b − 1 , the coefficient β { ( B 1 , … , B k ) , B k + 1 } \beta\{(B_1,\ldots,B_k),B_{k+1}\} β {( B 1 , … , B k ) , B k + 1 } is at most b b b . Then
TV ( P ( B 1 , … , B N b ) , ⨂ k = 1 N b P B k ) ≤ ( N b − 1 ) b . \operatorname{TV}\left(P_{(B_1,\ldots,B_{N_b})},\bigotimes_{k=1}^{N_b}P_{B_k}\right)\le(N_b-1)b. TV ( P ( B 1 , … , B N b ) , k = 1 ⨂ N b P B k ) ≤ ( N b − 1 ) b . Proof. By induction on N b N_b N b ; the case N b = 1 N_b=1 N b = 1 is trivial. Let N b ≥ 2 N_b\ge2 N b ≥ 2 . Write B 1 : k = ( B 1 , … , B k ) B_{1:k}=(B_1,\ldots,B_k) B 1 : k = ( B 1 , … , B k ) . By the triangle inequality,
TV ( P B 1 : N b , ⨂ k ≤ N b P B k ) ≤ TV ( P B 1 : N b , P B 1 : N b − 1 ⊗ P B N b ) \operatorname{TV}\left(P_{B_{1:N_b}},\bigotimes_{k\le N_b}P_{B_k}\right)\le\operatorname{TV}\left(P_{B_{1:N_b}},P_{B_{1:N_b-1}}\otimes P_{B_{N_b}}\right) TV ( P B 1 : N b , k ≤ N b ⨂ P B k ) ≤ TV ( P B 1 : N b , P B 1 : N b − 1 ⊗ P B N b ) + TV ( P B 1 : N b − 1 ⊗ P B N b , ⨂ k ≤ N b P B k ) . \quad+\operatorname{TV}\left(P_{B_{1:N_b-1}}\otimes P_{B_{N_b}},\bigotimes_{k\le N_b}P_{B_k}\right). + TV ( P B 1 : N b − 1 ⊗ P B N b , k ≤ N b ⨂ P B k ) . The first term is β ( B 1 : N b − 1 , B N b ) ≤ b \beta(B_{1:N_b-1},B_{N_b})\le b β ( B 1 : N b − 1 , B N b ) ≤ b . The second term equals TV ( P B 1 : N b − 1 , ⨂ k ≤ N b − 1 P B k ) \operatorname{TV}\left(P_{B_{1:N_b-1}},\bigotimes_{k\le N_b-1}P_{B_k}\right) TV ( P B 1 : N b − 1 , ⨂ k ≤ N b − 1 P B k ) , which is at most ( N b − 2 ) b (N_b-2)b ( N b − 2 ) b by the induction hypothesis.
Lemma 15 (From the trajectory to an independent copy). Let ( X t ) t = 1 T (X_t)_{t=1}^{T} ( X t ) t = 1 T have mixing coefficients β X ( ⋅ ) \beta_X(\cdot) β X ( ⋅ ) , let G \mathcal{G} G be a finite class of measurable functions with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] , and let 1 ≤ a ≤ T / 2 1\le a\le T/2 1 ≤ a ≤ T /2 be an integer and N b = ⌊ T / ( 2 a ) ⌋ N_b=\lfloor T/(2a)\rfloor N b = ⌊ T / ( 2 a )⌋ . Then, for every δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , with probability at least 1 − δ − 2 ( N b − 1 ) β X ( a ) 1-\delta-2(N_b-1)\beta_X(a) 1 − δ − 2 ( N b − 1 ) β X ( a ) , for all g ∈ G g\in\mathcal{G} g ∈ G ,
∑ t = 1 T E g ( X t ) ≤ 2 ∑ t = 1 T g ( X t ) + 16 3 a log 2 ∣ G ∣ δ + 2 a . \sum_{t=1}^{T}\mathbb{E}g(X_t)\le2\sum_{t=1}^{T}g(X_t)+\frac{16}{3}a\log\frac{2|\mathcal{G}|}{\delta}+2a. t = 1 ∑ T E g ( X t ) ≤ 2 t = 1 ∑ T g ( X t ) + 3 16 a log δ 2∣ G ∣ + 2 a .
Proof. For k = 1 , … , N b k = 1,\ldots,N_b k = 1 , … , N b let O k = { 2 ( k − 1 ) a + 1 , … , ( 2 k − 1 ) a } O_k = \{2(k-1)a+1,\ldots,(2k-1)a\} O k = { 2 ( k − 1 ) a + 1 , … , ( 2 k − 1 ) a } and E k = { ( 2 k − 1 ) a + 1 , … , 2 k a } E_k = \{(2k-1)a+1,\ldots,2ka\} E k = {( 2 k − 1 ) a + 1 , … , 2 k a } , write X O k = ( X t ) t ∈ O k X_{O_k} = (X_t)_{t\in O_k} X O k = ( X t ) t ∈ O k , and put U k = ∑ t ∈ O k g ( X t ) ∈ [ 0 , a ] U_k = \sum_{t\in O_k} g(X_t) \in[0,a] U k = ∑ t ∈ O k g ( X t ) ∈ [ 0 , a ] for a fixed g ∈ G g \in\mathcal{G} g ∈ G . Consecutive odd blocks are separated by a a a time points, so β { ( X O 1 , … , X O k ) , X O k + 1 } ≤ β X ( a ) \beta\{(X_{O_1},\ldots,X_{O_k}),X_{O_{k+1}}\} \leq\beta_X(a) β {( X O 1 , … , X O k ) , X O k + 1 } ≤ β X ( a ) and, by Lemma 14 , the probability of any event defined through ( X O k ) k ≤ N b (X_{O_k})_{k\leq N_b} ( X O k ) k ≤ N b differs by at most ( N b − 1 ) β X ( a ) (N_b-1)\beta_X(a) ( N b − 1 ) β X ( a ) from its probability P ~ \widetilde{P} P under independent blocks with the same marginal laws. Under P ~ \widetilde{P} P , the variables E U k − U k ≤ a \mathbb{E}U_k-U_k\leq a E U k − U k ≤ a are independent and centered with ∑ k Var ( U k ) ≤ ∑ k E U k 2 ≤ a ∑ k E U k \sum_k\operatorname{Var}(U_k)\leq\sum_k\mathbb{E}U_k^2\leq a\sum_k\mathbb{E}U_k ∑ k Var ( U k ) ≤ ∑ k E U k 2 ≤ a ∑ k E U k , so Bernstein’s inequality (Boucheron et al., 2013, Theorem 2.10) gives, with P ~ \widetilde{P} P -probability at least 1 − e − x 1-e^{-x} 1 − e − x ,
∑ k ( E U k − U k ) ≤ ( 2 a x ∑ k E U k ) 1 / 2 + a x 3 ≤ 1 2 ∑ k E U k + a x + a x 3 , \sum_k(\mathbb{E}U_k-U_k)\leq\left(2ax\sum_k\mathbb{E}U_k\right)^{1/2}+\frac{ax}{3}\leq\frac{1}{2}\sum_k\mathbb{E}U_k+ax+\frac{ax}{3}, k ∑ ( E U k − U k ) ≤ ( 2 a x k ∑ E U k ) 1/2 + 3 a x ≤ 2 1 k ∑ E U k + a x + 3 a x ,
using 2 u v ≤ u / 2 + v \sqrt{2uv}\leq u/2+v 2 uv ≤ u /2 + v . Rearranging, ∑ k E U k ≤ 2 ∑ k U k + 8 3 a x \sum_k\mathbb{E}U_k\leq2\sum_k U_k+\frac{8}{3}ax ∑ k E U k ≤ 2 ∑ k U k + 3 8 a x . The same holds for the even blocks. Taking x = log ( 2 ∣ G ∣ / δ ) x=\log(2|\mathcal{G}|/\delta) x = log ( 2∣ G ∣/ δ ) and a union bound over G \mathcal{G} G and over the two families of blocks, with probability at least 1 − δ − 2 ( N b − 1 ) β X ( a ) 1-\delta-2(N_b-1)\beta_X(a) 1 − δ − 2 ( N b − 1 ) β X ( a ) and for all g ∈ G g\in\mathcal{G} g ∈ G ,
∑ t ≤ 2 N b a E g ( X t ) ≤ 2 ∑ t ≤ 2 N b a g ( X t ) + 16 3 a x . \sum_{t\leq2N_ba}\mathbb{E}g(X_t)\leq2\sum_{t\leq2N_ba}g(X_t)+\frac{16}{3}ax. t ≤ 2 N b a ∑ E g ( X t ) ≤ 2 t ≤ 2 N b a ∑ g ( X t ) + 3 16 a x .
The at most 2 a 2a 2 a remaining indices contribute at most 2 a 2a 2 a to the left side.
Proof of Theorem 4. For a function f f f with ∥ f ∥ ∞ ≤ F \lVert f\rVert_\infty\leq F ∥ f ∥ ∞ ≤ F let
g f ( x ) = 1 S ∑ s = 1 S H 2 ( p f ( x s ) , p f 0 ( x s ) ) ∈ [ 0 , 1 ] , g_f(\mathbf{x})=\frac{1}{S}\sum_{s=1}^{S}H^2(p_f(x_s),p_{f_0}(x_s))\in[0,1], g f ( x ) = S 1 s = 1 ∑ S H 2 ( p f ( x s ) , p f 0 ( x s )) ∈ [ 0 , 1 ] ,
R n H ( f ) = 1 T ∑ t = 1 T g f ( X t ) , R H ( f ) = 1 T ∑ t = 1 T E g f ( X t ′ ) . R_n^H(f)=\frac{1}{T}\sum_{t=1}^{T}g_f(X_t),\qquad R^H(f)=\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}g_f(X'_t). R n H ( f ) = T 1 t = 1 ∑ T g f ( X t ) , R H ( f ) = T 1 t = 1 ∑ T E g f ( X t ′ ) .
Let f 1 , … , f N f_1,\ldots,f_N f 1 , … , f N be the net of the proof of Theorem 1 with ϵ = 1 / n \epsilon=1/n ϵ = 1/ n ; these are non-random functions. Apply Lemma 15 to G = { g f j } \mathcal{G}=\{g_{f_j}\} G = { g f j } with a = a T = ⌈ 2 c β − 1 log T ⌉ a=a_T=\lceil2c_\beta^{-1}\log T\rceil a = a T = ⌈ 2 c β − 1 log T ⌉ , for which 2 ( N b − 1 ) β X ( a ) ≤ ( T / a ) C β T − 2 ≤ C β / T 2(N_b-1)\beta_X(a)\leq(T/a)C_\beta T^{-2}\leq C_\beta/T 2 ( N b − 1 ) β X ( a ) ≤ ( T / a ) C β T − 2 ≤ C β / T ; this requires a T ≤ T / 2 a_T\leq T/2 a T ≤ T /2 , which holds for T T T larger than a constant depending on c β c_\beta c β . On the intersection of this event with the event of Theorem 1, which has probability at least 1 − 4 δ − C β / T 1-4\delta-C_\beta/T 1 − 4 δ − C β / T , let j j j satisfy ∥ f ^ − f j ∥ ∞ ≤ ϵ \lVert\widehat{f}-f_j\rVert_\infty\leq\epsilon ∥ f − f j ∥ ∞ ≤ ϵ . As in Step 5 of that proof, g f ^ ≤ 2 g f j + 2 c 2 ϵ 2 g_{\widehat{f}}\leq2g_{f_j}+2c_2\epsilon^2 g f ≤ 2 g f j + 2 c 2 ϵ 2 and g f j ≤ 2 g f ^ + 2 c 2 ϵ 2 g_{f_j}\leq2g_{\widehat{f}}+2c_2\epsilon^2 g f j ≤ 2 g f + 2 c 2 ϵ 2 pointwise, so
R H ( f ^ ) ≤ 2 R H ( f j ) + 2 c 2 ϵ 2 ≤ 4 R n H ( f j ) + 2 { 16 3 a T log 2 N δ + 2 a T } + 2 c 2 ϵ 2 R^H(\widehat{f})\leq2R^H(f_j)+2c_2\epsilon^2\leq4R_n^H(f_j)+2\left\{\frac{16}{3}a_T\log\frac{2N}{\delta}+2a_T\right\}+2c_2\epsilon^2 R H ( f ) ≤ 2 R H ( f j ) + 2 c 2 ϵ 2 ≤ 4 R n H ( f j ) + 2 { 3 16 a T log δ 2 N + 2 a T } + 2 c 2 ϵ 2
≤ 8 R n H ( f ^ ) + 10 c 2 ϵ 2 + S a T n { 32 3 log 2 N δ + 4 } . \leq8R_n^H(\widehat{f})+10c_2\epsilon^2+\frac{Sa_T}{n}\left\{\frac{32}{3}\log\frac{2N}{\delta}+4\right\}. ≤ 8 R n H ( f ) + 10 c 2 ϵ 2 + n S a T { 3 32 log δ 2 N + 4 } .
Here R H ( f ^ ) R^H(\widehat{f}) R H ( f ) denotes R H ( f ) R^H(f) R H ( f ) evaluated at f = f ^ f=\widehat{f} f = f , the copy ( X t ′ ) (X'_t) ( X t ′ ) being independent of the data. By Theorem 1 and Lemma 12 (as in the proof of Theorem 2), R n H ( f ^ ) ≤ C { ϕ n L log 2 n + Δ n + log ( 1 / δ ) / n } R_n^H(\widehat{f})\leq C\{\phi_nL\log^2n+\Delta_n+\log(1/\delta)/n\} R n H ( f ) ≤ C { ϕ n L log 2 n + Δ n + log ( 1/ δ ) / n } and log N ≤ C S H n ϕ n L log 2 n \log N\leq C_S H_n\phi_nL\log^2n log N ≤ C S H n ϕ n L log 2 n . Since a T ≤ C log n a_T\leq C\log n a T ≤ C log n , L ≍ log n L\asymp\log n L ≍ log n and S S S is fixed, R H ( f ^ ) ≤ C { ϕ n log 4 n + Δ n + log n log ( 1 / δ ) / n } R^H(\widehat{f})\leq C\{\phi_n\log^4n+\Delta_n+\log n\log(1/\delta)/n\} R H ( f ) ≤ C { ϕ n log 4 n + Δ n + log n log ( 1/ δ ) / n } , and R ( f ^ ) ≤ R H ( f ^ ) / c 1 R(\widehat{f})\leq R^H(\widehat{f})/c_1 R ( f ) ≤ R H ( f ) / c 1 by Lemma 9. For the bound in expectation take δ = 1 / n \delta=1/n δ = 1/ n and use R ( f ^ ) ≤ 4 F 2 R(\widehat{f})\leq4F^2 R ( f ) ≤ 4 F 2 on the exceptional event, whose probability is at most 4 / n + C β S / n 4/n+C_\beta S/n 4/ n + C β S / n .
Proof of Theorem 5
Fix S ≥ 1 S \ge1 S ≥ 1 . It suffices to consider the sub-model of P n ( G β , d ∗ ( K ) ) \mathcal{P}_n(\mathcal{G}_{\beta,d^*}(K)) P n ( G β , d ∗ ( K )) in which the covariates X s , t X_{s,t} X s , t , s ≤ S s \le S s ≤ S , t ≤ T t \le T t ≤ T , are independent and uniform on [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d , the covariates of week t t t are revealed at the start of that week (take I t − 1 = σ ( X u , u ≤ t ; Y u , u ≤ t − 1 ) \mathcal{I}_{t-1} = \sigma(X_u, u \le t; Y_u, u \le t-1) I t − 1 = σ ( X u , u ≤ t ; Y u , u ≤ t − 1 ) ), and Y s , t ∣ I t − 1 ∼ NB ( e f 0 ( X s , t ) , r ) Y_{s,t} \mid\mathcal{I}_{t-1} \sim\operatorname{NB}(e^{f_0(X_{s,t})}, r) Y s , t ∣ I t − 1 ∼ NB ( e f 0 ( X s , t ) , r ) independently. It satisfies Assumptions 1, 2 and 5 with β X ≡ 0 \beta_X \equiv0 β X ≡ 0 , and also Assumption 4 with innovations U t = X t U_t = X_t U t = X t on U = [ 0 , 1 ] d S \mathcal{U} = [0,1]^{dS} U = [ 0 , 1 ] d S ; for it R ( f ) = ∥ f − f 0 ∥ L 2 R(f) = \lVert f-f_0\rVert_{L^2} R ( f ) = ∥ f − f 0 ∥ L 2 , and the n = S T n = ST n = S T pairs ( X s , t , Y s , t ) (X_{s,t},Y_{s,t}) ( X s , t , Y s , t ) are independent and identically distributed. Index them by i = 1 , … , n i = 1,\ldots,n i = 1 , … , n as in Appendix B.
Hypotheses. Let ψ : R d ∗ → R \psi: \mathbb{R}^{d^*} \to\mathbb{R} ψ : R d ∗ → R be infinitely differentiable, supported in [ 0 , 1 ] d ∗ [0,1]^{d^*} [ 0 , 1 ] d ∗ and not identically zero, and let C ψ C_\psi C ψ be its β \beta β -Hölder norm, that is, the left side of the inequality that defines C β ( D , K ) C^{\beta}(D,K) C β ( D , K ) in Section 2.3 with g = ψ g = \psi g = ψ . For an integer M ≥ 1 M \ge1 M ≥ 1 and j ∈ { 0 , … , M − 1 } d ∗ j \in\{0,\ldots,M-1\}^{d^*} j ∈ { 0 , … , M − 1 } d ∗ let ψ j ( u ) = κ M − β ψ ( M u − j ) \psi_j(u) = \kappa M^{-\beta}\psi(Mu-j) ψ j ( u ) = κ M − β ψ ( M u − j ) with κ = K / ( 2 C ψ ) \kappa= K/(2C_\psi) κ = K / ( 2 C ψ ) , and for w ∈ { 0 , 1 } M d ∗ w \in\{0,1\}^{M^{d^*}} w ∈ { 0 , 1 } M d ∗ let
f w ( x ) = ∑ j w j ψ j ( x 1 , … , x d ∗ ) . f_w(x) = \sum_j w_j\psi_j(x_1,\ldots,x_{d^*}). f w ( x ) = j ∑ w j ψ j ( x 1 , … , x d ∗ ) .
The functions ψ j \psi_j ψ j have supports with disjoint interiors, and ∂ α ψ j ( u ) = κ M ∣ α ∣ − β ( ∂ α ψ ) ( M u − j ) \partial^\alpha\psi_j(u) = \kappa M^{|\alpha|-\beta}(\partial^\alpha\psi)(Mu-j) ∂ α ψ j ( u ) = κ M ∣ α ∣ − β ( ∂ α ψ ) ( M u − j ) , so each ψ j \psi_j ψ j has β \beta β -Hölder norm at most κ C ψ \kappa C_\psi κ C ψ . For u , v u,v u , v in different cubes, let u ˉ \bar{u} u ˉ and v ˉ \bar{v} v ˉ be the points where the segment from u u u to v v v leaves the cube of u u u and enters the cube of v v v ; all derivatives of f w f_w f w vanish there, so for ∣ α ∣ = ⌊ β ⌋ |\alpha| = \lfloor\beta\rfloor ∣ α ∣ = ⌊ β ⌋ ,
∣ ∂ α f w ( u ) − ∂ α f w ( v ) ∣ ≤ ∣ ∂ α f w ( u ) − ∂ α f w ( u ˉ ) ∣ + ∣ ∂ α f w ( v ˉ ) − ∂ α f w ( v ) ∣ ≤ 2 κ C ψ ∣ u − v ∣ ∞ β − ⌊ β ⌋ , |\partial^\alpha f_w(u)-\partial^\alpha f_w(v)| \le|\partial^\alpha f_w(u)-\partial^\alpha f_w(\bar{u})| + |\partial^\alpha f_w(\bar{v})-\partial^\alpha f_w(v)| \le2\kappa C_\psi|u-v|_\infty^{\beta-\lfloor\beta\rfloor}, ∣ ∂ α f w ( u ) − ∂ α f w ( v ) ∣ ≤ ∣ ∂ α f w ( u ) − ∂ α f w ( u ˉ ) ∣ + ∣ ∂ α f w ( v ˉ ) − ∂ α f w ( v ) ∣ ≤ 2 κ C ψ ∣ u − v ∣ ∞ β − ⌊ β ⌋ ,
because ∣ u − u ˉ ∣ ∞ |u-\bar{u}|_\infty ∣ u − u ˉ ∣ ∞ and ∣ v ˉ − v ∣ ∞ |\bar{v}-v|_\infty ∣ v ˉ − v ∣ ∞ are at most ∣ u − v ∣ ∞ |u-v|_\infty ∣ u − v ∣ ∞ . Hence f w f_w f w has β \beta β -Hölder norm at most 2 κ C ψ = K 2\kappa C_\psi= K 2 κ C ψ = K , that is, f w ∈ G β , d ∗ ( K ) f_w \in\mathcal{G}_{\beta,d^*}(K) f w ∈ G β , d ∗ ( K ) , and ∥ f w ∥ ∞ ≤ K ≤ F \lVert f_w\rVert_\infty\le K \le F ∥ f w ∥ ∞ ≤ K ≤ F . Moreover
∥ f w − f w ′ ∥ L 2 2 = κ 2 ∥ ψ ∥ L 2 2 M − 2 β − d ∗ ρ H ( w , w ′ ) , (28) \lVert f_w-f_{w'}\rVert_{L^2}^2 = \kappa^2\lVert\psi\rVert_{L^2}^2 M^{-2\beta-d^*}\rho_H(w,w'), \tag*{(28)} ∥ f w − f w ′ ∥ L 2 2 = κ 2 ∥ ψ ∥ L 2 2 M − 2 β − d ∗ ρ H ( w , w ′ ) , (28)
where ρ H ( w , w ′ ) = ∑ j 1 { w j ≠ w j ′ } \rho_H(w,w') = \sum_j 1\{w_j \ne w'_j\} ρ H ( w , w ′ ) = ∑ j 1 { w j = w j ′ } is the Hamming distance and ∥ ⋅ ∥ L 2 \lVert\cdot\rVert_{L^2} ∥ ⋅ ∥ L 2 the norm of L 2 [ 0 , 1 ] d L^2[0,1]^d L 2 [ 0 , 1 ] d or L 2 [ 0 , 1 ] d ∗ L^2[0,1]^{d^*} L 2 [ 0 , 1 ] d ∗ , as appropriate.
Packing and Kullback–Leibler bound. By the Varshamov–Gilbert bound (Tsybakov, 2009, Lemma 2.9), if M d ∗ ≥ 8 M^{d^*} \ge8 M d ∗ ≥ 8 there are w ( 0 ) = 0 , w ( 1 ) , … , w ( N ) w^{(0)} = 0,w^{(1)},\ldots,w^{(N)} w ( 0 ) = 0 , w ( 1 ) , … , w ( N ) with N ≥ 2 M d ∗ / 8 N \ge2^{M^{d^*}/8} N ≥ 2 M d ∗ /8 and ρ H ( w ( j ) , w ( k ) ) ≥ M d ∗ / 8 \rho_H(w^{(j)},w^{(k)}) \ge M^{d^*}/8 ρ H ( w ( j ) , w ( k ) ) ≥ M d ∗ /8 for j ≠ k j \ne k j = k . By (27), ∥ f w ( j ) − f w ( k ) ∥ L 2 ≥ 2 s M \lVert f_{w^{(j)}}-f_{w^{(k)}}\rVert_{L^2} \ge2s_M ∥ f w ( j ) − f w ( k ) ∥ L 2 ≥ 2 s M with s M = κ ∥ ψ ∥ L 2 M − β / ( 4 2 ) s_M = \kappa\lVert\psi\rVert_{L^2}M^{-\beta}/(4\sqrt{2}) s M = κ ∥ ψ ∥ L 2 M − β / ( 4 2 ) . Let P j P_j P j be the law of ( X i , Y i ) i ≤ n (X_i,Y_i)_{i\le n} ( X i , Y i ) i ≤ n under f w ( j ) f_{w^{(j)}} f w ( j ) . By the chain rule for the Kullback–Leibler divergence, Lemma 9 and (27),
KL ( P j ∥ P 0 ) = n E KL ( p f w ( j ) ( X 1 ) ∥ p f w ( 0 ) ( X 1 ) ) ≤ n V max 2 ∥ f w ( j ) ∥ L 2 2 ≤ n V max 2 κ 2 ∥ ψ ∥ L 2 2 M − 2 β . \operatorname{KL}(P_j\Vert P_0) = n\mathbb{E}\operatorname{KL}(p_{f_{w^{(j)}}}(X_1)\Vert p_{f_{w^{(0)}}}(X_1)) \le\frac{nV_{\max}}{2}\lVert f_{w^{(j)}}\rVert_{L^2}^2 \le\frac{nV_{\max}}{2}\kappa^2\lVert\psi\rVert_{L^2}^2M^{-2\beta}. KL ( P j ∥ P 0 ) = n E KL ( p f w ( j ) ( X 1 ) ∥ p f w ( 0 ) ( X 1 )) ≤ 2 n V m a x ∥ f w ( j ) ∥ L 2 2 ≤ 2 n V m a x κ 2 ∥ ψ ∥ L 2 2 M − 2 β .
Fix α 0 = 1 / 16 \alpha_0 = 1/16 α 0 = 1/16 and choose M = ⌈ ( c ∗ n ) 1 / ( 2 β + d ∗ ) ⌉ M = \lceil(c_*n)^{1/(2\beta+d^*)}\rceil M = ⌈( c ∗ n ) 1/ ( 2 β + d ∗ ) ⌉ with c ∗ = 4 V max κ 2 ∥ ψ ∥ L 2 2 / ( α 0 log 2 ) c_* = 4V_{\max}\kappa^2\lVert\psi\rVert_{L^2}^2/(\alpha_0\log2) c ∗ = 4 V m a x κ 2 ∥ ψ ∥ L 2 2 / ( α 0 log 2 ) . Then M 2 β + d ∗ ≥ c ∗ n M^{2\beta+d^*} \ge c_*n M 2 β + d ∗ ≥ c ∗ n gives KL ( P j ∥ P 0 ) ≤ α 0 ( log 2 ) M d ∗ / 8 ≤ α 0 log N \operatorname{KL}(P_j\Vert P_0) \le\alpha_0(\log2)M^{d^*}/8 \le\alpha_0\log N KL ( P j ∥ P 0 ) ≤ α 0 ( log 2 ) M d ∗ /8 ≤ α 0 log N for every j j j .
Conclusion. By the Theorem 2.5 of Tsybakov (2009), for n n n large enough that M d ∗ ≥ 8 M^{d^*} \ge8 M d ∗ ≥ 8 ,
inf f ^ max 0 ≤ j ≤ N P j ( ∥ f ^ − f w ( j ) ∥ L 2 ≥ s M ) ≥ N 1 + N ( 1 − 2 α 0 − 2 α 0 log N ) ≥ c 0 > 0 , \inf_{\hat{f}}\max_{0\le j\le N}P_j(\lVert\hat{f}-f_{w^{(j)}}\rVert_{L^2}\ge s_M) \ge\frac{\sqrt{N}}{1+\sqrt{N}}\left(1-2\alpha_0-\sqrt{\frac{2\alpha_0}{\log N}}\right) \ge c_0>0, f ^ inf 0 ≤ j ≤ N max P j (∥ f ^ − f w ( j ) ∥ L 2 ≥ s M ) ≥ 1 + N N ( 1 − 2 α 0 − log N 2 α 0 ) ≥ c 0 > 0 ,
so inf f ^ sup P E P R ( f ^ ) ≥ c 0 s M 2 \inf_{\hat{f}}\sup_P\mathbb{E}_P R(\hat{f}) \ge c_0s_M^2 inf f ^ sup P E P R ( f ^ ) ≥ c 0 s M 2 . Since M ≤ 2 ( c ∗ n ) 1 / ( 2 β + d ∗ ) M \le2(c_*n)^{1/(2\beta+d^*)} M ≤ 2 ( c ∗ n ) 1/ ( 2 β + d ∗ ) for large n n n , s M 2 ≥ c n − 2 β / ( 2 β + d ∗ ) s_M^2 \ge cn^{-2\beta/(2\beta+d^*)} s M 2 ≥ c n − 2 β / ( 2 β + d ∗ ) with c > 0 c>0 c > 0 depending only on ( β , d ∗ , K , F , r ) (\beta,d^*,K,F,r) ( β , d ∗ , K , F , r ) . For the finitely many remaining T T T , note that the minimax risk is non-increasing in T T T , in this nested independent-regression subexperiment, because an estimator may ignore observations; it is therefore bounded below by its (positive) value at the smallest T T T covered above, and the bound holds for all n = S T n = ST n = S T after decreasing c c c . The constant does not depend on S S S , because only the number n n n of independent pairs enters the argument.
Proof of Theorem 6
(a) By Lemma 9, TV ( p f ( x ) , p f 0 ( x ) ) ≤ 2 H ( p f ( x ) , p f 0 ( x ) ) ≤ ( 2 c 2 ) 1 / 2 ∣ f ( x ) − f 0 ( x ) ∣ \operatorname{TV}(p_{f(x)},p_{f_0(x)}) \le\sqrt{2H(p_{f(x)},p_{f_0(x)})} \le(2c_2)^{1/2}|f(x)-f_0(x)| TV ( p f ( x ) , p f 0 ( x ) ) ≤ 2 H ( p f ( x ) , p f 0 ( x ) ) ≤ ( 2 c 2 ) 1/2 ∣ f ( x ) − f 0 ( x ) ∣ , and ∣ P f ( C ∣ x ) − P f 0 ( C ∣ x ) ∣ ≤ TV ( p f ( x ) , p f 0 ( x ) ) |P_f(C \mid x)-P_{f_0}(C \mid x)| \le\operatorname{TV}(p_{f(x)},p_{f_0(x)}) ∣ P f ( C ∣ x ) − P f 0 ( C ∣ x ) ∣ ≤ TV ( p f ( x ) , p f 0 ( x ) ) for every set C C C , which gives (14). Averaging over the independent copy and using the Cauchy–Schwarz inequality, n − 1 ∑ s , t E ∣ f ( X s , t ′ ) − f 0 ( X s , t ′ ) ∣ ≤ R ( f ) 1 / 2 n^{-1}\sum_{s,t}\mathbb{E}|f(X'_{s,t})-f_0(X'_{s,t})| \le R(f)^{1/2} n − 1 ∑ s , t E ∣ f ( X s , t ′ ) − f 0 ( X s , t ′ ) ∣ ≤ R ( f ) 1/2 , which gives the averaged statement. For the prediction risk, since E [ Y ∣ X = x ] = e f 0 ( x ) \mathbb{E}[Y \mid X=x]=e^{f_0(x)} E [ Y ∣ X = x ] = e f 0 ( x ) under Assumption 1, E [ ( Y − e f ( x ) ) 2 ∣ X = x ] − E [ ( Y − e f 0 ( x ) ) 2 ∣ X = x ] = ( e f ( x ) − e f 0 ( x ) ) 2 ≤ e 2 F { f ( x ) − f 0 ( x ) } 2 \mathbb{E}[(Y-e^{f(x)})^2 \mid X=x]-\mathbb{E}[(Y-e^{f_0(x)})^2 \mid X=x]=(e^{f(x)}-e^{f_0(x)})^2 \le e^{2F}\{f(x)-f_0(x)\}^2 E [( Y − e f ( x ) ) 2 ∣ X = x ] − E [( Y − e f 0 ( x ) ) 2 ∣ X = x ] = ( e f ( x ) − e f 0 ( x ) ) 2 ≤ e 2 F { f ( x ) − f 0 ( x ) } 2 by the mean value theorem.
(b) Recall that P f ( h ) ( ⋅ ∣ z , t ) P_f^{(h)}(\mathord{\cdot}\mid z,t) P f ( h ) ( ⋅ ∣ z , t ) is the law of ( Y t + 1 , … , Y t + h ) (Y_{t+1},\ldots,Y_{t+h}) ( Y t + 1 , … , Y t + h ) when Z t = z Z_t=z Z t = z and the counts evolve according to the model with log-mean function f f f ; under both laws the innovations U t + 2 , … , U t + h U_{t+2},\ldots,U_{t+h} U t + 2 , … , U t + h are drawn independently from P U P_U P U . Let W k = ( Y t + k , U t + k + 1 ) W_k=(Y_{t+k},U_{t+k+1}) W k = ( Y t + k , U t + k + 1 ) , so that ( W 1 , … , W h ) (W_1,\ldots,W_h) ( W 1 , … , W h ) determines ( Y t + 1 , … , Y t + h ) (Y_{t+1},\ldots,Y_{t+h}) ( Y t + 1 , … , Y t + h ) and X t + k X_{t+k} X t + k is a function of ( z , W 1 , … , W k − 1 ) (z,W_1,\ldots,W_{k-1}) ( z , W 1 , … , W k − 1 ) . By the chain rule for the Kullback–Leibler divergence (Cover and Thomas, 2006, Theorem 2.5.3), applied to the laws of ( W 1 , … , W h ) (W_1,\ldots,W_h) ( W 1 , … , W h ) under f 0 f_0 f 0 and under f f f , and because the conditional law of W k W_k W k given ( W 1 , … , W k − 1 ) (W_1,\ldots,W_{k-1}) ( W 1 , … , W k − 1 ) is ⨂ s p f 0 ( X s , t + k ) ⊗ P U \bigotimes_s p_{f_0(X_{s,t+k})}\otimes P_U ⨂ s p f 0 ( X s , t + k ) ⊗ P U under f 0 f_0 f 0 and ⨂ s p f ( X s , t + k ) ⊗ P U \bigotimes_s p_{f(X_{s,t+k})}\otimes P_U ⨂ s p f ( X s , t + k ) ⊗ P U under f f f ,
KL ( P f 0 ( h ) ( ⋅ ∣ z , t ) ∥ P f ( h ) ( ⋅ ∣ z , t ) ) ≤ ∑ k = 1 h E f 0 [ ∑ s = 1 S KL ( p f 0 ( X s , t + k ) ∥ p f ( X s , t + k ) ) ∣ Z t = z ] . \operatorname{KL}\left(P_{f_0}^{(h)}(\mathord{\cdot}\mid z,t)\mathbin{\|}P_f^{(h)}(\mathord{\cdot}\mid z,t)\right)\le\sum_{k=1}^{h}\mathbb{E}_{f_0}\left[\sum_{s=1}^{S}\operatorname{KL}\left(p_{f_0(X_{s,t+k})}\mathbin{\|}p_{f(X_{s,t+k})}\right)\mid Z_t=z\right]. KL ( P f 0 ( h ) ( ⋅ ∣ z , t ) ∥ P f ( h ) ( ⋅ ∣ z , t ) ) ≤ k = 1 ∑ h E f 0 [ s = 1 ∑ S KL ( p f 0 ( X s , t + k ) ∥ p f ( X s , t + k ) ) ∣ Z t = z ] .
where the inequality, an equality for the laws of ( W k ) (W_k) ( W k ) , accounts for the marginalization to the counts, and the divergence between product measures is the sum of the divergences of the factors. By Lemma 9 each term is at most 1 2 V max { f ( X s , t + k ) − f 0 ( X s , t + k ) } 2 \frac{1}{2}V_{\max}\{f(X_{s,t+k})-f_0(X_{s,t+k})\}^2 2 1 V m a x { f ( X s , t + k ) − f 0 ( X s , t + k ) } 2 , and Pinsker’s inequality TV ≤ ( KL / 2 ) 1 / 2 \operatorname{TV}\le(\operatorname{KL}/2)^{1/2} TV ≤ ( KL /2 ) 1/2 (Ts!y!bakov, 2009, Lemma 2.5) gives (15). For the average, take z = Z t ′ z=Z'_t z = Z t ′ . The copy follows the model with f 0 f_0 f 0 , so E [ E f 0 [ ⋅ ∣ Z t = Z t ′ ] ] \mathbb{E}[\mathbb{E}_{f_0}[\mathord{\cdot}\mid Z_t=Z'_t]] E [ E f 0 [ ⋅ ∣ Z t = Z t ′ ]] is the unconditional expectation under the copy, and Jensen’s inequality for the concave square root gives
1 T − h ∑ t = 1 T − h E TV h ( Z t ′ , t ) ≤ { V max 4 ( T − h ) ∑ t = 1 T − h ∑ k = 1 h ∑ s = 1 S E [ { f ( X s , t + k ′ ) − f 0 ( X s , t + k ′ ) } 2 ] } 1 / 2 ≤ { V max h n R ( f ) 4 ( T − h ) } 1 / 2 , \begin{aligned}
\frac{1}{T-h}\sum_{t=1}^{T-h}\mathbb{E}\operatorname{TV}_h(Z'_t,t)\le\left\{\frac{V_{\max}}{4(T-h)}\sum_{t=1}^{T-h}\sum_{k=1}^{h}\sum_{s=1}^{S}\mathbb{E}\left[\{f(X'_{s,t+k})-f_0(X'_{s,t+k})\}^2\right]\right\}^{1/2} \\
&\le\left\{\frac{V_{\max}hnR(f)}{4(T-h)}\right\}^{1/2},
\end{aligned} T − h 1 t = 1 ∑ T − h E TV h ( Z t ′ , t ) ≤ { 4 ( T − h ) V m a x t = 1 ∑ T − h k = 1 ∑ h s = 1 ∑ S E [ { f ( X s , t + k ′ ) − f 0 ( X s , t + k ′ ) } 2 ] } 1/2 ≤ { 4 ( T − h ) V m a x hn R ( f ) } 1/2 ,
because every u ∈ { 1 , … , T } u\in\{1,\ldots,T\} u ∈ { 1 , … , T } equals t + k t+k t + k for at most h h h pairs ( t , k ) (t,k) ( t , k ) ; this is (16), since n = S T n=ST n = S T . Marginalizing to any coordinate or function of ( Y t + 1 , … , Y t + h ) (Y_{t+1},\ldots,Y_{t+h}) ( Y t + 1 , … , Y t + h ) does not increase total variation, which gives the statement for prediction regions.
(c) By the Dvoretsky–Kiefer–Wolfowitz inequality with the constant of Massart (1990), P { sup q ∣ G B ( q ) − G ( q ) ∣ > ε } ≤ 2 e − 2 B ε 2 P\{\sup_q|G_B(q)-G(q)|>\varepsilon\}\le2e^{-2B\varepsilon^2} P { sup q ∣ G B ( q ) − G ( q ) ∣ > ε } ≤ 2 e − 2 B ε 2 , so with probability at least 1 − η 1-\eta 1 − η we have sup q ∣ G B ( q ) − G ( q ) ∣ ≤ ε B = { log ( 2 / η ) / ( 2 B ) } 1 / 2 \sup_q|G_B(q)-G(q)|\le\varepsilon_B=\{\log(2/\eta)/(2B)\}^{1/2} sup q ∣ G B ( q ) − G ( q ) ∣ ≤ ε B = { log ( 2/ η ) / ( 2 B ) } 1/2 , and then also sup q ∣ G B ( q − ) − G ( q − ) ∣ ≤ ε B \sup_q|G_B(q-)-G(q-)|\le\varepsilon_B sup q ∣ G B ( q − ) − G ( q − ) ∣ ≤ ε B by taking limits. On this event the fitted-model probability of [ q ^ − , q ^ + ] [\hat q_-,\hat q_+] [ q ^ − , q ^ + ] is
G ( q ^ + ) − G ( q ^ − ) ≥ G B ( q ^ + ) − G B ( q ^ − ) − 2 ε B ≥ 1 − α − 2 ε B − 2 ε B . G(\hat q_+)-G(\hat q_-)\ge G_B(\hat q_+)-G_B(\hat q_-)-2\varepsilon_B\ge1-\alpha-2\varepsilon_B-2\varepsilon_B. G ( q ^ + ) − G ( q ^ − ) ≥ G B ( q ^ + ) − G B ( q ^ − ) − 2 ε B ≥ 1 − α − 2 ε B − 2 ε B .
For q ^ ± = G B − 1 ( p ± ) = inf { q : G B ( q ) ≥ p ± } \hat{q}_{\pm}=G_{B}^{-1}(p_{\pm})=\inf\{q:G_{B}(q)\ge p_{\pm}\} q ^ ± = G B − 1 ( p ± ) = inf { q : G B ( q ) ≥ p ± } with p + = 1 − α / 2 p_{+}=1-\alpha/2 p + = 1 − α /2 and p − = α / 2 p_{-}=\alpha/2 p − = α /2 , G B ( q ^ + ) ≥ p + G_{B}(\hat{q}_{+})\ge p_{+} G B ( q ^ + ) ≥ p + by right continuity and G B ( q ^ − − ) < p − G_{B}(\hat{q}_{-}-)<p_{-} G B ( q ^ − − ) < p − because G B ( q ) < p − G_{B}(q)<p_{-} G B ( q ) < p − for q < q ^ − q<\hat{q}_{-} q < q ^ − ; thus ϰ B = 0 \varkappa_{B}=0 ϰ B = 0 . Let Y ( 1 ) ≤ ⋯ ≤ Y ( B ) Y_{(1)}\le\cdots\le Y_{(B)} Y ( 1 ) ≤ ⋯ ≤ Y ( B ) be the ordered draws, which are integers. Linear interpolation returns, for level p p p , a value between Y ( j ) Y_{(j)} Y ( j ) and Y ( j + 1 ) Y_{(j+1)} Y ( j + 1 ) with j = ⌊ ( B − 1 ) p ⌋ + 1 j=\lfloor(B-1)p\rfloor+1 j = ⌊( B − 1 ) p ⌋ + 1 (equal to Y ( j ) Y_{(j)} Y ( j ) when ( B − 1 ) p (B-1)p ( B − 1 ) p is an integer), and rounding to an integer keeps it in [ Y ( j ) , Y ( j + 1 ) ] [Y_{(j)},Y_{(j+1)}] [ Y ( j ) , Y ( j + 1 ) ] . Hence G B ( q ^ + ) ≥ j / B > ( B − 1 ) p + / B ≥ p + − 1 / B G_{B}(\hat{q}_{+})\ge j/B>(B-1)p_{+}/B\ge p_{+}-1/B G B ( q ^ + ) ≥ j / B > ( B − 1 ) p + / B ≥ p + − 1/ B , and G B ( q ^ − − ) ≤ j / B ≤ { ( B − 1 ) p − + 1 } / B ≤ p − + 1 / B G_{B}(\hat{q}_{-}-)\le j/B\le\{(B-1)p_{-}+1\}/B\le p_{-}+1/B G B ( q ^ − − ) ≤ j / B ≤ {( B − 1 ) p − + 1 } / B ≤ p − + 1/ B , because at most j j j of the draws are smaller than Y ( j + 1 ) Y_{(j+1)} Y ( j + 1 ) ; thus ϰ B = 1 / B \varkappa_{B}=1/B ϰ B = 1/ B .
Proof of part (d). Fix the fitted model and origin. Enlarge the probability space by drawing independent terminal counts W b W_b W b conditionally on the independent histories V b V_b V b , with conditional distribution functions K b K_b K b . Then W 1 , … , W B W_1,\ldots,W_B W 1 , … , W B are independent with common distribution function G G G , and G ~ B \widetilde{G}_B G B is the conditional expectation of their empirical distribution function G B G_B G B given V 1 , … , V B V_1,\ldots,V_B V 1 , … , V B . Conditional Jensen’s inequality for the supremum norm gives
E ∥ G ~ B − G ∥ ∞ ≤ E ∥ G B − G ∥ ∞ ≤ ∫ 0 ∞ 2 e − 2 B u 2 d u = π 2 B . \mathbb{E}\|\widetilde{G}_B-G\|_{\infty}\le\mathbb{E}\|G_B-G\|_{\infty}\le\int_{0}^{\infty}2e^{-2Bu^2}\,du=\sqrt{\frac{\pi}{2B}}. E ∥ G B − G ∥ ∞ ≤ E ∥ G B − G ∥ ∞ ≤ ∫ 0 ∞ 2 e − 2 B u 2 d u = 2 B π .
where the second inequality integrates the Dvoretzky–Kiefer–Wolfowitz tail bound; using the untruncated upper bound only enlarges the integral. Replacing one history changes every value of G ~ B \widetilde{G}_B G B by at most 1 / B 1/B 1/ B , and therefore changes ∥ G ~ B − G ∥ ∞ \|\widetilde{G}_B-G\|_{\infty} ∥ G B − G ∥ ∞ by at most 1 / B 1/B 1/ B . The bounded-differences inequality (Boucheron et al., 2013, Chapter 6) yields
P { ∥ G ~ B − G ∥ ∞ > E ∥ G ~ B − G ∥ ∞ + u } ≤ e − 2 B u 2 . \mathbb{P}\{\|\widetilde{G}_B-G\|_{\infty}>\mathbb{E}\|\widetilde{G}_B-G\|_{\infty}+u\}\le e^{-2Bu^2}. P { ∥ G B − G ∥ ∞ > E ∥ G B − G ∥ ∞ + u } ≤ e − 2 B u 2 .
Set u = { log ( 1 / η ) / ( 2 B ) } 1 / 2 u=\{\log(1/\eta)/(2B)\}^{1/2} u = { log ( 1/ η ) / ( 2 B ) } 1/2 and apply the endpoint argument of (c), including left limits. This proves (d). These statements are for one fixed origin, site and horizon; simultaneous guarantees require allocating the failure probability across the requested intervals. At horizon one each K b = G K_b=G K b = G , so the error is identically zero.
Proof of Theorem 7
Throughout, Θ = [ − F , F ] × [ r l o , r h i ] \Theta=[-F,F]\times[r_{\mathrm{lo}},r_{\mathrm{hi}}] Θ = [ − F , F ] × [ r lo , r hi ] , ϑ = ( f , r ) ∈ Θ \vartheta=(f,r)\in\Theta ϑ = ( f , r ) ∈ Θ is a pair of a log-mean value and a size, p ϑ = p f , r p_{\vartheta}=p_{f,r} p ϑ = p f , r is the NB ( e f , r ) \operatorname{NB}(e^f,r) NB ( e f , r ) mass function and ∣ ⋅ ∣ |\cdot| ∣ ⋅ ∣ is the Euclidean norm on R 2 \mathbb{R}^{2} R 2 . The constants are
κ = a 0 + a 1 e F , a 1 = 1 4 + 1 4 r l o + 1 r l o 2 , a 0 = r h i 4 + e F 4 r l o + 2 r l o + 1 + e F r l o 2 , \kappa=a_0+a_1e^F,\qquad a_1=\frac{1}{4}+\frac{1}{4r_{\mathrm{lo}}}+\frac{1}{r_{\mathrm{lo}}^2},\qquad a_0=\frac{r_{\mathrm{hi}}}{4}+\frac{e^F}{4r_{\mathrm{lo}}}+\frac{2}{r_{\mathrm{lo}}}+\frac{1+e^F}{r_{\mathrm{lo}}^2}, κ = a 0 + a 1 e F , a 1 = 4 1 + 4 r lo 1 + r lo 2 1 , a 0 = 4 r hi + 4 r lo e F + r lo 2 + r lo 2 1 + e F ,
b 1 = 1 + 1 r l o , b 0 = r h i + e F r l o , b_1=1+\frac{1}{r_{\mathrm{lo}}},\qquad b_0=r_{\mathrm{hi}}+\frac{e^F}{r_{\mathrm{lo}}}, b 1 = 1 + r lo 1 , b 0 = r hi + r lo e F ,
c f = e − 2 F 8 m 2 , c r = [ 2 r h i 2 e 2 F { ( 2 m 4 ) 1 / 2 + 2 e F ( 1 + r l o − 1 ) ( 2 m 2 ) 1 / 2 } ] − 2 , c_f=\frac{e^{-2F}}{8m_2},\qquad c_r=\left[2r_{\mathrm{hi}}^2e^{2F}\{(2m_4)^{1/2}+2e^F(1+r_{\mathrm{lo}}^{-1})(2m_2)^{1/2}\}\right]^{-2}, c f = 8 m 2 e − 2 F , c r = [ 2 r hi 2 e 2 F {( 2 m 4 ) 1/2 + 2 e F ( 1 + r lo − 1 ) ( 2 m 2 ) 1/2 } ] − 2 ,
m 2 = e F + e 2 F ( 1 + r l o − 1 ) , m 4 = e 4 F ( 1 + 3 r l o − 1 ) 3 + 4 e 3 F ( 1 + 2 r l o − 1 ) 2 + 2 e 2 F ( 1 + r l o − 1 ) , (29) m_2=e^F+e^{2F}(1+r_{\mathrm{lo}}^{-1}),\qquad m_4=e^{4F}(1+3r_{\mathrm{lo}}^{-1})^3+4e^{3F}(1+2r_{\mathrm{lo}}^{-1})^2+2e^{2F}(1+r_{\mathrm{lo}}^{-1}), \tag*{(29)} m 2 = e F + e 2 F ( 1 + r lo − 1 ) , m 4 = e 4 F ( 1 + 3 r lo − 1 ) 3 + 4 e 3 F ( 1 + 2 r lo − 1 ) 2 + 2 e 2 F ( 1 + r lo − 1 ) , (29)
κ γ = κ max ( 1 , r h i 2 ) , c γ = c r r l o 2 , ρ = r h i r l o , c 0 = max ( r h i , e F ) , \kappa_{\gamma}=\kappa\max(1,r_{\mathrm{hi}}^2),\qquad c_{\gamma}=c_rr_{\mathrm{lo}}^2,\qquad\rho=\frac{r_{\mathrm{hi}}}{r_{\mathrm{lo}}},\qquad c_0=\max(r_{\mathrm{hi}},e^F), κ γ = κ max ( 1 , r hi 2 ) , c γ = c r r lo 2 , ρ = r lo r hi , c 0 = max ( r hi , e F ) ,
s 0 = 1 2 log ( 1 + r l o 2 e F ) , μ ˉ γ = r l o log 2 2 s 0 , M 0 = 4 s 0 2 e 2 s 0 c 0 2 2 r l o , (30) s_0=\frac{1}{2}\log\left(1+\frac{r_{\mathrm{lo}}}{2e^F}\right),\qquad\bar{\mu}_{\gamma}=\frac{r_{\mathrm{lo}}\log2}{2s_0},\qquad M_0=\frac{4}{s_0^2}e^{2s_0c_0}2^{2r_{\mathrm{lo}}}, \tag*{(30)} s 0 = 2 1 log ( 1 + 2 e F r lo ) , μ ˉ γ = 2 s 0 r lo log 2 , M 0 = s 0 2 4 e 2 s 0 c 0 2 2 r lo , (30)
c ˉ γ = κ γ + 2 ρ 2 M 0 , λ γ = min { 1 , s 0 2 ρ a max } , a max = max ( 2 F , γ h i − γ l o ) . \bar{c}_{\gamma}=\kappa_{\gamma}+2\rho^2M_0,\qquad\lambda_{\gamma}=\min\left\{1,\frac{s_0}{2\rho a_{\max}}\right\},\qquad a_{\max}=\max(2F,\gamma_{\mathrm{hi}}-\gamma_{\mathrm{lo}}). c ˉ γ = κ γ + 2 ρ 2 M 0 , λ γ = min { 1 , 2 ρ a m a x s 0 } , a m a x = max ( 2 F , γ hi − γ lo ) .
Here Θ = [ − F , F ] × [ r l o , r h i ] \Theta=[-F,F]\times[r_{\mathrm{lo}},r_{\mathrm{hi}}] Θ = [ − F , F ] × [ r lo , r hi ] with r l o = e γ l o r_{\mathrm{lo}}=e^{\gamma_{\mathrm{lo}}} r lo = e γ lo and r h i = e γ h i r_{\mathrm{hi}}=e^{\gamma_{\mathrm{hi}}} r hi = e γ hi .
Lemma 16 (The two-parameter family) For ϑ = ( f , r ) \vartheta=(f,r) ϑ = ( f , r ) and ϑ ′ = ( f ′ , r ′ ) \vartheta'=(f',r') ϑ ′ = ( f ′ , r ′ ) in Θ \Theta Θ and y ∈ N 0 y\in\mathbb{N}_0 y ∈ N 0 :
(a) ∣ log p ϑ ( y ) − log p ϑ ′ ( y ) ∣ ≤ ( y + r h i ) ∣ f − f ′ ∣ + ( y + e F ) r l o − 1 ∣ r − r ′ ∣ \left|\log p_{\vartheta}(y)-\log p_{\vartheta'}(y)\right|\leq(y+r_{\mathrm{hi}})|f-f'|+(y+e^F)r_{\mathrm{lo}}^{-1}|r-r'| ∣ log p ϑ ( y ) − log p ϑ ′ ( y ) ∣ ≤ ( y + r hi ) ∣ f − f ′ ∣ + ( y + e F ) r lo − 1 ∣ r − r ′ ∣ ;
(b) KL ( p ϑ ∥ p ϑ ′ ) ≤ 1 2 κ ∣ ϑ − ϑ ′ ∣ 2 \operatorname{KL}(p_{\vartheta}\|p_{\vartheta'})\leq\frac{1}{2}\kappa|\vartheta-\vartheta'|^2 KL ( p ϑ ∥ p ϑ ′ ) ≤ 2 1 κ ∣ ϑ − ϑ ′ ∣ 2 , hence H 2 ( p ϑ , p ϑ ′ ) ≤ 1 4 κ ∣ ϑ − ϑ ′ ∣ 2 H^2(p_{\vartheta},p_{\vartheta'})\leq\frac{1}{4}\kappa|\vartheta-\vartheta'|^2 H 2 ( p ϑ , p ϑ ′ ) ≤ 4 1 κ ∣ ϑ − ϑ ′ ∣ 2 and TV ( p ϑ , p ϑ ′ ) ≤ 1 2 κ 1 / 2 ∣ ϑ − ϑ ′ ∣ \operatorname{TV}(p_{\vartheta},p_{\vartheta'})\leq\frac{1}{2}\kappa^{1/2}|\vartheta-\vartheta'| TV ( p ϑ , p ϑ ′ ) ≤ 2 1 κ 1/2 ∣ ϑ − ϑ ′ ∣ ;
(c) c f ( f − f ′ ) 2 + c r ( r − r ′ ) 2 ≤ 2 H 2 ( p ϑ , p ϑ ′ ) c_f(f-f')^2+c_r(r-r')^2\leq2H^2(p_{\vartheta},p_{\vartheta'}) c f ( f − f ′ ) 2 + c r ( r − r ′ ) 2 ≤ 2 H 2 ( p ϑ , p ϑ ′ ) .
Proof Write μ = e f \mu=e^f μ = e f and ψ \psi ψ for the digamma function, and recall ψ ( y + r ) − ψ ( r ) = ∑ j = 0 y − 1 ( r + j ) − 1 ∈ [ 0 , y / r ] \psi(y+r)-\psi(r)=\sum_{j=0}^{y-1}(r+j)^{-1}\in[0,y/r] ψ ( y + r ) − ψ ( r ) = ∑ j = 0 y − 1 ( r + j ) − 1 ∈ [ 0 , y / r ] and 0 ≤ ψ ′ ( r ) − ψ ′ ( y + r ) ≤ ψ ′ ( r ) ≤ 1 / r + 1 / r 2 0\leq\psi'(r)-\psi'(y+r)\leq\psi'(r)\leq1/r+1/r^2 0 ≤ ψ ′ ( r ) − ψ ′ ( y + r ) ≤ ψ ′ ( r ) ≤ 1/ r + 1/ r 2 . Differentiating log p f , r ( y ) = log Γ ( y + r ) − log Γ ( r ) − log y ! + r log r + y f − ( y + r ) log ( r + μ ) \log p_{f,r}(y)=\log\Gamma(y+r)-\log\Gamma(r)-\log y!+r\log r+yf-(y+r)\log(r+\mu) log p f , r ( y ) = log Γ ( y + r ) − log Γ ( r ) − log y ! + r log r + y f − ( y + r ) log ( r + μ ) ,
∂ f log p = ( y − μ ) r r + μ , ∂ r log p = ψ ( y + r ) − ψ ( r ) + log r r + μ + μ − y r + μ , \partial_f\log p=\frac{(y-\mu)r}{r+\mu},\qquad\partial_r\log p=\psi(y+r)-\psi(r)+\log\frac{r}{r+\mu}+\frac{\mu-y}{r+\mu}, ∂ f log p = r + μ ( y − μ ) r , ∂ r log p = ψ ( y + r ) − ψ ( r ) + log r + μ r + r + μ μ − y ,
− ∂ f 2 log p = r μ ( y + r ) ( r + μ ) 2 , ∂ f ∂ r log p = ( y − μ ) μ ( r + μ ) 2 , -\partial_f^2\log p=\frac{r\mu(y+r)}{(r+\mu)^2},\qquad\partial_f\partial_r\log p=\frac{(y-\mu)\mu}{(r+\mu)^2}, − ∂ f 2 log p = ( r + μ ) 2 r μ ( y + r ) , ∂ f ∂ r log p = ( r + μ ) 2 ( y − μ ) μ ,
− ∂ r 2 log p = ψ ′ ( r ) − ψ ′ ( y + r ) − μ r ( r + μ ) + μ − y ( r + μ ) 2 . -\partial_r^2\log p=\psi'(r)-\psi'(y+r)-\frac{\mu}{r(r+\mu)}+\frac{\mu-y}{(r+\mu)^2}. − ∂ r 2 log p = ψ ′ ( r ) − ψ ′ ( y + r ) − r ( r + μ ) μ + ( r + μ ) 2 μ − y .
(a) ∣ ∂ f log p ∣ ≤ y + r ≤ y + r h i |\partial_f\log p|\leq y+r\leq y+r_{\mathrm{hi}} ∣ ∂ f log p ∣ ≤ y + r ≤ y + r hi , and since log { r / ( r + μ ) } ∈ [ − μ / r , 0 ] \log\{r/(r+\mu)\}\in[-\mu/r,0] log { r / ( r + μ )} ∈ [ − μ / r , 0 ] and ( μ − y ) / ( r + μ ) ∈ [ − y / r , μ / r ] (\mu-y)/(r+\mu)\in[-y/r,\mu/r] ( μ − y ) / ( r + μ ) ∈ [ − y / r , μ / r ] , ∣ ∂ r log p ∣ ≤ ( y + μ ) / r ≤ ( y + e F ) / r l o |\partial_r\log p|\leq(y+\mu)/r\leq(y+e^F)/r_{\mathrm{lo}} ∣ ∂ r log p ∣ ≤ ( y + μ ) / r ≤ ( y + e F ) / r lo on Θ \Theta Θ . The mean value theorem along the segment from ϑ ′ \vartheta' ϑ ′ to ϑ \vartheta ϑ , which lies in the convex set Θ \Theta Θ , gives (a).
(b) Fix ϑ \vartheta ϑ and let g ( ϑ ′ ) = KL ( p ϑ ∥ p ϑ ′ ) = E ϑ { log p ϑ ( Y ) − log p ϑ ′ ( Y ) } g(\vartheta')=\operatorname{KL}(p_{\vartheta}\|p_{\vartheta'})=\mathbb{E}_{\vartheta}\{\log p_{\vartheta}(Y)-\log p_{\vartheta'}(Y)\} g ( ϑ ′ ) = KL ( p ϑ ∥ p ϑ ′ ) = E ϑ { log p ϑ ( Y ) − log p ϑ ′ ( Y )} , where E ϑ \mathbb{E}_{\vartheta} E ϑ is the expectation under p ϑ p_{\vartheta} p ϑ . All moments of Y Y Y are finite, so differentiation under the expectation is allowed; g ( ϑ ) = 0 g(\vartheta)=0 g ( ϑ ) = 0 , ∇ g ( ϑ ) = 0 \nabla g(\vartheta)=0 ∇ g ( ϑ ) = 0 and ∇ 2 g ( ϑ ′ ′ ) = E ϑ { − ∇ 2 log p ϑ ′ ′ ( Y ) } \nabla^2g(\vartheta'')=\mathbb{E}_{\vartheta}\{-\nabla^2\log p_{\vartheta''}(Y)\} ∇ 2 g ( ϑ ′′ ) = E ϑ { − ∇ 2 log p ϑ ′′ ( Y )} . By Taylor’s theorem, g ( ϑ ′ ) ≤ 1 2 sup ϑ ′ ′ ∈ Θ v T ∇ 2 g ( ϑ ′ ′ ) v g(\vartheta')\leq\frac{1}{2}\sup_{\vartheta''\in\Theta}v^\mathsf{T}\nabla^2g(\vartheta'')v g ( ϑ ′ ) ≤ 2 1 sup ϑ ′′ ∈ Θ v T ∇ 2 g ( ϑ ′′ ) v with v = ϑ ′ − ϑ v=\vartheta'-\vartheta v = ϑ ′ − ϑ . For a symmetric 2 × 2 2\times2 2 × 2 matrix with entries A , B , C A,B,C A , B , C , v T ( A B B C ) v ≤ ( ∣ A ∣ + ∣ B ∣ + ∣ C ∣ ) ∣ v ∣ 2 v^\mathsf{T}\begin{pmatrix}A&B\\B&C\end{pmatrix}v\leq(|A|+|B|+|C|)|v|^2 v T ( A B B C ) v ≤ ( ∣ A ∣ + ∣ B ∣ + ∣ C ∣ ) ∣ v ∣ 2 . With μ ϑ = E ϑ Y ≤ e F \mu_{\vartheta}=\mathbb{E}_{\vartheta}Y\leq e^F μ ϑ = E ϑ Y ≤ e F and the bounds r μ / ( r + μ ) 2 ≤ 1 / 4 r\mu/(r+\mu)^2\leq1/4 r μ / ( r + μ ) 2 ≤ 1/4 , μ / ( r + μ ) 2 ≤ 1 / ( 4 r ) \mu/(r+\mu)^2\leq1/(4r) μ / ( r + μ ) 2 ≤ 1/ ( 4 r ) and μ / { r ( r + μ ) } ≤ 1 / r \mu/\{r(r+\mu)\}\leq1/r μ / { r ( r + μ )} ≤ 1/ r , the entries of E ϑ { − ∇ 2 log p ϑ ′ ′ ( Y ) } \mathbb{E}_{\vartheta}\{-\nabla^2\log p_{\vartheta''}(Y)\} E ϑ { − ∇ 2 log p ϑ ′′ ( Y )} satisfy
∣ A ∣ ≤ μ ϑ + r h i 4 , ∣ B ∣ ≤ μ ϑ + e F 4 r l o , ∣ C ∣ ≤ 1 r l o + 1 r l o 2 + 1 r l o + e F + μ ϑ r l o 2 , |A|\leq\frac{\mu_{\vartheta}+r_{\mathrm{hi}}}{4},\qquad|B|\leq\frac{\mu_{\vartheta}+e^F}{4r_{\mathrm{lo}}},\qquad|C|\leq\frac{1}{r_{\mathrm{lo}}}+\frac{1}{r_{\mathrm{lo}}^2}+\frac{1}{r_{\mathrm{lo}}}+\frac{e^F+\mu_{\vartheta}}{r_{\mathrm{lo}}^2}, ∣ A ∣ ≤ 4 μ ϑ + r hi , ∣ B ∣ ≤ 4 r lo μ ϑ + e F , ∣ C ∣ ≤ r lo 1 + r lo 2 1 + r lo 1 + r lo 2 e F + μ ϑ ,
so ∣ A ∣ + ∣ B ∣ + ∣ C ∣ ≤ a 0 + a 1 μ ϑ ≤ κ |A|+|B|+|C|\leq a_0+a_1\mu_{\vartheta}\leq\kappa ∣ A ∣ + ∣ B ∣ + ∣ C ∣ ≤ a 0 + a 1 μ ϑ ≤ κ . This gives the bound on KL. The bound on H 2 H^2 H 2 follows from KL ≥ − 2 log ( 1 − H 2 ) ≥ 2 H 2 \operatorname{KL}\geq-2\log(1-H^2)\geq2H^2 KL ≥ − 2 log ( 1 − H 2 ) ≥ 2 H 2 , which is Jensen’s inequality for E ϑ log ( p ϑ ′ / p ϑ ) 1 / 2 \mathbb{E}_{\vartheta}\log(p_{\vartheta'}/p_{\vartheta})^{1/2} E ϑ log ( p ϑ ′ / p ϑ ) 1/2 , and the bound on TV from Pinsker’s inequality.
(c) For a function g g g on N 0 \mathbb{N}_0 N 0 and mass functions p , q p,q p , q , the Cauchy–Schwarz inequality and ( p + q ) 2 ≤ 2 ( p + q ) (\sqrt p+\sqrt q)^2\leq2(p+q) ( p + q ) 2 ≤ 2 ( p + q ) give, with the argument y y y omitted,
∣ ∑ y g ( p − q ) ∣ = ∣ ∑ y g ( p − q ) ( p + q ) ∣ ≤ 2 H ( p , q ) { ∑ y g 2 ( p + q ) } 1 / 2 . \left|\sum_y g(p-q)\right|=\left|\sum_y g(\sqrt p-\sqrt q)(\sqrt p+\sqrt q)\right|\leq2H(p,q)\left\{\sum_y g^2(p+q)\right\}^{1/2}. y ∑ g ( p − q ) = y ∑ g ( p − q ) ( p + q ) ≤ 2 H ( p , q ) { y ∑ g 2 ( p + q ) } 1/2 .
The factorial moments of NB ( μ , r ) \operatorname{NB}(\mu,r) NB ( μ , r ) are E { Y ( Y − 1 ) ⋯ ( Y − k + 1 ) } = μ k ∏ j = 1 k − 1 ( 1 + j / r ) \mathbb{E}\{Y(Y-1)\cdots(Y-k+1)\}=\mu^k\prod_{j=1}^{k-1}(1+j/r) E { Y ( Y − 1 ) ⋯ ( Y − k + 1 )} = μ k ∏ j = 1 k − 1 ( 1 + j / r ) , and y 2 = y ( y − 1 ) + y y^2=y(y-1)+y y 2 = y ( y − 1 ) + y and y 2 ( y − 1 ) 2 = y ( y − 1 ) ( y − 2 ) ( y − 3 ) + 4 y ( y − 1 ) ( y − 2 ) + 2 y ( y − 1 ) y^2(y-1)^2=y(y-1)(y-2)(y-3)+4y(y-1)(y-2)+2y(y-1) y 2 ( y − 1 ) 2 = y ( y − 1 ) ( y − 2 ) ( y − 3 ) + 4 y ( y − 1 ) ( y − 2 ) + 2 y ( y − 1 ) , so E ϑ Y 2 ≤ m 2 \mathbb{E}_{\vartheta}Y^2\leq m_2 E ϑ Y 2 ≤ m 2 and E ϑ { Y ( Y − 1 ) } 2 ≤ m 4 \mathbb{E}_{\vartheta}\{Y(Y-1)\}^2\leq m_4 E ϑ { Y ( Y − 1 ) } 2 ≤ m 4 on Θ \Theta Θ . With g ( y ) = y g(y)=y g ( y ) = y this gives ∣ μ − μ ′ ∣ ≤ 2 H ( 2 m 2 ) 1 / 2 |\mu-\mu'|\leq2H(2m_2)^{1/2} ∣ μ − μ ′ ∣ ≤ 2 H ( 2 m 2 ) 1/2 , where μ ′ = e f ′ \mu' = e^{f'} μ ′ = e f ′ and H = H ( p ϑ , p ϑ ′ ) H = H(p_{\vartheta},p_{\vartheta'}) H = H ( p ϑ , p ϑ ′ ) ; since ∣ μ − μ ′ ∣ ≥ e − F ∣ f − f ′ ∣ |\mu-\mu'| \ge e^{-F}|f-f'| ∣ μ − μ ′ ∣ ≥ e − F ∣ f − f ′ ∣ , H 2 ≥ c F ( f − f ′ ) 2 H^2 \ge c_F(f-f')^2 H 2 ≥ c F ( f − f ′ ) 2 . With g ( y ) = y ( y − 1 ) g(y)=y(y-1) g ( y ) = y ( y − 1 ) , ∣ μ 2 ( 1 + 1 / r ) − μ ′ 2 ( 1 + 1 / r ′ ) ∣ ≤ 2 H ( 2 m 4 ) 1 / 2 |\mu^2(1+1/r)-\mu'^2(1+1/r')| \le2H(2m_4)^{1/2} ∣ μ 2 ( 1 + 1/ r ) − μ ′2 ( 1 + 1/ r ′ ) ∣ ≤ 2 H ( 2 m 4 ) 1/2 , and
μ ′ 2 ∣ 1 r − 1 r ′ ∣ ≤ ∣ μ 2 ( 1 + r − 1 ) − μ ′ 2 ( 1 + r ′ − 1 ) ∣ + ( 1 + r l o − 1 ) ∣ μ − μ ′ ∣ ( μ + μ ′ ) . \mu'^2\left|\frac{1}{r}-\frac{1}{r'}\right| \le\left|\mu^2(1+r^{-1})-\mu'^2(1+r'^{-1})\right|+(1+r_{\mathrm{lo}}^{-1})|\mu-\mu'|(\mu+\mu'). μ ′2 r 1 − r ′ 1 ≤ μ 2 ( 1 + r − 1 ) − μ ′2 ( 1 + r ′ − 1 ) + ( 1 + r lo − 1 ) ∣ μ − μ ′ ∣ ( μ + μ ′ ) .
Using μ ′ 2 ≥ e − 2 F \mu'^2 \ge e^{-2F} μ ′2 ≥ e − 2 F , r r ′ ≤ r h i 2 rr' \le r_{\mathrm{hi}}^2 r r ′ ≤ r hi 2 and μ + μ ′ ≤ 2 e F \mu+\mu' \le2e^F μ + μ ′ ≤ 2 e F , ∣ r − r ′ ∣ ≤ 2 r h i 2 e 2 F H { ( 2 m 4 ) 1 / 2 + 2 e F ( 1 + r l o − 1 ) ( 2 m 2 ) 1 / 2 } |r-r'| \le2r_{\mathrm{hi}}^2e^{2F}H\{(2m_4)^{1/2}+2e^F(1+r_{\mathrm{lo}}^{-1})(2m_2)^{1/2}\} ∣ r − r ′ ∣ ≤ 2 r hi 2 e 2 F H {( 2 m 4 ) 1/2 + 2 e F ( 1 + r lo − 1 ) ( 2 m 2 ) 1/2 } , that is, H 2 ≥ c r ( r − r ′ ) 2 H^2 \ge c_r(r-r')^2 H 2 ≥ c r ( r − r ′ ) 2 . Adding the two lower bounds gives (c).
Lemma 17 (Log-size parametrization and moments). For ( f , γ ) (f,\gamma) ( f , γ ) and ( f ′ , γ ′ ) (f',\gamma') ( f ′ , γ ′ ) in [ − F , F ] × [ γ l o , γ h i ] [-F,F]\times[\gamma_{\mathrm{lo}},\gamma_{\mathrm{hi}}] [ − F , F ] × [ γ lo , γ hi ] , write p = p f , e γ p=p_{f,e^\gamma} p = p f , e γ , p ′ = p f ′ , e γ ′ p'=p_{f',e^{\gamma'}} p ′ = p f ′ , e γ ′ and Δ = max ( ∣ f − f ′ ∣ , ∣ γ − γ ′ ∣ ) \Delta=\max(|f-f'|,|\gamma-\gamma'|) Δ = max ( ∣ f − f ′ ∣ , ∣ γ − γ ′ ∣ ) . Then
(a) ∣ log p ( y ) − log p ′ ( y ) ∣ ≤ ρ ( y + c 0 ) ( ∣ f − f ′ ∣ + ∣ γ − γ ′ ∣ ) ≤ 2 ρ ( y + c 0 ) Δ |\log p(y)-\log p'(y)|\le\rho(y+c_0)(|f-f'|+|\gamma-\gamma'|)\le2\rho(y+c_0)\Delta ∣ log p ( y ) − log p ′ ( y ) ∣ ≤ ρ ( y + c 0 ) ( ∣ f − f ′ ∣ + ∣ γ − γ ′ ∣ ) ≤ 2 ρ ( y + c 0 ) Δ for y ∈ N 0 y\in\mathbb{N}_0 y ∈ N 0 ;
(b) KL ( p ∥ p ′ ) ≤ 1 2 κ γ { ( f − f ′ ) 2 + ( γ − γ ′ ) 2 } \operatorname{KL}(p\mathbin\Vert p')\le\frac{1}{2}\kappa_\gamma\{(f-f')^2+(\gamma-\gamma')^2\} KL ( p ∥ p ′ ) ≤ 2 1 κ γ {( f − f ′ ) 2 + ( γ − γ ′ ) 2 } and H 2 ( p , p ′ ) ≤ 1 4 κ γ { ( f − f ′ ) 2 + ( γ − γ ′ ) 2 } H^2(p,p')\le\frac{1}{4}\kappa_\gamma\{(f-f')^2+(\gamma-\gamma')^2\} H 2 ( p , p ′ ) ≤ 4 1 κ γ {( f − f ′ ) 2 + ( γ − γ ′ ) 2 } ;
(c) c f ( f − f ′ ) 2 + c γ ( γ − γ ′ ) 2 ≤ 2 H 2 ( p , p ′ ) c_f(f-f')^2+c_\gamma(\gamma-\gamma')^2\le2H^2(p,p') c f ( f − f ′ ) 2 + c γ ( γ − γ ′ ) 2 ≤ 2 H 2 ( p , p ′ ) ;
(d) if Y ∼ NB ( μ , r ) Y\sim\operatorname{NB}(\mu,r) Y ∼ NB ( μ , r ) with μ ≤ e F \mu\le e^F μ ≤ e F and r ∈ [ r l o , r h i ] r\in[r_{\mathrm{lo}},r_{\mathrm{hi}}] r ∈ [ r lo , r hi ] , then E e 2 s 0 Y ≤ 2 r l o \mathbb{E}e^{2s_0Y}\le2^{r_{\mathrm{lo}}} E e 2 s 0 Y ≤ 2 r lo .
Proof. For r = e γ r=e^\gamma r = e γ and r ′ = e γ ′ r'=e^{\gamma'} r ′ = e γ ′ in [ r l o , r h i ] [r_{\mathrm{lo}},r_{\mathrm{hi}}] [ r lo , r hi ] , the mean value theorem gives r l o ∣ γ − γ ′ ∣ ≤ ∣ r − r ′ ∣ ≤ r h i ∣ γ − γ ′ ∣ r_{\mathrm{lo}}|\gamma-\gamma'|\le|r-r'|\le r_{\mathrm{hi}}|\gamma-\gamma'| r lo ∣ γ − γ ′ ∣ ≤ ∣ r − r ′ ∣ ≤ r hi ∣ γ − γ ′ ∣ . Part (a) follows from Lemma 16(a), because y + r h i ≤ ρ ( y + c 0 ) y+r_{\mathrm{hi}}\le\rho(y+c_0) y + r hi ≤ ρ ( y + c 0 ) and ( y + e F ) r h i / r l o ≤ ρ ( y + c 0 ) (y+e^F)r_{\mathrm{hi}}/r_{\mathrm{lo}}\le\rho(y+c_0) ( y + e F ) r hi / r lo ≤ ρ ( y + c 0 ) . Parts (b) and (c) follow from Lemma 16(b,c) and the two inequalities between ∣ r − r ′ ∣ |r-r'| ∣ r − r ′ ∣ and ∣ γ − γ ′ ∣ |\gamma-\gamma'| ∣ γ − γ ′ ∣ . For (d), the moment generating function of the negative binomial law is E e u Y = { 1 − ( μ / r ) ( e u − 1 ) } − r \mathbb{E}e^{uY}=\{1-(\mu/r)(e^u-1)\}^{-r} E e u Y = { 1 − ( μ / r ) ( e u − 1 ) } − r when ( μ / r ) ( e u − 1 ) < 1 (\mu/r)(e^u-1)<1 ( μ / r ) ( e u − 1 ) < 1 ; for u = 2 s 0 u=2s_0 u = 2 s 0 , e u − 1 = r l o / ( 2 e F ) e^u-1=r_{\mathrm{lo}}/(2e^F) e u − 1 = r lo / ( 2 e F ) , so E e 2 s 0 Y ≤ ( 1 − a / r ) − r \mathbb{E}e^{2s_0Y}\le(1-a/r)^{-r} E e 2 s 0 Y ≤ ( 1 − a / r ) − r with a = r l o / 2 a=r_{\mathrm{lo}}/2 a = r lo /2 . Because − log ( 1 − x ) ≤ x / ( 1 − x ) -\log(1-x)\le x/(1-x) − log ( 1 − x ) ≤ x / ( 1 − x ) for 0 ≤ x < 1 0\le x<1 0 ≤ x < 1 , the function r ↦ − r log ( 1 − a / r ) r\mapsto-r\log(1-a/r) r ↦ − r log ( 1 − a / r ) has a nonpositive derivative on r ≥ r l o r\ge r_{\mathrm{lo}} r ≥ r lo , where it equals r l o log 2 r_{\mathrm{lo}}\log2 r lo log 2 ; hence E e 2 s 0 Y ≤ 2 r l o \mathbb{E}e^{2s_0Y}\le2^{r_{\mathrm{lo}}} E e 2 s 0 Y ≤ 2 r lo .
Proof of Theorem 7. (a) We follow the five steps of the proof of Theorem 1, indexing the n n n site-weeks as in Appendix B, with ϑ i ( f , g ) = ( f ( X i ) , g ( X i ) ) \vartheta_i(f,g)=(f(X_i),g(X_i)) ϑ i ( f , g ) = ( f ( X i ) , g ( X i )) , p i ( f , g ) = p f ( X i ) , exp g ( X i ) p_i(f,g)=p_{f(X_i),\exp g(X_i)} p i ( f , g ) = p f ( X i ) , e x p g ( X i ) and H i 2 ( f , g ) = H 2 ( p i ( f , g ) , p i ( f 0 , g 0 ) ) H_i^2(f,g)=H^2(p_i(f,g),p_i(f_0,g_0)) H i 2 ( f , g ) = H 2 ( p i ( f , g ) , p i ( f 0 , g 0 )) . Under (2) the conditional law of Y i Y_i Y i given H i − 1 \mathcal{H}_{i-1} H i − 1 is p i ( f 0 , g 0 ) p_i(f_0,g_0) p i ( f 0 , g 0 ) , and its mean and size satisfy the conditions of Lemma 17(d).
Steps 1 and 2. Step 1 uses only that p i ( f 0 , g 0 ) p_i(f_0,g_0) p i ( f 0 , g 0 ) is the conditional law of Y i Y_i Y i ; so for every fixed pair, with probability at least 1 − δ 1-\delta 1 − δ ,
∑ i H i 2 ( f , g ) ≤ 1 2 { ℓ n ( f 0 , g 0 ) − ℓ n ( f , g ) } + log ( 1 / δ ) . \sum_i H_i^2(f,g)\le\frac{1}{2}\{\ell_n(f_0,g_0)-\ell_n(f,g)\}+\log(1/\delta). i ∑ H i 2 ( f , g ) ≤ 2 1 { ℓ n ( f 0 , g 0 ) − ℓ n ( f , g )} + log ( 1/ δ ) .
With an internal ϵ \epsilon ϵ -net ( f j , g j ) j ≤ N (f_j,g_j)_{j\le N} ( f j , g j ) j ≤ N of P n \mathcal{P}_n P n , N = N n ( ϵ ) N=N_n(\epsilon) N = N n ( ϵ ) , a union bound gives an event Ω 1 \Omega_1 Ω 1 of probability at least 1 − δ 1-\delta 1 − δ on which this holds for all j j j with log ( N / δ ) \log(N/\delta) log ( N / δ ) in place of log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) .
Step 3 (approximation term). Let D i = log { p i ( f 0 , g 0 ) ( Y i ) / p i ( f ∗ , g ∗ ) ( Y i ) } D_i=\log\{p_i(f_0,g_0)(Y_i)/p_i(f^*,g^*)(Y_i)\} D i = log { p i ( f 0 , g 0 ) ( Y i ) / p i ( f ∗ , g ∗ ) ( Y i )} . By Lemma 17(a), ∣ D i ∣ ≤ 2 ρ a ( Y i + c 0 ) |D_i|\le2\rho a(Y_i+c_0) ∣ D i ∣ ≤ 2 ρ a ( Y i + c 0 ) , and by Lemma 17(b), E [ D i ∣ H i − 1 ] = KL ≤ κ γ a 2 \mathbb{E}[D_i\mid\mathcal{H}_{i-1}]=\operatorname{KL}\le\kappa_\gamma a^2 E [ D i ∣ H i − 1 ] = KL ≤ κ γ a 2 . For 0 < λ ≤ λ γ 0<\lambda\le\lambda_\gamma 0 < λ ≤ λ γ we have 2 λ ρ a ≤ s 0 2\lambda\rho a\le s_0 2 λ ρ a ≤ s 0 because a ≤ a max a\le a_{\max} a ≤ a m a x , and the inequality e x ≤ 1 + x + 1 2 x 2 e ∣ x ∣ e^x\le1+x+\frac{1}{2}x^2e^{|x|} e x ≤ 1 + x + 2 1 x 2 e ∣ x ∣ gives
E [ e λ D i ∣ H i − 1 ] ≤ 1 + λ κ γ a 2 + 2 λ 2 ρ 2 a 2 E [ ( Y i + c 0 ) 2 e s 0 ( Y i + c 0 ) ∣ H i − 1 ] . \mathbb{E}[e^{\lambda D_i}\mid\mathcal{H}_{i-1}]\le1+\lambda\kappa_\gamma a^2+2\lambda^2\rho^2a^2\mathbb{E}[(Y_i+c_0)^2e^{s_0(Y_i+c_0)}\mid\mathcal{H}_{i-1}]. E [ e λ D i ∣ H i − 1 ] ≤ 1 + λ κ γ a 2 + 2 λ 2 ρ 2 a 2 E [( Y i + c 0 ) 2 e s 0 ( Y i + c 0 ) ∣ H i − 1 ] .
Since x 2 ≤ 4 s 0 − 2 e s 0 x x^2\le4s_0^{-2}e^{s_0x} x 2 ≤ 4 s 0 − 2 e s 0 x for x ≥ 0 x\ge0 x ≥ 0 , Lemma 17(d) bounds the last expectation by 4 s 0 − 2 e 2 s 0 c 0 E [ e 2 s 0 Y i ∣ H i − 1 ] ≤ M 0 4s_0^{-2}e^{2s_0c_0}\mathbb{E}[e^{2s_0Y_i}\mid\mathcal{H}_{i-1}]\le M_0 4 s 0 − 2 e 2 s 0 c 0 E [ e 2 s 0 Y i ∣ H i − 1 ] ≤ M 0 . With log ( 1 + x ) ≤ x \log(1+x)\le x log ( 1 + x ) ≤ x and λ ≤ 1 \lambda\le1 λ ≤ 1 , log E [ e λ D i ∣ H i − 1 ] ≤ λ a 2 ( κ γ + 2 ρ 2 M 0 ) = λ c ˉ γ a 2 \log\mathbb{E}[e^{\lambda D_i}\mid\mathcal{H}_{i-1}]\le\lambda a^2(\kappa_\gamma+2\rho^2M_0)=\lambda\bar c_\gamma a^2 log E [ e λ D i ∣ H i − 1 ] ≤ λ a 2 ( κ γ + 2 ρ 2 M 0 ) = λ c ˉ γ a 2 , and Lemma 11 with ξ i = λ γ ( D i − c ˉ γ a 2 ) \xi_i=\lambda_\gamma(D_i-\bar c_\gamma a^2) ξ i = λ γ ( D i − c ˉ γ a 2 ) gives an event Ω 2 \Omega_2 Ω 2 of probability at least 1 − δ 1-\delta 1 − δ on which ℓ n ( f 0 , g 0 ) − ℓ n ( f ∗ , g ∗ ) ≤ n c ˉ γ a 2 + λ γ − 1 log ( 1 / δ ) \ell_n(f_0,g_0)-\ell_n(f^*,g^*)\le n\bar c_\gamma a^2+\lambda_\gamma^{-1}\log(1/\delta) ℓ n ( f 0 , g 0 ) − ℓ n ( f ∗ , g ∗ ) ≤ n c ˉ γ a 2 + λ γ − 1 log ( 1/ δ ) . Step 4 (sum of the counts). By Lemma 17 (d) and Jensen’s inequality, E [ e s 0 Y i ∣ H i − 1 ] ≤ 2 r ℓ 0 / 2 \mathbb{E}[e^{s_0Y_i}\mid\mathcal{H}_{i-1}] \le2^{r\ell_0/2} E [ e s 0 Y i ∣ H i − 1 ] ≤ 2 r ℓ 0 /2 , so Lemma 11 with ξ i = s 0 Y i − 1 2 r ℓ 0 log 2 \xi_i=s_0Y_i-\frac{1}{2}r\ell_0\log2 ξ i = s 0 Y i − 2 1 r ℓ 0 log 2 gives an event Ω 3 \Omega_3 Ω 3 of probability at least 1 − δ 1-\delta 1 − δ on which
∑ i Y i ≤ n μ ˉ γ + s 0 − 1 log ( 1 / δ ) . \sum_i Y_i\le n\bar{\mu}_\gamma+s_0^{-1}\log(1/\delta). i ∑ Y i ≤ n μ ˉ γ + s 0 − 1 log ( 1/ δ ) .
Step 5 (assembly). On Ω 1 ∩ Ω 2 ∩ Ω 3 \Omega_1\cap\Omega_2\cap\Omega_3 Ω 1 ∩ Ω 2 ∩ Ω 3 , choose j j j with max ( ∥ f ^ − f j ∥ ∞ , ∥ g ^ − g j ∥ ∞ ) ≤ ε \max(\|\hat f-f_j\|_\infty,\|\hat g-g_j\|_\infty)\le\varepsilon max ( ∥ f ^ − f j ∥ ∞ , ∥ g ^ − g j ∥ ∞ ) ≤ ε . By Lemma 17 (b) and the triangle inequality for H H H , H i 2 ( f ^ , g ^ ) ≤ 2 H i 2 ( f j , g j ) + κ γ ε 2 H_i^2(\hat f,\hat g)\le2H_i^2(f_j,g_j)+\kappa_\gamma\varepsilon^2 H i 2 ( f ^ , g ^ ) ≤ 2 H i 2 ( f j , g j ) + κ γ ε 2 ; by Lemma 17 (a), ℓ n ( f ^ , g ^ ) − ℓ n ( f j , g j ) ≤ 2 ρ ε ∑ i ( Y i + c 0 ) \ell_n(\hat f,\hat g)-\ell_n(f_j,g_j)\le2\rho\varepsilon\sum_i(Y_i+c_0) ℓ n ( f ^ , g ^ ) − ℓ n ( f j , g j ) ≤ 2 ρε ∑ i ( Y i + c 0 ) ; and since ( f ∗ , g ∗ ) ∈ P n (f^\ast,g^\ast)\in\mathcal{P}_n ( f ∗ , g ∗ ) ∈ P n , ℓ n ( f ∗ , g ∗ ) − ℓ n ( f ^ , g ^ ) ≤ n Δ n \ell_n(f^\ast,g^\ast)-\ell_n(\hat f,\hat g)\le n\Delta_n ℓ n ( f ∗ , g ∗ ) − ℓ n ( f ^ , g ^ ) ≤ n Δ n . Hence
∑ i H i 2 ( f ^ , g ^ ) ≤ { ℓ n ( f 0 , g 0 ) − ℓ n ( f j , g j ) } + 2 log ( N / δ ) + n κ γ ε 2 ≤ n c ˉ γ a 2 + λ − 1 log 1 δ + n Δ n + 2 ρ ε ( n μ ˉ γ + log ( 1 / δ ) s 0 + n c 0 ) + 2 log N δ + n κ γ ε 2 , \begin{aligned}
\sum_i H_i^2(\hat f,\hat g)\le\{\ell_n(f_0,g_0)-\ell_n(f_j,g_j)\}+2\log(N/\delta)+n\kappa_\gamma\varepsilon^2 \\
&\le n\bar c_\gamma a^2+\lambda^{-1}\log\frac{1}{\delta}+n\Delta_n+2\rho\varepsilon\left(n\bar\mu_\gamma+\frac{\log(1/\delta)}{s_0}+nc_0\right)+2\log\frac{N}{\delta}+n\kappa_\gamma\varepsilon^2,
\end{aligned} i ∑ H i 2 ( f ^ , g ^ ) ≤ { ℓ n ( f 0 , g 0 ) − ℓ n ( f j , g j )} + 2 log ( N / δ ) + n κ γ ε 2 ≤ n c ˉ γ a 2 + λ − 1 log δ 1 + n Δ n + 2 ρε ( n μ ˉ γ + s 0 log ( 1/ δ ) + n c 0 ) + 2 log δ N + n κ γ ε 2 ,
which is the bound in (a) after division by n n n . The last claim of (a) is Lemma 17 (c), averaged over i i i .
(b) A network with two outputs that approximates ( f 0 , g 0 ) (f_0,g_0) ( f 0 , g 0 ) is obtained by placing the two approximating networks of Lemma 12 in parallel, padding the shallower one with identity layers (σ ( x ) − σ ( − x ) = x \sigma(x)-\sigma(-x)=x σ ( x ) − σ ( − x ) = x ); this at most doubles the width and adds the sparsities, and conditions (i)–(iv) of Theorem 2 are stated up to constants, so a 2 ≲ ϕ n a^2\lesssim\phi_n a 2 ≲ ϕ n . The covering bound of Lemma 12 holds for networks with any number of outputs, with the supremum norm taken over outputs as well, and truncation of each output is 1-Lipschitz. Taking ε = 1 / n \varepsilon=1/n ε = 1/ n in (a), the trajectory bound follows as Theorem 2 follows from Theorem 1. For the out-of-sample bound, Proposition 3 with the constant ϵ 0 \epsilon_0 ϵ 0 of (c) and Lemma 15 concern only the true process, and the proof of Theorem 4 goes through with g f , g ( x ) = S − 1 ∑ s H 2 ( p f ( x s ) , e g ( x s ) , p f 0 ( x s ) , e g 0 ( x s ) ) g_{f,g}(x)=S^{-1}\sum_s H^2(p_{f(x_s),e^{g(x_s)}},p_{f_0(x_s),e^{g_0(x_s)}}) g f , g ( x ) = S − 1 ∑ s H 2 ( p f ( x s ) , e g ( x s ) , p f 0 ( x s ) , e g 0 ( x s ) ) , the net ( f j , g j ) (f_j,g_j) ( f j , g j ) and 2 c 2 ε 2 2c_2\varepsilon^2 2 c 2 ε 2 replaced by κ γ ε 2 \kappa_\gamma\varepsilon^2 κ γ ε 2 ; Lemma 17 (c) converts the bound on R H ( f ^ , g ^ ) R^H(\hat f,\hat g) R H ( f ^ , g ^ ) into the bound on R ( f ^ ) + R g ( g ^ ) R(\hat f)+R_g(\hat g) R ( f ^ ) + R g ( g ^ ) .
(c) In the proof of Proposition 3, the probability of a zero count is now { r / ( r + μ ) } r \{r/(r+\mu)\}^r { r / ( r + μ ) } r with μ ≤ e F \mu\le e^F μ ≤ e F and r ≤ r h i r\le r_{\mathrm{hi}} r ≤ r hi ; it is decreasing in μ \mu μ and, because ( 1 + μ / r ) r (1+\mu/r)^r ( 1 + μ / r ) r is increasing in r r r , decreasing in r r r , so it is at least { r h i / ( r h i + e F ) } r h i \{r_{\mathrm{hi}}/(r_{\mathrm{hi}}+e^F)\}^{r_{\mathrm{hi}}} { r hi / ( r hi + e F ) } r hi , and the rest of the proof is unchanged. In the proof of Theorem 6 , replace Lemma 9 by Lemma 17 (b): the one-step total variation distance is at most ( K L / 2 ) 1 / 2 ≤ 1 2 κ γ 1 / 2 { [ f ( x ) − f 0 ( x ) ] 2 + [ g ( x ) − g 0 ( x ) ] 2 } 1 / 2 \left(\mathrm{KL}/2\right)^{1/2}\le\frac{1}{2}\kappa_\gamma^{1/2}\{[f(x)-f_0(x)]^2+[g(x)-g_0(x)]^2\}^{1/2} ( KL /2 ) 1/2 ≤ 2 1 κ γ 1/2 {[ f ( x ) − f 0 ( x ) ] 2 + [ g ( x ) − g 0 ( x ) ] 2 } 1/2 , and each Kullback–Leibler term of the chain rule is at most 1 2 κ γ { [ f − f 0 ] 2 + [ g − g 0 ] 2 } ( X s , t + k ) \frac{1}{2}\kappa_\gamma\{[f-f_0]^2+[g-g_0]^2\}(X_{s,t+k}) 2 1 κ γ {[ f − f 0 ] 2 + [ g − g 0 ] 2 } ( X s , t + k ) . The rest of the proof is unchanged.
(d) Pointwise, ( f ˉ − f 0 ) 2 ≤ n f i t − 1 ∑ k ( f ^ k − f 0 ) 2 (\bar f-f_0)^2\le n_{\mathrm{fit}}^{-1}\sum_k(\hat f_k-f_0)^2 ( f ˉ − f 0 ) 2 ≤ n fit − 1 ∑ k ( f ^ k − f 0 ) 2 and ( g ˉ − g 0 ) 2 ≤ n f i t − 1 ∑ k ( g ^ k − g 0 ) 2 (\bar g-g_0)^2\le n_{\mathrm{fit}}^{-1}\sum_k(\hat g_k-g_0)^2 ( g ˉ − g 0 ) 2 ≤ n fit − 1 ∑ k ( g ^ k − g 0 ) 2 by convexity. By Lemma 17 (b) and (c), at every covariate value,
H 2 ( p f ˉ , e g ˉ , p f 0 , e g 0 ) ≤ κ γ 4 ⋅ 1 n f i t ∑ k { ( f ^ k − f 0 ) 2 + ( g ^ k − g 0 ) 2 } ≤ κ γ 2 c min ⋅ 1 n f i t ∑ k H 2 ( p f ^ k , e g ^ k , p f 0 , e g 0 ) , H^2(p_{\bar f,e^{\bar g}},p_{f_0,e^{g_0}})\le\frac{\kappa_\gamma}{4}\cdot\frac{1}{n_{\mathrm{fit}}}\sum_k\{(\hat f_k-f_0)^2+(\hat g_k-g_0)^2\}\le\frac{\kappa_\gamma}{2c_{\min}}\cdot\frac{1}{n_{\mathrm{fit}}}\sum_k H^2(p_{\hat f_k,e^{\hat g_k}},p_{f_0,e^{g_0}}), H 2 ( p f ˉ , e g ˉ , p f 0 , e g 0 ) ≤ 4 κ γ ⋅ n fit 1 k ∑ {( f ^ k − f 0 ) 2 + ( g ^ k − g 0 ) 2 } ≤ 2 c m i n κ γ ⋅ n fit 1 k ∑ H 2 ( p f ^ k , e g ^ k , p f 0 , e g 0 ) ,
and averaging over site-weeks, or taking expectations over the copy, gives (d).
(e) The bound follows from (b), since ∥ f ^ − f 0 ∥ n + ∥ g ^ − g 0 ∥ n ≤ { 2 ( ∥ f ^ − f 0 ∥ n 2 + ∥ g ^ − g 0 ∥ n 2 ) } 1 / 2 \|\hat f-f_0\|_n+\|\hat g-g_0\|_n\le\{2(\|\hat f-f_0\|_n^2+\|\hat g-g_0\|_n^2)\}^{1/2} ∥ f ^ − f 0 ∥ n + ∥ g ^ − g 0 ∥ n ≤ { 2 ( ∥ f ^ − f 0 ∥ n 2 + ∥ g ^ − g 0 ∥ n 2 ) } 1/2 . For the average of e f e^f e f over a set A A A of w n w_n w n site-weeks, ∣ e a − e b ∣ ≤ e F ∣ a − b ∣ |e^a-e^b|\le e^F|a-b| ∣ e a − e b ∣ ≤ e F ∣ a − b ∣ on [ − F , F ] [-F,F] [ − F , F ] and the Cauchy–Schwarz inequality give ( w n ) − 1 ∑ i ∈ A ∣ e f ( X i ) − e f 0 ( X i ) ∣ ≤ e F { ( w n ) − 1 ∑ i ∈ A ( f − f 0 ) 2 ( X i ) } 1 / 2 ≤ e F w n − 1 / 2 ∥ f − f 0 ∥ n (w_n)^{-1}\sum_{i\in A}|e^{f(X_i)}-e^{f_0(X_i)}|\le e^F\{(w_n)^{-1}\sum_{i\in A}(f-f_0)^2(X_i)\}^{1/2}\le e^Fw_n^{-1/2}\|f-f_0\|_n ( w n ) − 1 ∑ i ∈ A ∣ e f ( X i ) − e f 0 ( X i ) ∣ ≤ e F {( w n ) − 1 ∑ i ∈ A ( f − f 0 ) 2 ( X i ) } 1/2 ≤ e F w n − 1/2 ∥ f − f 0 ∥ n , and likewise for e g e^g e g , with e γ h i e^{\gamma h_i} e γ h i in place of e F e^F e F , and for predictive probabilities, by Lemma 17 (b) and Pinsker’s inequality.
Proof of Theorem 8
The proof of Theorem 7 (a) is modified in its three probabilistic steps, with the filtration ( I t ) t ≥ 0 (\mathcal{I}_t)_{t\ge0} ( I t ) t ≥ 0 indexed by periods and the generalized Hölder inequality: for non-negative W 1 , … , W S W_1,\ldots,W_S W 1 , … , W S , E [ ∏ s W s ∣ I t − 1 ] ≤ ∏ s E [ W s S ∣ I t − 1 ] 1 / S \mathbb{E}[\prod_s W_s\mid\mathcal{I}_{t-1}]\le\prod_s\mathbb{E}[W_s^S\mid\mathcal{I}_{t-1}]^{1/S} E [ ∏ s W s ∣ I t − 1 ] ≤ ∏ s E [ W s S ∣ I t − 1 ] 1/ S . Under Assumption 6 the conditional law of Y s , t Y_{s,t} Y s , t given I t − 1 \mathcal{I}_{t-1} I t − 1 is the negative binomial law p s , t ( f 0 , g 0 ) p_{s,t}(f_0,g_0) p s , t ( f 0 , g 0 ) of the site.
Step 1. Fix a pair ( f , g ) (f,g) ( f , g ) with values in the ranges, let Λ s , t = p s , t ( f , g ) ( Y s , t ) / p s , t ( f 0 , g 0 ) ( Y s , t ) \Lambda_{s,t}=p_{s,t}(f,g)(Y_{s,t})/p_{s,t}(f_0,g_0)(Y_{s,t}) Λ s , t = p s , t ( f , g ) ( Y s , t ) / p s , t ( f 0 , g 0 ) ( Y s , t ) and let H s , t 2 H^2_{s,t} H s , t 2 be the squared Hellinger distance between the two laws. Since E [ Λ s , t 1 / 2 ∣ I t − 1 ] = 1 − H s , t 2 \mathbb{E}[\Lambda_{s,t}^{1/2}\mid\mathcal{I}_{t-1}]=1-H^2_{s,t} E [ Λ s , t 1/2 ∣ I t − 1 ] = 1 − H s , t 2 , the inequality with W s = Λ s , t 1 / ( 2 S ) W_s=\Lambda_{s,t}^{1/(2S)} W s = Λ s , t 1/ ( 2 S ) gives E [ ∏ s Λ s , t 1 / ( 2 S ) ∣ I t − 1 ] ≤ ∏ s ( 1 − H s , t 2 ) 1 / S \mathbb{E}[\prod_s\Lambda_{s,t}^{1/(2S)}\mid\mathcal{I}_{t-1}]\le\prod_s(1-H^2_{s,t})^{1/S} E [ ∏ s Λ s , t 1/ ( 2 S ) ∣ I t − 1 ] ≤ ∏ s ( 1 − H s , t 2 ) 1/ S . Hence ζ t = ( 2 S ) − 1 ∑ s log Λ s , t − S − 1 ∑ s log ( 1 − H s , t 2 ) \zeta_t=(2S)^{-1}\sum_s\log\Lambda_{s,t}-S^{-1}\sum_s\log(1-H^2_{s,t}) ζ t = ( 2 S ) − 1 ∑ s log Λ s , t − S − 1 ∑ s log ( 1 − H s , t 2 ) satisfies E [ e ζ t ∣ I t − 1 ] ≤ 1 \mathbb{E}[e^{\zeta_t}\mid\mathcal{I}_{t-1}]\le1 E [ e ζ t ∣ I t − 1 ] ≤ 1 , and Lemma 11, applied to the T T T periods, gives with probability at least 1 − δ 1-\delta 1 − δ that ∑ t ζ t ≤ log ( 1 / δ ) \sum_t\zeta_t\le\log(1/\delta) ∑ t ζ t ≤ log ( 1/ δ ) , that is, because − log ( 1 − x ) ≥ x -\log(1-x)\ge x − log ( 1 − x ) ≥ x ,
∑ s , t H s , t 2 ( f , g ) ≤ 1 2 { ℓ n ( f 0 , g 0 ) − ℓ n ( f , g ) } + S log ( 1 / δ ) . \sum_{s,t}H^2_{s,t}(f,g)\le\frac{1}{2}\{\ell_n(f_0,g_0)-\ell_n(f,g)\}+S\log(1/\delta). s , t ∑ H s , t 2 ( f , g ) ≤ 2 1 { ℓ n ( f 0 , g 0 ) − ℓ n ( f , g )} + S log ( 1/ δ ) .
A union bound over an internal ε \varepsilon ε -net gives the event Ω 1 \Omega_1 Ω 1 with S log ( N / δ ) S\log(N/\delta) S log ( N / δ ) in place of log ( N / δ ) \log(N/\delta) log ( N / δ ) .
Steps 3 and 4. With D s , t D_{s,t} D s , t as in Step 3 of the proof of Theorem 7 , that step shows E [ exp { λ γ ( D s , t − c ˉ γ a 2 ) } ∣ I t − 1 ] ≤ 1 \mathbb{E}[\exp\{\lambda_\gamma(D_{s,t}-\bar c_\gamma a^2)\}\mid\mathcal{I}_{t-1}]\le1 E [ exp { λ γ ( D s , t − c ˉ γ a 2 )} ∣ I t − 1 ] ≤ 1 for every site, using only the conditional law of Y s , t Y_{s,t} Y s , t . By the Hölder inequality with W s = exp { ( λ γ / S ) ( D s , t − c ˉ γ a 2 ) } W_s=\exp\{(\lambda_\gamma/S)(D_{s,t}-\bar c_\gamma a^2)\} W s = exp {( λ γ / S ) ( D s , t − c ˉ γ a 2 )} , the variable ξ t = ( λ γ / S ) ( D s , t − c ˉ γ a 2 ) \xi_t=(\lambda_\gamma/S)(D_{s,t}-\bar c_\gamma a^2) ξ t = ( λ γ / S ) ( D s , t − c ˉ γ a 2 ) satisfies E [ e ξ t ∣ I t − 1 ] ≤ 1 \mathbb{E}[e^{\xi_t}\mid\mathcal{I}_{t-1}]\le1 E [ e ξ t ∣ I t − 1 ] ≤ 1 , so ℓ n ( f 0 , g 0 ) − ℓ n ( f ∗ , g ∗ ) ≤ n c ˉ γ a 2 + S λ γ − 1 log ( 1 / δ ) \ell_n(f_0,g_0)-\ell_n(f^*,g^*)\le n\bar c_\gamma a^2+S\lambda_\gamma^{-1}\log(1/\delta) ℓ n ( f 0 , g 0 ) − ℓ n ( f ∗ , g ∗ ) ≤ n c ˉ γ a 2 + S λ γ − 1 log ( 1/ δ ) on an event Ω 2 \Omega_2 Ω 2 of probability at least 1 − δ 1-\delta 1 − δ . In the same way, ξ t = S − 1 ∑ s ( s 0 Y s , t − 1 2 r l o log 2 ) \xi_t=S^{-1}\sum_s(s_0Y_{s,t}-\frac{1}{2}r_{\mathrm{lo}}\log2) ξ t = S − 1 ∑ s ( s 0 Y s , t − 2 1 r lo log 2 ) gives ∑ s , t Y s , t ≤ n μ ˉ γ + S s 0 − 1 log ( 1 / δ ) \sum_{s,t}Y_{s,t}\le n\bar\mu_\gamma+S s_0^{-1}\log(1/\delta) ∑ s , t Y s , t ≤ n μ ˉ γ + S s 0 − 1 log ( 1/ δ ) on an event Ω 3 \Omega_3 Ω 3 of probability at least 1 − δ 1-\delta 1 − δ .
Assembly. Step 5 of the proof of Theorem 7 is deterministic given the three events. Every term log ( N / δ ) \log(N/\delta) log ( N / δ ) or log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) now carries the factor S S S , and dividing by n = S T n=ST n = S T gives (a); the comparison with the squared norms is Lemma 17 (c), which is pointwise.
(b) Apply (a) with ε = 1 / T \varepsilon=1/T ε = 1/ T and with ( f ∗ , g ∗ ) (f^*,g^*) ( f ∗ , g ∗ ) such that a 2 ≤ 2 C S H ϕ T a^2\le2C_{\mathrm{SH}}\phi_T a 2 ≤ 2 C SH ϕ T . By Lemma 12 with T T T in place of n n n , applied to each output as in the proof of Theorem 7 (b), log N n ( 1 / T ) ≤ C T ϕ T L log 2 T \log N_n(1/T)\le C T\phi_T L\log^2 T log N n ( 1/ T ) ≤ C T ϕ T L log 2 T , and the remaining terms are of order 1 / T ≤ ϕ T 1/T\le\phi_T 1/ T ≤ ϕ T . Parts (d) and (e) of Theorem 7 and (c) rest on pointwise inequalities and do not involve the joint law of the sites.
(d) Under the stated laws the conditional law of Y s , t Y_{s,t} Y s , t given I t − 1 \mathcal{I}_{t-1} I t − 1 is that of Y 1 , t Y_{1,t} Y 1 , t , the negative binomial law with log-mean f 0 ( X 1 , t ) = f 0 ( X s , t ) f_0(X_{1,t})=f_0(X_{s,t}) f 0 ( X 1 , t ) = f 0 ( X s , t ) , so Assumption 6 holds. The data are a function of ( X 1 , t , Y 1 , t ) t ≤ T (X_{1,t},Y_{1,t})_{t\le T} ( X 1 , t , Y 1 , t ) t ≤ T , every estimator is therefore an estimator in the experiment with one site and T T T observations, and R ( f ^ ) R(\hat f) R ( f ^ ) is the same in both experiments because the sites are identical. Theorem 5, whose constant does not depend on the number of sites, gives the bound.
Supplementary Material for “Deep Negative Binomial Autoregression for Sparse Spatio-Temporal Counts: Estimation and Predictive Distribution Bounds”
Hsin-Hsiung Huang
This supplement accompanies the main paper. References to sections, equations, theorems, tables and figures without the prefix S are to the main paper. Throughout, DeepNB-STAR denotes the estimator of the paper (§ 4 ); the earlier estimators, used during development, are called the first-round estimator, version 1 and version 2, and appear only here. Section S1 describes the development and the evaluation protocols, Section S2 reports the first-round estimator, Section S3 the intermediate versions, Section S4 the ZINB-GP benchmark and the comparison of its Python implementation with the R package, Section S5 further results for DeepNB-STAR, Section S6 the details of Simulation B, Section S7 Simulation D on dependent sites, Section S8 a second domain, daily taxi-flow networks, and Section S9 the relation to closely related work.
Development of the Estimator and the Evaluation Protocols
The first-round estimator. The first estimator we evaluated is the special case of DeepNB-STAR with a constant size: the 13 summaries of § 2.2 as inputs, a fully connected ReLU network with three hidden layers of width 64 (9,281 weights and biases, plus one size parameter per fit), F = 7 F = 7 F = 7 , Adam with constant learning rate 10 − 3 10^{-3} 1 0 − 3 , weight decay 10 − 5 10^{-5} 1 0 − 5 and batches of 1,024, 40 epochs for the first fit and 8 for each yearly refit, the average of the log-means of the fits with seeds 1, 2 and 3, and empirical quantiles of B = 1,000 B = 1{,}000 B = 1 , 000 simulated paths. The averaging of three fits and the three-year window of the NB regression were chosen after seeing results on the syphilis evaluation period, so the first-round syphilis comparison is not a prospective test.
Development. After the first round we tried to close the gap to the TFT using the syphilis panel only; the development results in Table S1 are therefore post hoc for that panel. A first diagnosis located the losses of the first-round estimator: they were concentrated in the largest counts, where its intervals were wider and its medians less accurate than those of the TFT, and single fits varied much more between seeds. We first tried the device that distinguishes the TFT most clearly from a recursive model, direct multi-horizon forecasting: one negative binomial law for each horizon, Y s , t + h ∣ T t ∼ NB ( exp { f ( X s , t ( h ) , h ) } , r h ) Y_{s,t+h} \mid\mathcal{T}_t \sim\operatorname{NB}(\exp\{f(X_{s,t}^{(h)},h)\},r_h) Y s , t + h ∣ T t ∼ NB ( exp { f ( X s , t ( h ) , h )} , r h ) , where X s , t ( h ) X_{s,t}^{(h)} X s , t ( h ) carries the season of the target week and a one-hot code of h h h , fitted jointly over the four horizons by one shared network. It was worse than recursive simulation at every horizon, with and without a covariate-dependent size, and so was the average of the two. The changes that helped are in the likelihood and in the inputs. A covariate-dependent size (§ 5.7 ) improved the score at every horizon. A learning rate that decreases within each fit removed most of the variation between seeds, and with it two further inputs helped: the raw history of the last 26 weeks and a low-dimensional site encoding (§ 2.2 ), which play the roles of the encoder of past inputs and the static covariate encoder of the TFT. A wider network, longer refits, a full year of raw history and site indicators without the decaying learning rate did not help. Finally, Rao–Blackwellized quantiles for horizons 2 to 4 (§ 4 ) reduced the Monte Carlo error of the multi-step quantiles; this changes no fitted parameter.
Table S1. Development on the syphilis panel (post hoc): one-week-ahead WIS, and WIS over horizons 1–4 where the full forecasting protocol was run, on the 674 target weeks common to all syphilis forecasts. All variants use the 13 summaries of § 2.2 ; “size” is constant unless stated. The TFT ensemble of seeds 1–3 has 0.505 and 0.509.
Protocols. Each test was run under a protocol written and time-stamped before any model was fitted to the test panel, together with SHA-256 digests of the code and data at that time; all protocols, their digests and their outcome reports are part of the code archive (review/). Protocol 1 tested the first-round estimator on the EHEC panel (§ 21 ). Protocol 2 fixed version 1 and was superseded, before any of its results on the other panels were inspected, by a revised protocol that fixed version 2 and selected legionellosis as the test panel (Section S3). Protocol 3 fixed DeepNB-STAR (version 2 with Rao–Blackwellized quantiles) and selected amebiasis as the test panel by the rule stated in § 8.1 ; its results are those of the main paper. All results are reported, whatever their direction.
The First-Round Estimator
Syphilis
Tables S2 to S5 report the first-round estimator on the syphilis panel, on the 674 target weeks of 2012–2024 for which every method, including the two-stage hybrid of § 23 , has forecasts at every horizon. The three-seed TFT ensemble had the lowest WIS, 0.509, followed by the first-round estimator with 0.518, the seed-1 TFT with 0.520, the hybrid with 0.523, ZINB-GP with 0.526, NB regression with 0.531, the DeepAR ensemble with 0.558 and persistence with 0.692. The TFT ensemble was better than the first-round estimator by 1.7% of its score, with bootstrap intervals that exclude zero for every block length; the first-round estimator was better than the NB regression by 2.5%, than ZINB-GP by 1.6% and than DeepAR by 7.3%, again with intervals that exclude zero. It had the lowest score in the small and medium prefectures and during the first surge of 2016 to 2019, whereas the TFT ensemble was better in the large prefectures and after 2020 (paired advantage 0.018 in 2020–2021 and 0.030 in 2022–2024). These are the losses that the development of § 20 addressed.
Table S3. First round, syphilis: paired weekly WIS differences, competitor minus the first-round estimator, averaged over horizons and prefectures, with moving-block bootstrap 95% intervals for four block lengths.
Matched seeds. Table S6 compares the three neural methods with the same seeds. Single first-round fits varied: the WIS ranged from 0.516 to 0.537 over the three seeds and that of the TFT from 0.512 to 0.530. Averaging the quantiles of the TFT reduced its WIS by 0.012, DeepAR gained even more, whereas averaging the log-means of the first-round estimator reduced its WIS by 0.006, and averaging its quantiles instead gave the same score. In the development, a learning rate that decreases within each fit removed most of this variation between seeds (§ 20 ).
Feature ablations. Table S7 removes groups of the 13 covariates from the first-round estimator. The long memory matters: with a memory of eight weeks the WIS increases by 0.015, or 3%, at every horizon. The neighbors do not, on this panel: without them the score is unchanged (−0.000, interval (−0.002, 0.001)); this forecast ablation concerns the earlier estimator and is distinct from the feature contrasts of § 8.4 . Removing the two national covariates improved the score slightly, by 0.003 (interval (−0.005, −0.002)). The nonlinearity is essential. A log-mean that is linear in the same 13 covariates and has no prefecture effects has a WIS of 1.96 one week ahead and 4.23 over all horizons. Its fitted coefficients make the log-mean grow about 1.5 times as fast as the logarithm of the prefecture’s recent level, which is how a single log-linear function fits prefectures whose levels differ by two orders of magnitude; as a result it overpredicts during the growth periods (its mean one-week forecast in 2016 is 10.2 against an average of 1.9 notifications), and the error compounds in the multi-step simulation. The NB regression avoids this with prefecture intercepts and a three-year window. We kept the full covariate set as specified in advance.
Table S7. Feature ablations of the first-round estimator on the syphilis panel: the average of the fits with seeds 1, 2 and 3 with a subset of the covariates, or with a log-mean that is linear in all 13 covariates (learning rate 0.01, 200 epochs and 40 per refit, so that the likelihood converges). WIS by horizon and over all horizons, coverage of the 90% interval, and the paired difference from the model with all covariates, with a moving-block bootstrap 95% interval (blocks of 8 weeks). Positive differences mean that the variant is worse.
Table S4. First round, syphilis: WIS over all horizons by size of prefecture (thirds of the mean weekly count in 2012 to 2024) and by period.
Table S5. First round, syphilis: paired WIS differences, competitor minus the first-round estimator, by period; an asterisk marks a moving-block bootstrap 95% interval (blocks of 8 weeks) that excludes zero.
Enterohemorrhagic E. coli Infection under Protocol 1
The EHEC panel (§ 8.1 ) was evaluated under Protocol 1, which fixed all settings of the forecasters as in the syphilis analysis, excluded the ZINB-GP and the hybrid in advance because of their computational cost, and specified the paired weekly WIS difference with blocks of 8 weeks as the primary comparison. The fitted size of the first-round estimator was between 1.07 and 1.26.
Table S6. First round: WIS over all horizons of single fits with seeds 1, 2 and 3, their mean and standard deviation, and the ensemble of the three seeds. The ensemble of the first-round estimator averages the log-means; the value in parentheses averages the quantiles, as for the other two methods.
The results (Table S8 and Table S9 ) confirmed the ordering of the syphilis panel: the three-seed TFT ensemble had a WIS of 0.600, the NB regression 0.603, the first-round estimator 0.606, DeepAR 0.624 and persistence 0.889; the TFT ensemble was better than the first-round estimator by 1.0%, with an interval of (−0.012, −0.000) for blocks of 8 weeks that included zero for blocks of 13 and 26 weeks.
Table S8. First round, EHEC (Protocol 1), common target weeks of 2012 to 2024: WIS by horizon and overall, relative WIS, MAE and coverage.
Table S9. First round, EHEC (Protocol 1): paired weekly WIS differences, competitor minus the first-round estimator, with moving-block bootstrap 95% intervals.
Versions 1 and 2 under the Revised Protocol 2
The revised Protocol 2 fixed version 2 (a covariate-dependent size, the raw history of 26 weeks, a three-dimensional site encoding and a decaying learning rate, three fits, empirical quantiles of the simulated paths) and selected legionellosis as its test panel by the rule of § 8.1 restricted to diseases other than syphilis (EHEC infection does not qualify, because neither of its two names is reported in every week); before the protocol was written we inspected only the total number of notifications (29,101) and the fraction of zero prefecture-weeks (0.73). The primary comparison was the paired weekly WIS difference between the three-seed TFT ensemble and version 2 on legionellosis, with blocks of 8 weeks and 4,000 resamples. On the test panel we also ran the TFT with seeds 4, 5 and 6, the first-round estimator, version 1 (a covariate-dependent size and six fits), DeepAR, the NB regression and persistence. Version 1 had been fixed in an earlier protocol and was superseded before any of its results on the other panels were inspected; its run on the test panel had already started, and we report it.
Tables S10 and S11 give the results, on the 677 common target weeks of each panel. In the primary comparison version 2 had a WIS of 0.2859 and the TFT ensemble 0.2877; the difference of 0.0018 (0.6%) favored version 2, but its interval, (−0.0007, 0.0043), included zero, as it did for every block length. The six-seed TFT ensemble was as good as version 2 (0.2863). On this panel the best score was that of the first-round estimator, 0.2841, and version 1 scored the same, so the changes of version 2 did not help on legionellosis; the differences among the four best methods were below 1% and none was distinguishable from zero. On EHEC version 2 had the lowest WIS at every horizon, 0.594 against 0.600 for the TFT ensemble (interval for the difference (−0.001, 0.012)), and on syphilis 0.504 against 0.507 (interval (−0.004, 0.010)). In all three panels its point estimate was below that of the TFT ensemble, by 0.6% to 1.0%, without a difference distinguishable from zero. A breakdown by horizon showed that its advantage shrank with the horizon on all three panels; DeepNB-STAR differs from version 2 only by computing the multi-step quantiles by Rao–Blackwellization, which reduces their Monte Carlo error (§ 4 ). Table S12 compares the versions with the TFT ensemble on all four panels.
Table S12. The versions of the estimator and the TFT ensemble on the four panels, common target weeks of 2012–2024: WIS over horizons 1–4. Version 1 was run on legionellosis only; the earlier versions were not run on amebiasis.
Table S10. Version 2 under Protocol 2: WIS over horizons 1–4 of version 2 and, for each competitor, its WIS and the paired weekly difference, competitor minus version 2, with a moving-block bootstrap 95% interval (blocks of 8 weeks), on the 677 common target weeks of each panel.
Table S11. Legionellosis, the test panel of Protocol 2: WIS by horizon and over all horizons, WIS relative to persistence, MAE of the median and coverage of central prediction intervals.
The ZINB-GP Benchmark and the Two-Stage Hybrid
Model and fitting. The ZINB-GP benchmark He and Huang [6 ] is a Bayesian zero-inflated negative binomial regression. A logistic part gives the probability that a prefecture-week is at risk, and for those at risk the count is negative binomial. Both parts use the covariates of the NB regression of § 8.2 , and the count part adds a spatial Gaussian process effect for the prefecture and a temporal Gaussian process effect for the target week, which replace the fixed prefecture intercepts. The model is fitted to the most recent three years, separately for each horizon, by the Pólya–Gamma Gibbs sampler of the R package ZINB.GP (Scott et al. [13 ] ), which we reimplemented in Python from the package source, with its default priors and wider random-walk proposals for the length scales and the dispersion. Forecasts are posterior predictive quantiles from 400 retained draws. It was run on the syphilis panel only.
Fitted model. The posterior probability that a prefecture-week is at risk has median 0.97 over the fits, so the fitted zero-inflation component is modest on average. The spatial effects have a standard deviation of 0.77 on the logarithmic scale and a length scale of about 90 kilometers, and the temporal effects are small (standard deviation 0.16) and essentially uncorrelated from week to week, so they add little to forecasts beyond the horizon of the data. Under the flat prior of the sampler the dispersion parameter mixes slowly; its posterior mean rises from between 5 and 8 in the earliest fits to between 33 and 85 in the fits from 2020 onward. We therefore start each chain from the final state of the previous year, after 8,000 burn-in iterations for the first fit; a second run with another seed and twice as many iterations changed the posterior means of the dispersion parameter by up to a factor of two but the one-week WIS only from 0.515 to 0.516.
Python implementation and R package. We compared the Python implementation of the sampler with the R package ZINB.GP (version 1.0.0, function ZINB_GP_count) on the data of one fit of the forecasting study: the one-week-ahead model for the origins of 2016, with 7,332 prefecture-weeks, eight covariates, 46 spatial and 155 temporal random effects. Both implementations were run with the same priors and proposal scales, three chains each of 2,000 iterations with 1,000 burn-in iterations and thinning 5, and longer chains of 6,000 iterations (2,000 burn-in, thinning 10), three for the Python implementation and three for the package. Table S13 compares the posterior distributions. For the covariate coefficients of the count component other than that of the national level, the spatial length scale and both temporal parameters, the difference of the posterior means is at most 0.34 posterior standard deviations (standardized difference), with split R ^ \hat{R} R ^ at most 1.05 in both implementations. The posterior means of the 201 random effects have correlation 0.9995 between the implementations, and the posterior mean of the count-component linear predictor of every prefecture-week has correlation 0.9995. The differences for the national coefficient and the spatial scale in the short chains (0.44 and 0.67 posterior standard deviations) disappear in the longer chains (standardized differences -0.05 and -0.04). The size parameter, the intercept, with which it is correlated, and the coefficients of the zero-inflation component mix slowly in both implementations (split R ^ \hat{R} R ^ up to 2.2 in chains of 2,000 iterations, and the posterior mean of the size still varies between chains of 6,000 iterations), so these runs cannot cleanly distinguish implementation differences from nonconvergence; this is the slow mixing of the size under the flat prior noted above. The maximum split R ^ \hat{R} R ^ in the longer chains is 1.87 for Python and 2.34 for R, so even those runs do not resolve the convergence concern. The comparisons support agreement for the better-mixing quantities, but the reported diagnostics do not establish convergence or posterior equivalence for the slowly mixing parameters; those quantities and the ZINB-GP comparison should be interpreted cautiously. The scripts are in code/validation/.
Table S13. Comparison of the Python implementation of the ZINB-GP sampler with the R package on one forecasting fit. Left: three chains of 2,000 iterations (1,000 burn-in, thinning 5) for each implementation: posterior mean and standard deviation over the pooled chains, split R ^ \hat{R} R ^ within each implementation, and the difference of the posterior means divided by the root mean square of the two posterior standard deviations. Right: posterior means from the longer chains of 6,000 iterations (three for the package, three for the Python implementation).
The two-stage hybrid. The hybrid (TFT + NNGP) adds spatial structure to a deep forecaster in two stages: each year a nearest-neighbor Gaussian process ([3 , 18 ] ) with 15 space-time neighbors is fitted to the out-of-sample residuals of the seed-1 TFT over the previous three years, and its kriging prediction shifts the TFT quantiles on the logarithmic scale while their deviations from the median are multiplied by the square root of the conditional-to-marginal residual variance ratio. Its forecasts are missing for the first three target weeks of 2012. It does not improve on the TFT alone (Table S2 ): the fitted Gaussian process attributes 88% of the residual variance to the nugget, so there is little spatio-temporal structure left in the TFT residuals for kriging to exploit.
Table S2. First round, syphilis, 674 target weeks of 2012 to 2024: WIS by horizon and over all horizons, WIS relative to persistence, mean absolute error of the median, and coverage of central prediction intervals. Bold marks the best value in each column.
Further Results for DeepNB-STAR
National totals. Table S14 examines the one-week-ahead 95% prediction intervals for the national count N t = ∑ s Y s , t N_t = \sum_s Y_{s,t} N t = ∑ s Y s , t , whose predictive law under the model is that of a sum of independent negative binomial counts; its quantiles are computed exactly by convolution. The intervals cover 81% to 92% of the 677 target weeks. Holiday weeks are fixed by the calendar: the 63 reporting weeks that contain a day of the New Year holidays (29 December to 3 January), of Golden Week (29 April to 5 May) or of Obon (13 to 16 August). On syphilis the count falls below the interval in 56% of them, and the coverage of the other weeks is 87%; holidays matter less on amebiasis and EHEC and not on legionellosis. Outside holiday weeks the standardized national residual z t = ( N t − M t ) / V t 1 / 2 z_t = (N_t - M_t)/V_t^{1/2} z t = ( N t − M t ) / V t 1/2 , with M t M_t M t and V t V_t V t the mean and variance of N t N_t N t under the fitted law, still has a variance of 1.3 to 3.2 instead of one. The cause is contemporaneous dependence between prefectures that the conditional model excludes: the average pairwise correlation ρ ˉ \bar{\rho} ρ ˉ of the standardized prefecture residuals is small, 0.009 to 0.029, but with 47 sites a correlation ρ ˉ \bar{\rho} ρ ˉ multiplies the variance of a sum of equally variable terms by 1 + 46 ρ ˉ 1 + 46\bar{\rho} 1 + 46 ρ ˉ , that is, by 1.4 to 2.3. A simple out-of-sample correction multiplies the deviations of the interval endpoints from M t M_t M t by ϕ t 1 / 2 \phi_t^{1/2} ϕ t 1/2 , where ϕ t \phi_t ϕ t is the larger of one and the mean of z u 2 z_u^2 z u 2 over the forecast weeks u < t u < t u < t (from 2010); the adjusted intervals are 1.2 to 1.5 times as wide and cover 92% to 96% of the weeks, and 92% to 97% of the weeks without holidays. We report this as a diagnostic of the conditional-independence assumption, not as part of the estimator.
Computational reproducibility. The forecasts of DeepNB-STAR were regenerated from scratch, on all four panels, with the released code (code/run_v3.py, including the revised mixture-quantile routine) in the pinned software environment: every yearly fit, every simulated path and every quantile. All 5,275,656 stored predictive quantiles, the 5,275,656 raw path quantiles and the 146,828 one-step log-means and as many log-sizes were reproduced exactly; two of the four runs were interrupted and resumed from their saved state, with the same result. The comparison is in review/rerun_comparison_round6.json. For the primary comparison, on amebiasis, the benchmarks were regenerated from scratch as well, in a separate directory that contained only the code and the data: the three fits of the Temporal Fusion Transformer, the three fits of DeepAR, persistence and the negative binomial regression. Each of the eight forecast arrays, of 1,318,914 quantiles, was reproduced exactly, and so were the scores of Table 4 for amebiasis and the primary paired difference with its interval (review/rerun_benchmarks_round8.json). The benchmark forecasts of the other three panels, the ZINB-GP benchmark and Simulations A and B were not regenerated.
Table S15 to S19 give the details behind Table 4 of the main paper: WIS by horizon, relative WIS, MAE and coverage for every panel, the paired differences with all four block lengths, and the one-week-ahead comparison of model-implied and realized coverage that Theorem 7 (c) addresses.
Figure S1 shows four-week-ahead forecasts for Tokyo and Osaka, the two largest prefectures, for Okayama, of intermediate size, and for Yamagata, where most weeks have no case. The intervals widen with the level. During the sustained growth of 2021 to 2023 the forecasts lag, as autoregressive forecasts do, and the observations lie mostly in the upper half of the interval. For Yamagata the predictive distribution is concentrated on zero, one and two cases.
Simulation B: Forecasting a Spatial Panel
Simulation B of the main paper compares forecasts on panels that resemble the application: 47 sites at the locations of the Japanese prefectures, 624 weeks of which the last 104 are used for evaluation,
Table S16. EHEC: DeepNB-STAR and the benchmarks on the common target weeks of 2012–2024. Top: WIS by horizon and over all horizons, WIS relative to persistence, MAE of the median and coverage of central prediction intervals; bold marks the best value in each column. Bottom: paired weekly WIS differences, competitor minus DeepNB-STAR, with moving-block bootstrap 95% intervals for four block lengths; positive values favor DeepNB-STAR.
Table S17. Legionellosis: DeepNB-STAR and the benchmarks on the common target weeks of 2012–2024. Top: WIS by horizon and over all horizons, WIS relative to persistence, MAE of the median and coverage of central prediction intervals; bold marks the best value in each column. Bottom: paired weekly WIS differences, competitor minus DeepNB-STAR, with moving-block bootstrap 95% intervals for four block lengths; positive values favor DeepNB-STAR.
Table S18. Amebiasis (test panel of Protocol 3): DeepNB-STAR and the benchmarks on the common target weeks of 2012–2024. Top: WIS by horizon and over all horizons, WIS relative to persistence, MAE of the median and coverage of central prediction intervals; bold marks the best value in each column. Bottom: paired weekly WIS differences, competitor minus DeepNB-STAR, with moving-block bootstrap 95% intervals for four block lengths; positive values favor DeepNB-STAR.
and negative binomial counts with r = 3 r = 3 r = 3 . With u s , t = log ( 1 + Y s , t − 1 ) u_{s,t} = \log(1 + Y_{s,t-1}) u s , t = log ( 1 + Y s , t − 1 ) , v s , t = log ( 1 + Y ˉ s , t ( 4 ) ) v_{s,t} = \log(1 + \bar{Y}_{s,t}^{(4)}) v s , t = log ( 1 + Y ˉ s , t ( 4 ) ) , v ˉ s , t \bar{v}_{s,t} v ˉ s , t the logarithm of one plus the average of Y ˉ s ′ , t ( 4 ) \bar{Y}_{s',t}^{(4)} Y ˉ s ′ , t ( 4 ) over the five nearest neighbors of s s s , site effects a s a_s a s drawn independently from the normal distribution with mean − 0.2 -0.2 − 0.2 and standard deviation 0.5, and the seasonal term γ t = 0.25 sin ( 2 π w t / 52.18 ) \gamma_t = 0.25\sin(2\pi w_t/52.18) γ t = 0.25 sin ( 2 π w t /52.18 ) , the log-mean is
log-linear: a s + 0.35 u s , t + 0.25 v s , t + 0.15 v ˉ s , t + γ t , nonlinear: a s + 1.3 tanh { 0.35 ( u s , t + v s , t ) } + 1.2 ( v ˉ s , t − 1 ) 1 { v s , t < 2 } + γ t . \begin{aligned}
\text{log-linear:}\quad&a_s + 0.35u_{s,t} + 0.25v_{s,t} + 0.15\bar{v}_{s,t} + \gamma_t,\\
\text{nonlinear:}\quad&a_s + 1.3\tanh\{0.35(u_{s,t} + v_{s,t})\} + 1.2(\bar{v}_{s,t} - 1)\mathbb{1}\{v_{s,t} < 2\} + \gamma_t.
\end{aligned} log-linear: nonlinear: a s + 0.35 u s , t + 0.25 v s , t + 0.15 v ˉ s , t + γ t , a s + 1.3 tanh { 0.35 ( u s , t + v s , t )} + 1.2 ( v ˉ s , t − 1 ) 1 { v s , t < 2 } + γ t .
The seasonal term uses the week of the year w t w_t w t of the forecasting covariates, also during burn-in, so the log-linear process is exactly a negative binomial regression in the covariates of the NB regression benchmark, and that benchmark is correctly specified one week ahead. As a safeguard the log-mean is truncated to [ − 7 , 7 ] [-7, 7] [ − 7 , 7 ] ; the truncation was never active. The nonlinear process has saturating self-excitation and a neighborhood effect that switches on above a threshold and only where the local level is low, a caricature of the spread of an epidemic into unaffected regions. We compare a single fit of the constant-size special case of DeepNB-STAR, with the 13 summaries of § 2.2 and a network with three hidden layers of width 64, with the persistence forecast and with the log-linear negative binomial regression described in § 8.2 , both with rounded quantiles. The regression has site-specific intercepts; DeepNB-STAR has no site effects and must recover them from the 52-week mean in its covariates. The models are fitted to the weeks up to the last origin before the test period, and every method is scored on the same 104 target weeks at every horizon. Forecasts are scored by the weighted interval score (WIS) defined in § 8.2 .
Table S20 shows the expected pattern. Under the log-linear process the regression, which is correctly specified one week ahead, is best, and DeepNB-STAR loses 2.8% (paired difference in WIS 0.023, standard error 0.004, in favor of the regression in all 10 replications); this is the cost of estimating a nonparametric log-mean under a parametric generating mechanism. Under the nonlinear process DeepNB-STAR is better than the regression by 3.4% (paired difference 0.049, standard error 0.007) and in each of the 10 replications. Both improve on persistence by more than 20%.
Table S20. Simulation B. Weighted interval score by horizon, averaged over 47 sites, 104 target weeks and 10 replications. Smaller is better; bold marks the best method over all horizons.
Simulation D: Dependence Between Sites
Simulation D checks Theorem 8. A panel has S = 10 S = 10 S = 10 sites, each following the autoregression of Simulation C: Y s , t Y_{s,t} Y s , t given the past is NB ( exp f 0 ( X s , t ) , exp g 0 ( X s , t ) ) \operatorname{NB}(\exp f_0(X_{s,t}), \exp g_0(X_{s,t})) NB ( exp f 0 ( X s , t ) , exp g 0 ( X s , t )) with X s , t = ( l ( Y s , t − 1 ) , l ( Y s , t − 2 ) , U s , t ) X_{s,t} = (l(Y_{s,t-1}), l(Y_{s,t-2}), U_{s,t}) X s , t = ( l ( Y s , t − 1 ) , l ( Y s , t − 2 ) , U s , t ) , independent uniform inputs U s , t U_{s,t} U s , t , and the functions f 0 f_0 f 0 and g 0 g_0 g 0 of Simulation C. The counts of a period are coupled by a Gaussian copula with equicorrelation ρ \rho ρ : Y s , t = Q s , t { Φ ( ρ 1 / 2 W t + ( 1 − ρ ) 1 / 2 e s , t ) } Y_{s,t} = Q_{s,t}\{\Phi(\rho^{1/2}W_t + (1-\rho)^{1/2}e_{s,t})\} Y s , t = Q s , t { Φ ( ρ 1/2 W t + ( 1 − ρ ) 1/2 e s , t )} , where Q s , t Q_{s,t} Q s , t is the quantile function of the negative binomial law of the site, Φ \Phi Φ the standard normal distribution function and W t , e s , t W_t, e_{s,t} W t , e s , t independent standard normal variables. For every ρ \rho ρ the conditional law of each count given the past is the negative binomial law of the model, so Assumption 6 holds; the counts of a period are conditionally independent only for ρ = 0 \rho= 0 ρ = 0 . The estimator is the one of Simulation C (one fit), applied to the n = S T n = ST n = S T pooled observations; it ignores the dependence. For ρ ∈ { 0 , 0.5 , 0.9 } \rho\in\{0,0.5,0.9\} ρ ∈ { 0 , 0.5 , 0.9 } and T T T from 50 to 1,600 we ran 20 replications and computed the trajectory risks, and, on an independent trajectory of 500 periods from the same process, the coverage of the nominal 95% one-step interval for a count and of the nominal 95% interval for the total over the ten sites, the latter computed from the fitted model as if the sites were independent.
Table S21 gives the results. For every ρ \rho ρ the risk of the log-mean decreases with a log-log slope between − 0.72 -0.72 − 0.72 and − 0.74 -0.74 − 0.74 : the rate is the same, as Theorem 8 predicts for a fixed number of sites. Dependence raises the constant. At n = 16,000 n = 16{,}000 n = 16 , 000 the risk is 1.4 times that of the independent panel for ρ = 0.5 \rho= 0.5 ρ = 0.5 and 1.9 times for ρ = 0.9 \rho= 0.9 ρ = 0.9 , well below the worst-case factor S = 10 S = 10 S = 10 of the theorem, which is attained by identical sites, and the log-size is estimated less precisely under strong dependence. The intervals for single counts cover 97% of the counts for every ρ \rho ρ , above their nominal level because the counts are discrete. The nominal 95% interval for the total over the sites, computed from the fitted model as if the sites were independent, covers 95%, 61% and 49% of the periods. The estimator and the statements about single sites survive the dependence; the joint law does not.
Table S21. Simulation D. Trajectory risk of the log-mean (means over 20 replications, multiplied by 1,000), slope of its logarithm on log n n n , trajectory risk of the log-size, and out-of-sample coverage of nominal 95% one-step intervals for a single count and for the total over the ten sites, at the largest sample size.
A Second Domain: Daily Taxi-Flow Networks
This section applies DeepNB-STAR to a panel that differs from the surveillance panels in every respect that matters for the model: daily rather than weekly counts, counts in the thousands that are never zero, and sites that are strongly dependent within a day. It is a real-data counterpart of Simulation D, and we report it for what it shows about Theorem 8: the marginal forecasts transfer, the joint law does not.
Data and protocol. The data are the 1,092 daily networks of yellow-taxi passenger flows between 13 regions of Manhattan from 1 January 2017 to 31 December 2019 that Iao et al. [7 ] analyze as graph Laplacians, taken from the authors’ public repository at a fixed commit. The 78 edge weights are integer passenger counts between 4 and 43,631; each edge is a site of DeepNB-STAR. The repository carries no license, so the replication archive contains a script that downloads and converts the file and checks its digest, not the data. The protocol (review/PROTOCOL_taxi.md) was written, and its digest recorded, before any model was fitted to these data. It takes the network and optimizer of Section 8 unchanged and tunes no hyperparameter. One reparametrization was adopted after a check on 2017–2018 only, which the protocol allowed: with counts in the thousands the network did not converge in 40 epochs from an initial log-mean near zero, so the log-mean is parametrized as the logarithm of the recent level of the edge, which is a coordinate of the covariate vector, plus the network output. This change was recorded in review/PROTOCOL_taxi_outcome.md before the test year was scored.
Forecasting. The covariates of an edge are functions of the last 28 days and of the calendar: its own counts at lags 1 to 7, 14, 21 and 28 and their means over 7 and 28 days, the mean count of the 22 edges that share a vertex with it and that of all edges (lag 1, lag 7 and the 7-day mean), day-of-week indicators, annual harmonics and a learned site encoding. Weather and same-day trip summaries are not used, because they are not known at the forecast origin. The model is fitted to 2017–2018, refitted at the start of every month of 2019, and forecasts every day of 2019 at horizons of one to seven days, with exact negative binomial quantiles one day ahead and the empirical quantiles of 500 simulated joint paths beyond; three fits are averaged. The benchmarks are a log-linear negative binomial autoregression with the same covariates, site intercepts, recursion and refits, and seasonal persistence: the count seven days earlier plus the empirical quantiles of the seven-day increments of the edge over the previous 26 weeks. The neural benchmarks of the main paper were not run on this panel.
Table S22 gives the results. DeepNB-STAR has a WIS of 124.1, the log-linear autoregression 134.1 and seasonal persistence 169.1. In the comparison designated as primary by the protocol, the paired daily difference between the log-linear autoregression and DeepNB-STAR is 10.0, or 7.5% of the score of the former, with a moving-block bootstrap 95% interval of (4.4, 16.1) for blocks of 7 days; against seasonal persistence it is 45.0 (27.4, 59.7), or 27%. DeepNB-STAR has the lowest score at every horizon. On the validation quarter of the development check the two negative binomial models had been indistinguishable (WIS 185.2 and 185.1), so the gain was not anticipated when the protocol was fixed.
Table S22. Taxi networks, forecasts for 2019 (359 target days, 78 edges, horizons of 1 to 7 days). WIS with the nine levels of the main paper; MAE of the predictive median; coverage of central prediction intervals, one day ahead (*) and over all horizons; squared Frobenius error of the predicted mean Laplacian divided by the squared Frobenius norm of the mean Laplacian of 2017–2018. “Log-linear NB” is the log-linear negative binomial autoregression.
Dependence between edges. The standardized one-day-ahead residuals of different edges have an average pairwise correlation of 0.28 under DeepNB-STAR (0.26 under the log-linear autoregression), against 0.01 to 0.03 between prefectures in the surveillance panels: days differ by shocks that all edges share, such as weather, events and holidays. The data are therefore of the kind covered by Theorem 8 and not by Theorems 1–7 , and they behave as that theorem leaves room for. The marginal predictive laws are calibrated: the standardized residuals of the edges have variance 0.96, and the 95% intervals cover 95.2% of the counts one day ahead and 93.6% to 94.4% at horizons of two to seven days, although the theorem guarantees only the first. The joint law is not: under conditional independence the nominal 95% interval for the total number of passengers of a day covers 61% of the days of 2019, and the standardized residual of the total has variance 11.2 where the model implies one. A common daily factor, absent from the model, would be needed for totals or for any distributional statement about the network as a whole.
The regression task of Deep Fréchet Regression. Iao et al. [7 ] do not forecast; they regress the Laplacian of a day on the 15 predictors of the same day and report the mean squared Frobenius error under random 10-fold cross-validation. The protocol also specified this task. Under the authors’ standardization, folds and normalization, with 10 repetitions instead of 100, the Laplacian of the fitted means of the two-output network reduces the error of global Fréchet regression (Petersen and Müller [11 ] ) by 21%, least squares with the same ReLU network reduces it by 41%, and a log-linear negative binomial regression increases it by 19% (code/results/taxi/partA.json). Deep Fréchet Regression itself, for which its authors report a reduction of 45%, was not run, so there is no head-to-head comparison. The Frobenius error is dominated by the absolute errors of the few edges with the largest counts, which least squares targets directly, while a negative binomial likelihood weights relative errors; a count likelihood is not the tool for a regression scored in a Euclidean metric, and we make no claim for it there.
Relation to Closely Related Work
Table S23 places the paper among the works closest to it, in models for counts and in rates for deep networks; the search was last updated on 21 November 2026. Three points summarize the comparison.
First, the paper is not an application of a deep architecture to counts. In Svensson [15 ] the network is an amortized estimator: a transformer trained on simulated data returns the three parameters of a negative binomial regression for two groups of independent observations, the model stays parametric, and the reported conclusion is that closed-form moment estimators are the most efficient solution of that task. No finite-dimensional estimator of this kind exists for the unknown functions f 0 f_0 f 0 and g 0 g_0 g 0 of (2) ; the network is the sieve over which the likelihood is maximized, and its statistical behavior is what Theorems 1 to 8 describe. The parametric analogue in our comparison is the negative binomial regression benchmark, a log-linear mean with one size per horizon; DeepNB-STAR improves on its weighted interval score by 4.9%, 1.6%, 0.7% and 1.0% on the syphilis, EHEC, legionellosis and amebiasis panels, and the paired interval excludes zero on all but legionellosis (§ 8 ).
Second, the assumptions differ from those of the existing rate theory in kind and not only in degree. The oracle inequality is stated for the trajectory that was observed, under correct specification of the conditional law and boundedness of the two functions; stationarity and mixing are not assumed, geometric absolute regularity is derived, where it is needed, from the model, and for the estimation bounds even the conditional independence of the sites can be dropped (Theorem 8). The existing rates for deep networks assume independent observations or replications [12 , 20 ] , or mixing or a spectral gap together with bounded or Lipschitz losses [9 , 2 ] ; the existing theory for count autoregressions is parametric [4 , 10 ] or univariate with a low-dimensional link function [17 ] .
Third, the proofs use known devices, which the main text attributes, and four steps that we did not find in the literature. The supermartingale bound for the square root of a likelihood ratio is that of van de Geer [16 ] , Zhang [21 ] and Agarwal et al. [1 ] , the additivity of the Kullback–Leibler divergence over steps is used by Xu et al. [19 ] for independent trajectories with bounded log-density ratios, and Foster et al. [5 ] analyze the logarithmic loss at the level of trajectories in Hellinger distance. New here are the control of the unbounded negative binomial likelihood ratio
over a sup-norm net and in the approximation term by conditional moment generating functions (Steps 3 to 5 of the proof of Theorem 1); the two-sided comparison of the Hellinger distance with the differences of the log-mean and of the log-size on a bounded parameter set, through the first two factorial moments (Lemmas 16 and 17); the link from the sieve rate to the coverage of simulated and Rao–Blackwellized multi-step prediction intervals (Theorem 6 ); and the passage to dependent sites by the generalized Hölder inequality (Theorem 8), an elementary step that gives rates for the composite likelihood without a model for the dependence, together with the example showing that the loss of a factor S S S is unavoidable.