Skip to main content
Elsevier - PMC COVID-19 Collection logoLink to Elsevier - PMC COVID-19 Collection
. 2021 Sep 28;514(2):125677. doi: 10.1016/j.jmaa.2021.125677

Learning delay dynamics for multivariate stochastic processes, with application to the prediction of the growth rate of COVID-19 cases in the United States

Paromita Dubey a, Yaqing Chen b,1, Álvaro Gajardo b,1, Satarupa Bhattacharjee b,1, Cody Carroll b,1, Yidong Zhou b,1, Han Chen b,1, Hans-Georg Müller b,⁎,2
PMCID: PMC8494512  PMID: 34642503

Abstract

Delay differential equations form the underpinning of many complex dynamical systems. The forward problem of solving random differential equations with delay has received increasing attention in recent years. Motivated by the challenge to predict the COVID-19 caseload trajectories for individual states in the U.S., we target here the inverse problem. Given a sample of observed random trajectories obeying an unknown random differential equation model with delay, we use a functional data analysis framework to learn the model parameters that govern the underlying dynamics from the data. We show the existence and uniqueness of the analytical solutions of the population delay random differential equation model when one has discrete time delays in the functional concurrent regression model and also for a second scenario where one has a delay continuum or distributed delay. The latter involves a functional linear regression model with history index. The derivative of the process of interest is modeled using the process itself as predictor and also other functional predictors with predictor-specific delayed impacts. This dynamics learning approach is shown to be well suited to model the growth rate of COVID-19 for the states that are part of the U.S., by pooling information from the individual states, using the case process and concurrently observed economic and mobility data as predictors.

Keywords: Random delay differential equation, Functional data analysis, History index model, Time dynamics, Stochastic process, Economic activity

1. Introduction

The modeling of time dynamical systems is of interest in multiple scientific fields. While ordinary differential equations (ODE) have a long history, interest in delay differential equations (DDE) is more recent, albeit both have been extensively studied [1], [3], [22], [26], [61]. A DDE is a natural extension of an ODE when observed processes have an aftereffect. Unlike the situation for ODEs, the solution of a DDE depends not only on the initial state but on the entire history of the process in a time interval of length equal to the delay prior to the initial time point.

Moving beyond the basic notion of a deterministic ODE, random differential equations (RDE) [23], [46], [54], [55] and stochastic differential equations (SDE) [2] are used to accommodate probabilistic uncertainty in temporal stochastic processes. In this paper we focus on RDEs, where the random effects are manifested in the model parameters. These include coefficients, initial conditions and forcing terms that are typically smooth in time, leading to differentiable sample path solutions of the RDE, in contrast to the situation for SDEs, which have a non-differentiable forcing term, typically a Wiener process, and therefore require stochastic calculus [34].

Extensive developments in the theory of the forward problem of obtaining solutions for RDEs stand in contrast with statistical approaches, which include data-oriented methodology for the inverse problem, that is, learning the nature of the differential equation from data. This approach has been referred to as empirical dynamics [45]. The starting point is a sample of random trajectories that are viewed as independent and identically distributed (i.i.d.) realizations of an underlying smooth (continuously differentiable) stochastic process. For a smooth stochastic process X(t), there always exists a function f such that

E(X(t)|X(t))=f(t,X(t)), (1)
X(t)=f(t,X(t))+Z(t), (2)

with E(Z(t)|X(t))=0 almost surely. This forms the basis of empirical dynamics and has led to both parametric and nonparametric modeling approaches for f [57], [66], which can be characterized as dynamics learning from data. Due to the minimal assumptions, dynamics learning covers a large number of specific ODEs that do not need to be a priori specified, however it requires that a sample of repeated realizations of the underlying stochastic process is available. Such samples form the backbone of functional data analysis [48], [58]. A pertinent example is provided by COVID-19 caseload trajectories, where one observes samples of such trajectories across geographic units such as states or countries [18].

Related but quite distinct statistical inference concerns the problem of identifying the parameters of an a priori specified dynamic system [12], [20], [37], usually just from one or very few realizations. Here the trajectories are considered non-stochastic but are typically assumed to have been measured with noise. This leads to a curve fitting problem that in simple cases can be addressed with nonlinear least squares, but for which also nonparametric and semiparametric statistical methods have been employed [38], [47]. A key difference is that in dynamics learning one requires data that can be considered as an independent and identically distributed sample of realizations of an underlying smooth stochastic process Xi(t),i=1,,n, while the parameter identification problem is often addressed given (noisy) data from one trajectory. The modeling approach that we introduce here follows the paradigm of dynamics learning, albeit in a somewhat more structured framework than empirical dynamics.

The general form of DDEs for vector functions is

ddtx(t)=f(t,x(t),xτ(t)),

where x(t)=(x0(t),,xm(t)) is the function value or state at time t and xτ(t) can be either a vector of the states evaluated at discrete time delays τi0, i=1,...,m, so that xτ(t)=(x0(tτ0),x1(tτ1),,xm(tτm)), or alternatively an integral of the trajectory x() over a past period, representing a continuum of delays often called distributed delays [4], [5], [6], [8], [15], [27], [31], [35], [41]. Results on the existence and uniqueness of random differential equations with delay (RDED) are relatively recent, where [14] studied conditions for Lp existence and uniqueness of the solutions of a RDED and [24] the specific case of a linear RDED with a forcing term.

In this paper we propose dynamics learning from a sample of multivariate functional data, where the model generating the observed derivative trajectories is assumed to be a RDE with a delay component. The randomness in the RDE is included in the forcing term, part of which is explained by additional covariates. These are stochastic processes with individual delay components, which in the motivating COVID-19 application correspond to trajectories of mobility and economic activity. The unexplained remainder is a drift process, which appears as Z(t) in equation (2).

We utilize tools from the theory of RDE to provide a foundation for the proposed population models and establish that all the models described in Section 2 correspond to RDED with unique solutions, which depend on the model parameters. The goal is then to learn these unknown parameters, which govern the dynamics encapsulated in the population RDED, by pooling information across the sample of observed trajectories. The presence of a large number of covariates and delay components to choose from gives rise to the challenge of model selection. To address this we propose an initial pruning step as described in Section 4.2 followed by a backfitting step to optimize over a set of delay components as outlined in Section 4.3. The proposed approach differs from existing optimization strategies [41], [59], [60], [65] and statistical methodology [36] for parameter estimation that has been previously deployed to identify a DDE based on noisy data observed for a single non-stochastic trajectory. To our knowledge, dynamics learning where one has samples of stochastic processes has so far not been explored for the case of an underlying RDED, even for the case of a one-dimensional stochastic process. We furthermore demonstrate in this paper that such an approach is well suited for modeling the growth rates of COVID-19.

We consider both discrete and distributed delay models and establish existence and uniqueness of the solutions in the Lp sense [14] in Section 3. For the case of discrete delays we harness functional concurrent regression models [13], [33], [33], [51], [53] and for distributed delays the functional history-index model [40], [52], which incorporates a range of recent past values of the process. For dynamics learning of RDEDs, we adopt a two stage procedure. In a first step we utilize functional linear regression [17], [42], [63] with history index to learn the distributed delay, where the regression parameter function then corresponds to a history index function for the process of interest. In a second step the resulting linear predictor, which is the inner product of the history index function and the predictor process of interest, is used as a predictor along with additional covariate processes with covariate-specific delays in a concurrent model to fit the derivative process.

We apply this model to predict the time-dynamic growth rate of COVID-19 for individual states in the United States, where the sample of case trajectories of all states provides the sample of trajectories that is the starting point for the proposed dynamics learning. Predictor processes that we consider include the cumulative case (caseload) process, daily economic indicators and changes in mobility patterns. Modeling the time evolution dynamics of the COVID-19 pandemic is of great importance to understand and interpret the underlying associations as well as for deploying resources and formulating policies in the face of great uncertainty [7], [11], [32]. The proposed methodology is also of interest to assess the dynamics of many other empirically observed complex multivariate stochastic processes for which samples of observed trajectories are available. We show by means of leave-one-out predictions that by employing dynamics learning for the proposed RDED model with delay components one obtains considerably more accurate time-dynamic growth rate predictions for COVID-19 caseload curves compared to models without delays, demonstrating the importance of considering the inclusion of lags when modeling the growth rate of COVID-19.

2. Proposed models

Let (X(),U()) denote a multivariate stochastic process where X() is a continuously differentiable process of interest, U()=(U1(),,UJ()) is a vector function of additional covariates, and [t0,T] is a time window of interest. Consider a RDED with discrete delays,

