1 Introduction

Let \(\mathbb {T} = [0,T], \ T < \infty \), \(f :\mathbb {T} \times \mathbb {R}^d \rightarrow \mathbb {R}^d\), \(y_0 \in \mathbb {R}^d\) and consider the following ordinary differential equation (ODE):

$$\begin{aligned} Dy(t) = f(t,y(t)), \ y(0) = y_0, \end{aligned}$$

where D denotes the time derivative operator. Approximately solving (1) on a discrete mesh \(\mathbb {T}_N = \{t_n\}_{n=0}^N, \ 0 = t_0< t_1< \ldots < t_N = T\), involves finding a function \(\hat{y}\) such that \(\hat{y}(t_n) \approx y(t_n), \ n = 0, 1, \ldots , N\) and a procedure for finding \(\hat{y}\) is called a numerical solver. This is an important problem in science and engineering, and vast base of knowledge has accumulated on it (Deuflhard and Bornemann 2002; Hairer et al. 1987; Hairer and Wanner 1996; Butcher 2008).

Classically, the error of a numerical solver is quantified in terms of the worst-case error. However, in applications where a numerical solution is sought as a component of a larger statistical inference problem (see, for example, Matsuda and Miyatake 2019; Kersting et al. 2020), it is desirable that the error can be quantified with the same semantic, that is to say, probabilistically (Hennig et al. 2015; Oates and Sullivan 2019). Hence, the recent endeavour to develop probabilistic ODE solvers.

Probabilistic ODE solvers can roughly be divided into two classes, sampling based solvers and deterministic solvers. The former class includes classical ODE solvers that are stochastically perturbed (Teymur et al. 2016; Conrad et al. 2017; Teymur et al. 2018; Abdulle et al. 2020; Lie et al. 2019), solvers that approximately sample from a Bayesian inference problem (Tronarp et al. 2019b), and solvers that perform Gaussian process regression on stochastically generated data (Chkrebtii et al. 2016). Deterministic solvers formulate the problem as a Gaussian process regression problem, either with a data generation mechanism (Skilling 1992; Hennig and Hauberg 2014; Schober et al. 2014; Kersting and Hennig 2016; Magnani et al. 2017; Schober et al. 2019) or by attempting to constrain the estimate to satisfy the ODE on the mesh (Tronarp et al. 2019b; John et al. 2019). For computational reasons, it is fruitful to select the Gaussian process prior to be Markovian (Kersting and Hennig 2016; Magnani et al. 2017; Schober et al. 2019; Tronarp et al. 2019b), as this reduces cost of inference from \(O(N^3)\) to O(N) (Särkkä et al. 2013; Hartikainen and Särkkä 2010). Due to the connection between inference with Gauss–Markov processes priors and spline interpolation (Kimeldorf and Wahba 1970; Weinert and Kailath 1974; Sidhu and Weinert 1979), the Gaussian process regression approaches are intimately connected with the spline approach to ODEs (Schumaker 1982; Wahba 1973). Convergence analysis for the deterministic solvers has been initiated, but the theory is as of yet not complete (Kersting et al. 2018).

The formal notion of Bayesian solvers was defined by Cockayne et al. (2019). Under particular conditions on the vector field, the solvers of Kersting and Hennig (2016); Magnani et al. (2017); Schober et al. (2019); Tronarp et al. (2019b) produce the exact posterior, if in addition a smoothing recursion is implemented, which corresponds to solving the batch problem as posed by John et al. (2019). In some cases, the exact Bayesian solution can also be obtained by exploiting Lie theory (Wang et al. 2018).

In this paper, the Bayesian formalism of Cockayne et al. (2019) is adopted for probabilistic solvers and priors of Gauss–Markov type are considered. However, rather than the exact posterior, the maximum a posteriori (MAP) estimate is studied. Many of the aforementioned Gaussian inference approaches are related to the MAP estimate. Due to the Gauss–Markov prior, the MAP estimate can be computed efficiently by the iterated extended Kalman smoother (Bell 1994). Furthermore, the Gauss–Markov prior corresponds to a reproducing kernel Hilbert space (RKHS) of Sobolev type and the MAP estimate is equivalent to an optimal interpolant in this space. This enables the use of results from scattered data approximation (Arcangéli et al. 2007) to establish, under mild conditions, that the MAP estimate converges to the true solution at a high polynomial rate in terms of the fill distance (or equivalently, the maximum step size).

The rest of the paper is organised as follows. In Sect. 2, the solution of the ODE (1) is formulated as a Bayesian inference problem. In Sect. 3, the associated MAP problem is stated and the iterated extended Kalman smoother for computing it is presented (Bell 1994). In Sect. 4, the connection between MAP estimation and optimisation in a certain reproducing kernel Hilbert space is reviewed. In Sect. 5, the error of the MAP estimate is analysed, for which polynomial convergence rates in the fill distance are obtained. These rates are demonstrated in Sect. 7, and the paper is finally concluded by a discussion in Sect. 8.

1.1 Notation

Let \(\varOmega \subset \mathbb {R}\), then for a (weakly) differentiable function \(u :\varOmega \rightarrow \mathbb {R}^d\), its (weak) derivative is denoted by Du, or sometimes \(\dot{u}\). The space of m times continuously differentiable functions from \(\varOmega \) to \(\mathbb {R}^d\) is denoted by \(C^m(\varOmega ,\mathbb {R}^d)\). The space of absolutely continuous functions is denoted by \(\mathrm {AC}(\varOmega ,\mathbb {R}^d)\). The vector-valued Lesbegue spaces are denoted by \(\mathcal {L}_p(\varOmega ,\mathbb {R}^d)\) and the related Sobolev spaces of m times weakly differentiable functions are denoted by \(H_p^m(\varOmega ,\mathbb {R}^d)\), that is, if \(u \in H^m_p(\varOmega ,\mathbb {R}^d)\) then \(D^m u \in \mathcal {L}_p(\varOmega ,\mathbb {R}^d)\). The norm of \(y \in \mathcal {L}_p(\varOmega ,\mathbb {R}^d)\) is given by

$$\begin{aligned} \Vert y\Vert _{\mathcal {L}_p(\varOmega ,\mathbb {R}^d)} = \sum _{i=1}^d \Vert y_i\Vert _{\mathcal {L}_p(\varOmega ,\mathbb {R})}. \end{aligned}$$

If \(p = 2\), the equivalent norm

$$\begin{aligned} \Vert y\Vert _{\mathcal {L}_p(\varOmega ,\mathbb {R}^d)} = \sqrt{\sum _{i=1}^d \Vert y_i\Vert _{\mathcal {L}_p(\varOmega ,\mathbb {R})}^2} \end{aligned}$$

is sometimes used. The Sobolev (semi-)norms are given by (Adams and Fournier 2003; Valent 2013)

$$\begin{aligned}&|y|_{H_p^\alpha (\varOmega ,\mathbb {R})} = \Vert D^\alpha y\Vert _{\mathcal {L}_p(\varOmega ,\mathbb {R})}, \\&\Vert y\Vert _{H_p^\alpha (\varOmega ,\mathbb {R})} = \Big (\sum _{m=1}^\alpha |y|_{H_p^m(\varOmega ,\mathbb {R})}^p\Big )^{1/p}, \\&\Vert y\Vert _{H_p^\alpha (\varOmega ,\mathbb {R}^d)} = \sum _{i=1}^d \Vert y_i\Vert _{H_p^\alpha (\varOmega ,\mathbb {R})}, \end{aligned}$$

and an equivalent norm on \(H_p^\alpha (\varOmega ,\mathbb {R}^d)\) is

$$\begin{aligned} \Vert y\Vert '_{H_p^\alpha (\varOmega ,\mathbb {R}^d)} = \Big (\sum _{i=1}^d \Vert y_i\Vert _{H_p^\alpha (\varOmega ,\mathbb {R})}^p\Big )^{1/p}. \end{aligned}$$

Henceforth, the domain and codomain of the function spaces will be omitted unless required for clarity.

For a positive definite matrix \(\varSigma \), its symmetric square root is denoted by \(\varSigma ^{1/2}\), and the associated Mahalanobis norm of a vector a is denoted by \(\Vert a\Vert _\varSigma = a^{\mathsf {T}} \varSigma ^{-1} a\).

2 A probabilistic state-space model

The present approach involves defining a probabilistic state-space model, from which the approximate solution to (1) is inferred. This is essentially the same approach as that of Tronarp et al. (2019b). The class of priors considered is defined in Sect. 2.1, and the data model is introduced in Sect. 2.2.

2.1 The prior

Let \(\nu \) be a positive integer, the solution of (1) is then modelled by a \(\nu \) times differentiable stochastic process prior Y(t) with a state-space representation. That is, the stochastic process X(t) defined by

$$\begin{aligned} X^{\mathsf {T}}(t) = \begin{pmatrix} Y^T(t)&D Y^{\mathsf {T}}(t)&\ldots&D^\nu Y^{\mathsf {T}}(t) \end{pmatrix} \end{aligned}$$

solves a certain stochastic differential equation. Furthermore, let \(\{\mathrm {e}_m\}_{m=0}^\nu \) be the canonical basis on \(\mathbb {R}^{\nu +1}\) and \(\mathrm {I}_d\) is the identity matrix in \(\mathbb {R}^{d\times d}\), it is then convenient to define the matrices \(\mathrm {E}_m = \mathrm {e}_m \otimes \mathrm {I}_d, \ 0 \le m \le \nu \). That is, the mth sub-vector of X is given by

$$\begin{aligned} X^m(t) = \mathrm {E}_m^{\mathsf {T}} X(t) = D^m Y(t), \quad 0 \le m \le \nu . \end{aligned}$$

Now let \(F_m \in \mathbb {R}^{d\times d}\), \(0 \le m \le \nu \) and \(\varGamma \in \mathbb {R}^{d\times d}\) a positive definite matrix, and define the following differential operator

$$\begin{aligned} \mathcal {A} = \varGamma ^{-1/2}\Big ( \mathrm {I}_d D^{\nu +1} - \sum _{m=0}^\nu F_m D^m \Big ) \end{aligned}$$

and the matrix \(F \in \mathbb {R}^{d(\nu +1)\times d(\nu +1)}\) whose nonzero \(d\times d\) blocks are given by

