Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 14

Numerical Solutions for Time-Inhomogeneous Kolmogorov Equations

Recommended resources

Introduction

In our last lesson, we established the fundamental differential equations—Kolmogorov's forward and backward equations—that govern time-inhomogeneous Markov processes. We saw that while these equations perfectly describe the system's evolution, their time-dependent nature means they generally cannot be solved with a simple matrix exponential. This leaves us with a critical question: how do we actually find the transition probabilities needed for actuarial calculations?

This lesson will answer that question directly. We will learn a practical, powerful technique to approximate the solutions to these differential equations: Euler's method. You will learn the intuition behind this numerical approach and, more importantly, how to apply it step-by-step to solve for transition probabilities in the kind of multi-state models you will encounter in the CS2 exam. Your preference for calculation and problem-solving will be well-served today as we move from theoretical equations to concrete numerical results.


The Essence of Euler's Method

At its core, solving a differential equation like means finding a function whose slope at any point is given by . If we can't find a formula for , we can try to build the function piece by piece.

This is exactly what Euler's method does. Starting from a known point , we calculate the slope . We then assume the function is a straight line with that slope for a very small step forward in time, . This allows us to predict the next point, , and repeat the process.

The video below provides an excellent graphical illustration of this idea.

Euler method | Lecture 48 | Numerical Methods for Engineers

This video from Jeffrey Chasnov's "Numerical Methods for Engineers" series introduces the concept of Euler's method for a first-order ordinary differential equation (ODE).

Please watch from the beginning to 05:29. The key aspects to focus on are: The initial setup of the problem: an ODE with an initial condition. The graphical interpretation of "marching forward" along the tangent line. The derivation of the iterative formula: x_{n+1} = x_n + \Delta t \cdot f(t_n, x_n).

As the video explains, this process gives us a simple, iterative formula. If we know the value of our function at time , we can approximate its value at time as:

The image below provides a fantastic summary of this process. The blue curve is the true, unknown solution. The black piecewise line is our approximation, created by taking small steps along the tangent at the start of each interval.

A graphical representation of Euler's method. The approximation starts at \((x_0, y_0)\) and takes sequential linear steps, each determined by the slope of the curve at the beginning of the step. The formulas for the ODE and the iterative update are shown on the right.

Applying Euler's Method to Kolmogorov's Equations

Now, let's connect this back to our time-inhomogeneous Markov models. The Kolmogorov forward equation gives us the derivative we need:

This is a matrix equation, but it represents a system of individual differential equations, one for each transition probability . The derivative of each probability is a function of the other probabilities and the transition intensities at that time.

We can apply the Euler approximation directly. The derivative can be approximated using a finite difference:

By substituting this into the Kolmogorov forward equation and rearranging, we get the Euler update rule for our transition probabilities:

Let's see this in action with a concrete example.

[PDF] Multiple State Models

This document from Michigan State University provides lecture notes on multiple state models and explicitly shows how Euler's method is used to find numerical solutions.

Please read the section titled "Numerical evaluation of transition probabilities". Focus on the text from this paragraph. It shows exactly how the approximation of the derivative leads to the recursive, forward-marching solution.

The process is as follows:

  1. Start at time with the known initial conditions: for all states , and for all .
  2. Choose a small step size (e.g., for monthly steps, or for yearly steps).
  3. Calculate the probabilities at time by applying the Euler update rule to the probabilities at . You will need the values of the transition intensities at .
  4. Calculate the probabilities at time by applying the Euler update rule to the probabilities you just found at . You will now need the transition intensities at .
  5. Repeat this process, "marching forward" in time until you reach the desired duration.

A Worked Example: Health-Sickness Model

Let's solidify this with a full example. We'll use the three-state healthy(0)-sick(1)-dead(2) model, which is a classic actuarial application.

[PDF] Multiple State Models

The same lecture notes provide a detailed walk-through of a numerical solution for a health-sickness model.

Please study the material from the section titled "Illustrative example from book" through "Detailed results with step size h = 1/12". Specifically: Examine the numerical process. See how the general Kolmogorov forward equations are written for this specific 3-state model, and then how they are immediately converted into Euler's approximation formulas. Carefully study the table of detailed results. This table is the output of the iterative process.

Let's manually compute the first step of that table to ensure we understand the mechanics. The goal is to find the probabilities at time for a person aged 60, given they start in the Healthy state (state 0).

Initial Conditions (t=0):

Intensities at age 60+0 = 60 (from the table):

Step size:

Now, we apply the Euler formulas from the PDF:

1. Calculate :

This matches the value 0.99757 in the table for .

2. Calculate :

This matches the value 0.00118 in the table.

3. Calculate :
We could use the Euler formula, but it's simpler to use the fact that probabilities must sum to 1:

This matches the value 0.00125 in the table.

To get the probabilities for , you would repeat this exact process, but using the probabilities at as your starting point and the intensities for age .


Practice on an Exam-Style Question

Euler's method is not just a theoretical tool; it is directly tested on the CS2 exam. The following problem demonstrates a typical format.

[PDF] Advanced Long-Term Actuarial Mathematics Sample Questions

This document contains sample questions from the Society of Actuaries. We will focus on Question 7, which models a television warranty.

Please read the setup for Question 7. Note the 3-state model, the time-dependent transition forces, and the instruction that the probabilities are calculated using the Forward Euler approximation with a step size of h=0.5. Then, review part (b)(i), which asks you to calculate a specific probability.

Problem: Using the student's approach (Euler's method with ), calculate .

Solution:
The Kolmogorov forward equation for the probability of being in state 1 (Under Repair) at time , given starting in state 0 (Working), is:

We apply the Euler approximation for one step from to :

From the problem, we have:

  • Initial conditions: ,
  • Step size:
  • Intensities at : , ,

Substituting these values:

This calculation demonstrates how to apply the method to a specific question. Part (d) of the question asks how to improve accuracy. The simplest answer is to decrease the step size . A smaller step size means our linear approximations track the true curve more closely, reducing the error at each step.


Conclusion

Today we have bridged the gap between the theory of time-inhomogeneous processes and their practical application. While the governing Kolmogorov equations can be complex, we have seen that a straightforward numerical technique, Euler's method, allows us to approximate their solutions effectively.

Key Takeaways:

  • Euler's method provides a numerical solution to differential equations by taking small, linear steps forward in time.
  • The update rule is .
  • To apply this to Kolmogorov's equations, we need the initial conditions (), the step size (), and the formulas for the time-dependent transition intensities ().
  • The process is iterative: we calculate probabilities for each state at using the known values at , and repeat this until we reach our target duration.
  • The accuracy of the approximation is improved by using a smaller step size .

In our next lesson, we will briefly step back from the full multi-state model to explore the core concepts of survival analysis in greater detail. We will solidify the fundamental relationships between the survival function, the hazard function, and the cumulative hazard, which are the building blocks for all the models we have been discussing.