dX(t)dt=α(t)+β0(t)X(tτ0)+j=1Jβj(t)Uj(tτj)+Z(t):=f(X(tτ0),t),t[t0,T],X(t)=g(t),t[t0τ0,t0], (3)

where g corresponds to the initial condition stochastic process, the τj,j=0,,J, are discrete delays, and α(t),β0(t),βj(t) are smooth functions whose regularity will be specified below in Section 3. In the above, Z() is a random drift process that is independent of (X(),U()).

While the inclusion of discrete delays is an extension of the classical functional concurrent regression model [48], the functional linear regression model with history index [40], [52] might be a better choice when the derivative trajectories depend not only on the predictor process value at a single past instant but on the entire continuum in the recent past. We model these distributed delays as

dX(t)dt=α(t)+0τ0γ(s,t)X(ts)ds+0τ1γ1(s,t)U(ts)ds+Z(t),t[t0,T],X(t)=g(t),t[t0τ0,t0], (4)

where g again is an initial condition process. For the purpose of illustration and technical derivations, we assume that U() is a univariate process in (4); the corresponding multivariate generalization is straightforward.

For COVID-19 modeling a hybrid model that combines distributed delay in X() with discrete delays for all other predictors Uj() turned out to be particularly suitable. In this practically relevant variant of a RDED one postulates that for all t[t0,T],

X(t)=α(t)+0τ0γ(t,s)X(ts)ds+j=1Jβj(t)Uj(tτj)+Z(t), (5)

with an initial condition X(t)=g(t),t[t0τ0,t0].

We remark here that the RDED models proposed above are linear in the model parameters, although general RDED models determined by nonlinear functions are possible and might provide greater modeling flexibility, at the cost of additional modeling complexity. For example, it is not difficult to develop population models for quadratic and polynomial versions, in analogy to functional polynomial models [62]. Modeling with linear RDEDs has the advantages that such models are easy to apply and implement, come with excellent interpretability of the model parameters, and exhibit good empirical performance in our application. For the rest of the manuscript we therefore only consider linear RDEDs and leave the development of nonlinear RDEDs for future research.

3. Existence and uniqueness of solutions

3.1. Functional concurrent model with discrete delays

Here we discuss the existence and uniqueness of the solutions of the RDEDs corresponding to the concurrent model (3) and the history-index functional linear model in (4), as well as the hybrid model in (5) used in the data application.

Consider a complete probability space (Ω,F,P), where F2Ω is the σ-algebra on Ω and P is a probability measure. Denote the space of random variables with finite pth moment by Lp (p1), that is, for Y:ΩR,YLp if E|Y|p<. A sequence of real-valued random variables Ym is said to converge to a random variable Y in the pth moment if ||YmY||p:=(E|YmY|p)1/p0 as m. We define a process Y() to be pth moment continuous if for any tmtT,||Y(tm)Y(t)||p0 as m. The notions of pth-moment differentiability and pth-moment Riemann integrability are defined similarly (see [54] Chapter 4, pages 92 and 100).

We say that a stochastic process X:TLp is a solution of an RDED in the Lp sense on the interval T if X is pth-moment differentiable on I, pth-moment continuous on T:=[t0τ0,t0]T, and X satisfies the RDED including the corresponding initial condition [14]. We require the following assumptions on the coefficient functions and predictor processes in model (3).

  • (A0)

    α() and β0() are continuous on T=[t0,T].

  • (A1)

    Z() is pth-moment continuous on T.

  • (A2)

    The predictor processes Uj satisfy Uj()Lp and are pth-moment continuous on Dj:=[t0τj,Tτj], for j=1,,J.

Calatayud et al. [14] showed the existence and uniqueness of the solution of the following general form of a random delay differential equation with discrete delay τ>0, given by

x(t,ω)=r(x(t,ω),x(tτ,ω),t,ω),t[t0,T],x(t,ω)=r0(t,ω),t0τtt0 (6)

and established the following result.

Theorem 2.2 of Calatayud et al. (2019) [14]

If r satisfies the Lipschitz condition r(x,y,t)r(u,v,t)pk(t)max{xup,yvp} , for x,yLp , t[t0,T] , and a k with t0T|k(t)|dt< , then the random delay differential equation (6) has a unique solution in the Lp sense.

The concurrent model in (3) is a special case of the random delay differential equation (6) with a specific choice of r. A key step is to show that the function f defined in (3) is pth-moment continuous. The existence and uniqueness of the solutions of (3) can then be obtained following similar arguments to those in the proof of Theorem 2.2 in [14]. We summarize this result in Proposition 1. All proofs are in the Appendix.

Proposition 1

Whenτ0>0, under the regularity conditions(A0)(A2)and assuming that the coefficientsβj()are continuous onT=[t0,T],j=1,,J, the functional concurrent DDE model given by(3)has a unique solution in theLpsense provided that the initial conditiong()ispth-moment continuous.

Remark 1

Proposition 1 requires the pth-moment continuity of g() on [t0τ0,t0] for the uniqueness of the solution in the Lp sense. If g()C1([t0τ0,t0],R) almost surely, then there exists a version of the Lp-solution which solves the RDED in the sample path sense, see Theorem 2.3 in [14] and [16]. Note that in (3), we do not include the process X(t) itself as one of the predictors; included is only the delayed version X(tτ0), where τ0>0. Hence solutions in the sample path sense do not require g to be differentiable almost surely. For τ0=0, see Remark 3.

Remark 2

The explicit sample path solution in the special case of a linear RDED has been derived in [14], [16], [24]. The linear RDED often includes random coefficients and a random time-varying forcing term. In (3), the terms involving the predictor processes Uj(), the drift process Z(), and the intercept coefficient function α() form the constituents of the random forcing term; the varying coefficient functions α,β0,βj are non-random. Using the method of steps as outlined in the proof of Theorem 2.3 in [14], we can provide a solution to (3) in the sample path sense as follows. For t[t0,t0+τ0], (3) is equivalent to an ordinary RDE given by

X(t)=f(g(tτ0),t)X(t0)=g(t0), (7)

where f is defined as in (3). Then, the solution of (7) is given by

X1(t):=X(t)=t0tf(g(sτ0),s)ds+g(t0),t[t0,t0+τ0].

Next, for t[t0+τ0,t0+2τ0],

X(t)=f(X1(tτ0),t)X(t0+τ0)=X1(t0+τ0). (8)

Solving (8) leads to

X2(t):=X(t)=t0tf(X1(sτ0),s)ds+X1(t0+τ0),t[t0+τ0,t0+2τ0].

Repeating this argument until the entire domain T=[t0,T] is covered one obtains the sample path solution. Due to the existence and uniqueness of the solution of (3) in the Lp sense and by Remark 1, the sample path solution obtained as above is unique.

Remark 3

In applications, the delay parameter can take the value zero and when τ0=0 in (3) one arrives at an ordinary RDE without delay. For this case, existence and uniqueness of solutions has been well studied (see, e.g., Theorem 5.1.1 in [54] and [55]). The sample path solution in this case can be obtained via the integration factor method and is given by

X(t)=eB(t)(g(t0)+t0tq(s)eB(s)ds),B(t):=t0tβ0(u)du,

where q(t):=f(0,t) with f defined as in (3). Here q() consists of the intercept term α(t), the predictor processes Uj(t) along with the corresponding coefficient functions βj(t),j=1,,J, and the drift process Z(t).

3.2. Functional linear model with history index for distributed delay

We start with the simplest history index model with only one predictor process U(), characterized as a first order RDED described in (4). We prove the existence of a unique solution of (4) by adopting similar arguments as those behind Proposition 2.1 and Theorem 2.2 of [14]. The extension to multivariate predictor processes U() is straightforward. Observe that one can rewrite model (4) as

X(t)=α(t)+tτ0tγ(ts,t)X(s)ds+tτ1tγ1(ts,t)U(s)ds+Z(t), (9)

where tT=[t0,T] with the initial condition X(t)=g(t),t[t0τ0,t0].

Assume that g() is pth-moment continuous on [t0τ0,t0] and define f˜:Lp×IbR such that for a pth-moment continuous process Y():[t0τ0,b]R and tIb:=[t0,b], t0<b,

f˜(Y,t)=α(t)+tτ0tγ(ts,t)Y(s)ds+tτ1tγ1(ts,t)U(s)ds+Z(t). (10)

Here f˜ is a random functional whose first argument is the trajectory {Y(s):s[t0τ0,b]} and whose second argument is t[t0,b]. The following proposition with proof in Appendix B provides the continuity of f˜ in t in the Lp sense.

Proposition 2

SupposeY:[t0τ0,b]Lpispth-moment continuous forτ0>0. Thenf˜as defined in(10)is continuous in t in theLpsense on the domain[t0,b],t0<b.

