SMC^2: an efficient algorithm for sequential analysis of state-space models

Nicolas Chopin, Pierre E. Jacob, Omiros Papaspiliopoulos

Introduction

We consider a generic state-space model, with parameters θ∈Θ\theta\in\Theta, prior p(θ)p(\theta), latent Markov process (xt)(x_{t}), p(x1∣θ)=μθ(x1)p(x_{1}|\theta)=\mu_{\theta}(x_{1}),

For an overview of such models with references to a wide range of applications in Engineering, Economics, Natural Sciences, and other fields, see e.g. Doucet et al., (2001), Künsch, (2001) or Cappé et al., (2005).

We are interested in the recursive exploration of the sequence of posterior distributions

as well as computing the model evidence p(y1:t)p(y_{1:t}) for model composition. Such a sequential analysis of state-space models under parameter uncertainty is of interest in many settings; a simple example is out-of-sample prediction, and related goodness-of-fit diagnostics based on prediction residuals, which are popular for instance in Econometrics; see e.g. Section 4.3 of Kim et al., (1998) or Koop and Potter, (2007). Furthermore, we shall see that recursive exploration up to time t=Tt=T may be computationally advantageous even in batch estimation scenarios, where a fixed observation record y1:Ty_{1:T} is available.

2 State of the art

Sequential Monte Carlo (SMC) methods are considered the state of the art for tackling this kind of problems. Their appeal lies in the efficient re-use of samples across different times tt, compared for example with MCMC methods which would typically have to be re-run for each time horizon. Additionally, convergence properties (with respect to the number of simulations) under mild assumptions are now well understood; see e.g. Del Moral and Guionnet, (1999), Crisan and Doucet, (2002), Chopin, (2004), Oudjane and Rubenthaler, (2005), Douc and Moulines, (2008). See also Del Moral et al., (2006) for a recent overview of SMC methods.

SMC methods are particularly (and rather unarguably) effective for exploring the simpler sequence of posteriors, πt(xt∣θ)=p(xt∣y1:t,θ)\pi_{t}(x_{t}|\theta)=p(x_{t}|y_{1:t},\theta); compared to the general case the static parameters are treated as known and interest is focused on xtx_{t} as opposed to the whole path x0:tx_{0:t}. This is typically called the filtering problem. The corresponding algorithms are known as particle filters (PFs); they are described in Section 2.1 in some detail. These algorithms evolve, weight and resample a population of NxN_{x} number of particles, xt1:Nxx_{t}^{1:N_{x}}, so that at each time tt they are a properly weighted sample from πt(xt∣θ)\pi_{t}(x_{t}|\theta). Recall that a particle system is called properly weighted if the weights associated with each sample are unbiased estimates of the Radon-Nikodym derivative between the target and the proposal distribution; see for example Section 1 of Fearnhead et al., 2010a and references therein. A by-product of the PF output is an unbiased estimator of the likelihood increments and the marginal likelihood

the variance of which increases linearly over time (Cérou et al.,, 2011).

Complementary to this setting is the iterated batch importance sampling (IBIS) algorithm of Chopin, (2002) for the recursive exploration of the sequence of parameter posterior distributions, πt(θ)\pi_{t}(\theta); the algorithm is outlined in Section 2.2. This is also an SMC algorithm which updates a population of NθN_{\theta} particles, θ1:Nθ\theta^{1:N_{\theta}}, so that at each time tt they are a properly weighted sample from πt(θ)\pi_{t}(\theta). The algorithm includes occasional MCMC steps for rejuvenating the current population of θ\theta-particles to prevent the number of distinct θ\theta-particles from decreasing over time. Implementation of the algorithm requires the likelihood increments p(yt∣y1:t−1,θ)p(y_{t}|y_{1:t-1},\theta) to be computable. This constrains the application of IBIS in state-space models since computing the increments involves integrating out the latent states. Notable exceptions are linear Gaussian state-space models and models where xtx_{t} takes values in a finite set. In such cases a Kalman filter and a Baum filter respectively can be associated to each θ\theta-particle to evaluate efficiently the likelihood increments; see e.g. Chopin, (2007).

On the other hand, sequential inference for both parameters and latent states for a generic state-space model is a much harder problem, which, although very important in applications, is still rather unresolved; see for example Doucet et al., (2011), Andrieu et al., (2010), Doucet et al., (2009) for recent discussions. The batch estimation problem of exploring πT(θ,x0:T)\pi_{T}(\theta,x_{0:T}) is a non-trivial MCMC problem on its own right, especially for large TT. This is due to both high dependence between parameters and the latent process, which affects Gibbs sampling strategies (Papaspiliopoulos et al.,, 2007), and the difficulty in designing efficient simulation schemes for sampling from πT(x0:T∣θ)\pi_{T}(x_{0:T}|\theta). To address these problems Andrieu et al., (2010) developed a general theory of particle Markov chain Monte Carlo (PMCMC) algorithms, which are MCMC algorithms that use a particle filter of size NxN_{x} as a proposal mechanism. Superficially, it appears that the algorithm replaces the intractable (2) by the unbiased estimator provided by the PF within an MCMC algorithm that samples from πT(θ)\pi_{T}(\theta). However, Andrieu et al., (2010) show that (a) as NxN_{x} grows, the PMCMC algorithm behaves more and more like the theoretical MCMC algorithm which targets the intractable πT(θ)\pi_{T}(\theta); and (b) for any fixed value of NxN_{x}, the PMCMC algorithm admits πT(θ,x0:T)\pi_{T}(\theta,x_{0:T}) as a stationary distribution. The exactness (in terms of not perturbing the stationary distribution) follows from demonstrating that the PMCMC is an ordinary MCMC algorithm (with specific proposal distributions) on an expanded model which includes the PF as auxiliary variables; when Nx=1N_{x}=1 this augmentation collapses to the more familiar scheme of imputing the latent states.

3 Proposed algorithm

SMC2 is a generic black box tool for performing sequential analysis of state-space models, which can be seen as a natural extension of both IBIS and PMCMC. To each of the NθN_{\theta} θ−\theta-particles θm\theta^{m}, we attach a PF which propagates NxN_{x} x−x-particles; due to the nested filters we call it the SMC2 algorithm. Unlike the implementation of IBIS which carries an exact filter, in this case the PFs only produce unbiased estimates of the marginal likelihood. This ensures that the θ\theta-particles are properly weighted for πt(θ)\pi_{t}(\theta), in the spirit of the random weight PF of e.g. Fearnhead et al., 2010a . The connection with the auxiliary representation underlying PMCMC is pivotal for designing the MCMC rejuvenation steps, which are crucial for the success of IBIS. We obtain a sequential auxiliary Markov representation, and use it to formally demonstrate that our algorithm explores the sequence defined in (1). The case Nx=∞N_{x}=\infty corresponds to an (unrealisable) IBIS algorithm, whereas Nx=1N_{x}=1 to an importance sampling scheme, the variance of which typically grows polynomially with tt (Chopin,, 2004).

Even in batch estimation scenarios SMC2 may offer several advantages over PMCMC, in the same way that SMC approaches may be advantageous over MCMC methods (Neal,, 2001; Chopin,, 2002; Cappé et al.,, 2004; Del Moral et al.,, 2006; Jasra et al.,, 2007). Under certain conditions (which relate to the asymptotic normality of the maximizer of (2)) SMC2 has the same complexity as PMCMC. Nevertheless, it calibrates automatically its tuning parameters, as for example NxN_{x} and the proposal distributions for θ\theta. (Note adaptive versions of PMCMC, see e.g. Silva et al., (2009) and Peters et al., (2010) exist however.) Then, the first iterations of the SMC2 algorithm make it possible to quickly discard uninteresting parts of the sampling space, using only a small number of observations. Finally, the SMC2 algorithm provides an estimate of the evidence (marginal likelihood) of the model p(y1:T)p(y_{1:T}) as a direct by-product.

We demonstrate the potential of the SMC2 on two classes of problems which involve multidimensional state processes and several parameters: volatility prediction for financial assets using Lévy driven stochastic volatility models, and likelihood assessment of athletic records using time-varying extreme value distributions. A supplement to this article (available on the third author’s web-page) contains further numerical investigations with the SMC2 and competing methods on more standard examples.

