Posterior Distribution
Study guide: Exam MAS-II
A Posterior Distribution is the distribution of an unknown parameter \theta after the observations \mathbf{x} = (x_1, \ldots, x_n) have been taken into account. It is the prior distribution \pi(\theta) updated by the likelihood of the data through Bayes' theorem:
\pi(\theta \mid \mathbf{x}) = \frac{f(\mathbf{x} \mid \theta)\,\pi(\theta)}{\int f(\mathbf{x} \mid \theta)\,\pi(\theta)\,d\theta}
- The prior
\pi(\theta)describes how\thetavaries across the portfolio before this risk's own experience is seen. - The likelihood
f(\mathbf{x} \mid \theta) = \prod f(x_i \mid \theta)treats thex_ias independent given\theta. - The denominator is the marginal probability of the data. It only normalises.
With a discrete prior (risk classes) the integral is a sum. In Bayesian credibility the posterior is the distribution every forecast for the risk is averaged over.
A portfolio is 75% good drivers, whose annual claim counts are Poisson with mean
0.2, and 25% bad drivers, Poisson with mean0.6. A driver chosen at random has 1 claim in a year. What are the posterior class probabilities, and the expected number of claims next year?
- The likelihoods of one claim are
0.2e^{-0.2} = 0.16375for a good driver and0.6e^{-0.6} = 0.32929for a bad one.- Prior times likelihood is
0.75(0.16375) = 0.12281and0.25(0.32929) = 0.08232, which sum toP(N = 1) = 0.20513.- The posterior probabilities are
0.12281/0.20513 = 0.5987(good) and0.08232/0.20513 = 0.4013(bad).- The expected claims next year are the posterior-weighted class means,
E[N_2 \mid N_1 = 1] = 0.5987(0.2) + 0.4013(0.6) = 0.3605.- One claim moves the chance that this is a bad driver from
25\%to40\%, and the forecast from the prior mean0.30to0.3605.
The idea With little data the posterior stays near the prior, and as
ngrows it concentrates near the maximum likelihood estimate.
That movement from the prior toward the data is credibility. When the posterior mean is linear in \bar{x} it equals the Bühlmann estimate exactly, which is exact credibility.
The kernel of the posterior
The denominator does not involve \theta, so the posterior is
\pi(\theta \mid \mathbf{x}) \propto \pi(\theta)\prod_{i=1}^{n} f(x_i \mid \theta)
Drop every factor that does not involve \theta, multiply prior by likelihood, and recognise the family from what is left. For a conjugate prior this is the whole technique.
A group policy covers 50 employees, each with probability
qof a claim in the year, and the prior forqis Beta(2, 18), with mean0.10. This year 9 employees claim. What are the posterior mean and standard deviation ofq?
- Keeping only the factors that involve
q, the priorq^{2-1}(1-q)^{18-1}is multiplied by the likelihoodq^{9}(1-q)^{41}.- That product is
q^{10}(1-q)^{58}.- This is the kernel of a Beta
(11, 59)distribution.- The posterior mean is
11/70 = 0.1571.- The posterior variance is
(11)(59)/[(70)^2(71)] = 0.001865, so the standard deviation is0.0432, against a prior standard deviation of0.0655.
Sequential updating
Updating is sequential: this year's posterior is next year's prior. Processing the years one at a time gives the same result as processing them together:
\pi(\theta \mid x_1, x_2) \propto \pi(\theta \mid x_1)\, f(x_2 \mid \theta)
In the driver portfolio above, the driver with 1 claim in the first year has 0 claims in the second. What is the posterior probability that the driver is bad?
- The prior for year 2 is the year-1 posterior,
0.5987good and0.4013bad.- The likelihoods of no claims are
e^{-0.2} = 0.8187ande^{-0.6} = 0.5488.- Prior times likelihood is
0.4902and0.2202.- The posterior probability that the driver is bad is
0.2202/(0.4902 + 0.2202) = 0.310.
Uniform prior
A uniform prior is constant wherever it is positive, so inside its support the posterior is proportional to the likelihood alone:
\pi(\theta \mid \mathbf{x}) \propto f(\mathbf{x} \mid \theta)
Outside its support the posterior is zero, because the prior is a factor of the product. The prior cannot move the posterior's peak: under a uniform prior the posterior mode is the maximum likelihood estimate. If the uniform prior covers only an interval, the posterior is the likelihood cut off at the ends of that interval and renormalised. Its mode is then the value inside the interval where the likelihood is largest, and an MLE outside the interval cannot be the posterior mode.
A claim probability
qhas a uniform prior on[0, 0.2]. In 10 trials there are 3 claims. What is the posterior mode?
- The likelihood is proportional to
q^3(1-q)^7, which peaks at the MLEq = 0.3.- The posterior is that likelihood cut off at
0.2, and the likelihood is increasing on[0, 0.2].- The posterior mode is
0.2, the end of the interval nearest the likelihood's peak.
Improper prior
A prior is improper when its integral over the parameter space is infinite, so it cannot be normalised into a distribution. A constant density on the whole real line is one, and q^{-1}(1-q)^{-1} on (0, 1), the improper Beta(0, 0) kernel, is another. The algebra still runs, but the result is a usable posterior only if it has a finite integral:
\int f(\mathbf{x} \mid \theta)\,\pi(\theta)\,d\theta < \infty
Whether it does depends on the data. With the Beta(0, 0) prior and binomial data, the posterior is improper when every trial is a success or every trial is a failure. An improper posterior is not a probability distribution, so it has no posterior mean or any other summary to report.
A claim probability
qhas the improper priorq^(1-q)^, and 4 trials give 2 claims. Is the posterior proper?
- Prior times likelihood is
q^{-1}(1-q)^{-1} \cdot q^2(1-q)^2 = q(1-q).- This is the kernel of a Beta
(2, 2)distribution, which has a finite integral.- The posterior is proper, with mean
0.5. Had all 4 trials been claims, the product would beq^3(1-q)^{-1}, whose integral is infinite.
Practice questions
- SOA Exam ASTAM Sample Question 21
- SOA Exam ASTAM Spring 2025, Question 6
- Exam MAS-I Practice Question 11
- Exam MAS-I Practice Question 12
- CAS Exam MAS-II Fall 2018, Question 26
- CAS Exam MAS-II Fall 2018, Question 28
- CAS Exam MAS-II Fall 2018, Question 35
- CAS Exam MAS-II Fall 2019, Question 16
- CAS Exam MAS-II Fall 2019, Question 17
- CAS Exam MAS-II Fall 2019, Question 18
- CAS Exam MAS-II Fall 2019, Question 19
- CAS Exam MAS-II Fall 2019, Question 27
- CAS Exam MAS-II Fall 2019, Question 29
- CAS Exam MAS-II Fall 2019, Question 33
- CAS Exam MAS-II Fall 2019, Question 35
- CAS Exam MAS-II Spring 2019, Question 7
- CAS Exam MAS-II Spring 2019, Question 17
- CAS Exam MAS-II Spring 2019, Question 18
- CAS Exam MAS-II Spring 2019, Question 19
- CAS Exam MAS-II Spring 2019, Question 20
- CAS Exam MAS-II Spring 2019, Question 21
- CAS Exam MAS-II Spring 2019, Question 23
- CAS Exam MAS-II Spring 2019, Question 26
- CAS Exam MAS-II Spring 2019, Question 27
- CAS Exam MAS-II Spring 2019, Question 28
- CAS Exam MAS-II Spring 2019, Question 29
- CAS Exam MAS-II Spring 2019, Question 30
- CAS Exam MAS-II Spring 2019, Question 31
- CAS Exam MAS-II Spring 2019, Question 36