For the random process X on [t0τ0,T] and the time variable t[t0,T], the history index model (9) can be expressed as

X(t)=f˜(X,t). (11)

For the existence of a unique solution of (11) we need the following assumptions, in addition to (A0)(A2):

  • (B0)

    γ is continuous on T×T=[t0τ0,T]×[t0,T] and γ1 is continuous on T×T=[t0τ1,T]×[t0,T].

  • (B1)

    X()Lp on T=[t0τ0,T] and is pth-moment continuous on I.

The following result characterizes the solution of (11), where the integral in condition (b) of the following Proposition is defined in the pth-moment Riemann integral sense [for definition of pth-moment Riemann integrability see [54], Chapter 4 page 100].

Proposition 3

The processX:TLpis aLpsolution of(11)if and only if forτ0>0,

  • (a)

    X ispth-moment continuous on[t0τ0,T]

  • (b)

    X(t)=g(t0)+(Lp)t0tf˜(X,s)dsfor eachtT

  • (c)

    X(t)=g(t)for eacht[t0τ0,t0].

The following result establishes the existence and uniqueness of a solution for (11). The proof extends the classical Picard theorem for deterministic ODE to RDED in the Lp sense, via the Banach fixed-point theorem, following a similar line of arguments as in [14] (see Appendix B).

Theorem 1

Assume the regularity conditions(A0)(A2)and(B0)(B1). Then forτ0>0we have that

k(t)=tτ0t|γ(ts,t)|dsL1(T),tT=[t0,T],

and a solution of(4)exists and is unique in theLpsense.

For the existence and uniqueness of the solution of the hybrid model in (5), which is the most promising of the models considered for modeling the growth rate of COVID-19, the following corollary applies.

Corollary 1

Suppose the regularity conditions(A1),(A2)and(B1)hold. Ifα()and the coefficientsβj()are continuous onT=[t0,T],j=1,,J, and γ is continuous onT×T=[t0τ0,T]×[t0,T], then the model in(5)has a uniqueLpsolution.

4. Learning dynamics from samples of multivariate stochastic processes and practical considerations for COVID-19 caseload modeling

4.1. Obtaining derivatives

In data-driven differential equation modeling, given a sample of observed processes, a necessary first step is the estimation of derivatives. In applications such as the COVID-19 case trajectories the available data are usually noise-contaminated, and therefore some care is needed to obtain viable derivative estimates. The situation for the observed data for one of the trajectories is reflected by the nonparametric regression model

Yk=X(tk)+ϵk,k=1,...,K, (12)

where {tk}k=1K are the grid points where the process X is measured and ϵk are the measurement errors, which typically are considered to be independent mean zero random variables with finite variance.

In our data application, the available data Yk correspond to the cumulative case counts of COVID-19, which we consider to be noisy realizations of a smooth underlying function X() that is observed on a daily grid. For the practical estimation of the derivatives X(t) one has various choices that all require a tuning parameter. Since in preliminary studies local polynomial fitting yielded the smallest leave-one-out prediction error relative to the difference quotients, which serve as nearly unbiased targets, we opted to obtain derivatives by applying local polynomial regression [28], [44] as per Appendix C, where further details are provided.

4.2. Target model and initial lag and covariate process selection

For modeling the COVID-19 caseload process X for the states of the U.S. we adopt the RDED model (5),

X(t)=α(t)+0τ0γ(t,s)X(ts)ds+j=1Jβj(t)Uj(tτj)+Z(t),tT

where the time delay of the effect of the process X at time tT is distributed on the interval [tτ0,t], and {τj}j=1J are discrete time delays or time lags for the covariate or predictor processes Uj. Our starting point is that the data {(Xi,Ui1,,UiJ)}i=1n represent n independent realizations of the stochastic process (X,U1,,UJ), where each realization (corresponding to a state) is indexed by i and n is the number of states included in the analysis.

Given τ0, to estimate the history index weight function γ(s,t) in the historical model without covariates, we preform a function-to-scalar linear regression for each grid point tk, i.e.,

X(tk)=α(tk)+0τ0γ(s,tk)X(tks)ds+Z(tk),1kK. (13)

This can be implemented using function FLM in the R package fdapace [19]. With estimates of γ(s,tk) for each k in hand, the estimate of the history index weight function, γˆ(s,t) for all s,tT, is obtained using a two dimensional kernel smoother.

For each of the covariates Uj, we conduct an initial lag selection based on functional varying-coefficient regression including the corresponding variable as a single predictor, considering the models

X(tk)=αj(tk)+βj(tk)Uj(tkτ)+ϵjk,0jJ,1kK, (14)

where U0:=X. Given a lag τ, for each subject i and time point tk, we obtain the leave-one-out prediction

X˜i,i(tk;τ)=α˜j,i(tk)+β˜j,i(tk)Uij(tkτ),

where α˜j,i(tk) and β˜j,i(tk) are estimated by fitting model (14) by ordinary least squares, excluding the data from subject i. The lags are chosen to minimize the leave-one-out prediction error across subjects,

τ˜j=argminτ{0,1,,21}1nKi=1nk=1K(Xi(tk)X˜i,i(tk;τ))2. (15)

With initial choices of the lags {τ˜j}j=1J and the estimate γˆ obtained from model (13), for each tk, variable selection is then performed using LASSO [56],

(αˇ(tk),(βˇj(tk))j=0J)=argminαk,βkQ(αk,βk),Q(αk,βk)=i=1n(Xi(tk)αkβ0k0τ0γˆ(tk,s)X(tks)dsj=1JβjkUij(tkτ˜j))2+λj=0J|βjk|,

where βk=(β0k,,βJk). This can be implemented using the R package ncvreg [9], [10], where the tuning parameter λ is chosen by leave-one-out cross-validation. Considering all K time points simultaneously, we obtain proportions of the number of time points tk where each variable Uj is selected, i.e.,

pj=#{k:βˇj(tk)0}/K,for j=1,,J.

Subsequently, selection among the time-varying predictors {Uj}j=1J other than the process X is performed by applying a threshold on these proportions {pj}j=1J. This threshold p is chosen by leave-one-out cross-validation,

{Uj:pjp}. (16)

4.3. Lag selection by backfitting

Let V denote the set of selected predictor processes obtained using the method described in Section 4.2. Updated lag parameters are then chosen for the variables in V through an iterative backfitting algorithm such that the total leave-one-out prediction error is minimized. Given the bth iteration of the lag vector, one obtains the (b+1)st update for the kth lag by minimizing the leave-one-out integrated mean squared prediction error, i.e.,

τk(b+1)=argminτk1ni=1nT(Xi(t)Xˆi,i(b)(t;τk))2dt,

where for kV

Xˆi,i(b)(t;τk)=αˆi(b)(t)+βˆ0,i(b)(t)0τ0γˆ(t,s)Xi(ts+τ0)ds+jk,jVβˆj,i(b)(t)Uj,i(tτj(b))+βˆk,i(b)(t)Uk,i(tτk).

Here the functions βˆk,i(b)(t) represent the fitted coefficients corresponding to the bth iteration of the jth lag, jV with the ith observation held out for prediction. This process is iterated over kV until the lag vector converges. Lags are initialized at the vector τ(0)=(τ˜1,,τ˜j,,τ˜|V|)T, where τ˜j are as described in Section 4.2 and the stopping rule is such that the algorithm terminates if no lags have changed after a complete cycle of updates for all predictors. After the final lags are estimated, we lightly smooth the estimated coefficients with local linear smoothing, which is a standard procedure in concurrent functional regression modeling [25], [29]. Specifically, the initial estimates βˆj(tk) are smoothed to obtain the effect functions presented in Fig. 3, Fig. 4, defined as βˆjsmooth(t)=bˆj(0) where

(bˆj(0),bˆj(1))=argminbj(0),bj(1)k=1KK(tkth)(βˆj(tk)bj(0)bj(1)(ttk))2, (17)

with K() representing the Epanechnikov kernel with a bandwidth of h=20 days.

Fig. 3.

Fig. 3

Predicted growth rates by the proposed RDED (5) (red, dashed) and by a RDE without lags (blue, dotted) for US States, Alabama–Montana. Observed rates are the black solid curves. (For interpretation of the colors in the figure(s), the reader is referred to the web version of this article.)

Fig. 4.

Fig. 4

Predicted growth rates by the proposed RDED (5) (red, dashed) and by a RDE without lags (blue, dotted) for US States, Nebraska–Wisconsin. Observed rates are the black solid curves.

5. Random differential equation with delay fitting and prediction for COVID 19 case trajectories in the United States

5.1. Data description