Finally, it has been pointed to us that Fulop and Li, (2011) have developed independently and concurrently an algorithm similar to SMC2. Distinctive features of our paper are the generality of the proposed approach, so that it may be used more or less automatically on complex examples (e.g. setting NxN_{x} dynamically), and the formal results that establish the validity of the SMC2 algorithm, and its complexity.

4 Plan, notations

The paper is organised as follows. Section 2 recalls the two basic ingredients of SMC2: the PF and the IBIS. Section 3 introduces the SMC2 algorithm, provides its formal justification, discusses its complexity and the latitude in its implementation. Section 4 carries out a detailed simulation study which investigates the performance of SMC2 on particularly challenging models. Section 5 concludes.

Preliminaries

Sample x1n∼q1,θ(⋅)x_{1}^{n}\sim q_{1,\theta}(\cdot).

Sample the index at−1n∼M(Wt−1,θ1:Nx)a_{t-1}^{n}\sim\mathcal{M}(W_{t-1,\theta}^{1:N_{x}}) of the ancestor of particle nn.

Sample xtn∼qt,θ(⋅∣xt−1at−1n)x_{t}^{n}\sim q_{t,\theta}(\cdot|x_{t-1}^{a_{t-1}^{n}}).

In this algorithm, M(Wt−1,θ1:Nx)\mathcal{M}(W_{t-1,\theta}^{1:N_{x}}) stands for the multinomial distribution which assigns probability Wt−1,θnW_{t-1,\theta}^{n} to outcome n∈1:Nxn\in 1:N_{x}, and (qt,θ)t∈1:T\left(q_{t,\theta}\right)_{t\in 1:T} stands for a sequence of conditional proposal distributions which depend on θ\theta. A standard, albeit sub-optimal, choice is the prior, q1,θ(x1)=μθ(x1)q_{1,\theta}(x_{1})=\mu_{\theta}(x_{1}), qt,θ(xt∣xt−1)=fθ(xt∣xt−1)q_{t,\theta}(x_{t}|x_{t-1})=f_{\theta}(x_{t}|x_{t-1}) for t≥2t\geq 2, which leads to the simplification wt,θ(xt−1at−1n,xtn)=gθ(yt∣xtn)w_{t,\theta}(x_{t-1}^{a_{t-1}^{n}},x_{t}^{n})=g_{\theta}(y_{t}|x_{t}^{n}). We note in passing that Step (a) is equivalent to multinomial resampling (e.g. Gordon et al.,, 1993). Other, more efficient schemes exist (Liu and Chen,, 1998; Kitagawa,, 1998; Carpenter et al.,, 1999), but are not discussed in the paper for the sake of simplicity.

is an unbiased estimator of p(yt∣y1:t−1,θ)p(y_{t}|y_{1:t-1},\theta). More generally, it is a key feature of PFs that

is also an unbiased estimator of p(y1:t∣θ)p(y_{1:t}|\theta); this is not a straightforward result, see Proposition 7.4.1 in Del Moral, (2004). We denote by ψ1,θ(x11:Nx)\psi_{1,\theta}(x_{1}^{1:N_{x}}), for t=1t=1, and ψt,θ(x1:t1:Nx,a1:t−11:Nx)\psi_{t,\theta}(x_{1:t}^{1:N_{x}},a_{1:t-1}^{1:N_{x}}) for t≥2t\geq 2, the joint probability density of all the random variables generated during the course of the algorithm up to iteration tt. Thus, the expectation of the random variable Z^t(θ,x1:t1:Nx,a1:t−11:Nx)\hat{Z}_{t}(\theta,x_{1:t}^{1:N_{x}},a_{1:t-1}^{1:N_{x}}) with respect to ψt,θ\psi_{t,\theta} is exactly p(y1:t∣θ)p(y_{1:t}|\theta).

2 Iterated batch importance sampling (IBIS)

The IBIS approach of Chopin, (2002) is an SMC algorithm for exploring a sequence of parameter posterior distributions πt(θ)=p(θ∣y1:t)\pi_{t}(\theta)=p(\theta|y_{1:t}). All the operations involving the particle index mm must be understood as operations performed for all m∈1:Nθm\in 1:N_{\theta}, where NθN_{\theta} is the total number of θ\theta-particles. Sample θm\theta^{m} from p(θ)p(\theta) and set ωm←1\omega^{m}\leftarrow 1. Then, at time t=1:Tt=1:T

Compute the incremental weights and their weighted average

with the convention p(y1∣y1:0,θ)=p(y1∣θ)p(y_{1}|y_{1:0},\theta)=p(y_{1}|\theta) for t=1t=1.

Finally, replace the current weighted particle system, by the set of new, unweighted particles:

is a consistent and asymptotically (as Nθ→∞N_{\theta}\to\infty) normal estimator of the expectations

for all appropriately integrable φ\varphi. In addition, each LtL_{t}, computed in Step (a), is a consistent and asymptotically normal estimator of the likelihood p(yt∣y1:t−1)p(y_{t}|y_{1:t-1}).

Step (c) is usually decomposed into a resampling and a mutation step. In the above algorithm the former is done with the multinomial distribution, where particles are selected with probability proportional to ωm\omega^{m}. As mentioned in Section 2.1 other resampling schemes may be used instead. The move step is achieved through a Markov kernel KtK_{t} which leaves p(θ∣y1:t)p(\theta|y_{1:t}) invariant. In our examples KtK_{t} will be a Metropolis-Hastings kernel. A significant advantage of IBIS is that the population of θ\theta-particles can be used to learn features of the target distribution, e.g by computing

Theory and practical guidance on the use of this criterion are provided in Sections 3.7 and 4 respectively.

In the context of state-space models IBIS is a theoretical algorithm since the likelihood increments p(yt∣y1:t−1,θ)p(y_{t}|y_{1:t-1},\theta) (used both in Step 2, and implicitly in the MCMC kernel) are typically intractable. Nevertheless, coupling IBIS with PFs yields a working algorithm as we show in the following section.

Sequential parameter and state estimation: the SMC2 algorithm

SMC2 is a natural amalgamation of IBIS and PF. We first provide the algorithm, we then demonstrate its validity and we close the section by considering various possibilities in its implementation. Again, all the operations involving the index mm must be understood as operations performed for all m∈1:Nθm\in 1:N_{\theta}. Sample θm\theta^{m} from p(θ)p(\theta) and set ωm←1\omega^{m}\leftarrow 1. Then, at time t=1,…,Tt=1,\ldots,T,

For each particle θm\theta^{m}, perform iteration tt of the PF described in Section 2.1: If t=1t=1, sample independently x11:Nx,mx_{1}^{1:N_{x},m} from ψ1,θm\psi_{1,\theta^{m}}, and compute

If t>1t>1, sample (xt1:Nx,m,at−11:Nx,m)\left(x_{t}^{1:N_{x},m},a_{t-1}^{1:N_{x},m}\right) from ψt,θm\psi_{t,\theta^{m}} conditional on (x1:t−11:Nx,m,a1:t−21:Nx,m)\left(x_{1:t-1}^{1:N_{x},m},a_{1:t-2}^{1:N_{x},m}\right), and compute

where KtK_{t} is a PMCMC kernel described in Section 3.2. Finally, replace the current weighted particle system by the set of new unweighted particles:

The degeneracy criterion in Step (c) will typically be the same as for IBIS, i.e., when the ESS drops below a threshold, where the ESS is computed as in (5) and the ωm\omega^{m}’s are now obtained in (6). We study the stability and the computational cost of the algorithm when applying this criterion in Section 3.7.

A proper formalisation of the successive importance sampling steps performed by the SMC2 algorithm requires extending the sampling space, in order to include all the random variables generated by the algorithm.

At time t=1t=1, the algorithm generates variables θm\theta^{m} from the prior p(θ)p(\theta), and for each θm\theta^{m}, the algorithm generates vectors x11:Nx,mx_{1}^{1:N_{x},m} of particles, from ψ1,θm(x11:Nx)\psi_{1,\theta^{m}}(x_{1}^{1:N_{x}}). Thus, the sampling space is Θ×XNx\Theta\times\mathcal{X}^{N_{x}}, and the actual “particles” of the algorithm are NθN_{\theta} independent and identically distributed copies of the random variable (θ,x11:Nx)(\theta,x_{1}^{1:N_{x}}), with density:

