University of Southampton · FACULTY OF STATISTICS

MATH6174 Chap.9 Priors, Posteriors and Bayesian Prediction

- one subject, every graph, every model, every mark
7 Chapters4-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 9 of 10 · MATH6174

Priors, Posteriors and Bayesian Prediction

Priors, Posteriors and Bayesian Prediction opens the Bayesian half of the module. The parameter is now treated as a random variable with a prior distribution that expresses belief before the data, and Bayes theorem combines that prior with the likelihood to give the posterior distribution, from which all inference proceeds.

The normalising constant does not depend on the parameter, so the posterior is usually written up to proportionality and identified by recognising its kernel as a known family. Conjugate priors make this immediate: the lecture notes pair the binomial with the beta, the Poisson and the exponential with the gamma, and the normal with the normal, so the posterior is obtained by adding data summaries to the prior parameters.

A point estimate is chosen by minimising posterior expected loss. Squared error loss gives the posterior mean, absolute error loss gives the posterior median, and a step-function loss gives approximately the posterior mode; for a skewed posterior the three differ.

When little prior information is available, the notes discuss locally uniform priors, improper priors that are acceptable only if the posterior is proper, and Jeffreys priors proportional to the square root of the Fisher information.

Prediction averages the data model over the posterior: the posterior predictive distribution of a new observation carries parameter uncertainty into the forecast, and the prior predictive distribution is the marginal likelihood of the data. Ratios of prior predictive densities under two models are Bayes factors, the Bayesian tool for model choice and hypothesis testing.

The chapter closes with the likelihood principle and the multi-parameter case. Both recent final papers ended with a Bayesian question on posterior densities under flat or uniform priors, and the 2025/26 paper added a predictive probability.

In this chapter

What this chapter covers

  • 01

    Bayes theorem for events and for random variables

  • 02

    Posterior proportional to likelihood times prior

  • 03

    Conjugate beta, gamma and normal updates

  • 04

    Bayes estimators under squared, absolute and step loss

  • 05

    Locally uniform, improper and Jeffreys priors

  • 06

    Posterior and prior predictive distributions

  • 07

    Bayes factors and the likelihood principle

Worked example · free

Update a gamma prior for an exponential rate and predict the next lifetime

Q [6 marks]. Lifetimes are exponential with rate beta and the prior for beta is gamma(2, 3). Five lifetimes have total 7. Find the posterior, its mean, and the posterior predictive probability that the next lifetime exceeds 1. Its mark allocation is ours alone and not an official one.
The posterior compromises between prior and data.The posterior compromises between prior and data. A beta(2, 2) prior, the rescaled likelihood of 7 successes in 10 AskSia trials and the resulting beta(9, 5) posterior, all computed; the posterior mean 9/14 = 0.643 sits between the prior mean 0.5 and the sample proportion 0.7.00.20.40.60.810123theta (success probability)densityprior beta(2, 2)likelihood, 7 of 10, rescaledposterior beta(9, 5)
The posterior compromises between prior and data. A beta(2, 2) prior, the rescaled likelihood of 7 successes in 10 AskSia trials and the resulting beta(9, 5) posterior, all computed; the posterior mean 9/14 = 0.643 sits between the prior mean 0.5 and the sample proportion 0.7.
  • 1The likelihood is proportional to beta to the power 5 times exp(-7 beta), and the prior to beta times exp(-3 beta).
  • 2Their product is beta to the power 6 times exp(-10 beta), the kernel of a gamma(7, 10) posterior.
  • 1The posterior mean of the rate is 7/10 = 0.7.
  • 2Given beta, the chance the next lifetime exceeds 1 is exp(-beta). Averaging over the gamma(7, 10) posterior gives (10/11) to the power 7.
The posterior is gamma(7, 10) with mean 0.7, and the predictive probability that the next lifetime exceeds 1 is (10/11) to the power 7, about 0.513.
Sia tip — Use the gamma m.g.f. to average exp(-beta) over the posterior: E[exp(-beta)] = (b/(b + 1)) to the power a, with no integration needed.
Glossary

Key terms

Prior distribution
The distribution that describes belief about a parameter before the data are observed.
Conjugate prior
A prior for which the posterior belongs to the same family under a given likelihood.
Bayes estimator
The point estimate that minimises posterior expected loss for a chosen loss function.
Jeffreys prior
A non-informative prior proportional to the square root of the Fisher information.
Posterior predictive distribution
The distribution of a new observation averaged over the posterior distribution of the parameter.
Bayes factor
The ratio of the prior predictive densities of the data under two competing models.
FAQ

Priors, Posteriors and Bayesian Prediction FAQ

Can I use an improper prior?

Yes, provided the posterior it produces is proper, meaning it integrates to a finite value. A flat prior on a Poisson rate, for instance, gives a gamma posterior once at least one observation is in. If the posterior cannot be normalised, no inference is possible from it.

Which Bayes estimator should I report?

The loss function decides. Squared error loss gives the posterior mean, absolute error loss the median and a narrow step loss the mode. When a question names the loss, report the matching summary; when it asks for the posterior mean, give that and state the loss it corresponds to.

How is the posterior predictive different from plugging in an estimate?

Plugging in fixes the parameter at one value and ignores its uncertainty. The posterior predictive averages the data model over the whole posterior, so its spread is larger, especially for small samples. As the sample grows the two forecasts become close.

What does a Bayes factor above one mean?

A Bayes factor B01 above one says the data are more probable under the first model than under the second, after averaging each model's likelihood over its prior. Combined with prior odds, it gives the posterior odds of the two models.

Study strategy

Exam move

Work every conjugate pair in the notes from a blank page: write the likelihood kernel, the prior kernel, the product, and the named posterior with its full constant. Then compute the posterior mean, median or mode as a question requests, and one predictive probability per model. Finish with the improper-prior posteriors from the recent final papers, checking propriety each time.

Working through Priors, Posteriors and Bayesian Prediction in MATH6174? Sia is AskSia’s AI Statistics tutor — ask any MATH6174 Priors, Posteriors and Bayesian Prediction question and get a clear, step-by-step explanation grounded in how MATH6174 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 8 of your subjects at University of Southampton, plus 1,000+ more Bibles across the AskSia library.
Sia - your MATH6174 tutor, unlimited, worked the way the exam marks it
The full 4-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works