We obtained daily confirmed cases across states in the United States from the COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University, which is publicly available at https://github.com/CSSEGISandData/COVID-19 and was accessed on September 19, 2020. The positive and negative COVID-19 test results per day and state were obtained from the COVID Tracking Project and are publicly available at https://COVIDtracking.com/ (accessed on September 19, 2020). The former variable refers to the number of people with confirmed or probable case of COVID-19 (see https://COVIDtracking.com/about-data/data-definitions for more details) and the latter refers to the total number of people with a completed negative PCR test. We used effective positivity rates (EPR), defined as the ratio of effective positive results (positive test or probable case) to the effective total tests (positive or probable case plus negative test results).

We also obtained features from the Opportunity Insights Economic Tracker Data [21], which is publicly available at https://github.com/OpportunityInsights/EconomicTracker (accessed on September 19, 2020). This database contains daily and state level information for several economic activity indicators such as credit and debit card expenditure across different types of activities, some of them stratified by zip codes with low/medium/high income level. We refer to [21] for more details. Additionally, we downloaded Google mobility data, publicly available at https://www.google.com/COVID19/mobility/ (accessed on September 19, 2020). These data include indicators of mobility pattern changes in different areas such as parks, residential locations, retail locations, among others; and information such as the percent change in revenue as well as total number of small businesses for high/low income consumers and across different economic activities; see Table 1 for a complete listing.

Table 1.

List of all variables considered (see Data Description Section for further details).

Item Feature description
1 cases per million
2 ratio of effective positive results to effective total tests
3 ratio of effective positive results to state population in 2019
4 individuals who are currently hospitalized with COVID-19
5 spending in all categories
6 spending in arts, entertainment, and recreation categories
7 spending in accommodation and food service categories
8 spending in general merchandise stores and apparel and accessories categories
9 spending in grocery and food store categories
10 spending in health care and social assistance categories
11 spending in transportation and warehousing categories
12 spending among high (top quartile) income ZIP codes in all categories
13 spending among low (bottom quartiles) income ZIP codes in all categories
14 spending among middle (middle two quartiles) income ZIP codes in all categories
15 time spent at retail and recreation locations
16 time spent at grocery and pharmacy locations
17 time spent at parks
18 time spent at inside transit stations
19 time spent at work places
20 time spent at residential locations
21 time spent outside of residential locations
22 number of small businesses open
23 number of small businesses open among high(top quartile) income ZIP codes
24 number of small businesses open among low(bottom quartile) income ZIP codes
25 number of small businesses open among middle(middle two quartiles) income ZIP codes
26 number of small businesses open in transportation
27 number of small businesses open in education and health services
28 number of small businesses open in leisure and hospitality
29 net revenue for small businesses
30 net revenue for small businesses among high(top quartile) income ZIP codes
31 net revenue for small businesses among low(bottom quartile) income ZIP codes
32 net revenue for small businesses among middle(middle two quartiles) income ZIP codes
33 net revenue for small businesses in transportation
34 net revenue for small businesses in education and health services
35 net revenue for small businesses in leisure and hospitality

We briefly describe a few features below and refer to the Economic Tracker source [21] for further details:

  • ‘spend all’: Seasonally adjusted credit and debit card spending relative to the period Jan 4 to Jan 31, 2020, in all merchant categories, reported as a seven day moving average formed by using the values for the current and the previous six days.

  • ‘spend tws’: Seasonally adjusted credit and debit card spending relative to the period Jan 4 to Jan 31, 2020, in the category transportation and warehousing, and also reported as a seven day moving average.

  • ‘spend all inchigh’: Seasonally adjusted credit and debit card spending by consumers living in high median income (above 75% quantile) zip codes, and relative to the period Jan 4 to Jan 31, 2020, in all merchant categories, again reported as a seven day moving average.

  • ‘revenue all’: Seasonally adjusted percent change in net revenue for small businesses and indexed to the period Jan 4 to Jan 31, 2020, reported as a seven day moving average.

  • ‘revenue ss70’: Seasonally adjusted percent change in net revenue for small businesses in leisure and hospitality and indexed to the period Jan 4 to Jan 31, 2020, reported as a seven day moving average.

  • ‘merchant inchigh’: Seasonally adjusted percent change in the number of small businesses open in high median income (above 75% quantile) zip codes and indexed to the period Jan 4 to Jan 31, 2020, reported as a seven day moving average.

  • ‘gps parks’: Corresponds to the time spent at parks relative to a baseline which is defined as the median value, for the corresponding day of the week, during the period Jan 3–Feb 6, 2020.

We employ local linear regression to slightly smooth the feature trajectories; this also allows to impute missing observations for some states and days. For this step, a Gaussian kernel with bandwidth 1.5 days was employed and we utilized the R package fdapace version 0.5.5 for the computational implementation [19]. The effective test positivity rate was smoothed analogously. We use local quadratic regression [28] to obtain the derivatives X(t), implemented by using the R package locfit version 1.5-9.4 [39]. For data analysis we consider states with population at least 1 million as the states with smaller populations had less COVID-19 cases, and their inclusion would therefore increase the overall noise level in the data and negatively impact the analysis. This is a pragmatic choice and is not a limitation of the proposed method. In the end, we included the data from 44 states (excluding Alaska, Delaware, North and South Dakota, Vermont and Wyoming).

As a result of the LASSO variable selection described in Section 4.3, which was implemented with the R package ncvreg version 3.12.0 [9] with threshold p=0.3 in (16), the features utilized in the final model are as follows, where the selected lags are listed in Table 2 .

  • 1.

    Xi(t), the total cases per million at time t for state i, i=1,,44.

  • 2.

    U1i(t), the relative time spent at park areas at time t in state i.

  • 3.

    U2i(t), the number of hospitalized people at time t in state i.

  • 4.

    U3i(t), the “positive testing rate” defined as the ratio of effective positive results (positive test or probable case) to the effective total tests (positive or probable case plus negative test results) at time t for state i.

  • 5.

    U4i(t), the credit/debit card relative spending in the arts, entertainment, and recreation category (see ‘spend aer’ predictor in Table 1) at time t in state i.

Table 2.

Predictors and their corresponding lags (see Data Description Section for further details).

Predictor variable lag
Park mobility activity U1(t) 0
Number of people currently hospitalized U2(t) 14
Effective test positivity rate U3(t) 7
Credit/debit card spending on arts, entertainment, and recreation U4(t) 3

5.2. Model fitting and results

In order to study the delay time dynamics of COVID-19 in the United States, we focus on the state-specific time-varying cumulative confirmed cases per million people, X(t), for tT, which is referred to as the case process in the following. Here, the time domain T that we consider starts on April 5 and ends on August 12 in 2020, where data are recorded once per day, on an equidistant grid for 130 days. We estimate the history coefficient function γ in the RDED model (5) as described in Section 4.2 with τ0=14, and adopt the functional varying-coefficient regression in model (5) with J=34 other variables as listed in Table 1. The estimated coefficient surface γˆ(s,t) and some of its cross-sections are displayed in Fig. 1 .

Fig. 1.

Fig. 1

(a) Estimated coefficient surface γˆ(s,t) in the RDED model (5), where t corresponds to number of days since April 5, 2020 and s takes values from 0 to τ0. (b) t-sliced cross sections for t = 1,26,51,76,101,126 of γˆ(s,t) as functions of s.

For each fixed t, γˆ(,t), the estimated history index in model (5) is found to change from positive near current time to negative with increasing lags. This means that the recent past of the process has a positive association with the current derivative while days further into the past are negatively associated. The right panel shows that the shape of γˆ(,t) changes from more or less quadratic to linear from the early days of COVID-19 to recent times, indicating that in April 2020 the contrast between the effects of near-current and past caseload on the current derivative was more pronounced than it is more recently.

5.3. Predictor process effects on growth rate

The results are visualized in Fig. 2 . States which are suffering from faster spread of the virus are characterized by higher growth rates. The historically weighted integrated case count per million has a positive effect on the growth rate. This reflects dynamic explosive behavior [45], so that states will tend to have caseloads that move even further away from the mean caseload per million across states as time moves forward, which could be either moving further above the average across states or further below it. Thus the positive effect of the history index reflects increasing variability in the caseloads across states. Potential reasons for this are the distinct policies that states implement in terms of mobility, business and social restrictions, as well as cultural acceptance of such restrictions. Spatial infectivity dynamics with waves of infections moving spatially across the U.S. also might play a major role.

Fig. 2.

Fig. 2

Concurrent effect functions βˆj for predictor processes Uj in the RDED (5).