Then, these particles are assigned importance weights corresponding to the incremental weight function Z^1(θ,x11:Nx)=Nx−1∑n=1Nxw1,θ(x1n)\hat{Z}_{1}(\theta,x_{1}^{1:N_{x}})=N_{x}^{-1}\sum_{n=1}^{N_{x}}w_{1,\theta}(x_{1}^{n}). This means that, at iteration 1, the target distribution of the algorithm should be defined as:

where the normalising constant p(y1)p(y_{1}) is easily deduced from the property that Z^1(θ,x11:Nx)\hat{Z}_{1}(\theta,x_{1}^{1:N_{x}}) is an unbiased estimator of p(y1∣θ)p(y_{1}|\theta). To understand the properties of π1\pi_{1}, simple manipulations suffice. Substituting w1,θ(x1n)w_{1,\theta}(x_{1}^{n}), ψ1,θ(x11:Nx)\psi_{1,\theta}(x_{1}^{1:N_{x}}) and Z^1(θ,x11:Nx)\hat{Z}_{1}(\theta,x_{1}^{1:N_{x}}) with their respective expressions,

and noting that, for the triplet (θ,x1,y1)(\theta,x_{1},y_{1}) of random variables,

The following two properties of π1\pi_{1} are easily deduced from this expression. First, the marginal distribution of θ\theta is p(θ∣y1)p(\theta|y_{1}). Thus, at iteration 1 the algorithm is properly weighted for any NxN_{x}. Second, conditional on θ\theta, π1\pi_{1} assigns to the vector x11:Nxx_{1}^{1:N_{x}} a mixture distribution which with probability 1/Nx1/N_{x}, gives to particle nn the filtering distribution p(x1∣y1,θ)p(x_{1}|y_{1},\theta), and to all the remaining particles the proposal distribution q1,θq_{1,\theta}. The notation reflects these properties by denoting the target distribution of SMC2 by π1\pi_{1}, since it admits the distributions defined in (1) as marginals.

By a simple induction, one sees that the target density πt\pi_{t} at iteration t≥2t\geq 2 should be defined as:

where Z^t(θ,x1:t1:Nx,a1:t−11:Nx)\hat{Z}_{t}(\theta,x_{1:t}^{1:N_{x}},a_{1:t-1}^{1:N_{x}}) was defined in (3), that is, it should be proportional to the sampling density of all random variables generated so far, times the product of the successive incremental weights. Again, the normalising constant p(y1:t)p(y_{1:t}) in (7) is easily deduced from the fact that Z^t(θ,x1:t1:Nx,a1:t−11:Nx)\hat{Z}_{t}(\theta,x_{1:t}^{1:N_{x}},a_{1:t-1}^{1:N_{x}}) is an unbiased estimator of p(y1:t∣θ)p(y_{1:t}|\theta). The following Proposition gives an alternative expression for πt\pi_{t}.

The probability density πt\pi_{t} may be written as:

where x1:tn\mathbf{x}_{1:t}^{n} and htn\mathbf{h}_{t}^{n} are deterministic functions of x1:t1:Nxx_{1:t}^{1:N_{x}} and a1:t−11:Nxa_{1:t-1}^{1:N_{x}} defined as follows: htn=(htn(1),…,htn(t))\mathbf{h}_{t}^{n}=\left(\mathbf{h}_{t}^{n}(1),\ldots,\mathbf{h}_{t}^{n}(t)\right) denote the index history of xtnx_{t}^{n}, that is, htn(t)=n\mathbf{h}_{t}^{n}(t)=n, and htn(s)=ashtn(s+1)\mathbf{h}_{t}^{n}(s)=a_{s}^{\mathbf{h}_{t}^{n}(s+1)}, recursively, for s=t−1,…,1s=t-1,\ldots,1, and x1:tn=(x1:tn(1),…,x1:tn(t))\mathbf{x}_{1:t}^{n}=\left(\mathbf{x}_{1:t}^{n}(1),\ldots,\mathbf{x}_{1:t}^{n}(t)\right) denote the state trajectory of particle xtnx_{t}^{n}, i.e. x1:tn(s)=xshtn(s)\mathbf{x}_{1:t}^{n}(s)=x_{s}^{\mathbf{h}_{t}^{n}(s)}, for s=1,…,ts=1,\ldots,t.

A proof is given in Appendix A. We use a bold notation to stress out that the quantities x1:tn\mathbf{x}_{1:t}^{n} and htn\mathbf{h}_{t}^{n} are quite different from particle arrays such as e.g. x1:t1:Nxx_{1:t}^{1:N_{x}}: x1:tn\mathbf{x}_{1:t}^{n} and htn\mathbf{h}_{t}^{n} provide the complete genealogy of the particle with label nn at time tt, while x1:t1:Nxx_{1:t}^{1:N_{x}} simply concatenates the successive particle arrays xt1:Nxx_{t}^{1:N_{x}}, and contains no such genealogical information.

It follows immediately from expression (1) that the marginal distribution of πt\pi_{t} with respect to θ\theta is p(θ∣y1:t)p(\theta|y_{1:t}). Conditional on θ\theta the remaining random variables, x1:t1:Nxx_{1:t}^{1:N_{x}} and a1:t−11:Nxa_{1:t-1}^{1:N_{x}}, have a mixture distribution, according to which, with probability 1/Nx1/N_{x} the state trajectory x1:tn\mathbf{x}_{1:t}^{n} is generated according to p(x1:t∣θ,y1:t)p(x_{1:t}|\theta,y_{1:t}), the ancestor variables corresponding to this trajectory, ashtn(s)a_{s}^{\mathbf{h}_{t}^{n}(s)} are uniformly distributed within 1:Nx{1:N_{x}}, and all the other random variables are generated from the particle filter proposal distribution, ψt,θ\psi_{t,\theta}. Therefore, Proposition 1 establishes a sequence of auxiliary distributions πt\pi_{t} on increasing dimensions, whose marginals include the posterior distributions of interest defined in (1). The SMC2 algorithm targets this sequence using SMC techniques.

2 The MCMC rejuvenation step

It directly follows from (7) that this algorithm defines a standard Hastings-Metropolis kernel with proposal distribution

and admits as invariant distribution the extended distribution πt(θ,x1:t1:Nx,a1:t−11:Nx)\pi_{t}(\theta,x_{1:t}^{1:N_{x}},a_{1:t-1}^{1:N_{x}}). In the broad PMCMC framework, this scheme corresponds to the so-called particle Metropolis-Hastings algorithm (see Andrieu et al.,, 2010). It is worth pointing out an interesting digression from the PMCMC framework. The Markov mutation kernel has to be invariant with respect to πt\pi_{t}, but it does not necessarily need to produce an ergodic Markov chain, since consistency of Monte Carlo estimates is achieved by averaging across many particles and not within a path of a single particle. Hence, we can also attempt lower dimensional updates, e.g using a Hastings-within-Gibbs algorithm. The advantage of such moves is that they might lead to higher acceptance rates for the same step size in the θ\theta-dimension. However, we do not pursue this point further in this article.

3 PMCMC’s invariant distribution, state inference

From (1), one may rewrite πt\pi_{t} as the marginal distribution of (θ,x1:t1:Nx,a1:t−11:Nx)(\theta,x_{1:t}^{1:N_{x}},a_{1:t-1}^{1:N_{x}}) with respect to an extended distribution that would include a uniformly distributed particle index n⋆∈1:Nxn^{\star}\in 1:N_{x}:

Andrieu et al., (2010) formalise PMCMC algorithms as MCMC algorithms that leaves πt⋆\pi_{t}^{\star} invariant, whereas in the previous section we justified our PMCMC update as a MCMC step leaving πt\pi_{t} invariant. This distinction is a mere technicality in the PMCMC context, but it becomes important in the sequential context. SMC2 is best understood as an algorithm targetting the sequence (πt)(\pi_{t}): defining importance sampling steps between successive versions of πt⋆\pi_{t}^{\star} seems cumbersome, as the interpretation of n⋆n^{\star} at time tt does not carry over to iteration t+1t+1. This distinction also relates to the concept of Rao-Blackwellised (marginalised) particle filters (Doucet et al.,, 2000): since πt\pi_{t} is a marginal distribution with respect to πt⋆\pi_{t}^{\star}, targetting πt\pi_{t} rather than πt⋆\pi_{t}^{\star} leads to more efficient (in terms of Monte Carlo variance) SMC algorithms.

