LIKELIHOOD-RATIO/WALD/SCORE METHODS OF INFERENCE FOR GLM PARAMETERS

Một phần của tài liệu Hướng dẫn xây dựng mô hình tuyến tính và tuyến tính suy diễn (Trang 144 - 148)

Inference about GLMs has three standard ways to use the likelihood function. For a generic scalar model parameter 𝛽, we focus on tests7of H0:𝛽 =𝛽0 againstH1: 𝛽𝛽0. We then explain how to construct confidence intervals using those tests.

4.3.1 Likelihood-Ratio Tests

A general purpose significance test method uses the likelihood function through the ratio of (1) its value𝓁0at𝛽0, and (2) its maximum𝓁1over𝛽 values permittingH0

6Gourieroux et al. (1984) proved this and showed the key role of the natural exponential family and a generalization that includes the exponential dispersion family.

7Here,𝛽0denotes a particular null value, typically 0, not the intercept parameter.

or H1 to be true. The ratioΛ =𝓁0∕𝓁1≤1, since𝓁0results from maximizing at a restricted𝛽 value. Thelikelihood-ratio test statisticis8

−2log Λ = −2log(𝓁0∕𝓁1)= −2(L0−L1),

where L0andL1 denote the maximized log-likelihood functions. Under regularity conditions, it has a limiting null chi-squared distribution asn→∞, withdf =1. The P-value is the chi-squared probability above the observed test statistic value.

This test extends directly to multiple parameters. For instance, for𝜷=(𝜷0,𝜷1), considerH0:𝜷0= 0. Then𝓁1is the likelihood function calculated at the 𝜷 value for which the data would have been most likely, and𝓁0is the likelihood function calculated at the𝜷1value for which the data would have been most likely when𝜷0=0.

The chi-squareddf equal the difference in the dimensions of the parameter spaces underH0∪H1 and underH0, which is dim(𝜷0) when the model is parameterized to achieve identifiability. The test also extends to the general linear hypothesisH0: 𝚲𝜷=0, since the linear constraints imply a new model that is a special case of the original one.

4.3.2 Wald Tests

Standard errors obtained from the inverse of the information matrix depend on the unknown parameter values. When we substitute the unrestricted ML estimates (i.e., not assuming the null hypothesis), we obtain anestimatedstandard error (SE) of ̂𝛽. ForH0:𝛽 =𝛽0, the test statistic using this non-null estimated standard error,

z=(̂𝛽𝛽0)∕SE,

is called9aWald statistic. It has an approximate standard normal distribution when 𝛽=𝛽0, andz2has an approximate chi-squared distribution withdf =1.

For multiple parameters𝜷 =(𝜷0,𝜷1), to testH0:𝜷0=0, the Wald chi-squared statistic is

𝜷̂T0[var(̂ 𝜷̂0)]−1𝜷̂0,

where𝜷̂0is the unrestricted ML estimate of𝜷0andvar(̂ 𝜷̂0) is a block of the unre- stricted estimated covariance matrix of𝜷.̂

4.3.3 Score Tests

A third inference method uses thescore statistic. The score test, referred to in some literature as theLagrange multiplier test, uses the slope (i.e., thescore function) and

8The general form was proposed by Samuel S. Wilks in 1938; see Cox and Hinkley (1974, pp. 313, 314, 322, 323) for a derivation of the chi-squared limit.

9The general form was proposed by Abraham Wald in 1943.

expected curvature of the log-likelihood function, evaluated at the null value𝛽0. The chi-squared form10of the score statistic is

[𝜕L(𝛽)∕𝜕𝛽0]2

E[𝜕2L(𝛽)∕𝜕𝛽02],

where the notation reflects derivatives with respect to𝛽 that are evaluated at𝛽0. In the multiparameter case, the score statistic is a quadratic form based on the vector of partial derivatives of the log likelihood and the inverse information matrix, both evaluated at theH0estimates.

4.3.4 Illustrating the Likelihood-Ratio, Wald, and Score Tests

Figure 4.1 plots a generic log-likelihood functionL(𝛽) and illustrates the three tests of H0: 𝛽 =𝛽0, at 𝛽0=0. The Wald test uses L(𝛽) at the ML estimate ̂𝛽, having chi-squared form (̂𝛽SE)2withSEof ̂𝛽based on the curvature ofL(𝛽) at ̂𝛽. The score test uses the slope and curvature ofL(𝛽) at𝛽0=0. The likelihood-ratio test combines information aboutL(𝛽) at ̂𝛽and at𝛽0=0. In Figure 4.1, this statistic is twice the vertical distance between values ofL(𝛽) at𝛽= ̂𝛽and at𝛽 =0.

