Docsity

Assignment 1 for Generalized Linear Models | STA 7249, Assignments of Biostatistics

Toggle sidebar
bg1
STA 7249: Generalized Linear Models
Spring 2007: Assignment 1
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 1e through 1g) could be
derived directly from the form of the exponential dispersion distribution given in class,
so the construction given here is arguably just a curiosity. However, it is a fairly
interesting curiosity and should make for a fun exercise. 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 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
0∈Θ◦, then Yhas finite moments of all orders given by E(Xj) = M(j)(0) and its dis-
tribution Qis 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 tfor 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 Qis most easily defined as κj=K(j)(0) (this is
guaranteed to work only because we have assumed 0 ∈Θ◦). If αj=EY jrepresents
the jth moment of Yand µ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−α2
1=µ2=σ2(the variance)
κ3=α3−3α1α2+ 2α3
1=µ3
κ4=α4−4α1α3−3α2
2+ 12α2
1α2−6α4
1=µ4−3µ2
2.
1
pf3
pf4
pf5

Partial preview of the text

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

STA 7249: Generalized Linear Models

Spring 2007: Assignment 1

  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 1e through 1g) could be derived directly from the form of the exponential dispersion distribution given in class, so the construction given here is arguably just a curiosity. However, it is a fairly interesting curiosity and should make for a fun exercise. 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 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 method exemplified by (1), of generating a family of distributions Q∗ λ,θ from a single distribution Q∗ λ, is called (exponential) tilting. Of course in the present case, because λ also varies over Λ, we have defined a two-parameter family of distributions, {Q∗ λ,θ : λ ∈ Λ, θ ∈ Θ}. Jørgensen calls this an ED∗^ family and writes X ∼ ED∗(θ, λ) (ED is for “exponential dispersion” and the star suggests that we’re not done yet).

(d) Suppose that X 1 , · · · , Xn are independent, with Xi ∼ Q∗ λi,θ, λ 1 , · · · , λn ∈ Λ, θ ∈ Θ◦. Prove that X. =

∑n i=1 Xi^ ∼^ Q ∗ λ.,θ where^ λ.^ =^

∑n i=1 λi.

Now suppose that X ∼ Q∗ λ,θ and let Y = X/λ and φ = 1/λ, and let Qφ,θ represent the distribution of Y. Then, by the general change of variable formula (see, e.g., Theorem 16.13 of Billingsley, Probabilty and Measure (3rd edition), p. 216),

Qφ,θ(A) =

A

exp

yθ − b(θ) φ

Qφ(A), (2)

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. 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 1d. (g) Part 1f implies in particular that if Y 1 ,... , Yn ∼ i.i.d.Qφ,θ, then Y = (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(μ, φ). Note that Y has an exponential distribution when φ = 1, and that the density of Y /μ does not depend on the value of μ. This is important in parts (a), (c), and (d).

(a) Evaluate the normal approximation to the distribution of Y by plotting the density of (Y − μ)/

φμ for various values of φ. (b) Derive the moment generating function of X = log Y and hence find formulas for E(X) and var(X). (c) 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. (d) 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.

  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. Let X 1 ,... , Xn be an i.i.d. sample from the negative binomial distribution, NB(μ, α), i.e., with common probability mass function

f (y; μ, α) =

Γ(α + y) y! Γ(α)

α α + μ

)α( 1 −

α α + μ

)y , y = 0, 1 , 2 ,....

Note: if α is a positive integer, then this is just the usual negative binomial with sucess probability p = α/(α + μ), i.e., the distribution of the number of failures prior to the αth success in a sequence of independent Bernoulli trials with sucess probability p.

(a) Assuming that α is known, show that f (y; μ, α) is an exponential dispersion family and identify the canonical parameter θ as a function of μ and α. (Note that when α is unknown, NB(μ, α) is not an exponential dispersion family.) (b) Find the MLE for θ when α is known. (c) Derive the ML estimating equation for α when θ is known. (d) Describe an algorithm for finding the MLE (θ,ˆ αˆ). (e) The number of species of fish in 70 lakes around the world are given in the dataset “Fish counts” available from the class website. Test the goodness-of-fit of a Poisson distribution to these counts. (f) Write an R program to fit a negative binomial distribution to the counts. Email your program to the course TA in a form that he can run. The output from the program should include the results of each iteration.