The interplay between πt\pi_{t} and πt⋆\pi_{t}^{\star} is exploited below and in the following sections in order to fully realize the implementation potential of SMC2. As a first example, direct inspection of (9) reveals that the conditional distribution of n⋆n^{\star}, given θ\theta, x1:t1:Nxx_{1:t}^{1:N_{x}} and a1:t−11:Nxa_{1:t-1}^{1:N_{x}}, is M(Wt,θ1:Nx)\mathcal{M}(W_{t,\theta}^{1:N_{x}}), the multinomial distribution that assigns probability Wt,θnW_{t,\theta}^{n} to outcome nn, n∈1:Nxn\in 1:N_{x}. Therefore, weighted samples from p(θ,x1:t∣y1:t)p(\theta,x_{1:t}|y_{1:t}) may be obtained at iteration tt as follows:

For m=1,…,Nθm=1,\ldots,N_{\theta}, draw index n⋆(m)n^{\star}(m) from M(Wt,θm1:Nx)\mathcal{M}(W_{t,\theta^{m}}^{1:N_{x}}).

where x1:tn,m\mathbf{x}_{1:t}^{n,m} was defined in Proposition 1.

This temporarily extended particle system can be used in the standard way to make inferences about xtx_{t} (filtering), yt+1y_{t+1} (prediction) or even x1:tx_{1:t} (smoothing), under parameter uncertainty. Smoothing requires to store all the state variables x1:t1:Nx,1:Nθx_{1:t}^{1:N_{x},1:N_{\theta}}, which is expensive, but filtering and prediction may be performed while storing only the most recent state variables, xt1:Nx,1:Nθx_{t}^{1:N_{x},1:N_{\theta}}. We discuss more thoroughy the memory cost of SMC2, and explain how smoothing may still be carried out at certain times, without storing the complete trajectories, in Section 3.7.

The phrase temporarily extended in the previous paragraph refers to our discussion on the difference between πt\pi_{t} and πt⋆\pi_{t}^{\star}. By extending the particles with a n⋆n^{\star} component, one temporarily change the target distribution, from πt\pi_{t} to πt⋆\pi_{t}^{\star}. To propagate to time t+1t+1, one must revert back to πt\pi_{t}, by simply marginaling out the particle index n⋆n^{\star}. We note however that, before reverting to πt\pi_{t}, one has the liberty to apply MCMC updates with respect to πt⋆\pi_{t}^{\star}. For instance, one may update the θ−\theta-component of each particle according to the full conditional distribution of θ\theta with respect to to πt⋆\pi_{t}^{\star}, that is, p(θ∣x1:tn⋆,y1:t)p(\theta|\mathbf{x}_{1:t}^{n^{\star}},y_{1:t}). Of course, this possibility is interesting mostly for those models such that p(θ∣x1:tn⋆,y1:t)p(\theta|\mathbf{x}_{1:t}^{n^{\star}},y_{1:t}) is tractable. And, again, this operation may be performed only if all the state variables are available in memory.

4 Reusing all the x−limit-from𝑥x-particles

The previous section describes an algorithm for obtaining a particle sample (ωm,θm,x1:tn⋆(m),m)m∈1:Nθ(\omega^{m},\theta^{m},\mathbf{x}_{1:t}^{n^{\star}(m),m})_{m\in 1:N_{\theta}} that targets p(θ,x1:t∣y1:t)p(\theta,x_{1:t}|y_{1:t}). One may use this sample to compute, for any test function h(θ,x1:t)h(\theta,x_{1:t}), an estimator of the expectation of hh with respect to the target p(θ,x1:t∣y1:t)p(\theta,x_{1:t}|y_{1:t}):

As in Andrieu et al., (2010, Section 4.6), we may deduce from this expression a Rao-Blackwellised estimator, by marginalising out n⋆n^{\star}, and re-using all the xx-particles:

The variance reduction obtained by this Rao-Blackwellisation scheme should depend on the variability of h(θm,x1:tn,m)h(\theta^{m},\mathbf{x}_{1:t}^{n,m}) with respect to nn. For a fixed mm, the components x1:tn,m(s)\mathbf{x}_{1:t}^{n,m}(s) of the trajectories x1:tn,m\mathbf{x}_{1:t}^{n,m} are diverse when ss is close to tt, and degenerate when ss is small. Thus, this Rao-Blackwellisation scheme should be more efficient when hh depends mostly on recent state values, e.g. h(θ,x1:t)=h(xt)h(\theta,x_{1:t})=h(x_{t}), and less efficient when hh depends mostly on early state values, e.g. h(θ,x1:t)=h(x1)h(\theta,x_{1:t})=h(x_{1}).

5 Evidence

The evidence of the data obtained up to time tt may be decomposed using the chain rule:

The IBIS algorithm delivers the weighted averages LsL_{s}, for each s=1,…,ts=1,\ldots,t, which are Monte Carlo estimates of the corresponding factors in the product; see Section 2.2. Thus, it provides an estimate of the evidence by multiplying these terms. This can also be achieved via the SMC2 algorithm in a similar manner:

where p^(yt∣y1:t−1,θm)\hat{p}(y_{t}|y_{1:t-1},\theta^{m}) is given in the definition of the algorithm. It is therefore possible to estimate the evidence of the model, at each iteration tt, at practically no extra cost.

The plain vanilla SMC2 algorithm assumes that NxN_{x} stays constant during the complete run. This poses two practical difficulties. First, choosing a moderate value of NxN_{x} that leads to a good performance (in terms of small Monte Carlo error) is typically difficult, and may require tedious pilot runs. As any tuning parameter, it would be nice to design a strategy that determines automatically a reasonable value of NxN_{x}. Second, Andrieu et al., (2010) show that, in order to obtain reasonable acceptance rates for a particle Metropolis-Hastings step, one should take Nx=O(t)N_{x}=\mathcal{O}(t), where tt is the number of data-points currently considered. In the SMC2 context, this means that it may make sense to use a small value for NxN_{x} for the early iterations, and then to increase it regularly. Finally, when the variance of the PF estimates depends on θ\theta, it might be interesting to allow NxN_{x} to change with θ\theta as well.

The SMC2 framework provides more scope for such adaptation compared to PMCMC. In this section we describe two possibilities, which relate to the two main particle MCMC methods, particle marginal Metropolis-Hastings and particle Gibbs. The former generates the auxiliary variables independently of the current particle system whereas the latter does it conditionally on the current system. For this reason the latter yields a new system without changing the weights, which is a nice feature, but it requires storing particle histories, which is memory inefficient; see Section 3.7 for a more thorough discussion of the memory cost of SMC2.

The schemes for increasing NxN_{x} can be integrated into the main SMC2 algorithm along with rules for automatic calibration. We propose the following simple strategy. We start with a small value for NxN_{x}, we monitor the acceptance rate of the PMCMC step and when this rate falls below a given threshold, we trigger the “changing NxN_{x}” step; for example we multiply NxN_{x} by 2.

This importance sampling operation is valid under mild assumptions for the backward kernel LtL_{t}; namely that the support of the denominator of (3.6.1) is included in the support of its numerator. One easily deduces from Proposition 1 of Del Moral et al., (2006) and (7) that the optimal kernel (in terms of minimising the variance of the weights) is

This function is intractable, because of the denominator p(y1:t∣θ)p(y_{1:t}|\theta), but it suggests the following simple approximation: LtL_{t} should be set to ψt,θ\psi_{t,\theta}, so as to cancel the second ratio, which leads to the very simple incremental weight function:

By default, one may implement this exchange step for all the particles θ1:Nθ\theta^{1:N_{\theta}}, and multiply consequently each particle weight ωm\omega^{m} with the ratio above. However, it is possible to apply this step to only a subset of particles, either selected randomly or according to some deterministic criterion based on θ\theta. (In that case, only the weights of the selected particles should be updated.) Similarly, one could update certain particles according to a Hastings-Metropolis step, where the exchange operation is proposed, and accepted with probabilty the minimum of 1 and the ratio above.

