Actuarial Notes

Calculus

Calculus is the mathematical study of continuous change, through limits, derivatives, integrals and series. In probability, integration turns a density into probabilities and moments. For a continuous random variable X with density f(x), the probability that X falls between a and b is

P(a < X \leq b) = \int_a^b f(x)\,dx

The mean is E[X] = \int x f(x)\,dx. If f is continuous on [a, b] and F is any antiderivative of f, the definite integral of f from a to b is

\int_a^b f(x)\,dx = F(b) - F(a)

  • An antiderivative F of f is a function with F'(x) = f(x).

This result is the Fundamental Theorem of Calculus. For a density, the CDF is an antiderivative.

The idea A continuous random variable takes any single value with probability 0, so its probabilities come from areas under the density.

A loss has density f(x) = 0.002\,e^ for x > 0. What is the probability that the loss is between 200 and 500?

  • This is the exponential distribution with mean 500.
  • An antiderivative of f is F(x) = 1 - e^{-0.002x}, which is also the CDF.
  • P(200 < X \leq 500) = F(500) - F(200) = e^{-0.4} - e^{-1}.
  • The probability is 0.6703 - 0.3679 = 0.302.

Techniques of integration

Finding the antiderivative is the work, and four techniques cover almost every density on the exam.

Technique When to Use Key Formula
Power Rule Polynomial terms \int x^n\,dx = \dfrac{x^{n+1}}{n+1} + C, n \neq -1 (for n = -1: \ln\lvert x \rvert + C)
Substitution Composite functions Let u = g(x), then du = g'(x)\,dx
Integration by Parts Product of functions \int u\,dv = uv - \int v\,du
Partial Fractions Rational functions Decompose denominator into linear and irreducible quadratic factors

A polynomial times an exponential, such as x\,e^{-\lambda x}, is integrated by parts, with u the polynomial and dv the exponential.

What is the mean of a loss with density \lambda e^ for x > 0, where \lambda = 0.002?

  • The mean is E[X] = \int_0^\infty x\lambda e^{-\lambda x}\,dx, a product, so integrate by parts.
  • Take u = x and dv = \lambda e^{-\lambda x}\,dx, so du = dx and v = -e^{-\lambda x}.
  • Then E[X] = \left[-xe^{-\lambda x}\right]_0^\infty + \int_0^\infty e^{-\lambda x}\,dx.
  • The boundary term is 0 - 0 = 0, because x e^{-\lambda x} \to 0 as x \to \infty, by L'Hôpital's rule.
  • The remaining integral is 1/\lambda, so E[X] = 1/0.002 = 500.

Improper integrals

A density on an unbounded range is integrated over an infinite interval. The integral over [0, \infty) is the limit

\int_0^\infty f(x)\,dx = \lim_{b\to\infty}\int_0^b f(x)\,dx

  • b is a finite upper limit.

A density always integrates to 1. A power b^{m} with a negative exponent m tends to 0 as b \to \infty, so the antiderivative's term at infinity drops out.

Is f(x) = 3x^ for x > 1 a density?

  • f(x) \ge 0 for every x > 1.
  • By the power rule, an antiderivative is 3x^{-3}/(-3) = -x^{-3}.
  • \int_1^b 3x^{-4}\,dx = 1 - b^{-3}, and b^{-3} \to 0 as b \to \infty.
  • The integral is 1, so f is a density.

L'Hôpital's rule

If f and g are differentiable on an open interval containing a (except possibly at a), and f(x)/g(x) has the form \frac{0}{0} or \frac{\infty}{\infty} as x \to a, then the limit is

\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}

  • The limit on the right exists or is \pm\infty.

What is the limit of x e^ as x \to \infty, for \lambda > 0?

  • The product has the form \infty \times 0, so write it as x/e^{\lambda x}, which has the form \frac{\infty}{\infty}.
  • Differentiating the top and the bottom gives 1/(\lambda e^{\lambda x}).
  • That tends to 0, so x e^{-\lambda x} \to 0.

Differentiation

The derivative of f at x is its instantaneous rate of change:

f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

Rule Formula
Power (x^n)' = nx^{n-1}
Product (fg)' = f'g + fg'
Quotient \left(\dfrac{f}{g}\right)' = \dfrac{f'g - fg'}{g^2}
Chain [f(g(x))]' = f'(g(x))\cdot g'(x)
Exponential (e^x)' = e^x, \quad (a^x)' = a^x \ln a
Logarithm (\ln x)' = \dfrac{1}{x}

A density is the derivative of its CDF, f(x) = F'(x). The survival function is S(x) = 1 - F(x), and -S'(x)/S(x) is the hazard rate. For the exponential loss above, S(x) = e^{-0.002x} and the hazard rate is the constant 0.002. The density of a transformed variable Y = g(X) comes from differentiating its CDF with the chain rule.

