Professional Documents
Culture Documents
Notes Maximum Likelihood
Notes Maximum Likelihood
f (θ; y1 , y2 , . . . , yN )
so that
N
Y
L(θ) = f (yi ; θ)
i=1
Since I have to find the maximum of the function, I need to compute the
first derivatives of L(θ) with respect to the unknown θ and set it to zero,
solving for θ. It is equivalent to maximize l(θ) = log L(θ), often for algebraic
simplification.
1
Example
Y ∼ N (µ, σ 2 ), both parameters unknown.
2
yi −µ
1 − 12
f (yi ; µ, σ 2 ) = √ e σ
2πσ 2
The likelihood is
N
yi −µ
2
2
Y 1 − 12
L(µ, σ ) = √ e σ
i=1 2πσ 2
The log-likelihood is
N
yi −µ
2 N N √ N
2
X 1 − 21
X X 1X
l(µ, σ ) = log √ e σ
= log 1 − log 2π − log σ 2 +
2πσ 2 2
i=1 i=1 i=1 i=1
N
y −µ 2
− 21 iσ
X
+ log e =
i=1
√ N
N 1 X
= −N log 2π − 2
log σ − 2 (yi − µ)2
2 2σ
i=1
It can be proved that (µ, σ 2 ) represent a global maximum for the likelihood.
2
Remarks
The maximum likelihood estimator is generally not unbiased (see that
the estimator for σ 2 is the biased one!).