Tutorials › Exam ALTAM - Advanced Long-Term Actuarial Mathematics › Two-State Models With Transitions in Both Directions

Exam ALTAM · Transition Probabilities · Tutorial 43 of 999

Two-State Models With Transitions in Both Directions

Learn to calculate two-state transition probabilities over a finite interval and interpret the limiting state proportions.

Beginner 10 min read

What You'll Learn

  • Define a two-state model with constant transition intensities in both directions
  • Derive the finite-time transition probabilities from the forward differential equations
  • Construct and check the transition matrix using a row convention
  • Apply the matrix to an initial state or distribution
  • Calculate and interpret stationary probabilities
  • Detect state-ordering and time-unit mistakes

Why Two-State Models Can Return to Their Starting State

A model with two states and transitions in both directions can represent movement between, for example, active and disabled status, or between two levels of care. These are hypothetical illustrations: the model’s rates must come from the assumptions and data appropriate to the situation being studied. Unlike a one-way model, the process may leave a state and later return to it. A finite-time transition probability must therefore account for all possible paths, not only the chance of making no transition.

This tutorial considers a continuous-time Markov chain with two states, labeled 0 and 1, and a constant transition intensity in each direction. The goal is to calculate the probability of occupying either state after a specified duration and to understand the state proportions toward which the model tends over time. The results are aligned with the SOA Exam ALTAM (Advanced Long-Term Actuarial Mathematics) syllabus.

Definition: In a homogeneous two-state continuous-time Markov model, the intensity of transition from state 0 to state 1 is a constant \(\alpha>0\), and the intensity from state 1 to state 0 is a constant \(\beta>0\). Conditional on the current state, future transitions do not depend on the earlier path. The holding time in state 0 is exponential with rate \(\alpha\), and the holding time in state 1 is exponential with rate \(\beta\).

The positivity assumption means both transitions are possible. The model is time-homogeneous because the intensities do not vary with calendar time or elapsed time. Use one consistent time unit for the rates and the duration: if the rates are per year, \(t\) must be measured in years.

Use the row convention: row \(i\), column \(j\) of the transition matrix gives the probability of being in state \(j\) after time \(t\), conditional on starting in state \(i\). Write these probabilities as \(p_{ij}(t)\). Thus, each row sums to 1. If the initial distribution is the row vector \((\pi_0(0),\pi_1(0))\), the distribution at time \(t\) is obtained by multiplying it on the left by the transition matrix.

Finite-Time Transition Probabilities

Set \(k=\alpha+\beta\). The sum \(k\) determines the rate at which the model loses the effect of its starting state. The finite-time probabilities can be expressed using \(e^{-kt}\), which decreases toward zero as \(t\) increases.

Theorem: For constant intensities \(\alpha>0\) from state 0 to state 1 and \(\beta>0\) from state 1 to state 0, the transition matrix over duration \(t\geq 0\), under the row convention, is
$$ P(t)= \begin{pmatrix} p_{00}(t)&p_{01}(t)\\ p_{10}(t)&p_{11}(t) \end{pmatrix} = \begin{pmatrix} \dfrac{\beta}{k}+\dfrac{\alpha}{k}e^{-kt} & \dfrac{\alpha}{k}\left(1-e^{-kt}\right) \\[6pt] \dfrac{\beta}{k}\left(1-e^{-kt}\right) & \dfrac{\alpha}{k}+\dfrac{\beta}{k}e^{-kt} \end{pmatrix}, \qquad k=\alpha+\beta. $$

One useful derivation starts with \(p_{01}(t)\), the probability of being in state 1 at time \(t\) when starting in state 0. Over a short additional interval of length \(h\), a process in state 0 moves to state 1 with probability \(\alpha h+o(h)\); a process in state 1 moves to state 0 with probability \(\beta h+o(h)\). Consequently, the forward equation is

$$ \frac{d}{dt}p_{01}(t) =\alpha p_{00}(t)-\beta p_{01}(t) =\alpha\left(1-p_{01}(t)\right)-\beta p_{01}(t) =\alpha-kp_{01}(t). $$

The starting condition is \(p_{01}(0)=0\), since at duration zero a process starting in state 0 is still in state 0. Solving this linear differential equation gives

$$ p_{01}(t)=\frac{\alpha}{k}\left(1-e^{-kt}\right). $$