In terms of the effects of covariate processes, our results indicate that higher park mobility during late spring and summer (May onwards) is associated with a decrease in growth rates. For each percent increase in park mobility, the growth rate decreased by as much as 10 cases per million per day, with the effect reaching its maximum in mid-summer. This indicates negligible risk and potential benefits from outdoors recreation activities.

The other covariate processes that were selected by LASSO as predictors in the RDED model (5) are patient counts at hospitals, the testing positivity rate, and credit card spending on recreational activities, including dining at restaurants. All of these were found to have positive effects on the growth rate throughout nearly the entire time domain. These effects were included in model (5) with covariate process-specific lags, as per Table 2. The number currently hospitalized was found to be most predictive for the case growth rate when including a two-week lag, whereas for test positivity rate a one-week lag was found to be most predictive. This may suggest that individuals who are infected by individuals with less severe symptoms (i.e. a non-hospitalized COVID-positive person) tend to learn of their disease one week after their infector did.

The two-week difference for hospitalized individuals is likely a reflection of the time needed to develop serious symptoms which warrant admission for medical care. The effect of recreational spending on viral spread was much more immediate; the optimal lag in this case is only 3 days. This suggests that states with higher recreational economies during the pandemic see an almost immediate uptick in growth rate, with cases increasing by as much as 25 infections per million per day for each percent of additional recreational spending.

5.4. Predictive performance of the random differential equation with delay model

Figs. 3 and 4 display the fitted growth rates provided by the RDED model (5), with covariate specific lags, and also the results of fitting a differential equation model where the covariates do not have individual lags, i.e. a concurrent RDE model given by (5) in which τj=0,j=0,1,2,3,4. Fitted curves are the result of leave-one-out predictions for each state, where the data from the left-out state were not used for fitting the model and then the state's data are plugged into the fitted model to obtain the predicted case growth rate. These predictions are compared against the actual observed growth rates as obtained by local polynomial regression (see Section 4.1 and Appendix C). Visual inspection (as well as measures of goodness-of-fit, such as integrated mean squared prediction error) indicates that the incorporation of delays with predictor specific lags in the model substantially improves the fits. This provides compelling evidence for modeling COVID-19 growth rates with RDEDs that include covariate-specific lags. A vanilla RDE without predictor delays does not incorporate historical information beyond the previous day and struggles to explain deviations in phase (as in, e.g. Illinois). The problem of modeling phase variation is instead foisted upon the coefficient functions, which are ill-equipped to reflect it, and thus at times the straight RDE model without predictor delays falters in terms of amplitude modeling as well (e.g. for Colorado). In contrast, the proposed RDED incorporates past information through the included delays and thus reflects phase variability in a natural way, especially through the inclusion of distributed delays via the history index. Including a two-week history of case counts through the history index function γ in model (5) substantially enhances the flexibility of the model. The estimates of coefficient functions are no longer uncontrollably altered by the effects of unaccounted lags, and as a result the fitted model performs much better.

5.5. Model-benchmarked evaluation of performance

A comparison of observed vs. RDED model-predicted growth rates allows one to assess the performance of states in terms of controlling spread. A state whose observed growth rate falls below the predicted curve corresponds to a negative residual and suggests better-than-expected viral control, and vice versa for observed rates which fall above the predicted curve. Fig. 5, Fig. 6 display the residual curves for the fitted RDED model (5), where positive residuals correspond to the number of excess new cases per day relative to the predictions obtained from fitting model (5), as described above, including the two-week history index and other covariate processes with their respective lags. These residuals reflect the unexplained residual stochastic process Z that is an integral and principally unpredictable part of the RDED model (5) on which our predictions are based.

Fig. 5.

Fig. 5

Residuals for the predictions from the RDED (5) for US States, Alabama–Montana.

Fig. 6.

Fig. 6

Residuals for US States, Nebraska–Wisconsin.

Major outbreaks, which can be interpreted as an unforeseen amount of excess cases, are revealed through positive spikes in the residual plots. For example, New York's residuals leap up to as high as 170 excess cases per million per day during a spike in Spring. Arizona's summer outbreak is captured in the residuals as well, subsequently course-correcting with a streak of fewer-than-expected new cases around day 100. These spikes also suggest that in the two weeks prior to the uptick, there were substantially more cases in the state population than the numbers reported in the JHU dataset.

The consistency of a state's handling of the virus can be seen through the volatility of the residual curve. States like Colorado and Oregon exhibit only minor deviations from zero, which suggests their new cases are quite predictable given a two-week history of the state case counts and covariate processes. Some states, particularly in the Northeast, including New York, New Jersey, and Rhode Island, only exhibit high volatility during the early days of the pandemic before achieving a period of stability. On the other hand, states such as Alabama and Louisiana exhibit less-predictable case counts throughout.

5.6. Computation times and code availability

The codes for reproducing the above analysis are available at https://osf.io/w48zd/?view_only=7cd3e2c686a74fd086e4eae8534214c0. The run times of the different steps in the analysis using R version 3.6.3 (2020-02-29) running under CentOS Linux 7 (Core) on x86_64-pc-linux-gnu (64-bit) platform are summarized in Table 3 .

Table 3.

Run time for the different steps in the data analysis.

Step Description Number of Cores Time in Seconds
1 preprocessing single core 9.475
2 initial lag selection 8 cores in parallel 422.505
3 history index function estimation single core 3.414
4 lasso 8 cores in parallel 31.316
5 backfitting single core 2565.715
6 smoothing single core 0.012
Total 3032.437

6. Discussion and concluding remarks

In this paper we propose dynamics learning exemplified by learning a RDED from a sample of observed trajectories, which is motivated by modeling COVID-19 daily new cases from the previous behavior of the case trajectory itself through a distributed delay or history index component and additional covariate process components. RDEDs form the driving mechanism of real life processes that include a feedback loop into the future. Depending on the application and the exact nature of the feedback, one might incorporate discrete delays or distributed delays. While discrete delays borrow information from some isolated times in the past, a distributed delay takes into account the entire continuum in the recent past and turns out to be closely related to a functional history index model that has been considered in the statistics literature.

In the current framework, we have not included inference for the estimated model coefficient functions and the lags. It is left for future research to investigate the convergence of these estimated parameters to their population targets and to obtain guarantees on the convergence rates. Some words of caution are in order. Any method that includes a time delay component suffers from the limitation that a larger set of possible lags means one has to sacrifice a part of the data that are available for the analysis, due to the initialization. We have assumed that the trajectories corresponding to the different states are i.i.d. realizations, which may not hold if there is significant spatial correlation based on geographic and demographic similarities across the states. It would be interesting to study adaptations of the proposed methodology when the samples are correlated instead of being independent. From an application point of view, a different and perhaps more refined perspective could potentially be gained by applying the proposed method at a finer level to county level data.

Establishing the existence and uniqueness of the solutions of RDEDs has found increasing interest in recent years [14], [24]. We contribute here to the forward problem of obtaining solutions of an RDED by targeting the inverse problem analytically and combine this with functional data analysis approaches to estimate the parameter functions from an observed sample of multivariate stochastic processes for both discrete and distributed delay setups. Our approach builds on and contributes to empirical dynamics and the literature on inferring dynamics and differential equations from functional data, and extends it to models that include time delays.

A key feature of the proposed approach is the statistical estimation of the model parameters in the population RDED, which has inbuilt model selection steps that aid in estimating the optimal lags and also to select the important predictors through the lasso pruning steps, with majority voting across all time points. This reduces the number of predictors in the model and thus its complexity prior to the optimization step of the lags that are associated with the predictors. To handle this complex lag optimization step, instead of a brute force search method, we adopted a backfitting algorithm, which significantly simplifies the optimization step and also leads to faster convergence. We provide a complete toolkit that starts with a sample of multivariate trajectories and extracts from the observed data an estimated RDED that best explains the dynamics inherent in the data, along with automatic variable selection and delay estimation.

The application of our method to the modeling of COVID 19 growth rates in the United States demonstrates excellent performance in terms of predictions of the trajectories. The predictions from the random differential equation model without predictor lags grossly overestimates the COVID-19 growth rates for significant periods of time in New York, New Jersey, Pennsylvania, Massachusetts, Connecticut, Virginia, West Virginia, New Hampshire, California, Texas, Colorado, Oregon, Washington, Maine and Hawaii but underestimates the growth rates for Alabama, Arizona, Arkansas, Florida, Louisiana, Nebraska, Nevada, South Carolina, Tennessee and Wisconsin; see Fig. 3, Fig. 4. This highlights the importance of incorporating time lags in differential equation modeling of functional data, when one has a sample of realized stochastic processes, specially when the underlying processes tend to have an aftereffect.

Submitted by J.J. Nieto

Footnotes

