= Solution
Integrate the expected <Markov-chain entry count> density and use the <occupation time of a continuous-time Markov chain> formula:
$$
\boxed{E_{rs}(t)=\int_0^t\sum_{i\ne s}p_{ri}(u)q_{is}\,du
=\sum_{i\ne s}q_{is}T_{ri}(t).}
$$
Each term is a <transition intensity> multiplied by the expected exposure time to that transition. This counts every entry, including returns, rather than only the first visit. For countably many states the same nonnegative interchange follows from <Tonelli theorem>, provided the resulting expected count is finite. The sum excludes $i=s$.
Back to article page