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 rate | mean | variance | variance / mean |
|---|---|---|---|
| 5 | 4.8500 | 6.9325 | 1.4294 |
| 10 | 4.6750 | 5.8081 | 1.2424 |
| 20 | 4.5875 | 5.1770 | 1.1285 |
| 40 | 4.5437 | 4.8443 | 1.0661 |
The second table gives the largest error over all probabilities after each order.
| switching rate | order 0 | order 1 | order 2 | order 3 | order 4 |
|---|---|---|---|---|---|
| 5 | 3.6e-2 | 3.7e-3 | 1.3e-3 | 1.2e-3 | 5.4e-4 |
| 10 | 2.1e-2 | 6.6e-4 | 2.8e-4 | 4.9e-5 | 2.4e-5 |
| 20 | 1.2e-2 | 2.2e-4 | 4.4e-5 | 3.5e-6 | 8.5e-7 |
| 40 | 6.0e-3 | 6.3e-5 | 6.5e-6 | 2.2e-7 | 2.7e-8 |
The same calculation applies to claim counts, defaults in a portfolio, and arrivals of any kind whose rate follows a hidden regime.