Introduction To Bayesian Statistics
Introduction To Bayesian Statistics
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
Van-Cuong DO
School of Applied Mathematics and Informatics
Hanoi University of Science and Technology
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
Bayes’ Theorem
f (x | θ) × π(θ)
p(θ | x ) = ∫ . (0.1.1)
Θ
f (x | θ) × π(θ)dθ
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
Exponential distribution
Definition
A random variable X ∈ R+ is said to be distributed as Exponential
distribution with rate parameter λ if it has density of the form
fX (x ) = λe −λx (0.1.3)
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
Likelihood
∏
n ∑n
f (x | λ) = f (xi | λ) = λn e −λ i=1
xi
.
i=1
∑n
Denote sn = i=1 xi then the likelihood of Exponential distribution with
rate parameter λ is
f (x | λ) = λn e −sn λ . (0.1.5)
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
Denote λ̂MLE the Maximum Likelihood Estimate and I(λ) the Fisher In-
formation Matrix then
n
λ̂MLE = , (0.1.7)
sn
[ 2 ]
∂ n
I(λ) = −E 2
l(λ) = 2 . (0.1.8)
∂λ λ. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
Properties of MLE
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
Jeffreys’ rule
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
Noninformative prior
f (x | λ) = λn e −sn λ .
This conjugate prior looks like a familiar distribution, that is Gamma dis-
tribution.
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
Gamma distribution
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
From this theorem, one can deduce the two parameters of Gamma distri-
bution if the expectation and the variance are known.
[E (X )]2
α= ,
Var (X )
E (X )
β= .
Var (X )
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
f (x | λ) = λn e −sn λ .
The posterior is proportinal to the product of the likelihood and the prior
Bayesian Estimator
Assuming quadratic loss, the Bayesian estimators are the expectation of the
posterior distributions. Denote λ̃CBE the Bayesian estimate with conjugate
prior of parameter λ then
a+n
λ̃CBE = . (0.3.11)
b + sn
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
Convex combination
Recall that
a
E (λ) = ,
b
n
λ̂MLE = .
sn
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
Inverse-gamma distribution
fX (x ) = K x −α−1 e −x /β (0.3.16)
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
β
E (X ) = ,
α−1
β2
Var (X ) = . (0.3.17)
(α − 1)2 (α − 2)
From this theorem, one can deduce the two parameters of Gamma distri-
bution if the expectation and the variance are known.
[E (X )]2
α=1+ ,
Var (X )
[E (X )]3
β= .
Var (X ) . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
f (x | θ) = θ−n e −sn /θ .
The posterior is proportinal to the product of the likelihood and the prior
Bayesian Estimator
Assuming quadratic loss, the Bayesian estimators are the expectation of the
posterior distributions. Denote θ̃CBE the conjugate prior Bayesian estimate
for Exponential distribution with scale parameter θ then
b + sn
θ̃CBE = . (0.3.18)
a+n−1
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
Convex combination
Recall that
b
E (θ) = ,
a−1
sn
θ̂MLE = .
n
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Prior elicitation
Narural Conjugate Prior Reparametrization
Simulation
Conclusion
b b2
E (X ) = , Var (X ) = .
a−1 (a − 1)2 (a − 2)
One can easily deduce values for a, b as following:
b b2 2
= gθ,1 , = gθ,2 .
a−1 (a − 1)2 (a − 2)
Therefore we get
2 3
gθ,1 gθ,1
a =1+ 2 , b= 2 . (0.3.20)
gθ,2 gθ,2
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior
Narural Conjugate Prior
Simulation
Conclusion
π(µ) ∝ 1.
Conjugate Priors
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics
Introduction
Noninformative Prior Noninformative Prior
Narural Conjugate Prior Conjugate Prior
Simulation
Conclusion
References
. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .
Van-Cuong DO School of Applied Mathematics and Informatics Hanoi University of
Introduction
Science and
to Technology
Bayesian Statistics