Reinhart 2018 - Simulation, Inference and Diagnostics
Summary
Self-exciting processes can be simulated by Ogata’s two-stage thinning (Alg. 4) or, much cheaper, by generating the cluster tree directly (Alg. 5). Parameter uncertainty comes from Rathbun’s asymptotic covariance or the parametric bootstrap (Alg. 6); Hessian-based errors are poor in short windows. Fit is checked by thinning/super-thinning to a homogeneous Poisson process and by Voronoi residual maps.
Overview
Simulation underlies bootstrap, forecasting and checking; diagnostics adapt residual methods from spatial point processes (Baddeley et al.) to space-time.
Main Content
Simulation (Sec. 3.3)
- Thinning (Lewis & Shedler 1979 for NHPP). Alg. 4 (Ogata 1998): integrate space out, with , ; draw waiting times from an exponential with dominating rate , accept with probability , then choose the parent index by the smallest with and draw the location from (if ) or from normalised centred at . Expensive: is a large sum at each candidate.
Algorithm 5: cluster simulation (Zhuang, Ogata & Vere-Jones 2004)
(1) Simulate background from ; (2)-(4) for each event in generation draw offspring with locations/times from normalised ; set = offspring; repeat until empty; return .
Edge effects: simulate on a larger window and cut. Moller & Rasmussen (2005) give perfect simulation for temporal Hawkes processes.
Inference (Sec. 3.4)
Asymptotic normality
Ogata (1978): temporal MLEs are asymptotically normal with covariance the inverse expected Fisher information. Rathbun (1996): for spatio-temporal processes, MLEs are consistent and asymptotically normal as under regularity conditions, with covariance estimator
(eq. 14 as printed in the review; consult Rathbun 1996 for the exact regularity conditions and estimator before use).
Wang, Schoenberg & Jackson (2010): Hessian-based standard errors can be heavily biased for short observation periods. Algorithm 6 (parametric bootstrap). Simulate from in the same window, refit, repeat times (e.g. 1000), take 2.5%/97.5% quantiles. No small-sample guarantee; test in simulation. Partial likelihood (Schoenberg 2016): dropping terms gives identical estimates under separability, consistent under additive models with small omitted effects.
Model selection and diagnostics (Sec. 3.6)
- AIC/BIC/HQ; Chen et al. (2018): AIC better in small samples, worse in large.
- Thinning to homogeneity (Schoenberg 2003): with , retain event with prob. ; the result is Poisson() if the model is right; test with Ripley’s .
- Super-thinning (Clements, Schoenberg & Veen 2012): choose , thin with and superimpose a Poisson process of rate ; result homogeneous with rate .
- Voronoi residuals (Bray et al. 2014): cell around each event; residual (observed count in the cell is 1 by construction); grids are poor (small cells skewed; large cells cancel). Fig. 3 shows a Voronoi map for a misspecified constant-background fit: positive residuals where the true background is high.
Examples
import numpy as np
rng = np.random.default_rng(3)
def sim_hawkes_thinning(nu, a, b, T): # Ogata-style thinning for exp kernel (temporal)
t, ev = 0., []
while True:
lam_bar = nu + a*b*sum(np.exp(-b*(t-e)) for e in ev) + a*b # upper bound just after t
t += rng.exponential(1/lam_bar)
if t > T: return np.array(ev)
lam = nu + a*b*sum(np.exp(-b*(t-e)) for e in ev)
if rng.uniform() < lam/lam_bar: ev.append(t)
print(len(sim_hawkes_thinning(.2,.75,1.5,200.))/200., "(stationary theory 0.8; lower here from start-up edge effect, no pre-sample events)")Connections
- Feeds Reinhart 2018 - ETAS Earthquake Models and Omori Law (forecast simulation).
- For posterior predictive checks in PyMC, see Prior Predictive Checking.
See Also
Reinhart 2018 - Self-Exciting Spatio-Temporal Point Processes - Overview