All authors declare no financial or other competing interests. The data for this study was accessed from https://github.com/OpportunityInsights/EconomicTracker[21] on September 19, 2020. The authors are not responsible for collecting the data, declare no financial interests and maintain ethical neutrality.

Appendix A. Proof of the existence of a solution for the model in (3)

Proof of continuity of f

The unique solution of the first order DDE in (3) can be shown to exist as a direct extension of Theorem 2.2 of [14].

We first show that f(y,t) is pth-moment continuous, using Assumptions (A0) - (A2) in Section 3.1. Observe that

(E|f(ym,tm)f(y,t)|p)1/p=(E|α(tm)α(t)+β0(tm)ymβ0(t)y+Z(tm)Z(t)+j=1Jβj(tm)Uj(tmτj)j=1Jβj(t)Uj(tτj)|p)1/p|α(tm)α(t)|+||β0(tm)ymβ0(t)y||p+||Z(tm)Z(t)||p+j=1J||βj(tm)Uj(tmτj)βj(t)Uj(tτj)||p. (A.1)

The first and third terms in (A.1) converge to 0 using (A0), (A1) respectively. For the second and fourth terms of (A.1),

||β0(tm)ymβ0(t)y||p||β0(tm)ymβ0(tm)y||p+||β0(tm)yβ0(t)y||p|β0(tm)|||ymy||p+|β0(tm)β0(t)|||y||p. (A.2)

By Assumption (A0), β0(tm) is continuous on the compact domain T, and hence uniformly bounded. Also, by assumption ymy, in the pth-moment. Since Lp, the space of random variables with finite pth moments, is a Banach space, it follows that ||y||p:=(E|y|p)1/p<. Thus (A.2) converges to 0. Next

j=1J||βj(tm)Uj(tmτj)βj(t)Uj(tτj)||pj=1J||βj(tm)(Uj(tmτj)Uj(tτj))+(βj(tm)βj(t))Uj(tτj)||pj=1J|βj(tm)|||Uj(tmτj)Uj(tτj)||p+|βj(tm)βj(t)|||Uj(tτj)||p, (A.3)

and (A.3) converges to 0 using the assumptions on the continuity of the coefficient functions βj() on the compact domain T. This implies the uniform boundedness of βj and the continuity of the predictor processes Uj()Lp in the pth moment for j=1,,J. Hence the proof of continuity of f(y,t) follows immediately by combining (A.1), (A.2), and (A.3). □

Proof of Proposition 1

Let k(t)=β0(t),tT. Since, by Assumption (A0), β0() is continuous on a compact domain, we have t0T|k(t)|dt<. For y,vLp and tT, we obtain

||f(y,t)f(v,t)||p=||β0(t)(yv)||p|β0(t)|||yv||p. (A.4)

Since f is pth-moment continuous, the proof follows using the same line of arguments as in [14]. □

Appendix B. Proof of the existence of a solution for the model in (4)

For ease of presentation, we will begin by showing the existence of the unique solution of the first order RDED (4) with one predictor process U(), rewritten as in (11). The arguments can then be easily extended to the case of multiple predictor processes, and we omit the details.

Proof of Proposition 2

Recall that tm[t0,b] is a real sequence converging to t[t0,b] and Y is an Lp-continuous process, so that

||f˜(Y,tm)f˜(Y,t)||p=α(tm)α(t)+tmτ0tmγ(tms,tm)Y(s)dstτ0tγ(ts,t)Y(s)ds+tmτ1tmγ1(tms,tm)U(s)dstτ1tγ1(ts)U(s)ds+Z(tm)Z(t)p|α(tm)α(t)|+||Z(tm)Z(t)||p+tmτ0tmγ(tms,tm)Y(s)dstτ0tγ(ts,t)Y(s)dsp+tmτ1tmγ1(tms,tm)U(s)dstτ1tγ1(ts,t)U(s)dsp. (B.1)

Using (A0), (A1), respectively, the first and second term of (B.1) converge to 0. As before, we consider the third and fourth terms separately,

tmτ0tmγ(tms,tm)Y(s)dstτ0tγ(ts,t)Y(s)dsptmτ0tmγ(tms,tm)Y(s)dstmτ0tmγ(ts,t)Y(s)dsp+tmτ0tmγ(ts,t)Y(s)dstτ0tγ(ts,t)Y(s)dsptmτ0tm(γ(tms,tm)γ(ts,t))Y(s)dsp+tmτ0tmγ(ts,t)Y(s)dstτ0tγ(ts,t)Y(s)dsp. (B.2)

For the first term in (B.2),

tmτ0tm(γ(tms,tm)γ(ts,t))Y(s)dsptmτ0tm(γ(tms,tm)γ(ts,t))Y(s)pdst0τ0b(γ(tms,tm)γ(ts,t))Y(s)pds=t0τ0b|(γ(tms,tm)γ(ts,t))|Y(s)pds, (B.3)

where the first inequality follows from the fact that the integrand is pth moment continuous, using Assumption (B0) and the assumption that Y()Lp (see [54] page 102(3)). The second inequality follows using the properties of Lp Riemann integration. Now, from Assumption (B0), we have that for any ϵ>0 there exists M0(ϵ) such that |(γ(tms,tm)γ(ts,t))|<ε whenever mM0(ϵ). Thus, from (B.3) it follows that

t0τ0b||(γ(tms,tm)γ(ts,t))Y(s)||pdst0τ0bϵ||Y(s)||pds. (B.4)

Since ||Y(s)||p< and [t0τ0,b] is compact, to show that t0τ0b||Y(s)||pds< it is sufficient to prove that the application s||Y(s)||p is continuous on [t0τ0,b]. For this, let sms as m. By Assumption (B1) we have

|||Y(sm)||p||Y(s)||p|||Y(sm)Y(s)||p0 as m.

Hence

||tmτ0tm(γ(tms,tm)γ(ts,t))Y(s)ds||p0, as m0. (B.5)

For the function Ψ(r):=rτ0rγ(ts,t)Y(s)ds, r[t0,b],

Ψ(r)=rτ0rγ(ts,t)Y(s)ds=t0τ0rγ(ts,t)Y(s)dst0τ0rτ0γ(ts,t)Y(s)ds=t0τ0rγ(ts,t)Y(s)dst0rγ(tu+τ0,t)Y(uτ0)du.

From [54] page 103(5), each term in the RHS of the above equation is pth-moment continuous. Hence, by definition, for tmt,||Ψ(tm)Ψ(t)||p=||tmτ0tmγ(ts,t)Y(s)dstτ0tγ(ts,t)Y(s)ds||p0, and the second term in (B.2) also converges to zero as m. As for the convergence of the remaining fourth term, involving the predictor process U() in (B.1), we can follow a similar line of argument to obtain

tmτ1tmγ1(tms,tm)U(s)dstτ1tγ1(ts,t)U(s)dsptmτ1tm(γ1(tms,tm)γ1(ts,t))U(s)dsp+tmτ1tmγ1(ts,t)U(s)dstτ1tγ1(ts,t)U(s)dsp0, using Assumptions (A2) and (B0). (B.6)

Thus, (E|f˜(Y,tm)f˜(Y,t)|p)1/p0, for a sequence tmt as m, implying the pth-moment continuity of f˜(Y,t) for all tI. The pth-moment continuity of the process f˜(Y,) follows by definition. □

As a consequence of the above result, we observe that f˜(X,t) in (11) is continuous in tT=[t0,T] in the Lp sense, by simply choosing b=T.

Proof of Proposition 3

Suppose X is an Lp solution of (11). Then by definition, (a) and (c) hold. Since X is pth-moment continuous (see Assumption (B1)) and the process f˜(X,) is Lp-continuous on T=[t0,T], it follows from [54] page 101(1) that X is pth-moment continuous and pth-moment Riemann integrable on T. Thus from the Fundamental Theorem of Lp Calculus ([54] page 104(6))

X(t)=g(t0)+(Lp)t0tX(s)ds=g(t0)+t0tf˜(X,s)ds,

and condition (b) holds. On the other hand, if conditions (a)(c) are true, X is indeed an Lp solution of (11), since the process f˜(X,) was shown to be continuous. Thus f˜(X,) is pth-moment Riemann integrable on T ([54] page 101 (1)), and t0tf˜(X,s)ds is well defined in the Lp sense. From the result on page 103 (5) of [54], it follows that X is pth-moment differentiable on T, with X(t)=f˜(X,t). Hence the proposition follows. □

Proof of Theorem 1

From the history index model in (11)

X(t)=f˜(X,t)=α(t)+tτ0tγ(ts,t)X(s)ds+tτ1tγ1(ts,t)U(s)ds+Z(t).

