Further reading: not part of the course. This material is not included in the course, but it is relevant if you want to learn more about the topic.

Quiz: continuous-time Markov chains

Short questions to test your understanding of continuous-time Markov chains. Try each on paper first, then open the answer. Throughout we use row vectors and the convention row = from, column = to. Off the diagonal, \(q_{ij}\) is the rate from \(i\) to \(j\); the diagonal is \(q_{ii} = -q_i\), minus the total leaving rate, so rows of \(Q\) sum to 0.


Q1. What is the difference between the number \(0.3\) on an arrow of a discrete-time chain and the number \(0.3\) /min on an arrow of a continuous-time chain?

One is a probability, the other has units.

In discrete time, \(0.3\) is the probability of taking that arrow in one step. In continuous time, \(0.3\) /min is a rate: the expected number of such jumps per minute while in that state. A rate has units and can be larger than 1. Only for a short time \(\Delta t\) does it turn into a probability, about \(0.3\,\Delta t\).


Q2. An ion channel closes at rate \(5\) per millisecond while it is open. How long does it stay open on average? What kind of distribution do the open times follow?

Waiting time with total leaving rate \(q\): which distribution, and what is its mean?

The open time is exponential with rate 5 per ms, so the mean open time is \(1/5 = 0.2\) ms. Most openings are shorter than that, a few are much longer.


Q3. A cell in state prog can go to stem at rate \(0.1\) per day or to diff at rate \(0.3\) per day. What is its total leaving rate, its mean time in prog, and the probability that its next jump is to diff?

Add the rates for “when”; divide for “where”.

Total leaving rate \(q = 0.1 + 0.3 = 0.4\) per day, so the mean time in prog is \(1/0.4 = 2.5\) days. The next jump goes to diff with probability \(0.3/0.4 = 0.75\).


Q4. Write the rate matrix \(Q\) for the chain in Q3 if, in addition, stem → prog at rate \(0.2\) and diff → prog at rate \(0.05\) per day (states ordered stem, prog, diff; no other arrows). Check the rows.

Fill in the off-diagonals from the arrows, then make each diagonal entry minus the rest of its row.

\[Q = \begin{pmatrix} -0.2 & 0.2 & 0\\ 0.1 & -0.4 & 0.3\\ 0 & 0.05 & -0.05 \end{pmatrix}.\] Rows: \(-0.2 + 0.2 + 0 = 0\), \(0.1 - 0.4 + 0.3 = 0\), \(0 + 0.05 - 0.05 = 0\). ✓


Q5. Is \(\begin{pmatrix} -1 & 0.5\\ 0.5 & -0.5 \end{pmatrix}\) a valid rate matrix?

Check the row sums.

No. Row 1 sums to \(-1 + 0.5 = -0.5 \ne 0\). (Row 2 is fine.) The diagonal must be exactly minus the sum of the other rates in its row.


Q6. A gene promoter switches ON → OFF at rate \(a = 2\) per hour and OFF → ON at rate \(b = 0.5\) per hour. What fraction of the time is it ON in the long run? Use flow balance.

Flow ON→OFF is \(\pi_{\text{ON}}\,a\); flow OFF→ON is \(\pi_{\text{OFF}}\,b\). Set them equal and use \(\pi_{\text{ON}} + \pi_{\text{OFF}} = 1\).

\(2\,\pi_{\text{ON}} = 0.5\,\pi_{\text{OFF}}\), so \(\pi_{\text{OFF}} = 4\,\pi_{\text{ON}}\) and \(\pi_{\text{ON}} = 1/5 = 0.2\). Equivalently \(b/(a+b) = 0.5/2.5 = 0.2\), or from the mean times: ON lasts \(1/2 = 0.5\) h, OFF lasts \(1/0.5 = 2\) h, and \(0.5/(0.5 + 2) = 0.2\).


Q7. Two promoters have rates \((a, b) = (2, 1)\) and \((0.2, 0.1)\) per minute. Do they have the same stationary distribution? Which one reaches it faster, and by how much?

For 2 states, \(\boldsymbol\pi\) depends on the ratio of the rates; the approach to \(\boldsymbol\pi\) goes like \(e^{-(a+b)t}\).

Same \(\boldsymbol\pi = (b, a)/(a+b) = (1/3, 2/3)\) for both, because the ratio \(a : b\) is the same. The first relaxes with rate \(a + b = 3\) per min, the second with \(0.3\) per min, so the first approaches \(\boldsymbol\pi\) 10 times faster.


Q8. For the promoter in Q6, write \(P \approx I + Q\,\Delta t\) for \(\Delta t = 0.1\) hour. Why must \(\Delta t\) be small?

\(Q = \begin{pmatrix} -2 & 2\\ 0.5 & -0.5 \end{pmatrix}\). Multiply by \(\Delta t\) and add the identity. What happens to the diagonal when \(\Delta t\) is large?

\(P \approx \begin{pmatrix} 1 - 0.2 & 0.2\\ 0.05 & 1 - 0.05 \end{pmatrix} = \begin{pmatrix} 0.8 & 0.2\\ 0.05 & 0.95 \end{pmatrix}\); rows sum to 1. The approximation uses “probability ≈ rate × time”, which is only accurate when rate × time is small. For large \(\Delta t\) (here above \(0.5\) h) the diagonal entry \(1 - 2\Delta t\) even becomes negative, which no probability can be.


Q9. True or false: in a continuous-time chain, a state with no arrows out is absorbing, and its row of \(Q\) is all zeros.

What is the total leaving rate of such a state, and what does that make the diagonal?

True. Its total leaving rate is 0, so the diagonal is \(-0 = 0\) and the whole row is 0. The waiting time \(\text{Exp}(0)\) is infinite: once there, a walker never leaves.