In both cases, one effectively targets a mixture of πt\pi_{t} distributions corresponding to different values of NxN_{x}. This does not pose any formal difficutly, because these distributions admit the same marginal distributions with respect to the components of interest (θ\theta, and x1:tx_{1:t} if the target distribution is extended as described in Section 3.3), and because the successive importance sampling steps (such as either the exchange step above, or Step (b) in the SMC2 Algorithm) correspond to ratios of densities that are known up to a constant that does not depend on NxN_{x}.

Of course, in practice, propagating PF of varying size NxN_{x} is a bit more cumbersome to implement, but it may show useful in particular applications, where for instance the computational cost of sampling a new state xt+1x_{t+1}, conditional on xtx_{t}, varies strongly according to θ\theta.

6.2 Conditional SMC step

where LtL_{t} is again an arbitrary backward kernel, whose argument, denoted by a dot, is all the variables in (x1:t1:Nx,a1:t−11:Nx)(x_{1:t}^{1:N_{x}},a_{1:t-1}^{1:N_{x}}), except the variables corresponding to trajectory x1:tn\mathbf{x}_{1:t}^{n}. It is easy to see that the optimal backward kernel (applying again Proposition 1 of Del Moral et al., 2006) is such that the importance sampling ratio equals one. The main drawback of this approach is that it requires to store all the state variables x1:t1:Nx,1:Nθx_{1:t}^{1:N_{x},1:N_{\theta}}; see our dicussion of memory cost in Section 3.7.

7 Complexity

In full generality the SMC2 algorithm is memory-intensive: up to iteration tt, O(tNθNx)\mathcal{O}(tN_{\theta}N_{x}) variables have been generated and potentially have to be carried forward to the next iteration. We explain now how this cost can be reduced to O(NθNx)\mathcal{O}(N_{\theta}N_{x}) with little loss of generality.

7.2 Stability and computational cost

Step (c), which requires re-estimating the likelihood, is the most computationally expensive component of SMC2. When this operation is performed at time tt, it incurs an O(tNθNx)\mathcal{O}(tN_{\theta}N_{x}) computational cost. Therefore, to study the computational cost of SMC2 we need to investigate the rate at which ESS drops below a given threshold. This question directly relates to the stability of the filter, and we will work as in Section 3.1 of Chopin, (2004) to answer it. Our approach is based on certain simplifying assumptions, regularity conditions and a recent result of Cérou et al., (2011) which all lead to Proposition 2; the assumptions are discussed in some detail in Appendix B.

Consider now the specific context of SMC2. Let tt be a resampling time at which equally weighted, independent particles have been obtained, and t+p, p>0t+p,\,p>0, a future time such that no resampling has happened since tt. The marginal distribution of the resampled particles at time tt is only approximately πt\pi_{t} due to the burn-in period of the Markov chains which are used to generate them. The second simplifying assumption in our analysis is that this marginal distribution is precisely πt\pi_{t}. Under this assumption, the particles at time t+pt+p are generated according to the distribution πˉt,t+p\bar{\pi}_{t,t+p},

and the expected value of the weights ωt+p\omega_{t+p} obtained from (6) is p(y1:t)/p(y1:t+p)p(y_{1:t})/p(y_{1:t+p}). Therefore, the normalized weights are given by

and the inverse of the second moment of the normalized weights in SMC2 and IBIS is given by

The previous development leads to the following Proposition which is proved in Appendix B.

Under Assumptions (H1a) and (H1b) in Appendix B, there exists a constant η>0\eta>0 such that for any pp, if Nx>ηpN_{x}>\eta p,

Under Assumptions (H2a)-(H2d) in Appendix B, for any γ>0\gamma>0 there exist τ,η>0\tau,\eta>0 and t0<∞t_{0}<\infty, such that for t≥t0t\geq t_{0},

The implication of this Proposition is the following: under the assumptions in Appendix B and the assumption that the resampling step produces samples from the target distribution, the resample steps should be triggered at times ⌈τk⌉\left\lceil\tau^{k}\right\rceil, k≥1k\geq 1, to ensure that the weight degeneracy between two successive resampling step stays bounded in the run of the algorithm; at these times NxN_{x} should be adjusted to Nx=⌈ητk⌉N_{x}=\left\lceil\eta\tau^{k}\right\rceil; thus, the cost of each successive importance sampling step is O(Nθτk)\mathcal{O}(N_{\theta}\tau^{k}), until the next resampling step; a simple calculation shows that the cumulative computational cost of the algorithm up to some iteration tt is then O(Nθt2)\mathcal{O}(N_{\theta}t^{2}). This is to be contrasted with a computational cost O(Nθt)\mathcal{O}(N_{\theta}t) for IBIS under a similar set of assumptions. The assumptions which lead to this result are restrictive but they are typical of the state of the art for obtaining results about the stability of this type of sequential algorithms; see Appendix B for further discussion.

Numerical illustrations

An initial study which illustrates SMC2 in a range of examples of moderate difficulty is available from the second author’s web-page, see http://sites.google.com/site/pierrejacob/, as supplementary material. In that study, SMC2 was shown to typically outperform competing algorithms, whether in sequential scenarios (where datapoints are obtained sequentially) or in batch scenarios (where the only distribution of interest is p(θ,x1:T∣y1:T)p(\theta,x_{1:T}|y_{1:T}) for some fixed time horizon TT). For instance, in the former case, SMC2 was shown to provide smaller Monte Carlo errors than the SOPF at a given CPU cost. In the latter case, SMC2 was shown to compare favourably to an adaptive version of the marginal PMCMC algorithm proposed by Peters et al., (2010).

In this paper, our objective instead is to take a hammer to SMC2, that is, to evaluate its performance on models that are regarded as particularly challenging, even for batch estimation purposes. In addition, we treat SMC2 as much as possible as a black box: the number NxN_{x} of xx-particles is augmented dynamically (using the exchange step, see Section 3.6.1), as explained in Section 3.6; the move steps are calibrated using the current particles, as described at the end of Section 2.2, and so on. The only model-dependent inputs are (a) a procedure for sampling from the Markov transition of the model, fθ(xt+1∣xt)f_{\theta}(x_{t+1}|x_{t}); (b) a procedure for pointwise evaluation the likelihood gθ(yt∣xt)g_{\theta}(y_{t}|x_{t}); and (c) a prior distribution on the parameters. This means that the proposal qt,θq_{t,\theta} is set to the default choice fθ(xt+1∣xt)f_{\theta}(x_{t+1}|x_{t}). This also means that we are able to treat models such that the density fθ(xt+1∣xt)f_{\theta}(x_{t+1}|x_{t}) cannot be computed, even if it may be sampled from; this is the case in the first application we consider.

A generic SMC2 software package written in Python and C by the second author is available at http://code.google.com/p/py-smc2/.

SMC2 is particularly well suited to tackle several of the challenges that arise in the probabilistic modelling of financial time series: prediction is of central importance; risk management requires accounting for parameter and model uncertainty; non-linear models are necessary to capture the features in the data; the length of typical time series is large when modelling medium/low frequency data and vast when considering high frequency observations.

We illustrate some of these possibilities in the context of prediction of daily volatility of asset prices. There is a vast literature on stochastic volatility (SV) models; we simply refer to the excellent exposition in Barndorff-Nielsen and Shephard, (2002) for references, perspectives and second-order properties. The generic framework for daily volatility is as follows. Let sts_{t} be the value of a given financial asset (e.g a stock price or an exchange rate) on the tt-th day, and yt=105/2 log⁡(st/st−1)y_{t}=10^{5/2}\,\log(s_{t}/s_{t-1}) be the so-called log-returns (the scaling is done for numerical convenience). The SV model specifies a state-space model with observation equation:

where the ϵt\epsilon_{t} is a sequence of independent errors which are assumed to be standard Gaussian. The process vtv_{t} is known as the actual volatility and it is treated as a stationary stochastic process. This implies that log-returns are stationary with mixed Gaussian marginal distribution. The coefficient β\beta has both a financial interpretation, as a risk premium for excess volatility, and a statistical one, since for β≠0\beta\neq 0 the marginal density of log-returns is skewed.