For k(t)=tτ0t|γ(ts,t)|ds, since γ is continuous on a compact domain, hence uniformly bounded, we have kL1(T). Following the arguments outlined in the proof of Theorem 2.2 in [14], this implies limtt0+t0tk(s)ds=0. Thus, we can choose α>t0 such that, for all tTα=[t0,α]T,t0tk(s)ds1/2. Consider the vector space

A={X:[t0τ0,α]Lp continuous,X(t)=g(t) on [t0τ0,t0]},

with norm XA=supt[t0τ0,α]X(t)p. We note that XA is well-defined because, by the pth-moment continuity of X, the real map tX(t)p,t[t0τ0,α] is continuous. Therefore supt[t0τ0,α]X(t)p<.

As shown in the proof of Theorem 2.2 of [14], A is a Banach space. Consider the map Λ:AA such that

Λ(X)(t)={g(t0)+(Lp)t0tf˜(X,s)ds,tTα=[t0,α],g(t),t[t0τ0,t0].

If XA, it follows by taking b=α in Proposition 2 that the process f˜(X,t) is pth-moment continuous over tTα. From arguments on p. 103 (5) of [54], the pth-moment Riemann integral (Lp)t0tf˜(X,s)ds is continuous. Also, the initial condition g() is continuous on [t0τ0,t0]. Thus ΛX:[t0τ0,α]Lp is continuous on [t0τ0,α] satisfying ΛX(t)=g(t) on [t0τ0,t0]. By definition ΛXA, so Λ is well defined.

Since from Proposition 3, X:TαLp is a solution of equation (11) if and only if XA and ΛX=X, by the Banach fixed-point theorem, it suffices to check that Λ is a contraction. Let X,YA and tTα and observe that if t[t0τ0,t0] then ΛX(t)ΛY(t)=g(t)g(t)=0). From arguments on p. 102 (3) of [54]

ΛX(t)ΛY(t)p=(Lp)t0t(f˜(X,s)f˜(Y,s))dspt0tf˜(X,s)f˜(Y,s)pds=t0tsτ0sγ(su,s)(X(u)Y(u))dupdst0tsτ0s|γ(su,s)|X(u)Y(u)pdudst0tsτ0s|γ(su,s)|dudsXYA=t0tk(s)dsXYA12XYA. (B.7)

Taking the supremum on t[t0τ0,α], ΛXΛYA12XYA. Therefore Λ is a contraction. The remainder of the proof follows similar arguments as in the proof of Theorem 2.2 of [14]. □

Proof of Corollary 1

Similar to (10), define h˜:Lp×IbR such that for an Lp-continuous function Y():[t0τ0,b]R and tIb:=[t0,b], t0<b,

h˜(Y,t)=α(t)+tτ0tγ(ts,t)Y(s)ds+j=1Jβj(t)Uj(tτj)+Z(t).

Here h˜ is a random functional with first argument given by trajectories {Y(s):s[t0τ0,b]} and second argument t[t0,b]. Note that h˜ constitutes a distributional delay term on Y and a discrete concurrent delay on the predictors Uj. Thus

||h˜(Y,tm)h˜(Y,t)||p|α(tm)α(t)|+||Z(tm)Z(t)||p+tmτ0tmγ(tms,tm)Y(s)dstτ0tγ(ts,t)Y(s)dsp+j=1Jβj(tm)Uj(tmτj)βj(t)Uj(tτj)p.

By similar arguments as in the proof of the continuity of f in Appendix A and the proof of Proposition 2 in Appendix B, the continuity of h˜ in the Lp sense in t follows. The existence and uniqueness follows by the same arguments as in the proof of Theorem 1. □

Appendix C. Derivative estimation

For derivative estimation, we employ the local polynomial estimator for derivatives, motivated by local polynomial approximation [28], [43], which leads to the weighted least squares estimates θˆl that correspond to solving

argminθlRk=1K{Ykl=0Lθl(tkt)l}2Kh(tkt), (C.1)

where K is a kernel function with Kh()=K(/h)/h and h is a tuning parameter. A well-studied estimator for the ν-th order derivative x(ν)(t) is given by

xˆ(ν)(t)=ν!θˆν, (C.2)

for ν=0,1,,L. The whole curve xˆ(ν)() is obtained by running the above local polynomial regression with t varying in an appropriate estimation domain.

For local polynomial fitting Lν preferably is taken to be odd as shown in Ruppert & Wand [50] and Fan & Gijbels [28]. To obtain an estimate of the first derivative, i.e., for ν=1, the choice L=ν+1=2 leads to the so-called local quadratic regression and the derivative estimate xˆ(t) is given by the local slope θˆ1. Other common methods for derivative estimation can be based on smoothing splines or B-splines [49], [64]. An alternative method is based on difference quotients, which provides a straightforward approach for pointwise estimation of derivatives. Difference quotient-based estimators have been thoroughly studied in the context of human growth curves in the nonparametric regression literature [30], [43], [44].

