Docsity

Generalized Linear Models - Homework 1 | STA 7249, Assignments of Biostatistics

Toggle sidebar
bg1
STA 7249: Generalized Linear Models
Spring 2008: Assignment 1
Due Tuesday, Feb 5, 2008
1. This problem concerns the Inverse Gaussian distribution. Let Φ denote the standard
normal CDF and consider the function
F(y) =
0, y ≤0,
Φqλ
y−1 + y
µ+e2λ/µΦ−qλ
y1 + y
µ, y > 0.
(a) Show that Fhas density fgiven by
f(y) =
0, y ≤0,
λ
2πy31/2expn−λ(y−µ)2
2µ2yo, y > 0.
(b) Show that the density can be written in exponential dispersion form. Identify:
the canonical parameter θand the dispersion parameter φ(in terms of λand µ);
the cumulant function, b(θ); the canonical link; and the variance function for this
model.
2. The idea behind this exercise is to walk you through a way to construct an exponential
dispersion family and to derive some basic properties of such a family. The properties
that you will derive (and particularly the results of parts 2e through 2g) can be derived
directly from the form of the exponential dispersion distribution given in class, so
the construction given here is arguably just a curiosity, though it is at least a fairly
interesting curiosity. We begin with a review of some basic terminology and results.
Let Qrepresent a probability distribution (i.e., a probability measure) on (R,R),
where Rrepresents the Borel subsets of R, and let Ybe a random variable with
distribution Q, i.e., P(Y∈A) = Q(A), A∈R. (Don’t worry too much if you don’t
know about the Borel sets: suffice it to say that not all subsets A⊂Rare Borel sets,
but you’re unlikely to come up with one that isn’t without working pretty hard at it.)
The moment generating function (mgf) of Q(or equivalently of Y) is defined to be
M(t) = E(etY ) = Rety Q(dy). Because ety >0, this integral is well-defined for all t,
but it may be infinite. Let Θ={t:M(t)<∞}. Of course M(0) = 1 and thus 0 ∈Θ
is assured.
(a) Show that Θis a convex subset of R.◦
The only convex, nonempty subsets of Rare intervals (here we count a singleton
{t}as an interval through the representation {t}= [t, t]), and hence Θis an interval.
It can be shown (see Billingsley, Probability and Measure, 3rd edn) that M(t) is dif-
ferentiable at all t∈Θ◦(the interior of θ) and that its derivatives can be computed
by differentiating across the expectation, i.e., M(j)(t) = E(YjetY ) for all t∈Θ◦. If
1
pf3
pf4
pf5

Partial preview of the text

Download Generalized Linear Models - Homework 1 | STA 7249 and more Assignments Biostatistics in PDF only on Docsity!

STA 7249: Generalized Linear Models

Spring 2008: Assignment 1

Due Tuesday, Feb 5, 2008

  1. This problem concerns the Inverse Gaussian distribution. Let Φ denote the standard normal CDF and consider the function

F (y) =

0 , y ≤ 0 ,

Φ

λ y

−1 + yμ

  • e^2 λ/μΦ

λ y

1 + (^) μy

, y > 0.

(a) Show that F has density f given by

f (y) =

