Probability Density Function (PDF)
Study guides: Exam P-1, Exam ACIA-CAPSTONE
A Probability Density Function (PDF) is a function f(x) that describes how the probability of a continuous random variable X is spread along the real line. The probability that X falls between a and b is the area under f over that interval:
P(a \leq X \leq b) = \int_a^b f(x)\,dx
A single value has probability P(X = x) = 0, so including or excluding an endpoint changes nothing.
A loss ratio
Xhas densityf(x) = 3x^2for0 \leq x \leq 1. What isP(X > 0.5)?
- The density is 0 above 1, so the area runs from 0.5 to the end of the support, 1.
- The probability is the integral of the density over that interval:
\begin{aligned} P(X > 0.5) &= \int_{0.5}^{1} 3x^2\,dx \\ &= 1 - 0.125 \\ &= 0.875 \end{aligned}
Requirements of a density
A function f is a density when f(x) \geq 0 for every x and the total area under it is
\int_{-\infty}^{\infty} f(x)\,dx = 1
f(x) = 0outside the support ofX, the set of valuesXcan take, so the integral runs over the support only.
A density given up to a constant, f(x) = c\,g(x), is completed by solving this equation for c.
A claim size
X, in thousands, has densityf(x) = c\,x(3 - x)for0 < x < 3. What isc, and what isP(X \leq 1)?
- The total area must be 1:
\begin{aligned} 1 &= \int_0^3 c\,x(3 - x)\,dx \\ &= c\left[\frac{3x^2}{2} - \frac{x^3}{3}\right]_0^3 \\ &= 4.5c \end{aligned}
- So
c = \frac{2}{9}.- The probability is the area from 0 to 1:
\begin{aligned} P(X \leq 1) &= \int_0^1 \tfrac{2}{9}x(3 - x)\,dx \\ &= \tfrac{2}{9}\left(\tfrac{3}{2} - \tfrac{1}{3}\right) \\ &= \tfrac{7}{27} \approx 0.259 \end{aligned}
Densities defined in pieces
When a density is defined by one formula f_1 below a break c and another f_2 above it, the probability of an interval that crosses the break is
P(a \leq X \leq b) = \int_a^c f_1(x)\,dx + \int_c^b f_2(x)\,dx
a < c < b.
The time
Xto settle a claim, in years, has densityf(x) = \fracxfor0 < x \leq 1andf(x) = \fracfor1 < x \leq 2. What isP(0.5 < X < 1.5)?
- The interval crosses the break at 1, so it takes an area from each piece.
- Below the break, the area is
\frac{1}{3}(1 - 0.25) = 0.25, from\int_{0.5}^{1} \frac{2}{3}x\,dx.- Above the break,
\int_{1}^{1.5} \frac{2}{3}\,dx = \frac{1}{3}.- The probability is
0.25 + \frac{1}{3} = \frac{7}{12} \approx 0.583.
The density and the CDF
The density is the slope of the cumulative distribution function F(x):
f(x) = F'(x)
When a question gives the CDF, differentiate it to get the density.
A loss
Xhas CDFF(x) = 1 - (1 + x)e^forx \geq 0. What is its density?
- Differentiating with the product rule gives
f(x) = -e^{-x} + (1 + x)e^{-x}.- The density is
f(x) = x\,e^{-x}forx \geq 0.
Reading the height as a probability A density is a probability per unit of
x, so it can exceed 1: a uniform density on(0, 0.5)is 2. Over a short interval of lengthh,P(x < X < x + h) \approx f(x)\,h. Only an area underfis a probability.
Practice questions
- CAS Exam 7 Spring 2014, Question 27
- SOA Exam FAM Sample Question 2.3
- CAS Exam MAS-I Spring 2018, Question 14
- CAS Exam MAS-I Spring 2019, Question 14
- CAS Exam MAS-I Spring 2019, Question 15
- CAS Exam MAS-I Spring 2019, Question 20
- Exam MAS-I Practice Question 135
- CAS Exam MAS-II Fall 2018, Question 26
- CAS Exam MAS-II Fall 2019, Question 17
- SOA Exam P Sample Question 142
- SOA Exam P Sample Question 611
- SOA Exam P Sample Question 628
- SOA Exam P Sample Question 649
- Exam P Practice Question 7
- Exam P Practice Question 8
- Exam P Practice Question 9