The other entries follow from the same reasoning and the row sums. Starting in state 0 gives \(p_{00}(t)=1-p_{01}(t)\). Starting in state 1, the probability \(p_{10}(t)\) solves \(p'_{10}(t)=\beta-kp_{10}(t)\) with \(p_{10}(0)=0\), so \(p_{10}(t)=\frac{\beta}{k}(1-e^{-kt})\), and \(p_{11}(t)=1-p_{10}(t)\). This derivation also explains why the answer includes a return probability: state 1 at time \(t\) does not require exactly one transition.

At \(t=0\), \(e^{-kt}=1\), so the formula gives the identity matrix. For \(t>0\), each entry is nonnegative, and the row sums are 1. For example, the first row sums to \(\frac{\beta}{k}+\frac{\alpha}{k}e^{-kt}+\frac{\alpha}{k}(1-e^{-kt})=1\). These are useful checks before applying the matrix to an initial distribution.

Worked Example: Calculating Every Entry of a Transition Matrix

A hypothetical two-state care model has intensity \(\alpha=0.3\) per year from state 0 to state 1 and \(\beta=0.2\) per year from state 1 to state 0. Calculate the transition matrix over 4 years. Give probabilities to four decimal places.

Method. Use the constant-intensity two-state formula. Both rates are per year and the duration is 4 years, so the units agree.

First, \(k=\alpha+\beta=0.3+0.2=0.5\) per year, and \(kt=0.5(4)=2\). Thus \(e^{-kt}=e^{-2}=0.1353353\). The stationary proportions appearing in the formula are \(\beta/k=0.2/0.5=0.4\) and \(\alpha/k=0.3/0.5=0.6\).

Starting in state 0:

$$ p_{01}(4)=0.6(1-0.1353353)=0.6(0.8646647)=0.5187988, \qquad p_{00}(4)=1-0.5187988=0.4812012. $$

Starting in state 1:

$$ p_{10}(4)=0.4(1-0.1353353)=0.4(0.8646647)=0.3458659, \qquad p_{11}(4)=1-0.3458659=0.6541341. $$

Therefore, to four decimal places,

$$ P(4)= \begin{pmatrix} 0.4812&0.5188\\ 0.3459&0.6541 \end{pmatrix}. $$

Check. Before rounding, each row sums to 1: \(0.4812012+0.5187988=1\) and \(0.3458659+0.6541341=1\). The calculation avoids treating a transition intensity as though it were itself a finite-time transition probability.

Applying the Matrix to an Initial Distribution

A transition matrix gives conditional probabilities for each possible starting state. To find the unconditional probability of occupying a state, weight each row by the probability of starting in that row’s state. With initial row distribution \((\pi_0(0),\pi_1(0))\), the state-1 probability at time \(t\) is

$$ \pi_1(t)=\pi_0(0)p_{01}(t)+\pi_1(0)p_{11}(t). $$

This is the law of total probability: the process must have started in either state 0 or state 1. The order of the initial probabilities must match the row order of the matrix.

Worked Example: Finding a State Probability From a Mixed Start

A hypothetical population starts with distribution \((0.40,0.60)\), ordered as (state 0, state 1). The constant intensities are \(\alpha=0.4\) per year and \(\beta=0.1\) per year. Find the probability of state 1 after 2 years, to four decimal places.

Method. Calculate the two conditional probabilities of state 1 and weight them by the corresponding initial probabilities.

Here \(k=0.4+0.1=0.5\) per year, \(kt=0.5(2)=1\), and \(e^{-1}=0.3678794\). The probability of state 1 at year 2 for someone starting in state 0 is

$$ p_{01}(2)=\frac{0.4}{0.5}(1-e^{-1}) =0.8(1-0.3678794) =0.8(0.6321206) =0.5056965. $$

For someone starting in state 1:

$$ p_{11}(2)=\frac{0.4}{0.5}+\frac{0.1}{0.5}e^{-1} =0.8+0.2(0.3678794) =0.8735759. $$

Now weight by the initial distribution:

$$ \begin{aligned} \pi_1(2) &=0.40(0.5056965)+0.60(0.8735759)\\ &=0.2022786+0.5241455\\ &=0.7264241. \end{aligned} $$

The requested probability is 0.7264. As a check, the state-0 probability is \(1-0.7264241=0.2735759\), so the two probabilities sum to 1. This calculation avoids swapping the initial-state weights: the 0.40 weight belongs to the row for starting in state 0.

Stationary Probabilities and Long-Run Interpretation

As \(t\) increases, \(e^{-kt}\) tends to zero. The transition probabilities therefore approach a matrix whose rows are identical. Its common row is the stationary distribution: if the process starts in that distribution, its distribution remains unchanged at every later time.

Definition: A stationary distribution is a probability row vector \((\pi_0,\pi_1)\) that remains unchanged under the transition probabilities. For the two-state model with \(\alpha,\beta>0\), it is
$$ (\pi_0,\pi_1)=\left(\frac{\beta}{\alpha+\beta},\frac{\alpha}{\alpha+\beta}\right). $$

The formula can be justified by balancing the long-run flow between the states. In a stationary distribution, the rate of flow from state 0 to state 1, \(\pi_0\alpha\), must equal the rate of flow from state 1 to state 0, \(\pi_1\beta\). Together with \(\pi_0+\pi_1=1\), these equations give

$$ \pi_0\alpha=\pi_1\beta, \qquad \pi_0+\pi_1=1 \quad\Longrightarrow\quad \pi_0=\frac{\beta}{\alpha+\beta}, \quad \pi_1=\frac{\alpha}{\alpha+\beta}. $$

The stationary probability of state 1 is larger when the rate into state 1 is larger relative to the total rate. It is not generally the proportion of time spent in state 1 for every finite observation period or every starting distribution. It describes the limiting distribution under this homogeneous model. Since both rates are positive, either state can be reached from the other, and the limiting distribution does not depend on the starting state.

Worked Example: Interpreting the Stationary Distribution

A hypothetical two-state service model has transition intensity \(\alpha=0.24\) per year from state 0 to state 1 and \(\beta=0.16\) per year from state 1 to state 0. Calculate its stationary distribution, then find the probability of state 1 after 3 years if the process starts in state 1. Give probabilities to four decimal places.

Method. First find the stationary probabilities from the relative transition intensities. Then use the state-1 row of the finite-time transition matrix for the specified start.

The total rate is \(k=0.24+0.16=0.40\) per year. Hence

$$ \pi_0=\frac{0.16}{0.40}=0.4, \qquad \pi_1=\frac{0.24}{0.40}=0.6. $$

Thus the stationary distribution is \((0.4,0.6)\). Over 3 years, \(kt=0.40(3)=1.2\), so \(e^{-1.2}=0.3011942\). Starting in state 1, the probability of state 0 is

$$ p_{10}(3)=\frac{0.16}{0.40}(1-0.3011942) =0.4(0.6988058) =0.2795223. $$

Therefore,

$$ p_{11}(3)=1-0.2795223=0.7204777. $$

The probability of state 1 after 3 years, conditional on starting in state 1, is 0.7205. It exceeds the limiting value 0.6 at this duration, but approaches 0.6 as time grows. The result distinguishes a finite-time probability from a stationary probability.

Common Exam Trap: Reversing the State Order

The numerical values in an initial distribution are meaningful only together with their stated order. If the distribution is \((0.40,0.60)\) in the order (state 0, state 1), the probability of starting in state 1 is 0.60, not 0.40. A related error is to use \(p_{01}(t)\) for a person known to start in state 1; that conditional probability belongs to the state-0 starting row.

For the preceding mixed-start example, an incorrect calculation would be to reverse the weights:

$$ 0.60p_{01}(2)+0.40p_{11}(2) =0.60(0.5056965)+0.40(0.8735759) =0.6528483. $$

This is wrong because it treats the initial distribution as \((0.60,0.40)\), contrary to the stated ordering. The correction is to use the state-0 starting probability 0.40 with \(p_{01}(2)\), and the state-1 starting probability 0.60 with \(p_{11}(2)\), giving \(0.7264\). Always label the states and match each initial probability to the corresponding row before multiplying.

A second check is dimensional: the exponent must be \(-(\alpha+\beta)t\), which is dimensionless. Using rates per month with time in years without conversion produces an invalid result even if the matrix rows happen to sum to 1.

Key takeaway: For a homogeneous two-state model with positive rates in both directions, finite-time probabilities depend on the starting state through \(e^{-(\alpha+\beta)t}\), while the limiting distribution is \(\left(\frac{\beta}{\alpha+\beta},\frac{\alpha}{\alpha+\beta}\right)\). Keep the state order and time units consistent throughout.

Check Your Understanding

In each problem, use the stated ordering (state 0, state 1) for distributions. Answers are rounded as requested.

  1. A hypothetical model has \(\alpha=0.2\) per year and \(\beta=0.3\) per year. Find the probability of state 1 after 2 years, given a start in state 0. Give the answer to four decimal places. (Answer: 0.2528)
  2. A process starts with distribution \((0.70,0.30)\), with \(\alpha=0.3\) per year and \(\beta=0.2\) per year. Find the probability of state 1 after 2 years, to four decimal places. (Answer: 0.4896)
  3. A hypothetical model has \(\alpha=0.50\) per month and \(\beta=0.25\) per month. Starting in state 0, find the probability of state 1 after 4 months, to four decimal places. (Answer: 0.6335)
  4. A process starts with distribution \((0.20,0.80)\). Its rates are \(\alpha=0.18\) per year and \(\beta=0.12\) per year. Find the probability of state 1 after 5 years, to four decimal places. (Answer: 0.6446)
  5. A two-state model has total rate \(\alpha+\beta=0.40\) per year and stationary probability of state 1 equal to 0.75. Starting in state 1, find the probability of state 0 after 2 years, to four decimal places. (Answer: 0.1377)
Clinical Biostats