0 , y ≤ 0 , ( λ 2 πy^3

exp

−λ(y−μ)

2 2 μ^2 y

, y > 0.

(b) Show that the density can be written in exponential dispersion form. Identify: the canonical parameter θ and the dispersion parameter φ (in terms of λ and μ); the cumulant function, b(θ); the canonical link; and the variance function for this model.

  1. The idea behind this exercise is to walk you through a way to construct an exponential dispersion family and to derive some basic properties of such a family. The properties that you will derive (and particularly the results of parts 2e through 2g) can be derived directly from the form of the exponential dispersion distribution given in class, so the construction given here is arguably just a curiosity, though it is at least a fairly interesting curiosity. We begin with a review of some basic terminology and results. Let Q represent a probability distribution (i.e., a probability measure) on (R, R), where R represents the Borel subsets of R, and let Y be a random variable with distribution Q, i.e., P (Y ∈ A) = Q(A), A ∈ R. (Don’t worry too much if you don’t know about the Borel sets: suffice it to say that not all subsets A ⊂ R are Borel sets, but you’re unlikely to come up with one that isn’t without working pretty hard at it.) The moment generating function (mgf) of Q (or equivalently of Y ) is defined to be M (t) = E(etY^ ) =

ety^ Q(dy). Because ety^ > 0, this integral is well-defined for all t, but it may be infinite. Let Θ = {t : M (t) < ∞}. Of course M (0) = 1 and thus 0 ∈ Θ is assured.

(a) Show that Θ is a convex subset of R. ◦

The only convex, nonempty subsets of R are intervals (here we count a singleton {t} as an interval through the representation {t} = [t, t]), and hence Θ is an interval. It can be shown (see Billingsley, Probability and Measure, 3rd edn) that M (t) is dif- ferentiable at all t ∈ Θ◦^ (the interior of θ) and that its derivatives can be computed by differentiating across the expectation, i.e., M (j)(t) = E(Y j^ etY^ ) for all t ∈ Θ◦. If

0 ∈ Θ◦, then Y has finite moments of all orders given by E(Xj^ ) = M (j)(0) and its dis- tribution Q is determined (i.e., uniquely identified) by either of its moment generating function or its sequence of moments.

Henceforth we will assume that 0 ∈ Θ◦. The cumulant generating function (cgf) of Q (or Y ) is defined to be K(t) = log M (t). Since M (t) > 0 for all t, the set of values t for which K(t) is finite is exactly Θ. Of course since M (t) = eK(t)^ determines the distribution, so does K(t). The jth cumulant of the distribution Q is most easily defined as κj = K(j)(0) (this is guaranteed to work only because we have assumed 0 ∈ Θ◦). If αj = EY j^ represents the jth moment of Y and μj = E[(Y − μ)j^ ] its jth central moment (where μ = α 1 represents the mean), then it is easily shown that the first few cumulants are given by

κ 1 = α 1 = μ 1 = μ (the mean) κ 2 = α 2 − α 12 = μ 2 = σ^2 (the variance) κ 3 = α 3 − 3 α 1 α 2 + 2α^31 = μ 3 κ 4 = α 4 − 4 α 1 α 3 − 3 α^22 + 12α^21 α 2 − 6 α 14 = μ 4 − 3 μ^22.

Obviously we could similarly express the moments in terms of the cumulants, so the distribution Q is determined by its cumulants. In particular, the normal distribution is characterized by the fact that all its cumulants of order three and higher are zero. For what its worth, the coefficients of skewness and kurtosis are defined to be κ 3 /κ^32 / 2 = μ 3 /σ^3 and κ 4 /κ^22 = μ 4 /σ^4 − 3, respectively, and of course these are both zero for a normal distribution.

We now outline Jørgensen’s construction of an exponential dispersion family. Let Q∗^ be a probability distribution on R with cumulant generating function b(t), let Θ = {t : b(t) < ∞}, and let

Λ = {λ > 0 : ∃ a probability distribution Q∗ λ with cgf λb(t)}.

The set Λ of allowable values of λ is called the index set. Of course Q∗ 1 = Q∗.

(b) Prove that if λi ∈ Λ, i = 1,... , n, then λ. =

∑n i=1 λi^ ∈^ Λ, i.e.,^ Λ^ is closed under the formation of (finite) sums. In particular, since 1 ∈ Λ, this implies that { 1 , 2 ,... } ⊂ Λ. Hint: Consider X. =

∑n i=1 Xi, where^ X^1 ,... , Xn^ are independent with Xi ∼ Q∗ λi. ◦

Now for λ ∈ Λ and θ ∈ Θ, let Q∗ λ,θ be the distribution having density exθ−λb(θ)^ with respect to Q∗ λ, i.e.,

Q∗ λ,θ(A) =

A

exθ−λb(θ)^ Q∗ λ(dx), A ∈ R. (1)

(c) Verify that Q∗ λ,θ is a probability distribution for all θ ∈ Θ and λ ∈ Λ and find its cumulant generating function. Hint: Since exθ−λb(θ)^ is a nonnegative, measurable function of x, (1) defines a measure on (R, R). Thus, to verify that Q∗ λ,θ is a probability distribution you need only show that Q∗ λ,θ(R) = 1. ◦

The family of distributions so defined, {Qφ,θ : 1/φ ∈ Λ, θ ∈ Θ}, is called an exponential dispersion (ED) family, and Jørgensen writes Y ∼ ED(θ, φ). Again, Λ is called the index set and Θ is called the canonical parameter domain. Equation (2) says that Qφ,θ has density exp{[yθ − b(θ)]/φ} with respect to Qφ. To see more clearly the connection with the expression given in class for a density of the exponential dispersion form, we consider the two most important special cases:

  • If Q∗ λ has density a∗(x; λ) with respect to Lebesgue measure, then Qφ has density a(y; φ) = (1/φ)a∗(y/φ; 1/φ) with respect to Lebesgue measure (you can check this using the usual Jacobian stuff applied to the transformation x 7 → y = φx with φ = 1/λ). Thus in this case,

Qφ,λ(A) =

A

exp

yθ − b(θ) φ

a(y; φ) dx =

A

exp

yθ − b(θ) φ

  • c(y; φ)

dx

where c(y; φ) = log a(y; φ), i.e., Qφ,λ has density

f (y; θ, φ) = exp

yθ − b(θ) φ

  • c(y; φ)

with respect to Lebesgue measure.

  • If Q∗ λ has probability mass function a∗(x; λ) defined on some countable subset D of R (or to put it more abstractly, if Q∗ λ has density a∗(x; λ) with respect to counting measure on D), then Qφ has probability mass function a(y; φ) = a∗

y/φ; 1/φ) for y in the set φD = {φx : x ∈ D} (you can check this directly). Thus in this case Qφ,θ has probability mass function

