Mathematical Statistics (MA212M) : Lecture Slides
Mathematical Statistics (MA212M) : Lecture Slides
Lecture Slides
Lecture 24
Maximum Likelihood Estimator(MLE)
Example 107: Let a box has some red balls and some black balls. It is
known that number of black balls to red balls is in 1:1 or 1:2 ratio.
We want find whether it is 1:1 or 1:2. We may proceed as follows:
Randomly draw two balls from the box.
Let X be the number of black balls out of two drawn balls.
X ∼ Bin(2, p), where p ∈ 12 , 13 .
x =0 x =1 x =2
p = 1/2 1/4 1/2 1/4
p = 1/3 4/9 4/9 1/9
dl 2
d l
dλ
= 0 =⇒ λ = x. Also dλ 2 < 0 for all λ > 0. Hence l(λ, x)
Remark: Note that the estimator of σ 2 are different in the last two
examples. It shows that the MLE may update itself based on any
available information on the parameters.
Examples
i.i.d.
Example 112: X1 , X2 , . . . , Xn ∼ N(µ, 1), µ ≤ 0. For µ ≤ 0, the
log-likelihood function is
n
1X
l(µ) = C − (xi − x)2 ,
2 i=1
where C is a constant (does not depend on unknown parameter).
dl dl
Now dµ = n(x − µ). Clearly for x > 0, dµ = 0 does not possess a
dl
solution in the parametric space. However dµ > 0 for all µ ≤ 0.
Hence for x > 0, l(µ) is an increasing function and it takes it
maximum value at µ = 0.
dl
On the other hand if x ≤ 0, dµ = 0 possesses a solution and it is
µ = x. The second derivative condition can be easily checked.
Hence, the MLE of µ is
(
X if X ≤ 0
µ
b=
0 otherwise.
Examples
1
Example 113: Let X1 be a sample of size one from Bernoulli( 1+e θ ),
where θ ≥ 0.
eθ 1
In this case L(θ, 0) = 1+e θ and L(θ, 1) = 1+e θ . Clearly MLE does
i.i.d.
Example 114: X1 , X2 , . . . , Xn ∼ U(0, θ), θ > 0. The likelihood
function is
1
L(θ) = if 0 < x1 , . . . , xn ≤ θ.
θn
Clearly L(θ) is a decreasing function on θ > max x1 , x2 , . . . , xn = x(n)
and it takes it maximum value at θ = x(n) . Hence the MLE of θ is
θb = X(n) .
Remark: When support depends on unknown parameters, you should
take proper care to find MLE, if it exist.
Examples
i.i.d.
Example 115: X1 , X2 , . . . , Xn ∼ U θ − 12 , θ + 1
2
, θ ∈ R.
The likelihood function is
1 1
L(θ) = 1 if θ − ≤ x1 , . . . , xn ≤ θ +
2 2
1 1
= 1 if x(n) − ≤ θ ≤ x(1) + ,
2 2
where x(n) = max {x1 , . . . , xn } and x(1) = min {x1 , . . . , xn }.
As X(n) − X(1) ≤ 1 with probability one, x(n) − 12 , x(1) + 21 is a