Quant GT
Browse all lessons
Section 10 · Lesson 10.2

Prior, Likelihood, Posterior

Combining initial belief with evidence to form an updated belief.

Bayes' Rule applied to parameters reads

P(θx)=P(xθ)P(θ)P(x)P(\theta \mid x) = \frac{P(x \mid \theta)\, P(\theta)}{P(x)}

In words, posterior is proportional to likelihood times prior:

posteriorlikelihood×prior\text{posterior} \propto \text{likelihood} \times \text{prior}

The proportionality drops the normalizing constant P(x)=P(xθ)P(θ)dθP(x) = \int P(x \mid \theta) P(\theta)\, d\theta, which is often hard to compute and unnecessary if you only care about relative posterior values.

A worked example: you want to estimate the bias θ\theta of a coin. Pick a uniform prior θBeta(1,1)\theta \sim \mathrm{Beta}(1, 1). Observe 77 heads in 1010 flips. The likelihood is Binomial. Because Beta is conjugate to Bernoulli/Binomial, the posterior is just Beta(1+7,1+3)=Beta(8,4)\mathrm{Beta}(1 + 7, 1 + 3) = \mathrm{Beta}(8, 4), with mean 8/120.678/12 \approx 0.67. Updating Bayesian beliefs is often this simple — when you pick conjugate priors.