Random Variable
Study guides: Exam P-1, Exam FAM, Exam ALTAM, Exam MAS-I, Exam ACIA-CAPSTONE
A Random Variable is a function that assigns a real number to each outcome in a sample space. A random variable X on the sample space S is written
X : S \to \mathbb{R}
\mathbb{R}is the set of real numbers.
Two fair coins are flipped and
Xis the number of heads. What values canXtake, and with what probabilities?
- The sample space is
S = \{TT, TH, HT, HH\}, and each outcome has probability\frac{1}{4}.X(TT) = 0,X(TH) = X(HT) = 1andX(HH) = 2.- Two outcomes give the value 1, so
P(X = 0) = \frac{1}{4},P(X = 1) = \frac{1}{2}andP(X = 2) = \frac{1}{4}.
Types of random variables
- A discrete random variable takes a finite or countably infinite set of values, each with its own probability, like a number of claims.
- A continuous random variable has a density, so every single value has probability 0, like the size of a loss.
- A mixed random variable has a continuous part and at least one single value with positive probability, like a payment under a deductible or a limit.
Mixed random variables
A single value x with positive probability is a point mass. It shows as a jump in the CDF F(x) = P(X \le x), and its probability is the size of the jump:
P(X = x) = F(x) - F(x^-)
F(x^-) = P(X < x)is the limit ofFfrom the left atx.
A payment
Yhas CDFF(y) = 0fory < 0,F(y) = 0.4 + 0.001yfor0 \le y < 400, andF(y) = 1fory \ge 400. What are its point masses?
- At 0,
Fjumps from 0 to 0.4, soP(Y = 0) = 0.4.- Just below 400,
Freaches0.4 + 0.001(400) = 0.8, and at 400 it is 1, soP(Y = 400) = 0.2.- Between the jumps
Frises at the rate0.001, which is the density of the continuous part.
Expected value of a mixed random variable
The expected value of a function g of a mixed random variable X adds the point masses to the integral over the continuous part:
E[g(X)] = \sum_i g(x_i)\,P(X = x_i) + \int g(x)\,f(x)\,dx
x_iare the point masses.f(x)is the density of the continuous part. It integrates to1 - \sum_i P(X = x_i), not to 1.
A loss
Xis exponential with mean 1,000, and the policy paysY = \min(X, 1500). What is the expected payment?
- Every loss above 1,500 pays exactly 1,500, so
Yhas a point mass at 1,500.- Its probability is
P(X > 1{,}500), which ise^{-1.5} = 0.2231.- Below 1,500,
Yfollows the density ofX,f(x) = \frac{e^{-x/1000}}{1000}.- The expected payment adds the point mass to the integral:
\begin{aligned} E[Y] &= \int_0^{1500} x\,f(x)\,dx \\ &\quad + 1{,}500\,e^{-1.5} \\ &= 1{,}000\left(1 - e^{-1.5}\right) \\ &= 776.87 \end{aligned}
Calling a payment continuous A payment
Y = \max(X - 200, 0)on a continuous loss takes every value from 0 up, yetP(Y = 0) = P(X \le 200) > 0. It is mixed. Integrating only the density misses the point mass, so check the CDF for jumps first.
Practice questions
- SOA Exam ALTAM Sample Question 21
- SOA Exam ALTAM Sample Question 24
- SOA Exam ALTAM Sample Question 51
- SOA Exam FAM Sample Question 4.10
- SOA Exam FAM Sample Question 5.1
- Exam MAS-I Practice Question 39
- Exam MAS-I Practice Question 40
- Exam P Practice Question 4
- Exam P Practice Question 5
- Exam P Practice Question 7