We consider the class of Lévy driven SV models which were introduced in Barndorff-Nielsen and Shephard, (2001) and have been intensively studied in the last decade from both the mathematical finance and the statistical community. This family of models is specified via a continuous-time model for the joint evolution of log-price and spot (instantaneous) volatility, which are driven by Brownian motion and Lévy process respectively. The actual volatility is the integral of the spot volatility over daily intervals, and the continuous-time model translates into a state-space model for yty_{t} and vtv_{t} as we show below. Details can be found in Sections 2 (for the continuous-time specification) and 5 (for the state-space representation) of the original article. Likelihood-based inference for this class of models is recognized as a very challenging problem, and it has been undertaken among others in Roberts et al., (2004); Griffin and Steel, (2006) and most recently in Andrieu et al., (2010) using PMCMC. On the other hand, Barndorff-Nielsen and Shephard, (2002) develop quasi-likelihood methods using the Kalman filter based on an approximate state-space formulation suggested by the second-order properties of the (yt,vt)(y_{t},v_{t}) process.

Here we focus on models where the background driving Lévy process is expressed in terms of a finite rate Poisson process and consider multi-factor specifications of such models which include leverage. This choice allows the exact simulation of the actual volatility process, and permits direct comparisons to the numerical results in Sections 4 of Roberts et al., (2004), 3.2 of Barndorff-Nielsen and Shephard, (2002) and 6 of Griffin and Steel, (2006). Additionally, this case is representative of a system which can be very easily simulated forwards whereas computation of its transition density is considerably involved (see (14) below). The specification for the one-factor model is as follows. We parametrize the latent process as in Barndorff-Nielsen and Shephard, (2002) in terms of (ξ,ω2,λ)(\xi,\omega^{2},\lambda) where ξ\xi and ω2\omega^{2} are the stationary mean and variance of the spot volatility process, and λ\lambda the exponential rate of decay of its autocorrelation function. The second-order properties of vtv_{t} can be expressed as functions of these parameters, see Section 2.2 of Barndorff-Nielsen and Shephard, (2002). The state dynamics for the actual volatility are as follows:

In this representation, ztz_{t} is the discretely-sampled spot volatility process, and the Markovian representation of the state process involves the pair (vt,zt)(v_{t},z_{t}). The random variables (k,c1:k,e1:k)(k,c_{1:k},e_{1:k}) are generated independently for each time period, and 1:k1:k is understood as the empty set when k=0k=0. These system dynamics imply a Γ(ξ2/ω2,ξ/ω2)\Gamma(\xi^{2}/\omega^{2},\xi/\omega^{2}) as stationary distribution for ztz_{t}. Therefore, we take this to be the initial distribution for z0z_{0}.

We applied the algorithm to a synthetic data set of length T=1,000T=1,000 (Figure 1(a)) simulated with the values μ=0\mu=0, β=0\beta=0, ξ=0.5\xi=0.5, ω2=0.0625\omega^{2}=0.0625, λ=0.01\lambda=0.01 which were used also in the simulation study of Barndorff-Nielsen and Shephard, (2002). We launched 5 independent runs using Nθ=1,000N_{\theta}=1,000, a ESS threshold set at 50%50\%, and the independent Hastings-Metropolis scheme described in Section 2.2. The number NxN_{x} was set initially to 100, and increased whenever the acceptance rate went below 20%20\% (Figure 1(b)-(c)). Figure 1(d)-(e) shows estimates of the posterior marginal distribution of some parameters. Note the impact the large jump in the volatility has on NxN_{x}, which is systematically (across runs) increased around time 400400, and the posterior distribution of the parameters of the volatility process, see Figure 1(f).

It is interesting to compare the numerical performance of SMC2 to that of the SOPF and Liu and West, (2001)’s particle filter (referred to as L&W in the following) for this model and data, and for a comparable CPU budget. The SOPF, if run with N=105N=10^{5} particles, collapses to one single particle at about t=700t=700 and is thus completely unusable in this context. L&W is a version of SOPF where the θ\theta-components of the particles are diversified using a Gaussian move that leaves the first two empirical moments of the particle sample unchanged. This move unfortunately introduces a bias which is hard to quantity. We implemented L&W with N=2×105N=2\times 10^{5} (x,θ)(x,\theta)-particles and we set the smoothing parameter hh to 10−110^{-1}; see the Supplement for results with various values of hh. This number of particles was to chosen to make the computing time of SMC2 and L&W comparable, see Figure 2(a). Unsurprisingly, L&W runs are very consistent in terms of computing times, whereas those of SMC2 are more variable, mainly because the number of xx-particles does not reach the same value across the runs and the number of resample-move steps varies. Each of these runs took between 1.51.5 and 77 hours using a simple Python script and only one processing unit of a 2008 desktop computer (equipped with an Intel Core 2 Duo E8400). Note that, given that these methods could easily be parallelized, the computational cost can be greatly reduced; a 100×100\times speed-up is plausible using appropriate hardware.

Our results suggest that the bias in L&W is significant. Figure 2(b) shows the posterior distribution of ξ\xi, the mean of volatility, at time t=500t=500, which is about 100100 time steps after the large jump in volatility at time t=407t=407. The results for both algorithms are compared to those from a long PMCMC run (implemented as in Peters et al.,, 2010, and detailed in the Supplement) with Nx=500N_{x}=500 and 10510^{5} iterations. Figure 2(c) reports on the estimation of the log evidence log⁡p(y1:t)\log p(y_{1:t}) for each algorithm, plotting the estimated log evidence of each run minus the mean of the log evidence of the 55 SMC2 runs. We see that the log evidence estimated using L&W is systematically biased, positively or negatively depending on the time steps, with a large discontinuity at time t=407t=407, which is due to underestimation of the tails of the predictive distribution.

We now consider models of different complexity for the S&P 500 index. The data set is made of 753753 observations from January 3rd 2005 to December 31st 2007 and it is shown on Figure 3(a).

We first consider a two-factor model, according to which the actual volatility is a sum of two independent components each of which follows a Lévy driven model. Previous research indicates that a two-factor model is sufficiently flexible, whereas more factors do not add significantly when considering daily data, see for example Barndorff-Nielsen and Shephard, (2002); Griffin and Steel, (2006) for Lévy driven models and Chernov et al., (2003) for diffusion-driven SV models. We consider one component which describes long-term movements in the volatility, with memory parameter λ1\lambda_{1}, and another which captures short-term variation, with parameter λ2>>λ1\lambda_{2}>>\lambda_{1}. The second component allows more freedom in modelling the tails of the distribution of log-returns. The contribution of the slowly mixing process to the overall mean and variance of the spot volatility is controlled by the parameter w∈(0,1)w\in(0,1). Thus, for this model xt=(v1,t,z1,t,v2,t,z2,t)x_{t}=(v_{1,t},z_{1,t},v_{2,t},z_{2,t}) with vt=v1,t+v2,tv_{t}=v_{1,t}+v_{2,t}, where each pair (vi,t,zi,t)(v_{i,t},z_{i,t}) evolves according to (14) with parameters (wiξ,wiω2,λi)(w_{i}\xi,w_{i}\omega^{2},\lambda_{i}) with w1=w,w2=1−ww_{1}=w,w_{2}=1-w. The system errors are generated by independent sets of variables (ki,ci,1:k,ei,1:k)(k_{i},c_{i,1:k},e_{i,1:k}), and z0,iz_{0,i} are initialized according to the corresponding gamma distributions. Finally, we extend the observation equation to capture a significant feature observed in returns on stocks: low returns provoke increase in subsequent volatility, see for example Black, (1976) for an early reference. In parameter driven SV models, one generic strategy to incorporate such feedback is to correlate the noise in the observation and state processes, see Harvey and Shephard, (1996) in the context of the logarithmic SV model, and Section 3 of Barndorff-Nielsen and Shephard, (2001) for Lévy driven models. We take up their suggestion, and re-write the observation equation as

where ei,je_{i,j} are the system error variables involved in the generation of vtv_{t} and ρi\rho_{i} are the leverage parameters which we expect to be negative. Thus, in this specification we deal with a model with a 5-dimensional state and 9 parameters.