$$\begin{aligned} F_{ij} = {\left\{ \begin{array}{ll} \mathrm {I}_d,\ j = i +1,\ 0 \le i,j < \nu , \\ F_j, \ i = \nu ,\ 0 \le j \le \nu . \end{array}\right. } \end{aligned}$$

The class of priors considered herein is then given by

$$\begin{aligned} Y(t) = \mathrm {E}_0^{\mathsf {T}} \exp (F t) X(0) + \int _0^T G_Y(t,\tau ) \,\hbox {d}W(\tau ), \end{aligned}$$

where W is a standard Wiener process onto \(\mathbb {R}^d\), \(X(0) \sim \mathcal {N}(0,\varSigma (t_0^-))\), and \(G_Y\) is the Green’s function associated with \(\mathcal {A}\) on \(\mathbb {T}\) with initial condition \(D^m y(t_0) = 0\), \(m =0,\ldots ,\nu \). The Green’s function is given by

$$\begin{aligned} G_Y(t,\tau )&= \mathrm {E}_0^{\mathsf {T}} G_X(t,\tau ), \end{aligned}$$
$$\begin{aligned} G_X(t,\tau )&= \theta (t-\tau ) \exp ( F(t-\tau ) ) \mathrm {E}_\nu \varGamma ^{1/2}, \end{aligned}$$

where \(\theta \) is Heaviside’s step function. By construction, (2) has a state-space representation, which is given by the following stochastic differential equation (Øksendal 2003)

$$\begin{aligned} \hbox {d} X(t) = FX(t)\,\hbox {d}t + \mathrm {E}_\nu \varGamma ^{1/2} \,\hbox {d}W(t), \ X(0) \sim \mathcal {N}(0,\varSigma (t_0^-)), \end{aligned}$$

where X takes values in \(\mathbb {R}^{d(\nu +1)}\) and the mth sub-vector of X is given by \(X^m = D^m Y\) and takes values in \(\mathbb {R}^d\) for \(0 \le m \le \nu \). The transition densities for X are given by (Särkkä and Solin 2019)

$$\begin{aligned} X(t + h) \mid X(t) \sim \mathcal {N}( A(h)X(t), Q(h)), \end{aligned}$$

where \(\mathcal {N}(\mu ,\varSigma )\) denotes the normal distribution with mean and covariance \(\mu \) and \(\varSigma \), respectively, and

$$\begin{aligned} A(h)&= \exp ( Fh ), \end{aligned}$$
$$\begin{aligned} Q(h)&= \int _0^T G_X(h,\tau )G_X^{\mathsf {T}}(h,\tau ) \,\hbox {d}\tau . \end{aligned}$$

Note that the integrand in (6b) has limited support, that is, the effective interval of integration is [0, h]. These parameters can practically be computed via the matrix fraction decomposition method (Särkkä and Solin 2019). Details are given in “Appendix A”.

2.1.1 The selection of prior

While \(\nu \) determines the smoothness of the prior, the actual estimator will be of smoothness \(\nu +1\) (see Sect. 4) and the convergence results of Sect. 5 pertain to the case when the solution is of smoothness \(\nu +1\) as well. Consequently, if it is known that the solution is of smoothness \(\alpha \ge 2\) then setting \(\nu = \alpha - 1\) ensures the present convergence guarantees are in effect. Though it is likely convergence rates can be obtained for priors that are “too smooth” as well (see Kanagawa et al. 2020 for such results pertaining to numerical integration).

Once the degree of smoothness \(\nu \) has been selected, the parameters \(\varSigma (t_0^-)\), \(\{F_m\}_{m=0}^\nu \), and \(\varGamma \) need to be selected. Some common sub-classes of (2) are listed below.

  • (Released \(\nu \) times integrated Wiener process onto \(\mathbb {R}^d\)). The process Y is a \(\nu \) times integrated Wiener process if \(F_m = 0, \ m = 1,\ldots ,\nu \). The parameters \(\varSigma (t_0^-)\) and \(\varGamma \) are free. Though it is advisable to set \(\varGamma = \sigma ^2 \mathrm {I}_d\) for some scalar \(\sigma ^2\). In this case, \(\sigma ^2\) can be fit (estimated) to the particular ODE being solved (see “Appendix B”). This class of processes is denoted by \(Y \sim \mathrm {IWP}(\varGamma ,\nu )\).

  • (\(\nu \) times integrated Ornstein–Uhlenbeck process onto \(\mathbb {R}^d\)). The process Y is a \(\nu \) times integrated Ornstein–Uhlenbeck process if \(F_m = 0, \ m = 1,\ldots ,\nu -1\). The parameters \(\varSigma (t_0^-)\), \(F_\nu \), and \(\varGamma \) are free. As with \(\mathrm {IWP}(\varGamma ,\nu )\), it is advisable to set \(\varGamma = \sigma ^2 \mathrm {I}_d\). These processes are denoted by \(Y \sim \mathrm {IOUP}(F_\nu ,\varGamma ,\nu )\).

  • (Mateŕn processes of smoothness \(\nu \) onto \(\mathbb {R}\)). If \(d = 1\) then Y is a Mateŕn process of smoothness \(\nu \) if (cf. Hartikainen and Särkkä 2010)

    $$\begin{aligned} F_m&= -\left( {\begin{array}{c}\nu + 1\\ m\end{array}}\right) \lambda ^{\nu +1 - m},\quad m = 0,\ldots ,\nu , \\ \varGamma&= 2 \sigma ^2 \lambda ^{2\nu +1}, \end{aligned}$$

    for some \(\lambda ,\sigma ^2 > 0\), and \(\varSigma (t_0^-)\) is set to the stationary covariance matrix of the resulting X process. If \(d > 1\), then each coordinate of the solution can be modelled by an individual Mateŕn process.

Remark 1

Many popular choices of Gaussian processes not mentioned here also have state-space representations or can be approximated by a state-space model (Karvonen and Sarkkä 2016; Tronarp et al. 2018; Hartikainen and Särkkä 2010; Solin and Särkkä 2014). A notable example is Gaussian processes with squared exponential kernel (Hartikainen and Särkkä 2010). See Chapter 12 of Särkkä and Solin (2019), for a thorough exposition.

2.2 The data model

For the Bayesian formulation of probabilistic numerical methods, the data model is defined in terms of an information operator (Cockayne et al. 2019). In this paper, the information operator is given by

$$\begin{aligned} \mathcal {Z} = D - \mathcal {S}_f, \end{aligned}$$

where \(\mathcal {S}_f\) is the Nemytsky operator associated with the vector field f (Marcus and Mizel 1973),Footnote 1 that is,

$$\begin{aligned} \mathcal {S}_f[y](t) = f(t,y(t)). \end{aligned}$$

Clearly, \(\mathcal {Z}\) maps the solution of (1) to a known quantity, the zero function. Consequently, inferring Y reduces to conditioning on

$$\begin{aligned} \mathcal {Z}[Y](t) = 0, \quad t \in \mathbb {T}_N. \end{aligned}$$

The function \(\mathcal {Z}[Y](t)\) can be expressed in simpler terms by use of the process X. That is, define the function

$$\begin{aligned} z(t,x) :=x^{1} - f(t,x^{0}), \end{aligned}$$

then \(\mathcal {Z}[Y](t) = \mathcal {S}_z[X](t) = z(t,X(t))\). Furthermore, it is necessary to account for the initial condition, \(X^0(0) = y_0\), and with small additional cost the initial condition of the derivative can also be enforced \(X^1(0) = f(0,y_0)\).

Remark 2

The properties of the Nemytsky operator are entirely determined by the vector field f. For instance, if \(f \in C^\alpha (\mathbb {T}\times \mathbb {R}^d, \mathbb {R}^d)\), \(\alpha \ge 0\), then \(\mathcal {S}_f\) maps \(C^\nu (\mathbb {T},\mathbb {R}^d)\) to \(C^{\min (\nu ,\alpha )}(\mathbb {T},\mathbb {R})\), which is fine for present purposes. However, in the subsequent convergence analysis it is more appropriate to view \(\mathcal {S}_f\) (and \(\mathcal {Z}\)) as a mapping between different Sobolev spaces, which is possible if \(\alpha \) is sufficiently large (Valent 2013).

3 Maximum a posteriori estimation

The MAP estimate for Y, or equivalently for X, is in view of (5) the solution to the optimisation problem

$$\begin{aligned}&\min _{x(t_{0:N})}&\mathcal {V}(x(t_{0:N})) \end{aligned}$$
$$\begin{aligned}&\text {subject to}&\mathrm {E}_0^{\mathsf {T}} x(t_0) - y_0 = 0, \end{aligned}$$
$$\begin{aligned}&&\mathrm {E}_1^{\mathsf {T}} x(t_0) - f(t_0,y_0) = 0, \end{aligned}$$
$$\begin{aligned}&&z(t_n,x(t_n)) = 0,\ n = 1,\ldots ,N, \end{aligned}$$

where \(h_n = t_n - t_{n-1}\) is the step size sequence and \(\mathcal {V}\) is up to a constant, the negative log density

$$\begin{aligned} \begin{aligned} \mathcal {V}(x(t_{0:N}))&= \frac{1}{2}\sum _{n=1}^N \Vert x(t_n) - A(h_n)x(t_{n-1})\Vert _{Q(h_n)}^2\\&\quad + \frac{1}{2}\Vert x(t_0)\Vert _{\varSigma (t_0^-)}^2 . \end{aligned} \end{aligned}$$

If the vector field is affine in y, then the MAP estimate and the full posterior can be computed exactly via Gaussian filtering and smoothing (Särkkä 2013). However, when this is not the case then, for instance, a Gauss–Newton method can be used, which can be efficiently implemented by Gaussian filtering and smoothing as well. This method for MAP estimation is known as the iterated extended Kalman smoother (Bell 1994).

3.1 Inference with affine vector fields

If the vector field is affine

$$\begin{aligned} f(t,y) = \varLambda (t)y + \zeta (t), \end{aligned}$$

then the information operator reduces to

$$\begin{aligned} z(t,x) = x^1 - \varLambda (t) x^0 - \zeta (t), \end{aligned}$$

and the inference problem reduces to Gaussian process regression (Rasmussen and Williams 2006) with a linear combination of function and derivative observations. In the spline literature this is known as (extended) Hermite–Birkhoff data (Sidhu and Weinert 1979). In this case, the inference problem can be solved exactly with Gaussian filtering and smoothing (Kalman 1960; Kalman and Bucy 1961; Rauch et al. 1965; Särkkä 2013; Särkkä and Solin 2019). Define the information sets

$$\begin{aligned} \mathscr {Z}(t) = \{ z(\tau ,X(\tau )) = 0 :\tau \in \mathbb {T}_N, \ \tau \le t \}, \\ \mathscr {Z}(t^-) = \{ z(\tau ,X(\tau )) = 0 :\tau \in \mathbb {T}_N, \ \tau < t\}. \end{aligned}$$

In Gaussian filtering and smoothing, only the mean and covariance matrix of X(t) are tracked. The mean and covariance at time t, conditioned on \(\mathscr {Z}(t)\) are denoted by \(\mu _F(t)\) and \(\varSigma _F(t)\), respectively, and \(\mu _F(t^-)\) and \(\varSigma _F(t^-)\) correspond to conditioning on \(\mathscr {Z}(t^-)\), which are limits from the left. The mean and covariance conditioned on \(\mathscr {Z}(T)\) at time t are denoted by \(\mu _S(t)\) and \(\varSigma _S(t)\), respectively.

Before starting the filtering and smoothing recursions, the process X needs to be conditioned on the initial values

$$\begin{aligned} \mathrm {E}_0^{\mathsf {T}} X(0) = y_0, \quad \mathrm {E}_1^{\mathsf {T}} X(0) = f(t_0,y_0). \end{aligned}$$

This is can be done by a Kalman update

$$\begin{aligned} C^{\mathsf {T}}(t_0)&= \begin{pmatrix} \mathrm {E}_0&\mathrm {E}_1 \end{pmatrix}, \end{aligned}$$
$$\begin{aligned} S(t_0)&= C(t_0) \varSigma (t_0^-) C^{\mathsf {T}}(t_0), \end{aligned}$$
$$\begin{aligned} K(t_0)&= \varSigma (t_0^-) C^{\mathsf {T}}(t_0) S^{-1}(t_0), \end{aligned}$$
$$\begin{aligned} \mu _F(t_0)&= K(t_0) \begin{pmatrix} y_0 \\ f(t_0,y_0)\end{pmatrix}, \end{aligned}$$
$$\begin{aligned} \varSigma _F(t_0)&= \varSigma (t_0^-) - K(t_0) S(t_0) K^{\mathsf {T}}(t_0). \end{aligned}$$

The filtering mean and covariance on the mesh evolve as

$$\begin{aligned} \mu _F(t_n^-)&= A(h_n) \mu _F(t_{n-1}), \end{aligned}$$
$$\begin{aligned} \varSigma _F(t_n^-)&= A(h_n) \varSigma _F(t_{n-1}) A^{\mathsf {T}}(h_n) + Q(h_n). \end{aligned}$$

The prediction moments at \(t \in \mathbb {T}_N\) are then corrected according to the Kalman update

$$\begin{aligned} C(t_n)&= \mathrm {E}_1^{\mathsf {T}} - \varLambda (t_n)\mathrm {E}_0^{\mathsf {T}}, \end{aligned}$$
$$\begin{aligned} S(t_n)&= C(t_n) \varSigma _F(t_n^-) C^{\mathsf {T}}(t_n), \end{aligned}$$
$$\begin{aligned} K(t_n)&= \varSigma _F(t_n^-) C^{\mathsf {T}}(t_n) S^{-1}(t_n), \end{aligned}$$
$$\begin{aligned} \mu _F(t_n)&= \mu _F(t_n^-) + K(t_n)\big ( \zeta (t_n) - C(t_n)\mu _F(t_n^-) \big ), \end{aligned}$$
$$\begin{aligned} \varSigma _F(t_n)&= \varSigma _F(t_n^-) - K(t_n) S(t_n) K^{\mathsf {T}}(t_n). \end{aligned}$$

On the mesh \(\mathbb {T}_N\), the smoothing moments are given by

$$\begin{aligned} G(t_n)&= \varSigma _F(t_n) A^{\mathsf {T}}(h_{n+1}) \varSigma _F^{-1}(t_{n+1}^-), \end{aligned}$$
$$\begin{aligned} \mu _S(t_n)&= \mu _F(t_n) + G(t_n)(\mu _S(t_{n+1}) - \mu _F(t_{n+1}^-)), \end{aligned}$$
$$\begin{aligned} \varSigma _S(t_n)&= G(t_n)\big ( \varSigma _S(t_{n+1}) - \varSigma _F(t_{n+1}^-) \big )G^{\mathsf {T}}(t_n) \nonumber \\&\quad + \varSigma _F(t_n), \end{aligned}$$

with terminal conditions \(\mu _S(t_N) = \mu _F(t_N)\), and \(\varSigma _S(t_N) = \varSigma _F(t_N)\). The MAP estimate and its derivatives, on the mesh, are then given by

$$\begin{aligned} D^m \hat{y}(t) = \mathrm {E}_m^{\mathsf {T}} \mu _S(t), \quad t \in \mathbb {T}_N, \ m = 0,\ldots ,\nu . \end{aligned}$$

Remark 3

The filtering covariance can be written as

$$\begin{aligned} \begin{aligned} \varSigma _F(t_n)&= \varSigma _F^{1/2}(t_n^-)\Big ( \mathrm {I} - {\text {Proj}}\Big (\varSigma _F^{1/2}(t_n^-) C^{\mathsf {T}}(t_n) \Big ) \Big ) \\&\quad \times \varSigma _F^{1/2}(t_n^-), \end{aligned} \end{aligned}$$

where \({\text {Proj}}(A) = A (A^{\mathsf {T}} A)^{-1} A^{\mathsf {T}}\) is the projection matrix onto the column space of A. By (13a) and \(\varSigma _F(t_n^-) \succ 0\), the dimension of the column space of \(\varSigma _F^{1/2}(t_n^-) C^{\mathsf {T}}(t_n)\) is readily seen to be d. That is, the null space of \(\varSigma _F(t_n)\) is of dimension d. By (14a) and (14c), it is also seen that \(\varSigma _F(t_n)\) and \(\varSigma _S(t_n)\) share null space. This rank deficiency is not a problem in principle since the addition of \(Q(h_n)\) in (12b) ensures \(\varSigma _F(t_n^-)\) is of full rank. However, in practice \(Q(h_n)\) may become numerically singular for very small step sizes.

While Gaussian filtering and smoothing only provides the posterior for affine vector fields, it forms the template for nonlinear problems as well. That is, the vector field is replaced by an affine approximation (Schober et al. 2019; Tronarp et al. 2019b; Magnani et al. 2017). The iterated extended Kalman smoother approach for doing so is discussed in the following.

3.2 The iterated extended Kalman Smoother

For non-affine vector fields, only the update becomes intractable. Approximation methods involve different ways of approximating the vector field with an affine function

$$\begin{aligned} f(t,y) \approx \hat{\varLambda }(t)y + \hat{\zeta }(t), \end{aligned}$$

whereafter approximate filter means and covariances are obtained by plugging \(\hat{\varLambda }\) and \(\hat{\zeta }\) into (13). The iterated extended Kalman smoother linearises f around the smoothing mean in an iterative fashion. That is,

$$\begin{aligned} \hat{\varLambda }^l(t_n)&= J_f(t_n,\mathrm {E}_0^{\mathsf {T}} \mu _S^l(t_n)), \end{aligned}$$
$$\begin{aligned} \hat{\zeta }^l(t_n)&= f(t_n,\mathrm {E}_0^{\mathsf {T}} \mu _S^l(t_n)) - J_f(t_n,\mathrm {E}_0^{\mathsf {T}} \mu _S^l(t_n))\mathrm {E}_0^{\mathsf {T}} \mu _S^l(t_n). \end{aligned}$$

The smoothing mean and covariance at iteration \(l+1\), \(\mu _S^{l+1}(t)\) and \(\varSigma _S^{l+1}(t)\), are then obtained by running the filter and smoother with the parameters in (15).

As mentioned, this is just the Gauss–Newton algorithm for the maximum a posteriori trajectory (Bell 1994), and it can be shown that, under some conditions on the Jacobian of the vector field, the fixed point is at least a local optimum to the MAP problem (9) (Knoth 1989). Moreover, the IEKS is just a clever implementation of the method of John et al. (2019) whenever the prior process has a state-space representation.

3.2.1 Initialisation

In order to implement the IEKS, a method of initialisation needs to be devised. Fortunately, there exists non-iterative Gaussian solvers for this purpose (Schober et al. 2019; Tronarp et al. 2019b). These methods also employ Taylor series expansions to construct an affine approximation of the vector field. These methods select an expansion point at the prediction estimates \(\mathrm {E}_0^{\mathsf {T}} \mu _F(t_n^-)\), and consequently, the affine approximation can be constructed on the fly within the filter recursion. The affine approximation due to a zeroth-order expansion gives the parameters (Schober et al. 2019)

$$\begin{aligned} \hat{\varLambda }(t_n)&= 0, \end{aligned}$$
$$\begin{aligned} \hat{\zeta }(t_n)&= f(t_n,\mathrm {E}_0^{\mathsf {T}} \mu _F(t_n)), \end{aligned}$$

and will be referred to as the zeroth-order extended Kalman smoother (EKS0). The affine expansion due to a first-order expansion (Tronarp et al. 2019b) gives the parameters

$$\begin{aligned} \hat{\varLambda }(t_n)&= J_f(t_n,\mathrm {E}_0^{\mathsf {T}} \mu _F(t_n)), \end{aligned}$$
$$\begin{aligned} \hat{\zeta }(t_n)&= f(t_n,\mathrm {E}_0^{\mathsf {T}} \mu _F(t_n)) - J_f(t_n,\mathrm {E}_0^{\mathsf {T}} \mu _F(t_n))\mathrm {E}_0^{\mathsf {T}} \mu _F(t_n), \end{aligned}$$

and will be referred to as the first-order extended Kalman smoother (EKS1). Note that EKS0 computes the exact MAP estimate in the event that the vector field f is constant in y, while EKS1 computes the exact MAP estimate in the more general case when f is affine in y. Consequently, as EKS1 makes a more accurate approximation of the vector field than EKS0, it is expected to perform better.

Furthermore, as Jacobians of the vector field will be computed in the IEKS iteration anyway, the preferred method of initialisation is EKS1, which is the method used in the subsequent experiments.

3.2.2 Computational complexity

The computational complexity of a Gaussian filtering and smoothing method for approximating the solution of (1) can be separated into two parts: (1) the cost of linearisation and (2) the cost of inference. The cost of inference here refers to the computational cost associated with the filtering and smoothing recursion, which for affine systems is \(\mathcal {O}(N d^3\nu ^3 )\). Since EKS0 and EKS1 perform the filtering and smoothing recursion once, their cost of inference is the same, \(\mathcal {O}(N d^3 \nu ^3 )\). Furthermore, the linearisation cost of EKS0 amounts to \(N+1\) evaluations of f and no evaluations of \(J_f\), while EKS1 evaluates f \(N+1\) times and \(J_f\) N times, respectively. Assuming IEKS is initialised by EKS1 using L iterations, including the initialisation, then the cost of inference is \(\mathcal {O}(LN d^3\nu ^3 )\), f is evaluated \(LN + 1\) times, and \(J_f\) is evaluated LN times. A summary of the computational costs is given in Table 1.

Table 1 Comparison of the computational cost between EKS0, EKS1, and IEKS, where L denotes the total number of iterations for IEKS and it is assumed that IEKS is initialised by EKS1

4 Interpolation in reproducing Kernel Hilbert space

The correspondence between inference in stochastic processes and optimisation in reproducing kernel Hilbert spaces is well known (Kimeldorf and Wahba 1970; Weinert and Kailath 1974; Sidhu and Weinert 1979). This correspondence is indeed present in the current setting as well, in the sense that MAP estimation as discussed in Sect. 3 is equivalent to optimisation in the reproducing kernel Hilbert space (RKHS) associated with Y and X (see Kanagawa et al. 2018, Proposition 3.6 for standard Gaussian process regression). The purpose of this section is thus to establish that the RKHS associated with Y, which establishes what function space the MAP estimator lie in. Furthermore, it is shown that the MAP estimate is equivalent to an interpolation problem in this RKHS, which implies properties on its norm. These results will then be used in the convergence analysis of the MAP estimate in Sect. 5.

4.1 The reproducing Kernel Hilbert space of the prior

The RKHS of the Wiener process with domain \(\mathbb {T}\) and codomain \(\mathbb {R}^d\) is the set (cf. van der Vaart and van Zanten 2008, section 10)

$$\begin{aligned} \mathbb {W}_0 = \{ w :w \in \mathrm {AC}(\mathbb {T},\mathbb {R}^d),\ w(0) = 0,\ \dot{w} \in \mathcal {L}_2(\mathbb {T},\mathbb {R}^d) \}, \end{aligned}$$

with inner product given by

$$\begin{aligned} \langle w , w' \rangle _{\mathbb {W}_0} = \int _0^T \dot{w}^{\mathsf {T}}(\tau ) \dot{w}'(\tau ) \,\hbox {d}\tau = \langle \dot{w}, \dot{w}' \rangle _{\mathcal {L}_2}. \end{aligned}$$

Let \(\mathbb {Y}^{\nu +1}\) denote the reproducing kernel Hilbert space associated with the prior process Y as defined by (2), then \(\mathbb {Y}^{\nu +1}\) is given by the image of the operator (van der Vaart and van Zanten 2008, lemmas 7.1, 8.1, and 9.1)

$$\begin{aligned} \mathcal {T}(\vec {y}_0,\dot{w}_y)(t) = \mathrm {E}_0^{\mathsf {T}} \exp (F t) \vec {y}_0 + \int _0^T G_Y(t,\tau ) \dot{w}_y(\tau ) \,\hbox {d}\tau , \end{aligned}$$

where \(\vec {y}_0 \in \mathbb {R}^{d(\nu +1)}\) and \(\dot{w}_y \in \mathcal {L}_2(\mathbb {T},\mathbb {R}^d)\). That is,

$$\begin{aligned} \begin{aligned}&\mathbb {Y}^{\nu +1} = \\&\quad \{ y :y = \mathcal {T}(\vec {y}_0,\dot{w}_y), \ \vec {y}_0 \in \mathbb {R}^{d(\nu +1)}, \ \dot{w}_y \in \mathcal {L}_2(\mathbb {T},\mathbb {R}^d) \}, \end{aligned} \end{aligned}$$

and inner product is given by

$$\begin{aligned} \begin{aligned} \langle y, y' \rangle _{\mathbb {Y}^{\nu +1}}&= \vec {y}_0^{\mathsf {T}} \varSigma ^{-1}(t_0^-) \vec {y}_0' + \langle \mathcal {A}y, \mathcal {A} y' \rangle _{\mathcal {L}_2}\\&= \vec {y}_0^{\mathsf {T}} \varSigma ^{-1}(t_0^-) \vec {y}_0' + \langle \dot{w}_y, \dot{w}_{y'} \rangle _{\mathcal {L}_2}. \end{aligned} \end{aligned}$$

Remark 4

For an element \(y \in \mathbb {Y}^{\nu +1}\), the vector \(\vec {y}_0\) contains the initial values for \(D^m y(t)\), \(m = 0,\ldots ,\nu \), in similarity with the vector X(0) in the definition of the prior process Y in (2). That is, \(\vec {y}_0\) should not be confused with the initial value of (1).

Since \(G_Y\) is the Green’s function of a differential operator of order \(\nu +1\) with smooth coefficients, \(\mathbb {Y}^{\nu +1}\) can be identified as follows. A function \(y :\mathbb {T} \rightarrow \mathbb {R}^d\) is in \(\mathbb {Y}^{\nu +1}\) if and only if

$$\begin{aligned} D^my&\in \mathrm {AC}(\mathbb {T},\mathbb {R}^d),\ m = 0,\ldots ,\nu , \end{aligned}$$
$$\begin{aligned} D^{\nu +1}y&\in \mathcal {L}_2(\mathbb {T},\mathbb {R}^d). \end{aligned}$$

Hence, by similar arguments as for the released \(\nu \) times integrated Wiener process, Proposition 1 holds (see proposition 2.6.24 and remark 2.6.25 of Giné and Nickl 2016).

Proposition 1

The reproducing kernel Hilbert space \(\mathbb {Y}^{\nu +1}\) as a set is equal to the Sobolev space \(H_2^{\nu +1}(\mathbb {T},\mathbb {R}^d)\) and their norms are equivalent.

The reproducing kernel of \(\mathbb {Y}^{\nu +1}\) is given by (cf. Sidhu and Weinert 1979)

$$\begin{aligned} \begin{aligned} R(t,s)&= \mathrm {E}_0^{\mathsf {T}} \exp (Ft) \varSigma (t_0^-) \exp (F^{\mathsf {T}} s) \mathrm {E}_0 \\&\quad + \int _0^T G_Y(t,\tau )G_Y^{\mathsf {T}}(s,\tau ) \,\hbox {d}\tau , \end{aligned} \end{aligned}$$

which is also the covariance function of Y. The linear functionals

$$\begin{aligned} y \mapsto v^{\mathsf {T}} D^m y(s), \quad v \in \mathbb {R}^d, \ t \in \mathbb {T}, \ m=0,\ldots ,\nu , \end{aligned}$$

are continuous and their representers are given by

$$\begin{aligned} \eta _s^{m,v}&= R^{(0,m)}(t,s)v, \\ \langle \eta _s^{m,v}, y\rangle _{\mathbb {Y}^{\nu +1}}&= v^{\mathsf {T}} D^m y(s), \end{aligned}$$

where \(R^{(m,k)}\) denotes R differentiated m and k times with respect to the first and second arguments, respectively. Furthermore, define the matrix

$$\begin{aligned} \eta _s^m = \begin{pmatrix} \eta _s^{m,\mathrm {e}_1}&\ldots&\eta _s^{m,\mathrm {e}_d} \end{pmatrix}, \end{aligned}$$

and with notation overloaded in the obvious way, the following identities hold

$$\begin{aligned} D^m y(t)&= \langle \eta _t^m , y \rangle _{\mathbb {Y}^{\nu +1}}, \\ R^{(m,k)}(t,s)&= \langle \eta _t^m, \eta _s^k \rangle _{\mathbb {Y}^{\nu +1}}. \end{aligned}$$

Since there is a one-to-one correspondence between the processes Y and X, the RKHS associated with X is isometrically isomorphic to \(\mathbb {Y}^{\nu +1}\), and it is given by

$$\begin{aligned} \mathbb {X}^{\nu +1} = \{x :x^0 \in \mathbb {Y}^{\nu +1}, \ x^m = D^m x^0,\ m=1,\ldots ,\nu \}, \end{aligned}$$

where \(x^m\) is the mth sub-vector of x of dimension d. The kernel associated with \(\mathbb {X}^{\nu +1}\) is given by

$$\begin{aligned} \begin{aligned} P(t,s)&= \exp (Ft) \varSigma (t_0^-) \exp (F^{\mathsf {T}} s) \\&\quad + \int _0^T G_X(t,\tau )G_X^{\mathsf {T}}(s,\tau ) \,\hbox {d}\tau , \end{aligned} \end{aligned}$$

and the \(d\times d\) blocks of P are given by

$$\begin{aligned} P_{m,k}(t,s) = R^{(m,k)}(t,s), \end{aligned}$$

and \(\psi _s = P(t,s)\) is the representer of evaluation at s,

$$\begin{aligned} x(s) = \langle \psi _s, x \rangle _{\mathbb {X}^{\nu +1}}. \end{aligned}$$

In the following, the shorthands \(\mathbb {Y} = \mathbb {Y}^{\nu +1}\) and \(\mathbb {X} = \mathbb {X}^{\nu +1}\) are in effect.

4.2 Nonlinear Kernel interpolation

Consider the interpolation problem

$$\begin{aligned} \hat{y} = \mathop {\arg \, \min }_{y \in \mathcal {I}_N} \ \frac{1}{2}\Vert y\Vert _\mathbb {Y}^2, \end{aligned}$$

where the feasible set is given by

$$\begin{aligned} \begin{aligned} \mathcal {I}_N&= \{ y \in \mathbb {Y} :y(0) = y_0, \ \dot{y}(0) = f(0,y_0)\}\\&\quad \cap \{ y \in \mathbb {Y} :\mathcal {Z}[y](t) = 0, \ t \in \mathbb {T}_N\}. \end{aligned} \end{aligned}$$

Define the following sub-spaces of \(\mathbb {Y}\)

$$\begin{aligned} \mathcal {R}_N(m) = {\text {span}}\big \{ \eta _{t_n}^{l,\mathrm {e}_i}\}_{l = 0, n = 0, i = 1}^{m,N,d}, \quad m \le \nu +1. \end{aligned}$$

Similarly to other situations (Kimeldorf and Wahba 1971; Cox and O’Sullivan 1990; Girosi et al. 1995), our optimum can be expanded in a finite sub-space spanned by representers, which is the statement of Proposition 2.

Proposition 2

The solution to (20) is contained in \(\mathcal {R}_N(1)\).


Any \(y \in \mathbb {Y}\) has the orthogonal decomposition \(y = y_\parallel + y_\perp \), where \(y_\parallel \in \mathcal {R}_N(1)\) and \(y_\perp \in \mathcal {R}_N^\perp (1)\). However, it must be the case that \(\Vert y_\perp \Vert _\mathbb {Y} = 0\), since

$$\begin{aligned} \frac{1}{2}\Vert y\Vert _\mathbb {Y}^2 = \frac{1}{2}\Vert y_\parallel \Vert _\mathbb {Y}^2 + \frac{1}{2}\Vert y_\perp \Vert _\mathbb {Y}^2 \ge \frac{1}{2}\Vert y_\parallel \Vert _\mathbb {Y}^2 \end{aligned}$$


$$\begin{aligned} D^m y(0)&= \langle \eta _0^m, y_\parallel \rangle _\mathbb {Y}, \quad m = 0, \ldots , \nu + 1,\\ \mathcal {Z}[y](t)&= \langle \eta _t^1, y_\parallel \rangle _\mathbb {Y} - f\big ((t, \langle \eta _t^0, y_\parallel \rangle _\mathbb {Y} \big ), \\ \end{aligned}$$

for all \(t \in \mathbb {T}_N\). \(\square \)

By Proposition 2, the optimal point of (20) can be written as

$$\begin{aligned} y = \sum _{n=0}^N \begin{pmatrix} \eta _{t_n}^0&\eta _{t_n}^1 \end{pmatrix} \begin{pmatrix} b_0(t_n) \\ b_1(t_n) \end{pmatrix}. \end{aligned}$$

However, it is more convenient to expand the optimal point in the larger sub-space, \(\mathcal {R}_N(\nu ) \supset \mathcal {R}_N(1)\)

$$\begin{aligned} b(t_n)&= \begin{pmatrix} b_0^{\mathsf {T}}(t_n)&\ldots&b_\nu ^{\mathsf {T}}(t_n) \end{pmatrix}^{\mathsf {T}}, \end{aligned}$$
$$\begin{aligned} y&= \sum _{n=0}^N \begin{pmatrix} \eta _{t_n}^0&\ldots&\eta _{t_n}^\nu \end{pmatrix} b(t_n), \end{aligned}$$
$$\begin{aligned} x&= \sum _{n=0}^N \psi _{t_n} b(t_n), \end{aligned}$$

where x is the equivalent element in \(\mathbb {X}\) and

$$\begin{aligned} \Vert y\Vert _\mathbb {Y}^2 = \Vert x\Vert _\mathbb {X}^2 = \sum _{n,m=0}^N b^{\mathsf {T}}(t_n) P(t_n,t_m) b(t_m), \end{aligned}$$

or more compactly

$$\begin{aligned} \Vert x\Vert _\mathbb {X}^2 = \varvec{x}^{\mathsf {T}} \varvec{P}^{-1} \varvec{x}, \end{aligned}$$


$$\begin{aligned} \varvec{x} = \begin{pmatrix} x^{\mathsf {T}}(t_0)&\ldots&x^{\mathsf {T}}(t_N) \end{pmatrix}^{\mathsf {T}}, \quad \varvec{P}_{n,m} = P(t_n,t_m). \end{aligned}$$

Here, \(\varvec{P}\) is the kernel matrix associated with function value observations of X at \(\mathbb {T}_N\). That is, (22) is up to a constant equal to the negative log density of X restricted to \(\mathbb {T}_N\). Proposition 3 immediately follows.

Proposition 3

The optimisation problem (20) is equivalent to the MAP problem (9).

5 Convergence analysis

In this section, convergence rates of the kernel interpolant \(\hat{y}\) as defined by (20), and by Proposition 3, the MAP estimate are obtained. These rates will be in terms of the fill distance of the mesh \(\mathbb {T}_N\), which isFootnote 2

$$\begin{aligned} \delta = \sup _{t \in \mathbb {T}} \min _{n = 0, \ldots ,N} |t-t_n|. \end{aligned}$$

In the following, results from the scattered data approximation literature (Arcangéli et al. 2007) are employed. More specifically, for any \(y \in \mathbb {Y}\), which satisfies the initial condition \(y(0) = y_0\), formally has the following representation

$$\begin{aligned} y(t) = y_0 + \int _0^t f(\tau ,y(\tau )) \,\hbox {d}\tau + \mathcal {E}[y](t), \end{aligned}$$

where the error operator \(\mathcal {E}\) is defined as

$$\begin{aligned} \mathcal {E}[y](t) = \int _0^t \mathcal {Z}[y](\tau ) \,\hbox {d}\tau . \end{aligned}$$

Of course, any reasonable estimator \(\hat{y}'\) ought to have the property that \(\mathcal {Z}[\hat{y}'](t) \approx 0\) for \(t \in \mathbb {T}_N\). The approach is thus to bound \(\mathcal {Z}[\hat{y}'](t)\) in some suitable norm, which in turn gives a bound on \(\mathcal {E}[\hat{y}'](t)\).

Throughout the discussion, \(\nu \ge 1\) is some fixed integer, which corresponds to the differentiability of the prior, that is, the kernel interpolant is in \(H_2^{\nu +1}(\mathbb {T},\mathbb {R}^d)\). Furthermore, some regularity of the vector field will be required, namely Assumption 1, given below.

Assumption 1

Vector field \(f \in C^{\alpha +1}(\tilde{\mathbb {T}}\times \mathbb {R}^d,\mathbb {R}^d)\) with \(\alpha \ge \nu \) and some set \(\tilde{\mathbb {T}}\) with \(\mathbb {T} \subset \tilde{\mathbb {T}} \subset \mathbb {R}\).

Assumption 1 will, without explicit mention, be in force throughout the discussion of this section. It implies that (i) the model is well specified for sufficiently small T and (ii) the information operator is well behaved. This shall be made precise in the following.

5.1 Model correctness and regularity of the solution

Since \(\nu \ge 1\), Assumption 1 implies f is locally Lipschitz, and the classical existence and uniqueness results for the solution of Equation (1) apply. The extra smoothness on f ensures the solution itself is sufficiently smooth for present purposes. These facts are summarised in Theorem 1. For proof(s), refer to (Arnol’d 1992, chapter 4, paragraph 32).

Theorem 1

There exists \(T^* > 0\) such that Equation (1) admits a unique solution \(y^* \in C^{{\alpha }+1}([0,T^*),\mathbb {R}^d)\).

Theorem 1 makes apparent the necessity of the next standing assumption.

Assumption 2

\(T < T^*\). That is, \(\mathbb {T} \subset [0,T^*)\).

The model is thus correctly specified in the following sense.

Corollary 1

(Correct model) The solution \(y^*\) of Equation (1) on \(\mathbb {T}\) is in \(\mathbb {Y}\).


Firstly, \(y^* \in C^{\nu +1}(\mathbb {T},\mathbb {R}^d)\) due to Assumption 1, Theorem 1, and Assumption 2. Since \(D^{\nu +1}y^*\) is continuous and \(\mathbb {T}\) is compact, it follows that \(D^{\nu +1}y^*\) is bounded and \(D^{\nu +1}y^* \in \mathcal {L}_p(\mathbb {T},\mathbb {R}^d)\) for any \(p \in [1,\infty ]\). Therefore (see, for example, Nielson 1997, Theorem 20.8), \(D^m y^* \in \mathrm {AC}(\mathbb {T},\mathbb {R}^d), \ m = 0,\ldots ,\nu \). \(\square \)

Corollary 1 essentially ensures that there is an a priori bound on the norm of the MAP estimate, that is, \(\Vert \hat{y}\Vert _\mathbb {Y} \le \Vert y^*\Vert _\mathbb {Y}\).

Remark 5

It is in general difficult to determine \(T^*\) for a given vector field f and initial condition \(y_0\), which makes Assumption 2 hard to verify in general. However, additional conditions can be imposed which assures \(T^* = \infty \). An example of such a condition is that the vector field is uniformly Lipschitz as mapping of \(\mathbb {R}_+ \times \mathbb {R}^d \rightarrow \mathbb {R}^d\) (Kelley and Peterson 2010, Theorem 8.13). That is, for any \(y,y' \in \mathbb {R}^d\) it holds that

$$\begin{aligned} \sup _{t \in \mathbb {R}_+} \Vert f(t,y) - f(t,y')\Vert \le {\text {Lip}}(f) \Vert y - y'\Vert , \end{aligned}$$

where \({\text {Lip}}(f) < \infty \) is a positive constant.

5.2 Properties of the information operator

By Proposition 1, \(\mathbb {Y}\) correspond to the Sobolev space \(H_2^{\nu +1}(\mathbb {T},\mathbb {R}^d)\); hence, it is crucial to understand how the Nemytsky operator \(\mathcal {S}_f\), and consequently \(\mathcal {Z}\), acts on Sobolev spaces. For the Nemytsky operator, the work has already been done (Valent 2013, 1985), and Theorem 2 is immediate.

Theorem 2

Let \(\mathscr {U}\) be an open subset of \(H_2^{\nu +1}(\mathbb {T},\mathbb {R}^d)\) such that \(y(\mathbb {T}) \subset U\) for any \(y \in \mathscr {U}\), where U some open subset of \(\mathbb {R}^d\). The Nemytsky operator, \(\mathcal {S}_{f_i}\), associated with the ith coordinate of f is then \(C^1\) mapping from \(\mathscr {U}\) onto \(H_2^\nu (\mathbb {T},\mathbb {R})\) for \(i=1,\ldots ,d\). If, in addition, U is convex and bounded, then for any \(y' \in \mathscr {U}\) there is number \(c_0(y') > 0\) such that

$$\begin{aligned} \Vert \mathcal {S}_{f_i}[y] - \mathcal {S}_{f_i}[y']\Vert _{H_2^\nu } \le c_0(y') |f_i|_{\nu +1,U} \Vert y-y'\Vert _{H_2^{\nu +1}}, \end{aligned}$$

for all \(y \in \mathscr {U}\), where

$$\begin{aligned} |f_i|_{\nu +1,U} :=\sum _{m =0}^{\nu +1} \sup _{(t,a) \in \mathbb {T}\times U} |D^m f_i(t,a)|. \end{aligned}$$


The first claim is just an application of Theorem 4.1 of (Valent 2013, page 32) and the second claim follows from (ii) in the proof of Theorem 4.5 in (Valent 2013, page 37). \(\square \)

Theorem 2 establishes that \(\mathcal {S}_{f_i}\) as a mapping of \(\mathscr {U}\) onto \(H_2^\nu (\mathbb {T},\mathbb {R})\) is locally Lipschitz. This property is inherited by the information operator.

Proposition 4

In the same setting as Theorem 2. The ith coordinate of the information operator, \(\mathcal {Z}_i\), is a \(C^1\) mapping from \(\mathscr {U}\) onto \(H_2^\nu (\mathbb {T},\mathbb {R})\), for \(i=1,\ldots ,d\). If in addition, U is convex and bounded, then for any \(y' \in \mathscr {U}\) there is number \(c_1(y',\nu ,f_i,U) > 0\) such that

$$\begin{aligned} \Vert \mathcal {Z}_i[y] - \mathcal {Z}_i[y']\Vert _{H_2^\nu } \le c_1(y',\nu ,f_i,U) \Vert y-y'\Vert _{H_2^{\nu +1}}, \end{aligned}$$

for all \(y \in \mathscr {U}\).


The differential operator \(D \mathrm {e}_i^{\mathsf {T}}\) is a \(C^1\) mapping of \(\mathscr {U}\) onto \(H_2^\nu (\mathbb {T},\mathbb {R})\). Consequently, by Theorem 2 the same holds for the operator \(D \mathrm {e}_i^{\mathsf {T}} - \mathcal {S}_{f_i} = \mathcal {Z}_i\). For the second part, the triangle inequality gives

$$\begin{aligned} \begin{aligned} \Vert \mathcal {Z}_i[y] - \mathcal {Z}_i[y']\Vert _{H_2^\nu }&\le \Vert D y_i - D y'_i\Vert _{H_2^\nu } \\&\quad + \Vert \mathcal {S}_{f_i}[y] - \mathcal {S}_{f_i}[y']\Vert _{H_2^\nu }, \end{aligned} \end{aligned}$$

and clearly

$$\begin{aligned} \Vert D y_i - D y'_i\Vert _{H_2^\nu } \le \Vert y - y'\Vert _{H_2^{\nu +1}}. \end{aligned}$$

Consequently, by Theorem 2 the statement holds by selecting

$$\begin{aligned} c_1(y',\nu ,f_i,U) = 1 + c_0(y') |f_i|_{\nu +1,U}. \end{aligned}$$

\(\square \)

5.3 Convergence of the MAP estimate

Proceeding with the convergence analysis of the MAP estimate can finally be done in view of the regularity properties of the solution \(y^*\) and the information operator \(\mathcal {Z}\) established by Corollary 1 and Proposition 4. Combining these results with Theorem 4.1 of Arcangéli et al. (2007) leads to Lemma 1.

Lemma 1

Let \(\rho \in \mathbb {Y}\) with \(\Vert \rho \Vert _\mathbb {Y} > \Vert [\Vert 0]{y^*}_\mathbb {Y}\) and \(q \in [1,\infty ]\). Then there are positive constants \(c_2\), \(\delta _{0,\nu }\), r (depending on \(\rho \)), and \( c_3(y^*,\nu ,f_i,r) \) such that for any \(y \in B(0,\Vert \rho \Vert _\mathbb {Y})\) the following estimate holds for all \(\delta < \delta _{0,\nu }\) and \(m=0,\ldots ,\nu -1\)

$$\begin{aligned} \begin{aligned} |\mathcal {Z}_i[y]|_{H_q^m}&\le c_2 \delta ^{\nu -m-(1/2-1/q)_+}c_3(y^*,\nu ,f_i,r) \\&\quad \Vert y - y^*\Vert _{H_2^{\nu +1}} + c_2\delta ^{-m} \Vert \mathcal {Z}_i[y] \mid \mathbb {T}_N\Vert _\infty , \end{aligned} \end{aligned}$$


$$\begin{aligned} \Vert \mathcal {Z}_i[y] \mid \mathbb {T}_N\Vert _\infty :=\max _{t \in \mathbb {T}_N} |\mathcal {Z}_i[y](t)|. \end{aligned}$$


Firstly, Cauchy–Schwartz inequality yields

$$\begin{aligned} |y_i(t)| = |\langle \eta _t^{0,\mathrm {e}_i}, y \rangle _\mathbb {Y}| \le \sqrt{ R_{ii}(t,t)} \Vert y\Vert _\mathbb {Y}; \end{aligned}$$

hence, there is a positive constant \(\tilde{c}\) such that

$$\begin{aligned} \Vert y_i\Vert _{\mathcal {L}_\infty } \le \tilde{c} \Vert y\Vert _\mathbb {Y}. \end{aligned}$$

Consequently, there exists a radius r (depending on \(\rho \)) such that \(y(\mathbb {T}) \subset B(0,r)\) whenever \(y \in B(0,\Vert \rho \Vert _\mathbb {Y})\). The set \(B(0,\Vert \rho \Vert _\mathbb {Y})\) is open in \(\mathbb {Y}\), and by Proposition 1, it is an open set in \(H_2^{\nu +1}(\mathbb {T},\mathbb {R}^d)\). Therefore, all the conditions of Proposition 4 are met for the sets \(B(0,\Vert \rho \Vert _\mathbb {Y})\) and B(0, r). In particular, \(\mathcal {Z}_i[y] \in H_2^\nu (\mathbb {T})\) for all \(y \in B(0,\Vert \rho \Vert _\mathbb {Y})\). Consequently, for appropriate selection of parameters (Arcangéli et al. 2007, Theorem 4.1 page 193) gives

$$\begin{aligned} \begin{aligned} |\mathcal {Z}_i[y]|_{H_q^m}&\le c_2 \delta ^{\nu -m-(1/2-1/q)_+} |\mathcal {Z}_i[y]|_{H_2^{\nu }} \\&\quad + c_2\delta ^{-m} \Vert \mathcal {Z}_i[y] \mid \mathbb {T}_N\Vert _\infty \end{aligned} \end{aligned}$$

for all \(\delta < \delta _{0,\nu }\) and \(m=0,\ldots ,\nu -1\). Since \(\mathcal {Z}[y^*] = 0\), it follows that

$$\begin{aligned} |\mathcal {Z}_i[y]|_{H_2^{\nu }}&= |[|0]{\mathcal {Z}_i[y]-\mathcal {Z}_i[y^*]}_{H_2^{\nu }} \\&\le \Vert \mathcal {Z}_i[y]-\mathcal {Z}_i[y^*]\Vert _{H_2^{\nu }}, \end{aligned}$$

and by Proposition 4, the lemma holds by selecting

$$\begin{aligned} c_3(y^*,\nu ,f_i,r) = c_1(y^*,\nu ,f_i,B(0,r)), \end{aligned}$$

which concludes the proof. \(\square \)

In view of Lemma 1, for any estimator \(\hat{y}' \in \mathbb {Y}\), its convergence rate can be established provided the following is shown:

  1. (i)

    There is \(\rho \in \mathbb {Y}\) independent of \(\hat{y}'\) such that \(y^*,\hat{y}' \in B(0,\Vert \rho \Vert _\mathbb {Y})\)

  2. (ii)

    A bound proportional to \(\delta ^\gamma \), \(\gamma > 0\), of \(\Vert \mathcal {Z}_i[\hat{y}'] \mid \mathbb {T}_N\Vert _\infty \) exists.

Neither (i) nor (ii) appear trivial to establish for Gaussian estimators in general (e.g. the methods of Schober et al. 2019 and Tronarp et al. 2019b). However, (i) and (ii) hold for the optimal (MAP) estimate \(\hat{y}\), which yields Theorem 3.

Theorem 3

Let \(q \in [1,\infty ]\), then under the same assumptions as in Lemma 1, there is a constant \(c_4(y^*,\nu ,f_i,r)\) such that for \(\delta < \delta _{0,\nu }\) the following holds:

$$\begin{aligned} |\mathcal {E}_i[\hat{y}]|_{H_q^0}&\le \delta ^\nu T^{1/q} c_4(y^*,\nu ,f_i,r) \Vert y^*\Vert _\mathbb {Y}, \\ |\mathcal {E}_i[\hat{y}]|_{H_q^m}&\le \delta ^{\nu +1-m-(1/2-1/q)_+} c_4(y^*,\nu ,f_i,r) \Vert y^*\Vert _\mathbb {Y}, \end{aligned}$$

where \(m = 1,\ldots ,\nu \).


Firstly, note that \(\Vert \hat{y}\Vert _\mathbb {Y} \le \Vert y^*\Vert _\mathbb {Y}\) and \(|\mathcal {E}_i[\hat{y}]|_{H_q^m} = |\mathcal {Z}_i[\hat{y}]|_{H_q^{m-1}}\). By definition,

$$\begin{aligned} \Vert \mathcal {Z}_i[\hat{y}] \mid \mathbb {T}_N\Vert _\infty = 0; \end{aligned}$$

hence, \(\hat{y} \in B(0,\Vert \rho \Vert _\mathbb {Y})\), and Lemma 1 gives for \(m=1,\ldots ,\nu \)

$$\begin{aligned} \begin{aligned} |\mathcal {Z}_i[\hat{y}]|_{H_q^{m-1}}&\le \delta ^{\nu +1-m-(1/2-1/q)_+} c_2c_3(y^*,\nu ,f_i,r)\\&\quad \times \Vert \hat{y} - y^*\Vert _{H_2^{\nu +1}}. \end{aligned} \end{aligned}$$

By Proposition 1, the fact that \(\Vert \hat{y}\Vert _\mathbb {Y} \le \Vert y^*\Vert _\mathbb {Y}\), and the triangle inequality, there exists a constant \(c_B\) (independent of \(\hat{y}\) and \(y^*\)) such that

$$\begin{aligned} \Vert \hat{y} - y^*\Vert _{H_2^{\nu +1}} \le c_B \Vert y^*\Vert _\mathbb {Y}, \end{aligned}$$

and thus, the second bound holds by selecting

$$\begin{aligned} c_4(y^*,\nu ,f_i,r) = c_2 c_B c_3(y^*,\nu ,f_i,r). \end{aligned}$$

For the first bound, the triangle inequality for integrals gives

$$\begin{aligned} |\mathcal {E}_i[\hat{y}](t)| \le |\mathcal {Z}_i[\hat{y}]|_{H_1^0}, \end{aligned}$$

and hence,

$$\begin{aligned} |\mathcal {E}_i[\hat{y}](t)|_{H_q^0} \le T^{1/q} |\mathcal {Z}_i[\hat{y}]|_{H_1^0}, \end{aligned}$$

which combined with the second bound gives the first. \(\square \)

At first glance, it may appear that there is an appalling absence of dependence on T in the constants of the convergence rates provided by Theorem 3. This is not the case; the T dependence has conveniently been hidden in \(\Vert y^*\Vert _\mathbb {Y}\) and possibly \(c_4(y^*,\nu ,f_i,r)\). Now \(c_4(y^*,\nu ,f_i,r)\) depends on \(c_0(y^*)\) and \(|f_i|_{\nu +1,B(0,r)}\), and unfortunately, an explicit expression for \(c_0(y^*)\) is not provided by Valent (2013), which makes the effect of \(c_4(y^*,\nu ,f_i,r)\) difficult to untangle. Nevertheless, the factor \(\Vert y^*\Vert _\mathbb {Y}\) does indeed depend on the interval length T. For example, let \(\lambda ,y_0 \in \mathbb {R}\) and consider the following ODE

$$\begin{aligned} \dot{y}(t) = \lambda y(t), \ y(0) = y_0. \end{aligned}$$

Setting \(\varSigma (t_0^-) = \mathrm {I}\) and selecting the prior \(\mathrm {IWP}(\mathrm {I},\nu )\) gives the following (in this case \(\mathcal {A} = D^{\nu +1}\))

$$\begin{aligned} \Vert y^*\Vert _\mathbb {Y}^2 = y_0^2 \Big ( \sum _{m = 0}^\nu \lambda ^{2m} + \frac{\lambda ^{2\nu +1}}{2}\big ( \exp (2\lambda T) - 1 \big ) \Big ). \end{aligned}$$

Consequently, the global error can be quite bad when \(\lambda > 0\) and T is large even when \(\delta \) is very small, which is the usual situation (cf. Theorem 3.4 of Hairer et al. (1987)).

In the present context, it is instructive to view the solution of (1) as a family of a quadrature problems

$$\begin{aligned} y(t) = y_0 + \int _0^t f(\tau ,y(\tau )) \,\hbox {d}\tau , \end{aligned}$$

where \(\dot{y}(t) = f(t,y(t))\) is modelled by an element of \(H_2^\nu (\mathbb {T},\mathbb {R}^d)\). In view of Theorem 3, \(D^m \dot{\hat{y}}\) converges uniformly to \(D^m \dot{y}^*\) at a rate of \(\delta ^{\nu -m - 1/2}, \ m = 0,\ldots ,\nu -1\); thus, for \(\dot{\hat{y}}\) the same rate as for standard spline interpolation is obtained (Schultz 1970). Furthermore, the rate obtained for \(\hat{y}\) by Theorem 3 matches the rate for integral approximations using Sobolev kernels (Kanagawa et al. 2020, Proposition 1). That is, although dealing with a nonlinear interpolation/integration problem, Assumption 1 ensures the problem is still nice enough for the optimal interpolant to enjoy the classical convergence rates.

6 Selecting the hyperparameters

In order to calibrate the credible intervals, the parameters \(\varSigma (t_0^-)\) and \(\varGamma \) need to be appropriately scaled to the problem being solved. It is practical to work with the parametrisation \(\varSigma (t_0^-) = \sigma ^2 \breve{\varSigma }(t_0^-)\) and \(\varGamma = \sigma ^2 \breve{\varGamma }\) for fixed \(\varSigma (t_0^-)\) and \(\breve{\varGamma }\). In this case, the quasi-maximum likelihood estimate of \(\sigma ^2\) can be computed cheaply, see Appendix B.

In principle, the parameters \(F_m\) (\(0 \le m \le \nu \)) can be estimated via quasi-maximum likelihood as well, but this would require iterative optimisation. For a given computational budget, this may not be advantageous since the convergence rate obtained in Theorem 3 holds for any selection of these parameters. Thus, it is not clear that spending a portion of a computational budget on estimating \(F_m\) (\(0 \le m \le \nu \)) will yield a smaller solution error than solving the MAP problem on a denser grid (smaller \(\delta \)) for a fixed parameters, with the same total computational budget. The \(\mathrm {IWP}(\sigma ^2 \breve{\varGamma },\nu )\) class of priors thus seem like a good default choice (\(F_m = 0\), \(0 \le m \le \nu \)).

Nevertheless, the parameters could in principle be selected to optimise the constant appearing in Theorem 3. That is, solving the following optimisation problem

$$\begin{aligned} \min _{F_0,\ldots ,F_\nu } c_4(y^*,\nu ,f_i,r) \Vert y^*\Vert ^2, \end{aligned}$$

which unfortunately appears to be intractable in general. However, it might be a good idea to use the second factor, \(\Vert y^*\Vert ^2\) as a proxy. For instance, consider solving the ODE in (24) again, but this time with the prior set to \(\mathrm {IOUP}(\lambda ,1,\nu )\). In this case, \(\mathcal {A} = D^{\nu +1} - \lambda D^\nu \), and the RKHS norm becomes

$$\begin{aligned} \Vert y^*\Vert _\mathbb {Y}^2 = y_0^2 \sum \nolimits _{m = 0}^\nu \lambda ^{2m}, \end{aligned}$$

which is strictly smaller than the RKHS norm obtained by \(\mathrm {IWP}(\mathrm {I},\nu )\) in (25).

7 Numerical examples

In this section, the MAP estimate as implemented by the iterated extended Kalman smoother (IEKS) is compared to the methods of Schober et al. (2019) (EKS0), and Tronarp et al. (2019b) (EKS1). In particular, the convergence rates of the MAP estimator from Sect. 5 are verified, which appear to generalise to the other methods as well.

In Sects. 7.17.2, and 7.3 the logistic equation, Riccati equation, and the Fitz–Hugh–Nagumo model are investigated, respectively. The vector field is a polynomial in these cases, which means it is infinitely many times differentiable and Assumption 1 is satisfied for any \(\nu \ge 1\). Lastly, in Sect. 7.4, a case where the vector field is only continuous is given, which means that Assumption 1 is violated for any \(\nu \ge 1\).

7.1 The logistic equation

Consider the logistic equation

$$\begin{aligned} \dot{y}(t) = 10 y(t)(1 - y(t)), \quad y(0) = y_0 = 15/100, \end{aligned}$$

which has the following solution.

$$\begin{aligned} y(t) = \frac{\exp (10t)}{\exp (10t) + 1/y_0 - 1}. \end{aligned}$$

The approximate solutions are computed by EKS0, EKS1, and IEKS on the interval [0, 1] on a uniform, dense using, grid with interval length \(2^{-12}\) using a prior in the class \(\mathrm {IWP}(\mathrm {I},\nu )\), \(\nu = 1,\ldots ,4\). The filter updates only occur on a decimation of this dense grid by a factor of \(2^{3+m}, \ m = 1,\ldots ,8\), which yields the fill distances \(\delta _m = 2^{m-10}, \ m = 1,\ldots ,8\). The \(\mathcal {L}_\infty \) error of the zeroth and first derivative estimates of the methods are computed on the dense grid and compared to \(\delta ^\nu \) and \(\delta ^{\nu -1/2}\) (predicted rates), respectively. The errors of the approximate solutions versus fill distance are shown in Fig. 1 and it appears that EKS0, EKS1, and IEKS all attain at worst the predicted rates once \(\delta \) is small enough. It appears the rate for EKS1/IEKS tapers off for \(\nu = 4\) and small \(\delta \). However, it can be verified that this is due to numerical instability when computing the smoothing gains as the prediction covariances \(\varSigma _F(t_n^-)\) become numerically singular for too small \(h_n\) (see (14a)). The results are similar for the derivative of the approximate solution, see Fig. 2.

Fig. 1
figure 1

\(\mathcal {L}_\infty \) error of the solution estimate as produced by EKS0 (red), EKS1 (blue), IEKS (green), and the predicted MAP rate \(\delta ^\nu \) (black), versus fill distance. (Color figure online)

Fig. 2
figure 2

\(\mathcal {L}_\infty \) error of the derivative estimate as produced by EKS0 (red), EKS1 (blue), IEKS (green), and the predicted MAP rate \(\delta ^{\nu -1/2}\) (black), versus fill distance. (Color figure online)

Solution estimates by EKS0 and EKS1 are illustrated in Fig. 3 for \(\nu = 2\) and \(\delta = 2^{-4}\) (IEKS is very similar EKS1 and therefore not shown). The credible intervals are calibrated via the quasi-maximum likelihood method, see “Appendix B”. While both methods produce credible intervals that cover the true solution, those of EKS1 are much tighter. That is, here the EKS1 estimate is of higher quality than that of EKS0, which is particularly clear when looking at the derivative estimates.

Fig. 3
figure 3

Reconstruction of the logistic map (left) and its derivative (right) with two standard deviation credible bands for EKS0 (red) and EKS1 (blue). (Color figure online)

7.2 A Riccati equation

The convergence rates are examined for a Riccati equation as well. That is, consider the following ODE

$$\begin{aligned} \dot{y}(t) = -c\frac{y^3(t)}{2}, \quad y(0) = y_0 = 1, \end{aligned}$$

which has the following solution

$$\begin{aligned} y(t) = \frac{1}{\sqrt{ct + 1/y_0^2}}. \end{aligned}$$

Just as for the logistic map, the solution is approximated by EKS0, EKS1, and IEKS on the interval [0, 1], using a \(\mathrm {IWP}(\mathrm {I},\nu )\), \(\nu = 1,\ldots ,4\), for various fill distances \(\delta \). The \(\mathcal {L}_\infty \) errors of the zeroth and first derivative estimates are shown in Figs. 4 and 5, respectively. The general results are the same as before, EKS1 and IEKS are very similar, and EKS0 is some orders of magnitude worse while still appearing to converge at a similar rate as the former. The numerical instability in the computation of smoothing gains is still present for large \(\nu \) and small \(\delta \).

Additionally, the output of the solvers for \(\nu = 2\) is visualised for step sizes of \(h = 0.125\) and \(h = 0.25\) in Figs. 6 and 7, respectively. It can be seen that already for \(h = 0.25\), the solution estimate and uncertainty quantification of the IEKS, while EKS0 and EKS1 leave room for improvement in terms of both accuracy and uncertainty quantification. By halving the step size EKS1 and IEKS become near identical (wherefore IEKS is not shown in Fig. 6), though the error of the EKS0 is still oscillating quite a bit, particularly for the derivative.

Fig. 4
figure 4

\(\mathcal {L}_\infty \) error of the solution estimate as produced by EKS0 (red), EKS1 (blue), IEKS (green), and the predicted MAP rate \(\delta ^\nu \) (black), versus fill distance. (Color figure online)

Fig. 5
figure 5

\(\mathcal {L}_\infty \) error of the derivative estimate as produced by EKS0 (red), EKS1 (blue), IEKS (green), and the predicted MAP rate \(\delta ^{\nu -1/2}\) (black), versus fill distance. (Color figure online)

Fig. 6
figure 6

Reconstruction of the Riccati map (left) and its derivative (right) with two standard deviation credible bands for EKS0 (red) and EKS1 (blue), using a step size of \(h = 0.125\). (Color figure online)

Fig. 7
figure 7

Reconstruction of the Riccati map (left) and its derivative (right) with two standard deviation credible bands for EKS0 (red), EKS1 (blue), and IEKS (green), using a step size of \(h = 0.25\). (Color figure online)

7.3 The Fitz–Hugh–Nagumo model

Consider the Fitz–Hugh–Nagumo model, which is given by

$$\begin{aligned} D \begin{pmatrix} y_1(t) \\ y_2(t) \end{pmatrix} = \begin{pmatrix} c ( y_1(t) - y_1^3(t)/3 + y_2(t) ) \\ - \frac{1}{c}( y_1(t) - a + b y_2(t) ) \end{pmatrix}. \end{aligned}$$

The initial conditions and parameters are set to \(y_2(0) = -y_1(0) = 1\), and \((a,b,c) = (0.2,0.2,2)\), respectively. The solution is estimated by EKS0, EKS1, and IEKS with an \(\mathrm {IWP}(\mathrm {I},\nu )\) prior \((1\le \nu \le 4)\) on a uniform grid with \(2^{12}+1\) points on the interval [0, 2.5], using the same decimation scheme as previously. As this ODE does not have a closed form solution, it is approximated with \(\texttt {ode45}\)Footnote 3 in MATLAB, which is called with the parameters \(\mathtt {RelTol} = 10^{-14}\), and \(\mathtt {AbsTol} = 10^{-14}\). The approximate \(\mathcal {L}_2\) error of the zeroth- and first-order derivative estimates of \(y_1^*\) are shown in Figs. 8 and 9, respectively. The results appear to be consistent with the findings from the previous experiments.

Examples of the solver output of EKS1 and IEKS for \(\nu = 2\) and \(h = 0.4375\) is in Figs. 10 and 11 for the first and second coordinates of y, respectively. The estimate and uncertainty quantification of the IEKS can be seen to be quite good, except for a slight undershoot in the estimate of \(\dot{y}_1\) at \(t = 1\). The performance of EKS1 is poorer, and it overshoots quite a bit in its estimate of \(y_1\) at around \(t = 1.5\), which is not appropriately reflected in its credible interval.

Fig. 8
figure 8

\(\mathcal {L}_\infty \) error of the solution estimate as produced by EKS0 (red), EKS1 (blue), IEKS (green), and the predicted MAP rate \(\delta ^\nu \) (black), versus fill distance. (Color figure online)

Fig. 9
figure 9

\(\mathcal {L}_\infty \) error of the derivative estimate as produced by EKS0 (red), EKS1 (blue), IEKS (green), and the predicted MAP rate \(\delta ^{\nu -1/2}\) (black), versus fill distance. (Color figure online)

Fig. 10
figure 10

Reconstruction of the first coordinate, \(y_1\), in the Fitz–Hugh–Nagumo model (left) and its derivative (right) with two standard deviation credible bands for EKS1 (blue) and IEKS (green), using a step size of \(h = 0.25\). (Color figure online)

Fig. 11
figure 11

Reconstruction of the first coordinate, \(y_2\), in the Fitz–Hugh–Nagumo model (left) and its derivative (right) with two standard deviation credible bands for EKS1 (blue) and IEKS (green), using a step size of \(h = 0.25\). (Color figure online)

Fig. 12
figure 12

\(\mathcal {L}_\infty \) error of the solution estimate as produced by EKS0 (red), EKS1 (blue), IEKS (green), and the predicted MAP rate \(\delta ^\nu \) (black), versus fill distance. (Color figure online)

Fig. 13
figure 13

\(\mathcal {L}_\infty \) error of the derivative estimate as produced by EKS0 (red), EKS1 (blue), IEKS (green), and the predicted MAP rate \(\delta ^\nu \) (black), versus fill distance. (Color figure online)

Fig. 14
figure 14

Reconstruction of the solution to the non-smooth ODE (left) and its derivative (right) with two standard deviation credible bands for EKS1 (blue) and IEKS (green), using a step size of \(h = 0.25\). (Color figure online)

7.4 A non-smooth example

Let the vector field f be given by

$$\begin{aligned} f(y) = {\left\{ \begin{array}{ll} \kappa , \quad y \le b, \\ \kappa + \lambda (y - b), \quad y > b, \end{array}\right. } \end{aligned}$$

and consider the following ODE:

$$\begin{aligned} \dot{y}(t) = f(y(t)), \quad y(0) = y_0 \le b. \end{aligned}$$

If \(\kappa > 0\), the solution is given by

$$\begin{aligned} y^*(t) = {\left\{ \begin{array}{ll} y_0 + \kappa t, \quad t \le \tau ^*,\\ b + \frac{1}{\lambda }(\exp (\lambda (t-\tau ^*)) - 1) \kappa , \quad t > \tau ^*, \end{array}\right. } \end{aligned}$$

where \(\tau ^* = (b-y_0)/\kappa \). While f is continuous, it has a discontinuity in its derivative at \(y = b\), and therefore, Assumption 1 is violated for all \(\nu \ge 1\). Nonetheless, the solution is approximated by EKS0, EKS1, and IEKS using an \(\mathrm {IWP}\) prior of smoothness \(0 \le \nu \le 4\), and the parameters are set to \(y_0 = 0\), \(b = 1\), \(\kappa = 2(b- y_0)\), and \(\lambda = - 5\). The \(\mathcal {L}_\infty \) errors of the zeroth and first derivative of the approximate solutions are shown in Figs. 12 and 13, respectively. Additionally, a comparison of the solver outputs of EKS1 and IEKS is shown in Fig. 14 for \(\nu = 2\) and \(h = 0.25\).

The estimates still appear to converge as shown in Figs. 12 and 13. However, while the rate predicted by Theorem 3 appears to still be obtained for \(\nu = 1\), a rate reduction is observed for \(\nu > 1\) (in comparison with the rate of Theorem 3). As Assumption 1 is violated, these results cannot be explained by the present theory.

However, note that Theorem 3 was obtained using \(y^* \in \mathbb {Y}\) (Corollary 1) and \(\mathcal {S}_f\) is locally Lipschitz (Theorem 2), together with the sampling inequalities of Arcangéli et al. (2007). These properties of f and \(y^*\) may be obtainable by other means than invoking Assumption 1. This could explain the results for \(\nu = 1\).

On the other hand, in the setting of numerical integration, reduction in convergence rates when the RKHS is smoother than the integrand has been investigated by Kanagawa et al. 2020. If these results can be extended to the setting of solving ODEs, it could explain the results for \(\nu > 1\).

8 Conclusion

In this paper, the maximum a posteriori estimate associated with the Bayesian solution of initial value problems (Cockayne et al. 2019) was examined and it was shown to enjoy fast convergence rates to the true solution.

In the present setting, the MAP estimate is just taken as a given, in the sense that IEKS is not guaranteed to produced the global optimum of the MAP problem. It would therefore be fruitful to study the MAP problem more carefully. In particular, establishing conditions on the vector field and the fill distance under which the MAP problem admits a unique local optimum would be a point for future research. On the algorithmic side, other MAP estimators can be considered, such as Levenberg–Marquardt (Särkkä and Svensson 2020) or alternate direction method of multipliers (Boyd et al. 2011; Gao et al. 2019).

Furthermore, the empirical findings of Sect. 7 suggests, although not being MAP estimators, EKS0 and EKS1 can likely be given convergence statements similar to Theorem 3. It is not immediately clear what the most effective approach for this purpose is. On the one hand, one can attempt to significantly extend the results of Kersting et al. (2018), which is more in line with how convergence rates are obtained for classical solvers. On the other hand, it seems like the methodology developed here can be extended for local convergence analysis as well by considering the filter update as an interpolation problem in some RKHS on each interval \([t_{n-1},t_n]\).