Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Probability Theory / Continuous and dependent models

Bayesian Inference

Treat unknown quantities as random, start with a prior, and let data update your beliefs.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1Posterior ∝ likelihood × prior
  2. ?Check yourself

By the end you can

  • Distinguish prior, likelihood and posterior
  • Update a Beta prior with coin-flip data
  • Interpret a credible interval

Helps to know: Conditional Probability and Bayes, Continuous Random Variables

§1Posterior ∝ likelihood × prior

p(θ∣data)∝p(data∣θ) p(θ)p(\theta \mid \text{data}) \propto p(\text{data} \mid \theta)\, p(\theta)

For a coin with unknown bias θ\theta, a Beta(a,b)\text{Beta}(a, b) prior combined with hh heads and tt tails gives a Beta(a+h,b+t)\text{Beta}(a + h, b + t) posterior. The prior behaves like imaginary earlier flips.

Example 1Seven heads in ten flips, uniform prior

  1. Uniform is Beta(1,1)\text{Beta}(1, 1).

Check yourself

  1. Q1
    A Beta(2,2)\text{Beta}(2, 2) prior with 3 heads and 1 tail gives posterior…