References

  • 1.Ablowitz M., Ladik J. Nonlinear differential-difference equations. J. Math. Phys. 1975;16:598–603. [Google Scholar]
  • 2.Arnold L. Wiley; New York: 1974. Stochastic Differential Equations. [Google Scholar]
  • 3.Asl F.M., Ulsoy A.G. Analysis of a system of linear delay differential equations. J. Dyn. Syst. Meas. Control. 2003;125:215–223. [Google Scholar]
  • 4.Aziz I., Amin R. Numerical solution of a class of delay differential and delay partial differential equations via Haar wavelet. Appl. Math. Model. 2016;40:10286–10299. [Google Scholar]
  • 5.Bellen A., Zennaro M. Oxford University Press; 2013. Numerical Methods for Delay Differential Equations. [Google Scholar]
  • 6.Beretta E., Hara T., Ma W., Takeuchi Y. Global asymptotic stability of an SIR epidemic model with distributed time delay. Nonlinear Anal., Theory Methods Appl. 2001;47:4107–4115. [Google Scholar]
  • 7.Bertozzi A.L., Franco E., Mohler G., Short M.B., Sledge D. The challenges of modeling and forecasting the spread of COVID-19. Proc. Natl. Acad. Sci. 2020;117:16732–16738. doi: 10.1073/pnas.2006520117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Bjorklund S., Ljung L. 42nd IEEE International Conference on Decision and Control (IEEE Cat. No. 03CH37475), vol. 3. IEEE; 2003. A review of time-delay estimation techniques; pp. 2502–2507. [Google Scholar]
  • 9.Breheny P. ncvreg: regularization paths for SCAD and MCP penalized regression models. 2020. https://CRAN.R-project.org/package=ncvreg R package version 3.12.0, available at.
  • 10.Breheny P., Huang J. Coordinate descent algorithms for nonconvex penalized regression, with applications to biological feature selection. Ann. Appl. Stat. 2011;5:232–253. doi: 10.1214/10-AOAS388. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Brett T.S., Rohani P. Transmission dynamics reveal the impracticality of COVID-19 herd immunity strategies. Proc. Natl. Acad. Sci. 2020;117:25897–25903. doi: 10.1073/pnas.2008087117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Brunel N.J.-B. Parameter estimation of ODE's via nonparametric estimators. Electron. J. Stat. 2008;2:1242–1267. [Google Scholar]
  • 13.Cai Z., Fan J., Li R. Efficient estimation and inferences for varying-coefficient models. J. Am. Stat. Assoc. 2000;95:888–902. [Google Scholar]
  • 14.Calatayud J., Cortés J.-C., Jornet M. Random differential equations with discrete delay. Stoch. Anal. Appl. 2019;37:699–707. [Google Scholar]
  • 15.Caraballo T., Colucci R., Guerrini L. On a predator prey model with nonlinear harvesting and distributed delay. Commun. Pure Appl. Anal. 2018;17:2703. [Google Scholar]
  • 16.Caraballo T., Cortés J.-C., Navarro-Quiles A. Applying the random variable transformation method to solve a class of random linear differential equation with discrete delay. Appl. Math. Comput. 2019;356:198–218. [Google Scholar]
  • 17.Cardot H., Ferraty F., Sarda P. Functional linear model. Stat. Probab. Lett. 1999;45:11–22. [Google Scholar]
  • 18.Carroll C., Bhattacharjee S., Chen Y., Dubey P., Fan J., Gajardo Á., Zhou X., Müller H.-G., Wang J.-L. Time dynamics of COVID-19. Sci. Rep. 2020;10:1–14. doi: 10.1038/s41598-020-77709-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Carroll C., Gajardo Á., Chen Y., Dai X., Fan J., Hadjipantelis P.Z., Han K., Ji H., Müller H.-G., Wang J.-L. fdapace: functional data analysis and empirical dynamics. 2020. https://CRAN.R-project.org/package=fdapace R package version 0.5.5, available at.
  • 20.Chen J., Wu H. Efficient local estimation for time-varying coefficients in deterministic dynamic models with applications to HIV-1 dynamics. J. Am. Stat. Assoc. 2008;103:369–384. [Google Scholar]
  • 21.Chetty R., Friedman J., Hendren N., Stepner M., The Opportunity Insights Team The economic impacts of COVID-19: evidence from a new public database built using private sector data. Nat. Bureau Econ. Res. 2020 doi: 10.1093/qje/qjad048. (Working Paper No. 27431) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Coddington E.A., Levinson N. Tata McGraw-Hill Education; 1955. Theory of Ordinary Differential Equations. [Google Scholar]
  • 23.Cortés J.C., Jódar L., Villafuerte L. Numerical solution of random differential equations: a mean square approach. Math. Comput. Model. 2007;45:757–765. [Google Scholar]
  • 24.Cortés J.C., Jornet M. Lp-solution to the random linear delay differential equation with a stochastic forcing term. Mathematics. 2020;8:1013. [Google Scholar]
  • 25.Şentürk D., Müller H.-G. Generalized varying coefficient models for longitudinal data. Biometrika. 2008;95:653–666. [Google Scholar]
  • 26.Driver R.D. Springer Science & Business Media; 2012. Ordinary and Delay Differential Equations. [Google Scholar]
  • 27.Elnaggar A., Dumont G.A., Elshafei A.-L. Proceedings of the 28th IEEE Conference on Decision and Control. IEEE; 1989. Recursive estimation for system of unknown delay; pp. 1809–1810. [Google Scholar]
  • 28.Fan J., Gijbels I. CRC Press; 1996. Local Polynomial Modelling and Its Applications: Monographs on Statistics and Applied Probability, vol. 66. [Google Scholar]
  • 29.Fan J., Zhang J.-T. Two-step estimation of functional linear models with applications to longitudinal data. J. R. Stat. Soc. B. 2000;62:303–322. [Google Scholar]
  • 30.Gasser T., Köhler W., Müller H., Kneip A., Largo R., Molinari L., Prader A. Velocity and acceleration of height growth using kernel estimation. Ann. Human Biol. 1984;11:397–411. doi: 10.1080/03014468400007311. [DOI] [PubMed] [Google Scholar]
  • 31.Gurney W., Blythe S., Nisbet R. Nicholson's blowflies revisited. Nature. 1980;287:17–21. [Google Scholar]
  • 32.S.-T. Hao, J.-L. Wang, Dynamic modeling of multivariate longitudinal data, UC Davis, preprint, 2021.
  • 33.Huang J.Z., Wu C.O., Zhou L. Polynomial spline estimation and inference for varying coefficient models with longitudinal data. Stat. Sin. 2004;14:763–788. [Google Scholar]
  • 34.Itô K. On a formula concerning stochastic differentials. Nagoya Math. J. 1951;3:55–65. [Google Scholar]
  • 35.Jacovitti G., Scarano G. Discrete time techniques for time delay estimation. IEEE Trans. Signal Process. 1993;41:525–533. [Google Scholar]
  • 36.Jarne A., Commenges D., Villain L., Prague M., Lévy Y., Thiébaut R. Modeling CD4+ T cells dynamics in HIV-infected patients receiving repeated cycles of exogenous Interleukin 7. Ann. Appl. Stat. 2017;11:1593–1616. [Google Scholar]
  • 37.Li Z., Osborne M.R., Prvan T. Parameter estimation of ordinary differential equations. IMA J. Numer. Anal. 2005;25:264–285. [Google Scholar]
  • 38.Liang H., Wu H. Parameter estimation for differential equation models using a framework of measurement error in regression models. J. Am. Stat. Assoc. 2008;103:1570–1583. doi: 10.1198/016214508000000797. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Loader C. locfit: local regression, likelihood and density estimation. R package version 1.5-9.4. 2020. https://CRAN.R-project.org/package=locfit available at:
  • 40.Malfait N., Ramsay J.O. The historical functional linear model. Can. J. Stat. 2003;31:115–128. [Google Scholar]
  • 41.Mehrkanoon S., Mehrkanoon S., Suykens J.A. Parameter estimation of delay differential equations: an integration-free LS-SVM approach. Commun. Nonlinear Sci. Numer. Simul. 2014;19:830–841. [Google Scholar]
  • 42.Morris J.S. Functional regression. Annu. Rev. Stat. Appl. 2015;2:321–359. [Google Scholar]
  • 43.Müller H.-G. Weighted local regression and kernel methods for nonparametric curve fitting. J. Am. Stat. Assoc. 1987;82:231–238. [Google Scholar]
  • 44.Müller H.-G., Stadtmüller U., Schmitt T. Bandwidth choice and confidence intervals for derivatives of noisy data. Biometrika. 1987;74:743–749. [Google Scholar]
  • 45.Müller H.-G., Yao F. Empirical dynamics for longitudinal data. Ann. Stat. 2010;38:3458–3486. [Google Scholar]
  • 46.Neckel T., Rupp F. Walter de Gruyter; 2013. Random Differential Equations in Scientific Computing. [Google Scholar]
  • 47.Paul D., Peng J., Burman P. Semiparametric modeling of autonomous nonlinear dynamical systems with application to plant growth. Ann. Appl. Stat. 2011;5:2078–2108. [Google Scholar]
  • 48.Ramsay J., Silverman B. Springer-Verlag; New York: 2005. Functional Data Analysis. [Google Scholar]
  • 49.Rice J., Rosenblatt M. Smoothing splines: regression, derivatives and deconvolution. Ann. Stat. 1983;11:141–156. [Google Scholar]
  • 50.Ruppert D., Wand M.P. Multivariate locally weighted least squares regression. Ann. Stat. 1994;22:1346–1370. [Google Scholar]
  • 51.Şentürk D., Müller H.-G. Generalized varying coefficient models for longitudinal data. Biometrika. 2008;95:653–666. [Google Scholar]
  • 52.Şentürk D., Müller H.-G. Functional varying coefficient models for longitudinal data. J. Am. Stat. Assoc. 2010;105:1256–1264. [Google Scholar]
  • 53.Şentürk D., Nguyen D.V. Varying coefficient models for sparse noise-contaminated longitudinal data. Stat. Sin. 2011;21:1831–1856. doi: 10.5705/ss.2009.328. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Soong T.T. Academic Press; New York: 1973. Random Differential Equations in Science and Engineering. [Google Scholar]
  • 55.Strand J. Random ordinary differential equations. J. Differ. Equ. 1970;7:538–553. [Google Scholar]
  • 56.Tibshirani R. Regression shrinkage and selection via the lasso. J. R. Stat. Soc., Ser. B. 1996;58:267–288. [Google Scholar]
  • 57.Verzelen N., Tao W., Müller H.-G. Inferring stochastic dynamics from functional data. Biometrika. 2012;99:533–550. [Google Scholar]
  • 58.Wang J.-L., Chiou J.-M., Müller H.-G. Functional data analysis. Annu. Rev. Stat. Appl. 2016;3:257–295. [Google Scholar]
  • 59.Wang L., Cao J. Estimating parameters in delay differential equation models. J. Agric. Biol. Environ. Stat. 2012;17:68–83. [Google Scholar]
  • 60.Wang S., Wang L. Adaptive semiparametric Bayesian differential equations via sequential Monte Carlo. 2020. arXiv:2002.02571 arXiv preprint:
  • 61.Weiss L. On the controllability of delay-differential systems. SIAM J. Control. 1967;5:575–587. [Google Scholar]
  • 62.Yao F., Müller H.-G. Functional quadratic regression. Biometrika. 2010;97:49–64. [Google Scholar]
  • 63.Yao F., Müller H.-G., Wang J.-L. Functional linear regression analysis for longitudinal data. Ann. Stat. 2005;33:2873–2903. [Google Scholar]
  • 64.Zhou C., Wolfe D.A. On derivative estimation in spline regression. Stat. Sin. 2000;10:93–108. [Google Scholar]
  • 65.Zhou Z. University of Iowa; 2016. Statistical Inference of Distributed Delay Differential Equations. Ph.D. thesis. [Google Scholar]
  • 66.Zhu B., Taylor J.M., Song P.X.-K. Semiparametric stochastic modeling of the rate function in longitudinal studies. J. Am. Stat. Assoc. 2011;106:1485–1495. doi: 10.1198/jasa.2011.tm09294. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Journal of Mathematical Analysis and Applications are provided here courtesy of Elsevier

RESOURCES