To illustrate, consider a binomial parameter𝜋and testingH0:𝜋 =𝜋0. With sample proportion ̂𝜋=yfornobservations, you can show that the chi-squared forms of the

L1

0 L(β)

β β L0

Figure 4.1 Log-likelihood function and information used in likelihood-ratio, score, and Wald tests ofH0:𝛽=0.

10The general form was proposed by C. R. Rao in 1948.

test statistics are

Likelihood-ratio: −2(L0−L1)= −2log

[𝜋ny0 (1−𝜋0)n(1−y) yny(1−y)n(1−y)

]

;

Wald: z2= (y𝜋0)2 [y(1−y)∕n]; Score: z2= (y𝜋0)2

[𝜋0(1−𝜋0)∕n].

Asn→∞, the three tests have certain asymptotic equivalences11. For the best- known GLM, the normal linear model, the three types of inference provide identical results. Unlike the other methods, though, we show in Section 5.3.3 that the results of the Wald test depend on the scale for the parameterization. Also, Wald inference is useless when an estimate orH0value is on the boundary of the parameter space.

Examples are ̂𝜋=0 for a binomial and ̂𝛽= ∞in a GLM (not unusual in logistic regression).

4.3.5 Constructing Confidence Intervals by Inverting Tests

For any of the three test methods, we can construct a confidence interval by inverting the test. For instance, in the single-parameter case a 95% confidence interval for𝛽is the set of𝛽0for which the test ofH0:𝛽 =𝛽0hasP-value exceeding 0.05.

Letzadenote the (1−a) quantile of the standard normal distribution. A 100(1− 𝛼)%confidence interval based on asymptotic normality usesz𝛼∕2, for instance,z

0.025 = 1.96 for 95% confidence. The Wald confidence interval is the set of𝛽0 for which

|̂𝛽𝛽0|∕SE<z𝛼∕2. This gives the interval ̂𝛽±z𝛼∕2(SE). The score-test-based confi- dence interval often simplifies to the set of𝛽0for which|̂𝛽𝛽0|∕SE0<z𝛼∕2, where SE0is the standard error estimated under the restriction that𝛽=𝛽0. Let𝜒d2(a) denote the (1−a) quantile of the chi-squared distribution withdf =d. The likelihood-ratio- based confidence interval is the set of𝛽0for which−2[L(𝛽0)−L(̂𝛽)]< 𝜒12(𝛼). [Note that𝜒12(𝛼)=z2𝛼

∕2.]

When ̂𝛽has a normal distribution, the log-likelihood function is a second-degree polynomial and thus has a parabolic shape. For small samples of highly non-normal data or when𝛽falls near the boundary of the parameter space, ̂𝛽may have distribution far from normality, and the log-likelihood function can be far from a symmetric, parabolic curve. A marked divergence in the results of Wald and likelihood-ratio inference indicates that the distribution of ̂𝛽may not be close to normality. It is then preferable to use the likelihood-ratio inference or higher order asymptotic methods12.

11See, for example, Cox and Hinkley (1974, Section 9.3).

12For an introduction to higher-order asymptotics, see Brazzale et al. (2007).

4.3.6 Profile Likelihood Confidence Intervals

For confidence intervals for multiparameter models, especially useful is theprofile likelihood approach. It is based on inverting likelihood-ratio tests for the various possible null values of𝛽, regarding the other parameters𝝍 in the model asnuisance parameters. In inverting a likelihood-ratio test ofH0:𝛽=𝛽0 to check whether𝛽0

belongs in the confidence interval, the ML estimate 𝝍̂(𝛽0) of 𝝍 that maximizes the likelihood under the null varies as𝛽0does. Theprofile log-likelihood functionis L(𝛽0,𝝍̂(𝛽0)), viewed as a function of𝛽0. For each𝛽0this function gives the maximum of the ordinary log-likelihood subject to the constraint𝛽 =𝛽0. Evaluated at𝛽0= ̂𝛽, this is the maximized log likelihoodL(̂𝛽,𝝍̂), which occurs at the unrestricted ML estimates. Theprofile likelihood confidence intervalfor𝛽is the set of𝛽0for which

−2[L(𝛽0,𝝍̂(𝛽0))−L(̂𝛽,𝝍̂)]< 𝜒12(𝛼).

The interval contains all𝛽0not rejected in likelihood-ratio tests of nominal size𝛼. The profile likelihood interval is more complex to calculate than the Wald interval, but it is available in software13.

Một phần của tài liệu Hướng dẫn xây dựng mô hình tuyến tính và tuyến tính suy diễn (Trang 144 - 148)

Tải bản đầy đủ (PDF)

(472 trang)