Quant techniques · market microstructure

Hawkes processes: why order flow comes in bursts

Trades do not arrive like raindrops from a constant-rate Poisson process. A market order can move the book, trigger stops, attract momentum traders, and be followed by more orders. A Hawkes process is the simplest mathematical way to represent this clustering: each event temporarily raises the intensity of future events.

Self-excitation fades after an event

Conditional intensity (events/sec)

Exponential Hawkes kernel with baseline 1 event/sec and an immediate +4 event/sec jump.

From Poisson arrivals to self-excitation

A Poisson process with rate μ\mu has conditional intensity λt=μ\lambda_t=\mu: given the past, the expected number of events in the next small interval dtdt is μdt\mu dt. A univariate exponential Hawkes process instead has

λt=μ+∑ti<tαe−β(t−ti),μ,α,β>0.\lambda_t=\mu+\sum_{t_i<t}\alpha e^{-\beta(t-t_i)}, \qquad \mu,\alpha,\beta>0.

Every event at time tit_i adds α\alpha to the intensity, then its influence decays at rate β\beta. Equivalently, in differential form, dλt=−β(λt−μ)dt+αdNtd\lambda_t=-\beta(\lambda_t-\mu)dt+\alpha dN_t. Between events intensity mean-reverts; at an event it jumps.

Branching and the stability condition

The ratio n=α/βn=\alpha/\beta is the branching ratio. In the cluster interpretation, immigrants arrive at rate μ\mu; each event creates a Poisson number of direct offspring with expected count nn, and offspring can themselves reproduce. The expected total cluster size is 1+n+n2+⋯=1/(1−n)1+n+n^2+\cdots=1/(1-n), provided n<1n<1.

Taking expectations in stationarity gives λˉ=μ+nλˉ\bar\lambda=\mu+n\bar\lambda, hence

λˉ=μ1−n,n<1.\bar\lambda=\frac{\mu}{1-n},\qquad n<1.

A process near criticality, say n=0.95n=0.95, has average event rate twenty times its background rate. Clusters become large and long-lived. If n≥1n\ge1, the stationary mean does not exist in this model: the excitation can sustain itself indefinitely.

Interpret with care

A branching ratio is a model-based measure of endogeneity. It does not identify which trader caused another trade, and it does not establish a causal mechanism. Common news, hidden state, and omitted variables can all create apparent excitation.

Likelihood makes fitting practical

For observed event times 0<t1<⋯<tm≤T0<t_1<\cdots<t_m\le T, the log-likelihood is

ℓ=∑i=1mlog⁡λti−∫0Tλt dt.\ell=\sum_{i=1}^m\log\lambda_{t_i}-\int_0^T\lambda_t\,dt.

The first term rewards assigning high intensity where events occurred. The integral penalises predicting activity throughout time. For the exponential kernel, the intensity can be updated recursively: after event ii, store the previous excitation, decay it by e−β(ti−ti−1)e^{-\beta(t_i-t_{i-1})}, then add α\alpha. This avoids recomputing the full history at each event.

Fit on one interval and assess the time-rescaled residuals out of sample. If the model is right and parameters are known, the transformed gaps zi=∫ti−1tiλsdsz_i=\int_{t_{i-1}}^{t_i}\lambda_s ds should behave like independent unit exponentials. Check both their distribution and serial dependence; a good histogram alone can hide a misspecified model.

Multiple event types

For buy and sell market orders, use a vector of intensities:

λi(t)=μi+∑j=1d∫(−∞,t)ϕij(t−s) dNj(s).\lambda_i(t)=\mu_i+\sum_{j=1}^d\int_{(-\infty,t)}\phi_{ij}(t-s)\,dN_j(s).

The kernel ϕij\phi_{ij} measures how past type-jj events excite current type-ii events. With exponential kernels ϕij(u)=Aije−βiju\phi_{ij}(u)=A_{ij}e^{-\beta_{ij}u}, a matrix of cross-excitation captures patterns such as buy orders followed by more buys, or buys followed by sells as liquidity replenishes. Stability requires the spectral radius of the matrix of integrated kernel masses to be below one. In the common shared-decay case, that matrix is A/βA/\beta.

This is useful for describing event clustering, forecasting short-horizon activity, and simulating realistic arrival sequences. It is not automatically a profitable signal: intensity predicts when an event arrives, not its price impact or the direction of future returns. Those require a joint model and careful out-of-sample evaluation.

Common mistakes

  • Confusing α\alpha with the branching ratio. For the exponential kernel, α\alpha has units of inverse time; the dimensionless ratio is α/β\alpha/\beta.
  • Allowing an unconstrained fit to cross n=1n=1, then interpreting the unstable model as stationary.
  • Treating fitted excitation as trader-to-trader causality. Shared latent factors can produce the same clustering.
  • Ignoring timestamp precision, market sessions, and intraday seasonality. A time-varying baseline is often essential before attributing structure to excitation.

Practice

StabilityA fitted exponential Hawkes model has α = 3 events per second and β = 5 per second. What is its branching ratio and stationary mean rate if μ = 2 events per second?
Show answer

n=3/5=0.6<1n=3/5=0.6<1, so it is stationary. The mean rate is 2/(1−0.6)=52/(1-0.6)=5 events per second.

CriticalityWhy does n = 1.02 rule out a stationary finite mean in the standard linear Hawkes model?
Show answer

Each event generates more than one descendant on average. The expected cluster size series 1+n+n2+⋯1+n+n^2+\cdots diverges, and the stationarity equation λˉ=μ+nλˉ\bar\lambda=\mu+n\bar\lambda has no finite positive solution.

LikelihoodWhy does the likelihood include the negative integrated-intensity term?
Show answer

It accounts for the probability of observing no events between the recorded ones. Without it, increasing all intensities would always improve the event-time log terms and the model could overpredict arbitrarily.

Further reading: Hawkes (1971), “Spectra of some self-exciting and mutually exciting point processes,” Biometrika; Bacry, Mastromatteo and Muzy (2015), “Hawkes processes in finance,” Market Microstructure and Liquidity.