f (y; θ, φ) = exp

yθ − b(θ) φ

a(y; φ) = exp

yθ − b(θ) φ

  • c(y; φ)

, x ∈ φD,

where again, c(y; φ) = log a(y; φ).

(f) Suppose that Y 1 ,... , Yn are independent, with Yi ∼ Qφi,θ, where φi = φ/wi and θ ∈ Θ◦. Let w. =

∑n i=1 wi^ and let Y˜^ = (1/w.)^

∑n i=1 wiYi^ be the weighted average of the Yis. Show that Y˜ ∼ Qφ/w.,θ. Hint: Use the result of part 2d. (g) Part 2f implies in particular that if Y 1 ,... , Yn ∼ i.i.d.Qφ,θ, θ ∈ Θ◦, then Yn = (1/n)

∑n i=1 Yi^ ∼^ Qφ/n,θ. Use this to argue that if^ Y^ ∼^ Qφ,θ,^ θ^ ∈^ Θ ◦, then

Y − μ √ φV (μ)

d −→ N (0, 1) as φ ↓ 0. (4)

In other words, for small φ, an exponential dispersion distribution can be approx- imated by a normal distribution with mean μ and variance φV (μ). Hint: Appeal to the central limit theorem. The resulting argument does not provide a completely rigorous proof of (4), so you should not worry too much about that. A rigorous proof can be constructed using the mgf.

  1. Suppose Y ∼ Gamma(μ, φ) (in terms of the usual (α, β) = (shape, scale) parametriza- tion, μ = αβ and φ = 1/α). Note that Y has an exponential distribution when φ = 1 In this problem you are asked in several places to plot the density of X = h(Y ) for some smooth, strictly monotone function h. Recall that

fX (x) = fY (y)

dy dx

∣ =^ fY (h−^1 (x))

d dx

h−^1 (x)

∣ =^ fY (h−^1 (x))^

∣h′

h−^1 (x)

For plotting purposes, there is no need to actually work with h−^1 (x). Rather we plot

fY (y)/

∣h′(y)

∣ (^) on the vertical axis against h(y) on the horizontal

for an appropriate range of y values. Note that for a given y value, if x = h(y), then y = h−^1 (x) and thus ( h(y), fY (y)/

∣h′(y)

x, fY

h−^1 (x)

∣h′

h−^1 (x)

which justifies our method of plotting.

(a) Show that the density of Y /μ does not depend on the value of μ. This will be useful in parts (b), (d), and (e) because it implies that the graphs there do not depend on the value of μ. (b) Evaluate the normal approximation to the distribution of Y by plotting the density of (Y − μ)/

φμ for various values of φ. (c) Derive the moment generating function of X = log Y and hence find formulas for E(X) and var(X). (d) Plot the density of (X − E(X))/

var(X) for the values of the dispersion pa- rameter considered in part (a). Hence evaluate the normal approximation to the distribution of X. (e) Plot the density of the signed (and scaled) likelihood root statistic

r = sign(Y − μ)

φ

− log

Y

μ

Y − μ μ

for the values of the dispersion parameter considered in part (a). Hence evaluate the normal approximation to the distribution of r. (Note that r is the scaled deviance residual for a single observation, but using the true value of μ rather than ˆμ.)