Actuarial science and AI · Basic level · Mini-course 1 of 3

Actuarial science and AI: where they meet

The artificial intelligence used in insurance today rests on ideas actuaries know well: generalized linear models, credibility and loss functions. This mini-course shows the bridges between the two worlds and where they are applied.

25 min
Estimated time
4
Lessons
5
Questions
ObjectivesLessonsWorked exampleSelf-assessmentReadings
01

Objectives

By the end of this mini-course you will be able to:

  • Recognize that a neuron with a sigmoid activation is a logistic regression.
  • Relate credibility to the regularization of predictive models.
  • Identify the loss function as the objective a model optimizes.
  • Place the uses of AI in pricing, underwriting, claims and reserving.
02

Lessons

Lesson 1

A GLM is already machine learning

A generalized linear model learns coefficients from data. A neuron with a sigmoid activation does exactly what a logistic regression does: a weighted sum of variables plus a bias, turned into a probability.

\[z=\sum_i w_i x_i+b,\qquad \sigma(z)=\frac{1}{1+e^{-z}}\]

Stacking neurons in layers gives a neural network: more flexibility, less interpretability.

Lesson 2

Credibility and regularization

Credibility blends own experience with collective experience according to how much information there is. Ridge or Lasso regularization does something similar: it shrinks coefficients toward zero when the data are not enough.

\[\hat\mu=Z\,\bar x+(1-Z)\,\mu,\qquad Z=\frac{n}{n+k}\]

In both cases a little bias is traded for a lot of stability.

Lesson 3

The loss function

Every model is trained by minimizing a loss function. Choosing it is an actuarial decision: squared error for amounts, Poisson deviance for frequencies, or a measure that penalizes tail errors more.

\[\min_{\theta}\;\sum_i L\big(y_i,\hat y_i(\theta)\big)\]

The loss function tells the model what being wrong means.

Lesson 4

Where AI is used in insurance

Pricing with frequency and severity, automated underwriting, fraud detection, claims handling with text and images, mortality projection and support in reserve estimation.

\[\text{data}\;\rightarrow\;\text{model}\;\rightarrow\;\text{decision}\]

In every case someone must explain and answer for the model: that is the actuary's role.

03

Worked example

Two illustrative calculations. A neuron with weights 0.9, 1.6 and \(-0.8\), bias \(-0.5\) and normalized inputs 0.8, 1.0 and \(-0.6\), as in Actuarial AI. And an own frequency of 0.12 observed over 50 policy-years, against a collective 0.08, with \(k=100\).

Step 1. The neuron

\[z=0.9(0.8)+1.6(1.0)+(-0.8)(-0.6)-0.5=2.30,\qquad \sigma(2.30)=0.9089\]

Step 2. The credibility factor

\[Z=\frac{50}{50+100}=0.3333\]

Step 3. The credibility estimate

\[\hat\mu=0.3333(0.12)+0.6667(0.08)=0.0933\]

The neuron gives a probability of 0.9089: it is a logistic regression with those coefficients. With credibility, the estimated frequency is 0.0933: the own experience of 0.12 shrinks toward the collective because 50 policy-years are still little data.

Remember: Many AI techniques are actuarial ideas at a larger scale. What is new is the flexibility and the volume of data; the judgment to choose, validate and explain is still actuarial.
04

Self-assessment

Choose one answer per question: you will see right away whether it is correct and why. At the end, check your score. Nothing is stored or sent.

1. What model is a neuron with a sigmoid activation equivalent to?
2. In the example, what is \(\sigma(2.30)\)?
3. Which idea in regularization resembles credibility?
4. With \(n=50\) and \(k=100\), what is \(Z\)?
5. What does the loss function define?
05

Readings

Official sources and reference texts. The numerical examples are illustrative.

On actuaria.mx

PreviousAll mini-coursesNextPredictive models