Poisson counts with a switching rate

A Markov-modulated Poisson process, and its distribution to any order.

In a Markov-modulated Poisson process events arrive at rate $\ell_y$, with $\ell = (8, 1)$ per unit time and a symmetric chain switching at rate $\lambda$. The generating function $a_i(t) = \mathbb{E}[z^{N_t}\mid y_0 = i]$ solves $a' = \big(Q + (z-1)\operatorname{diag}\ell\big)a$, so $g_i = (z-1)\ell_i$ is constant and complex. Evaluating the expansion at $z$ on the unit circle and inverting by the discrete Fourier transform gives every probability $\Pr(N_t = k)$ at once.

The averaged model is Poisson with rate $\bar\ell = 4.5$. The corrector carries the overdispersion. The first table gives the moments of $N_1$ starting in the high-rate regime, from the numerical solution.

switching ratemeanvariancevariance / mean
54.85006.93251.4294
104.67505.80811.2424
204.58755.17701.1285
404.54374.84431.0661

The second table gives the largest error over all probabilities after each order.

switching rateorder 0order 1order 2order 3order 4
53.6e-23.7e-31.3e-31.2e-35.4e-4
102.1e-26.6e-42.8e-44.9e-52.4e-5
201.2e-22.2e-44.4e-53.5e-68.5e-7
406.0e-36.3e-56.5e-62.2e-72.7e-8

The same calculation applies to claim counts, defaults in a portfolio, and arrivals of any kind whose rate follows a hidden regime.