


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!



Due Thursday, January 22, 2009.
The first few exercises are meant to familiarize you with some matrix operations that are the basis for the analyis used throughout the course. Future homeworks will not involve matrix algebra problems like these except where relevant.
( 3 − 10 4 8
) , B =
( 5 9 − 4 6
) .
(a) Verify that |A||B| = |AB|. (b) Verify that |A| = 1/|A−^1 |. (c) Verify that tr(AB) = tr(BA).
var(c 1 Y 1 + c 2 Y 2 ) = c^21 σ^21 + c^22 σ^22 + 2c 1 c 2 σ 12.
(b) Let Y =
( Y 1 Y 2
) .
Write down the covariance matrix Σ of Y. (c) Let
c =
( c 1 c 2
) .
Verify that var(c′Y ) = c′Σc (bottom of p. 45 of the notes) by evaluating each side of this equation and showing that they are equivalent. The covariance matrix of a linear combination of elements of a random vector is of routine interest in longitudinal analysis.
( c 11 c 12 c 21 c 22
) .
(a) Find CY and var(CY ) using results from Problem 1 and the definition of covariance. (b) By doing the matrix multiplication CΣC′, show that var(CY ) = CΣC′^ as on p. 46 of the notes, where Σ is the matrix you found in Problem 1(b). The covariance matrix of a general linear function of elements of a random vector is of routine interest in longitudinal analysis.
Yij = μ + bi + eij , where i = 1,... , m and j = 1,... , n, bi ∼ N (0, σ^2 b ), eij ∼ N (0, σ^2 e ), bi and eij are statistically independent for each i and j, and eij and eik are statistically independent for any two values j, k = 1,... , n. Find the variance of Yij and the covariance and correlation between any two values Yij and Yik, j 6 = k. (b) Let n = 3, and define
Y (^) i =
Yi 1 Yi 2 Yi 3
.
Find the covariance matrix of Y (^) i, and express it in terms of a (3 × 3) identity matrix and the (3 × 3) matrix J whose elements are all equal to 1. (c) Show that the covariance matrix in (b) is of the form of one of the popular models in Section 4.4 of the notes by finding the associated correlation matrix and identifying to which popular model it corresponds. We will see that this covariance matrix plays a special role.
, μ =
μ 1 μ 2 μ 3 μ 4 μ 5
(a) Suppose that we are interested in the null hypothesis H 0 : μ 1 − μ 2 = 0, μ 1 − μ 3 = 0, μ 1 − μ 4 = 0, μ 1 − μ 5 = 0, which may be written alternatively as
μ 1 − μ 2 μ 1 − μ 3 μ 1 − μ 4 μ 1 − μ 5
=^0 ,
where 0 is a (4 × 1) vector of zeros. Give an appropriate matrix L so that H 0 may be written in the form H 0 : Lμ = 0. (b) Now find an appropriate matrix L corresponding to the null hypothesis H 0 : μ 1 − μ 2 = 0, μ 2 − μ 3 = 0, μ 3 − μ 4 = 0, μ 4 − μ 5 = 0. Do the hypotheses in (a) and (b) address the same issue or different issues? Explain. (c) Find the matrix U such that you can express the hypothesis in (b) in the form H 0 : μ′U = 0 ′; note that now 0 ′^ is a (1 × 4) vector, so H 0 is being expressed as a row vector instead of a column vector. (d) Now suppose we are interested in the null hypothesis H 0 : μ 1 − (μ 2 + μ 3 + μ 4 + μ 5 )/4 = 0, μ 2 − (μ 3 + μ 4 + μ 5 )/3 = 0, μ 3 − (μ 4 + μ 5 )/2 = 0, μ 4 − μ 5 = 0. Re-express H 0 in the form H 0 : μ′U = 0 ′^ by finding the appropriate matrix U. We will see that this way of expressing hypotheses about the elements of a mean vector is standard for the ANOVA methods we will discuss and is used by SAS and other software for setting up hypotheses of interest.
class gender; model distance = gender age gender*age / solution; (f) From the output, identify and write down the estimates of the βs in model (2) and their estimated standard errors. Similarly, identify and write down the estimates of the αs in model (3) and their estimated standard errors. Verify that the correspondences between the βs and αs you found in (b) are satisfied by the estimated values. (g) Can you give a numerical estimate and standard error from either of these models of a quantity that addresses the question of whether the “rate of change” of distance over age is similar for boys and girls? If so, write down these values. If not, explain why not. In later chapters, we will consider regression models for longitudinal data and different ways to write them that are similar to those above. It will be interesting to compare the analyses above to the proper longitudinal analyses we will consider. You will want to refer back to this problem when we get to this part of the course.