We launch the three models for the S&P 500 data: single factor, multifactor without and with leverage; note that multifactor without leverage means the full model, but with ρ1=ρ2=0\rho_{1}=\rho_{2}=0 in (15). We use Nθ=2000N_{\theta}=2000, and NxN_{x} is set initially to 100100 and then dynamically increases as already described. The acceptance rates stay reasonable as illustrated on Figure 3. Figure 3 shows the log evidence log⁡p(y1:t)\log p(y_{1:t}) for the two factor models minus the log evidence for the single factor model. Negative values at time tt means that the observations favour the single factor model up to time tt. Notice how the model evidence changes after the big jump in volatility around time t=550t=550. Estimated posterior densities for all parameters are provided in the Supplement.

2 Assessing extreme athletic records

The second application illustrates the potential of SMC2 in smoothing while accounting for parameter uncertainty. In particular, we consider state-space models that have been proposed for the dynamic evolution of athletic records, see for example Robinson and Tawn, (1995), Gaetan and Grigoletto, (2004), Fearnhead et al., 2010b . We analyse the time series of the best times recorded for women’s 3000 metres running events between 1976 and 2010. The motivation is to assess to which extent Wang Junxia’s world record in 1993 was unusual: 486.11486.11 seconds while the previous record was 502.62502.62 seconds. The data is shown in Figure 4 and include two observations per year y=y1:2y=y_{1:2}, with y1<y2y_{1}<y_{2}: y1y_{1} is the best annual time and y2y_{2} the second best time on the race where y1y_{1} was recorded. The data is available from http://www.alltime-athletics.com/ and it is further discussed in the aforementioned articles. A further fact that sheds doubt on the record is that the second time for 1993 corresponds to an athlete from the same team as the record holder.

We use the same modelling as Fearnhead et al., 2010b . The observations follow a generalized extreme value (GEV) distribution for minima, with cumulative distribution function GG defined by:

where μ\mu, ξ\xi and σ\sigma are respectively the location, shape and scale parameters, and {⋅}+=max⁡(0,⋅)\{\cdot\}_{+}=\max(0,\cdot). We denote by gg the associated probability density function. The support of this distribution depends on the parameters; e.g. if ξ<0\xi<0, gg and GG are non-zero for y>μ+σ/ξy>\mu+\sigma/\xi. The probability density function for y=y1:2y=y_{1:2} is given by:

subject to y1<y2y_{1}<y_{2}. The location μ\mu is not treated as a parameter but as a smooth second-order random walk process:

To complete the model specification we set a diffuse initial distribution N(520,102)\mathcal{N}(520,10^{2}) on μ0\mu_{0}. Thus we deal with bivariate observations in time yt=yt,1:2y_{t}=y_{t,1:2}, a state-space model with non-Gaussian observation density given in (17), a two-dimensional state process given in (18), and a 33-dimensional unknown parameter vector, θ=(ν,ξ,σ)\theta=(\nu,\xi,\sigma). We choose independent exponential prior distributions on ν\nu and σ\sigma with rate 0.20.2. The sign of ξ\xi has determining impact on the support of the observation density, and the computation of extremal probabilities. For this application, given the form of (16) and the fact that the observations are necessarily bounded from below, it makes sense to assume that ξ≤0\xi\leq 0, hence we take an exponential prior distribution on −ξ-\xi with rate 0.50.5. (We also tried a N(0,32)N(0,3^{2}) prior, which had some moderate impact on the estimates presented below, but the corresponding results are not reported here.)

The data we will use in the analysis exclude the two times recorded on 1993. Thus, in an abuse of notation y1976:2010y_{1976:2010} below refers to the pairs of times for all years but 1993, and in the model we assume that there was no observation for that year. Formally we want to estimate probabilities

where the smoothing distribution p(μt∣y1976:2010,θ)p(\mu_{t}|y_{1976:2010},\theta) and the posterior distribution p(θ∣y1976:2010)p(\theta|y_{1976:2010}) appear explicitly; below we also consider the probabilities conditionally on the parameter values, rather than integrating over those. The interest lies in p1993486.11p_{1993}^{486.11}, p1993502.62p_{1993}^{502.62} and ptcond:=pt486.11/pt502.62p_{t}^{cond}:=p_{t}^{486.11}/p_{t}^{502.62}, which is the probability of observing at year tt Wang Junxia’s record given that we observe a better time than the previous world record. The rationale for using this conditional probability is to take into account the exceptional nature of any new world record.

The algorithm is launched 1010 times with Nθ=1,000N_{\theta}=1,000 and Nx=250N_{x}=250. The resample-move steps are triggered when the ESS goes below 50%50\%, as in the previous example, and the proposal distribution used in the move steps is an independent Gaussian distribution fitted on the particles. The computing time of each of the 1010 runs varies between 3030 and 7070 seconds (using the same machine as in the previous section), which is why we allowed ourselves to use a fairly large number of particles compared to the small time horizon. Figure 4 represents the estimates p^ty\hat{p}_{t}^{y} at each year, for y=486.11y=486.11 (lower box-plots) and y=502.62y=502.62 (upper box-plots), as well as p^tcond=p^t486.11/p^t502.62\hat{p}_{t}^{cond}=\hat{p}_{t}^{486.11}/\hat{p}_{t}^{502.62} (middle box-plots). The box-plots show the variability across the independent runs of the algorithm, and the lines connect the mean values computed across independent runs at each year. The mean value of p^1993cond\hat{p}_{1993}^{cond} over the runs is 9.4⋅10−49.4\cdot 10^{-4} and the standard deviation over the runs is 3.3⋅10−43.3\cdot 10^{-4}. Note that the estimates p^ty\hat{p}_{t}^{y} are computed using the smoothing algorithm described in Section 3.3.

The second row of Figure 4 shows the posterior distributions of the three parameters (ν,ξ,σ)(\nu,\xi,\sigma) using kernel density estimations of the weighted θ\theta-particles. The density estimators obtained for each run are overlaid to show the consistency of the results over independent runs. The prior density function (full line) is nearly flat over the region of high posterior mass. The third row of Figure 4 shows scatter plots of the probabilities G(y∣μ1993n⋆(m),θm)G(y|\mu_{1993}^{n^{\star}(m)},\theta^{m}) against the parameters θm\theta^{m}. The triangles represent these probabilities for y=486.11y=486.11 while the circles represent the probabilities for y=502.62y=502.62. The cloud of points at the bottom of these plots correspond to parameters θm\theta^{m} for which the probability G(486.11∣μ1993n⋆(m),θm)G(486.11|\mu_{1993}^{n^{\star}(m)},\theta^{m}) is exactly 0.

Extensions

In this paper, we developed an “exact approximation” of the IBIS algorithm, that is, an ideal SMC algorithm targetting the sequence πt(θ)=p(θ∣y1:t)\pi_{t}(\theta)=p(\theta|y_{1:t}), with incremental weight πt(θ)/πt−1(θ)=p(yt∣y1:t−1,θ)\pi_{t}(\theta)/\pi_{t-1}(\theta)=p(y_{t}|y_{1:t-1},\theta). The phrase “exact approximation”, borrowed from Andrieu et al., (2010), refers to the fact that our approach targets the exact marginal distributions, for any fixed value NxN_{x}.

We have argued that SMC2 can cope with state-space models with intractable transition densities provided these can be simulated from. More generally, it can cope with intractable transition of observation densities provided they can be unbiasedly estimated. Filtering for dynamic models with intractable densities for which unbiased estimators can be computed was discussed in Fearnhead et al., (2008). It was shown that replacing these densities by their unbiased estimators is equivalent to introducing additional auxiliary variables in the state-space model. SMC2 can directly be applied in this context by replacing these terms by the unbiased estimators to obtain sequential state and parameter inference for such models.

2 SMC2 for tempering

A natural question is whether we can construct other types of SMC2 algorithms, which would be “exact approximations” of different SMC strategies. Consider for instance, again for a state-space model, the following geometric bridge sequence (in the spirit of e.g. Neal,, 2001), which allows for a smooth transition from the prior to the posterior:

where LL is the total number of iterations. As pointed out by one referee, see also Fulop and Duan, (2011), it is possible to derive some sort of SMC2 algorithm that targets iteratively the sequence

