




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





USC, Econ 513, Fall 2005
Lecture 11: Maximum Likelihood Estimation: Testing
After estimating the exponential model for the unemployment durations, Lancaster con-
siders an extension. Consider the hazard function or escape rate
h(y|x, θ) = lim
∆→ 0
P r(y ≤ y < y + ∆|y ≤ y, X)/∆ =
f (y|x, θ)
1 − F (y|x, θ)
The hazard function is just another way of characterizing a distribution, like the density
function, the distribution function, the survivor function, the moment generating function
or the characteristic function. It is just a particularly convenient and interpretable way of
describing a distribution or durations. Given the hazard you can calculate the distribution
function as
F (y|x, θ) = 1 − exp
y
0
h(s|x, θ)ds
and hence the density function. The exponential model implies that the hazard function
stays constant over the duration of the spell, equal to exp(x
′
β) in our previous specification.
To see what this means, take a person and look at their chances of finding a job on the first
day of being unemployed. These chances are the same as the chances that this same person
would find a job on the fifthieth day given that he has been unsuccessful in finding work in
the first forty–nine days. This may be reasonable, but it might also be something you do
not wish to impose from the outset. Lancaster therefore considers an extension allowing the
hazard function to either increase, stay constant, or decrease over time. This extension is
known as the Weibull distribution:
h(y|x, β, α) = (α + 1) · y
α
exp(x
′
β).
Note that this reduces to the exponential distribution if α = 0. The implied density function
for the Weibull distribution is
f (y|x, β, α) = (α + 1) · y
α
exp(x
′
β) exp
−y
α+
exp(x
′
β)
The moments of this distribution are
E[y
k
|X] = exp
−k · x
′
β
(α + 1)
k + 1
α + 1
(Note that for the case with α = 0 this reduces to the exponential case with
E[y
k
|X] = exp(−k · x
′
β) · Γ(1 + k),
and thus with k = 1 the mean of the exponential distribution is E[y|X] = exp(−x
′
β).)
The log likelihood function for this model is
L(α, β) =
N ∑
i=
ln(α + 1) + α ln y i
′
i
β − y
(
i
α + 1) · exp(x
′
i
β)
One can estimate this model using any of the numerical methods described before (Newton-
Raphson, Davidon-Fletcher-Powell). The one (minor) complication is that numerical algo-
rithms have to take account of the restriction that α > −1; with α = −1 the density is
degenerate and all probability mass piles up at y = 0.
Table 1 presents the maximum likelihood results for both the exponential and Weibull
models. The standard errors are based on the second derivatives, evaluated at the maximum
likelihood estimates (see discussion below).
Table 1: Exponential and Weibull Estimates
Exponential Model Weibull Model
scale -0.2012 (0.0110)
intercept -4.5086 (0.1463) -3.3686 (0.1584)
age 0.0168 (0.0066) 0.0069 (0.0067)
educ -0.1685 (0.0102) -0.1405 (0.0104)
locrat 0.0435 (0.0147) 0.0349 (0.0147)
To test the hypothesis α = 0 against the alternative hypothesis α 6 = 0 there are three
classical tests, the likelihood ratio, the Wald and the score test. We shall consider the three
tests in a general context, as well as giving the formula for the case where we are testing the
scale parameter in the Weibull model. Suppose we have a model for a random variable z,
specifying the density function
f (z|θ 0
, θ 1
1
(α+1)
2
− (ln y)
2 · y
α+ · exp(x
′ β) −x
′ · ln y · y
α+ · exp(x
′ β)
−x
′ · ln y · y
α+ · exp(x
′ β) −x · x
′ · y
α+ · exp(x
′ β)
and, finally, let I(θ 0
, θ 1
) be the information matrix evaluated at (θ 0
, θ 1
I(θ 0
, θ 1
) = −E [H(z, θ 0
, θ 1
We will use various estimates of I(θ
∗
0
, θ
∗
1
), depending on where we evaluate the matrix and
how we calculate or approximate the expectation. For the second, there are three choices:
I(θ) = −
N ∑
i=
H(zi, θ).
I(θ) =
N ∑
i=
S(z i
, θ)S(z i
, θ)
′
.
I(θ) = −E [H(z, θ)] = E [S(z, θ)S(z, θ)
′
].
This choice is very uncommon, because typically we don’t actually specify the full
density, only the conditional density of y given X. Hence we cannot calculate the full
expectation, and if we are calculating only the conditional expectation there do not
seem to be a lot of advantages to bothering with that at all.
For the first choice the possibilities are to evaluate the estimate at
θ r
θ u
The leading choices include the average of the second derivative evaluated at the unrestricted
estimates:
1
N ∑
i=
H(z i
θ u
or the average of the second derivative evaluated at the restricted estimates:
2
N ∑
i=
H(z i
θ r
or estimates based on the first derivatives at the restricted estimates:
N ∑
i=
S(zi, θr)S(zi, θr)
′
=
or at the unrestricted estimates:
4
N ∑
i=
S(z i
, θ u
)S(z i
, θ u
′
=
All three classical tests are based on the quadratic approximation to the log likelihood
function around the true (and therefore maximizing in the limit) values (θ
∗
0
, θ
∗
1
). The three
are first–order equivalent, meaning that if the null hypothesis is correct, their difference,
multiplied by
N , converges to zero in probability.
First, if the null hypothesis is true and θ
∗
0
= 0, the value of the log likelihood function
at (θ 0 r
= 0, θ 1 r
) should not be much smaller than the value of the log likelihood function at
(θ 0 u, θ 1 u). This is the basis of the Likelihood Ratio Test. Formally, the test statistic is
θ 0 u
θ 1 u
θ 1 r
If the null hypothesis is true this statistic has for large N a Chi–squared distribution with
degrees of freedom equal to the dimension of θ 0 , one in our example.
Second, if the limiting log likelihood function is maximized at θ 0 = 0, the derivative of
the log likelihood function with respect to θ 0
at that point should be be close to zero. This
is the basis of Rao’s Score Test or the Lagrange Multiplier Test. Formally,
N ∑
i=
S(z i
θ 1 r
′
·
− 1
·
N ∑
i=
S(z i
θ 1 r
where
00 is the top left part of the inverse of
I. Again any of the estimates of the information
matrix can be used. Here typically the average evaluated at the unrestricted estimates,
1
= 0.5735 or
4
= 0.9221, leading to W = 337.3 and W = 209.8 respectively, are used
because of their superior properties if the null hypothesis is false.
Result 1 As N goes to infinity, under the null hypothesis,
d
→ X
2 (dim(θ 0
Result 2 As N goes to infinity, under the null hypothesis,
p
p
p
Here is an informal argument for the case where θ 0
is a scalar and there are no nuisance
parameters (no θ 1
). Expand the log likelihood around the maximum likelihood estimate:
L(θ) ≈ L(
θ) +
∂θ
θ) · (θ −
θ) +
2 L
∂θ
2
θ) · (θ −
θ)
2 .
The derivative of the log likelihood function at the maximum likelihood function is equal to
zero, so
θ) − L(θ
∗
)
θ − θ
∗
)
2
·
2 L
∂θ
2
θ)
θ − θ
∗
)
2
· I(θ
∗
).
This is clearly very close to the test statistic from the Wald test. Given the limiting distri-
bution
θ − θ
∗
)
d
− 1
(θ
∗
)),
the limiting chi-squared distribution follows immediately.
To see the link with the score or Lagrange multiplier test, expand the derivative of the
log likelihood function around the true value:
∂θ
(θ) ≈
∂θ
(θ
∗
) + (θ − θ
∗
) ·
2
L
∂θ
2
(θ
∗
).
Evaluating this at θ =
θ, so that the first derivative is equal to zero,
∂θ
(θ
∗
) + (
θ − θ
∗
) ·
2 L
∂θ
2
(θ
∗
),
and thus
θ − θ
∗
) ≈ −
2 L
∂θ
2
(θ
∗
)
− 1
·
∂θ
(θ
∗
).
Renormalizing this gives
θ − θ
∗
) ≈ I(θ
∗
)
− 1
·
N ∑
i=
S(zi, θ
∗
),
which by a central limit theorem has a limiting normal distribution with mean zero and
variance equal to I(θ
∗
)
− 1
. Then, squaring both sides and multiplying by the information
matrix gives
θ − θ
∗
) · I(θ
∗
) ≈ I(θ
∗
)
− 1
·
i=
S(zi, θ
∗
)
2
demonstrating the approximate equality of the Wald and Lagrange multiplier or score tests.