18.650 - Fundamentals of Statistics
18.650 - Fundamentals of Statistics
5. Bayesian Statistics
1/20
Goals
So far, we have followed the frequentist approach (cf. meaning of
a confidence interval).
An alternative is the Bayesian approach.
New concepts will come into play:
I prior and posterior distributions
I Bayes’ formula
I Priors: improper, non informative
I Bayesian estimation: posterior mean, Maximum a posteriori
(MAP)
I Bayesian confidence region
2/20
The frequentist approach
3/20
The Bayesian approach
4/20
The kiss example
I Let X1 , . . . , Xn ⇠ Ber(p).
i.i.d
5/20
The kiss example
I Our prior belief about p can be quantified:
I E.g., we are 90% sure that p is between .4 and .6, 95% that it
is between .3 and .8, etc...
7/20
Clinical trials
8/20
Clinical trials
9/20
Prior and posterior
10/20
Bayes’ formula
11/20
Bernoulli experiment with a Beta prior
In the Kiss example:
I p ⇠ Beta(a, a):
a 1 a 1
⇡(p) / p (1 p) , p 2 (0, 1)
I Given p, X1 , . . . , Xn ⇠ Ber(p), so
i.i.d.
Ln (X1 , . . . , Xn |p) =
I Hence,
Pn Pn
a 1+ Xi a 1+n Xi
⇡(p|X1 , . . . , Xn ) / p i=1 (1 p) i=1 .
I The posterior distribution is
12/20
Non informative priors
13/20
Examples
I If p ⇠ U(0, 1) and given p, X1 , . . . , Xn ⇠ Ber(p) :
i.i.d.
⇡(p|X1 , . . . , Xn ) /
⇡(✓|X1 , . . . , Xn ) / exp
14/20
Je↵reys’ prior
I Je↵reys prior: p
⇡J (✓) / det I(✓)
where I(✓) is the matrix of the statistical
model associated with X1 , . . . , Xn in the frequentist approach
(provided it exists).
15/20
Je↵reys’ prior
˜
where I(⌘) is the Fisher information of the statistical model
parametrized by ⌘ instead of ✓.
16/20
Bayesian confidence regions
IP[✓ 2 R|X1 , . . . , Xn ] =
17/20
Bayesian estimation
18/20
Bayesian estimation
I Bayes estimator:
ˆ(⇡)
✓ =
19/20
Bayesian estimation
I In the previous examples:
I Kiss example with prior Beta(a, a) (a > 0):
Pn
(⇡) a + i=1 Xi a/n + X̄n
p̂ = = .
2a + n 2a/n + 1