where p^(y1:T∣θ)\hat{p}(y_{1:T}|\theta) is a particle filtering estimate of the likelihood. Note that {p^(y1:T∣θ)}γt\left\{\hat{p}(y_{1:T}|\theta)\right\}^{\gamma_{t}} is not an unbiased estimate of {p(y1:T∣θ)}γt\left\{{p}(y_{1:T}|\theta)\right\}^{\gamma_{t}} when γt∈(0,1)\gamma_{t}\in(0,1). This makes the interpretation of the algorithm more difficult, as it cannot be analysed as a noisy, unbiased, version of an ideal algorithm. In particular, Proposition 2 on the complexity of SMC2 cannot be easily extended to the tempering case. It is also less flexible in terms of PMCMC steps: for instance, it is not possible to implement the conditional SMC step described in Section 3.6.2, or more generally a particle Gibbs step, because such steps rely on the mixture representation of the target distribution, where the mixture index is some selected trajectory, see (9), and this representation does not hold in the tempering case. More importantly, this tempering strategy does not make it possible to perform sequential analysis as the SMC2 algorithm discussed in this paper.

The fact remains that this tempering strategy may prove useful in certain non-sequential scenarios, as suggested by the numerical examples of Fulop and Duan, (2011). It may be used also for determining MAP (maximum a posteriori) estimators, and in particular the maximum likelihood estimator (using a flat prior), by letting γt→+∞\gamma_{t}\rightarrow+\infty.

Acknowledgements

N. Chopin is supported by the ANR grant ANR-008-BLAN-0218 “BigMC” of the French Ministry of research. P.E. Jacob is supported by a PhD fellowship from the AXA Research Fund. O. Papaspiliopoulos would like to acknowledge financial support by the Spanish government through a “Ramon y Cajal” fellowship and grant MTM2009-09063. The authors are thankful to Arnaud Doucet (University of Oxford), Peter Müller (UT Austin), Gareth W. Peters (UCL) and the referees for useful comments.

References

Appendix A: Proof of Proposition (1)

We remark first that ψt,θ\psi_{t,\theta} may be rewritten as follows:

by distributing the final product in the first line, and using the convention that w1,θ(x0a0n,x1n)=w1,θ(x1n)w_{1,\theta}(x_{0}^{a_{0}^{n}},x_{1}^{n})=w_{1,\theta}(x_{1}^{n}).

To obtain (1), we consider the summand above, for a given value of nn, and put aside the random variables that correspond to the state trajectory x1:tn\mathbf{x}_{1:t}^{n}. We start with x1:tn(t)=xtn\mathbf{x}_{1:t}^{n}(t)=x_{t}^{n}, and note that

Thus, the summand in the expression of πt\pi_{t} above may be rewritten as

By applying recursively, for s=t−1,…,1s=t-1,\ldots,1 the same type of substitutions, that is,

where p(θ,x1:tn,y1:t)p(\theta,\mathbf{x}_{1:t}^{n},y_{1:t}) stands for the joint probability density defined by the model, for the triplet of random variables (θ,x1:t,y1:t)(\theta,x_{1:t},y_{1:t}), evaluated at x1:t=x1:tnx_{1:t}=\mathbf{x}_{1:t}^{n}, one eventually gets:

Appendix B: Proof of Proposition 2 and discussion of assumptions

Since p(θ∣y1:t)p(\theta|y_{1:t}) is the marginal distribution of πˉt,t+p\bar{\pi}_{t,t+p}, by iterated conditional expectation we get:

To study the inner expectation, we make the following first set of assumptions:

For all θ∈Θ\theta\in\Theta, and x,x′,x′′∈Xx,x^{\prime},x^{\prime\prime}\in\mathcal{X},

For all θ∈Θ\theta\in\Theta, x,x′∈Xx,x^{\prime}\in\mathcal{X}, y∈Yy\in\mathcal{Y},

Under these assumptions, one obtains the following non-asymptotic bound.

The Proposition above is taken from Cérou et al., (2011), up to some change of notations and a minor modification: Cérou et al., (2011) establish this result for the likelihood estimate Z^t\hat{Z}_{t}, obtained by running a particle from time 11 to time tt. However, their proof applies straightforwardly to the partial likelihood estimate Z^t+p∣t\hat{Z}_{t+p|t}, obtained by running a particle filter from time t+1t+1 to time t+pt+p, and therefore with initial distribution η0\eta_{0} set to the mixture of Dirac masses at the particle locations at time tt. We note in passing that Assumptions (H1a) and (H1b) may be loosened up slightly, see Whiteley, (2011). A direct consequence of Proposition 3, the main definitions and the iterated expectation is Proposition 2(a) for η=4βδ\eta=4\beta\delta.

Proposition 2(b) requires a second set of conditions taken from Chopin, (2002). These relate to the asymptotic behaviour of the marginal posterior distribution p(θ∣y1:t)p(\theta|y_{1:t}) and they have been used to study the weight degeneracy of IBIS. Let lt(θ)=log⁡p(y1:t∣θ)l_{t}(\theta)=\log p(y_{1:t}|\theta). The following assumptions hold almost surely.

The MLE θ^t\hat{\theta}_{t} (the mode of function lt(θ)l_{t}(\theta)) exists and converges to θ0\theta_{0} as n→+∞n\rightarrow+\infty.

The observed information matrix defined as

is positive definite and converges to I(θ0)I(\theta_{0}), the Fisher information matrix.

There exists Δ\Delta such that, for δ∈(0,Δ)\delta\in(0,\Delta),

The function lt/tl_{t}/t is six-times continuously differentiable, and its derivatives of order six are bounded relative to tt over any compact set Θ′⊂Θ\Theta^{\prime}\subset\Theta.

Under these conditions one may apply Theorem 1 of Chopin, (2002) (see also Proof of Theorem 4 in Chopin,, 2004) to conclude that Et,t+p∞≥2γ\mathcal{E}_{t,t+p}^{\infty}\geq 2\gamma for a given γ>0\gamma>0 and tt large enough, provided p=⌈τt⌉p=\left\lceil\tau t\right\rceil for some τ>0\tau>0 (that depends on γ\gamma). Together with Proposition 2(a) and by a small modification of the Proof of Theorem 4 in Chopin, (2004) to fix γ\gamma instead of τ\tau, we obtain Proposition 2(b) provided Nx=⌈ηt⌉N_{x}=\lceil\eta t\rceil, and η=4βδ\eta=4\beta\delta.

Note that (H2a) and (H2b) essentially amount to establishing that the MLE has a standard asymptotic behaviour (such as in the IID case). This type of results for state-space models is far from trivial, owning among other things to the intractable nature of the likelihood p(y1:t∣θ)p(y_{1:t}|\theta). A good entry in this field is Chapter 12 of Cappé et al., (2005), where it can be seen that the first set of conditions above, (H1a) and (H2b), are sufficient conditions for establishing (H2a) and (H2b), see in particular Theorem 12.5.7 page 465. Condition (H2d) is trivial to establish, if one assumes bounds similar to those in (H1a) and (H1b) for the derivatives of gθg_{\theta} and fθf_{\theta}. Condition (H2c) is harder to establish. We managed to prove that this condition holds for a very simple linear Gaussian model; notes are available from the first author. Independent work by Judith Rousseau and Elisabeth Gassiat is currently carried out on the asymptotic properties of posterior distributions of state-space models, where (H2c) is established under general conditions (personal communication).

The implication of Proposition 2 to the stability of SMC2 is based on the additional assumption that after resampling at time tt we obtain exact samples from πt\pi_{t}. In practice, this is only approximately true since an MCMC scheme is used to sample new particles. This assumption also underlies the analysis of IBIS in Chopin, (2002), where it was demonstrated empirically (see e.g. Fig. 1(a) in that paper) that the MCMC kernel which updates the θ\theta particles has a stable efficiency over time since it uses the population of θ\theta-particles to design the proposal distribution. We also observe empirically that the performance of the PMCMC step does not deteriorate over time provided NxN_{x} is increased appropriately, see for example Figure 1(b). It is important to establish such a result theoretically, i.e., that the total variation distance of the PMCMC kernel from the target distribution remains bounded over time provided NxN_{x} is increased appropriately. Note that a fundamental difference between IBIS and SMC2 is that respect is that in the latter the MCMC step targets distributions in increasing dimensions as time increases. Obtaining such a theoretical result is a research project on its own right, since such quantitative results lack, to the best of our knowledge, from the existing literature. The closest in spirit is Theorem 6 in Andrieu and Roberts, (2009) which, however, holds for “large enough” NxN_{x}, instead of providing a quantification of how large NxN_{x} needs to be.