X is uniform on (0, 1) and Y = X^2. What is the density of Y?

  • The CDF of Y is F_Y(y) = P(X^2 \leq y) = P(X \leq \sqrt{y}) = \sqrt{y} for 0 < y < 1.
  • By the chain rule, f_Y(y) = \frac{1}{2\sqrt{y}} for 0 < y < 1.
  • Check: \int_0^1 \frac{1}{2\sqrt{y}}\,dy = 1.

Splitting an integral at a breakpoint

Integrals are additive over intervals, so for a < c < b the integral of f is

\int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx

An integrand that changes formula at a point, such as a deductible, a benefit limit, \lvert x \rvert or \max(x, c), is split there, and each piece uses the formula that holds on it.

A loss has density 0.002\,e^ for x > 0, and a policy pays the loss above a deductible of 200. What is the expected payment?

  • The payment is 0 for a loss below 200 and x - 200 above it, so only the part above 200 contributes.
  • The expected payment is \int_{200}^\infty (x - 200)\,0.002\,e^{-0.002x}\,dx.
  • Substituting y = x - 200 gives e^{-0.4}\int_0^\infty y\,0.002\,e^{-0.002y}\,dy = 500\,e^{-0.4}.
  • The expected payment is 335.16.

Double integrals

Two random variables need a joint density f(x, y) and a double integral over the region where the event holds:

P(X \leq a,\, Y \leq b) = \int_{-\infty}^a \int_{-\infty}^b f(x,y)\,dy\,dx

When the region is not a rectangle, the inner integral's limits depend on the outer variable. A partial derivative, \partial f/\partial x, treats every variable except x as a constant, and recovers a joint density from a joint CDF.

Two independent losses X and Y each have density \lambda e^ for x > 0. What is P(X < Y)?

  • The joint density is \lambda^2 e^{-\lambda x - \lambda y}, and the region is 0 < x < y.
  • For each y, the inner integral over x runs from 0 to y and gives \lambda e^{-\lambda y}(1 - e^{-\lambda y}).
  • The outer integral over y from 0 to \infty gives 1 - \frac{1}{2}.
  • P(X < Y) = \frac{1}{2}.

Inner limits held fixed Writing \int_0^\infty \int_0^\infty for the region 0 < x < y integrates over the whole quadrant and gives 1, not \frac{1}{2}. The inner limits must follow the region.

Maxima and minima

A differentiable function g(a) has its maximum or minimum on an interval either at an endpoint or at a critical point, where

g'(a) = 0

At a critical point, g''(a) > 0 is a minimum and g''(a) < 0 a maximum. A function monotone on the interval has its extremes at the endpoints. When the parameter is a probability, the interval is where every probability in the model stays in [0, 1]. With a constraint, such as a fixed total, substitute it first so the objective is a function of one variable, then differentiate.

For the loss with mean 500 and E[X^2] = 500000, which number c minimizes g(c) = E[(X - c)^2]?

  • Expanding the square, g(c) = E[X^2] - 2c\,E[X] + c^2.
  • g'(c) = -2E[X] + 2c = 0 gives c = E[X] = 500.
  • g''(c) = 2 > 0, so it is a minimum.
  • The minimum value is 500{,}000 - 500^2 = 250{,}000, the variance.

Series

A discrete distribution's totals and means are sums. A series is the sum of the terms of a sequence. For \lvert r \rvert < 1, the geometric series is

\sum_{k=0}^{\infty} r^k = \frac{1}{1-r}

A sum starting at k = 1 is r/(1-r). The geometric series sums geometric probabilities and is the basis of the present value of every level annuity and perpetuity. A finite geometric series with first term a and ratio r \neq 1 is

a + ar + \cdots + ar^{N-1} = \frac{a\,(1 - r^N)}{1 - r}

An annuity pays 1 at the end of each year forever at effective annual rate i. What is its present value?

  • With v = 1/(1+i), the present value is v + v^2 + v^3 + \cdots.
  • The sum starts at k = 1, because the first payment is a year away, so it is v/(1 - v).
  • 1 - v = i/(1+i), so the present value is 1/i.

The Maclaurin series, the Taylor series about 0, writes a function as an infinite polynomial near 0:

f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}\,x^n

Function Maclaurin Series
e^x \displaystyle\sum_{n=0}^{\infty} \frac{x^n}{n!}
\ln(1+x) \displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}x^n}{n}, \quad -1 < x \leq 1
(1+x)^k \displaystyle\sum_{n=0}^{\infty} \binom{k}{n} x^n, \quad \lvert x \rvert < 1

The series for e^x shows that Poisson probabilities total 1: \sum_{k} e^{-\lambda} \lambda^k / k! = e^{-\lambda} e^{\lambda} = 1.

Actuarial Notes