Lecture 1 Introduction
Lecture 1 Introduction
Introduction
Shaobo Jin
Department of Mathematics
Likelihood Function
Denition
For an observation x of a random variable X with density f (x | θ), the
likelihood function L (· | x) : Θ → [0, ∞) is dened by
L (θ | x) = f (x | θ).
Example
T
If X = X1 · · · Xn is a sample of independent random variables,
then
n
Y
L (θ | x) = fi (xi | θ) ,
i=1
as a function in θ conditional on x.
Inference Principle
Bayes Formula
Distributions
We most of the time use π (·) and m (·) as generic symbols. But in
several cases, they are tied to specic functions.
Example
Find the posterior distribution.
1 Suppose that we have an iid sample X | θ ∼ Bernoulli (θ),
i
i = 1, ..., n. The prior is θ ∼ Beta (a0 , b0 ).
2 Suppose that we have an iid sample X | µ ∼ N µ, σ 2 , i = 1, ..., n,
i
where σ 2 is known. The prior is µ ∼ N µ0 , σ02 .
ba00
2
1 b0
π σ = exp − 2 .
Γ (a0 ) (σ 2 )a0 +1 σ
ˆ
f (y | x) = f (y | x, θ) π (θ | x) dθ.
Var (X) = σ 2 .
T
Let Z = Z1 Z2 · · · Zp be a random vector, each Zj ∼ N (0, 1),
X = Σ1/2 Z + µ ∈ Rp
can be expressed as
( )
(x − µ)2
1 1 1 1
√ exp − = √ exp − (x − µ) 2 (x − µ) .
2πσ 2 2σ 2 2πσ 2 2 σ
X1 | X2 ∼ N µ1 + Σ12 Σ−1 −1
22 (x2 − µ2 ) , Σ11 − Σ12 Σ22 Σ21 .
Example
Suppose that X | θ ∼ Np(Cθ, Σ), where Cp×q and Σ > 0 are known.
The prior is Nq µ0 , Λ−1
0 . Find the posterior of θ.
Σ + CΩC T
X1 Cm CΩ
∼ Np+q , .
X2 m ΩC T Ω