General Linear Test of a General Linear Hypothesis. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 35

Similar documents
2. A Review of Some Key Linear Models Results. Copyright c 2018 Dan Nettleton (Iowa State University) 2. Statistics / 28

Likelihood Ratio Test of a General Linear Hypothesis. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 42

Scheffé s Method. opyright c 2012 Dan Nettleton (Iowa State University) Statistics / 37

Estimating Estimable Functions of β. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 17

Distributions of Quadratic Forms. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 31

The Gauss-Markov Model. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 61

Constraints on Solutions to the Normal Equations. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 41

ML and REML Variance Component Estimation. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 58

Estimable Functions and Their Least Squares Estimators. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 51

Miscellaneous Results, Solving Equations, and Generalized Inverses. opyright c 2012 Dan Nettleton (Iowa State University) Statistics / 51

ANOVA Variance Component Estimation. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 32

3. The F Test for Comparing Reduced vs. Full Models. opyright c 2018 Dan Nettleton (Iowa State University) 3. Statistics / 43

ANOVA Variance Component Estimation. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 32

The Aitken Model. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 41

Estimation of the Response Mean. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 27

Preliminary Linear Algebra 1. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 100

Xβ is a linear combination of the columns of X: Copyright c 2010 Dan Nettleton (Iowa State University) Statistics / 25 X =

Preliminaries. Copyright c 2018 Dan Nettleton (Iowa State University) Statistics / 38

When is the OLSE the BLUE? Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 40

Linear Mixed-Effects Models. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 34

THE ANOVA APPROACH TO THE ANALYSIS OF LINEAR MIXED EFFECTS MODELS

Ch 3: Multiple Linear Regression

Determinants. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 25

Lecture 1: Linear Models and Applications

11 Hypothesis Testing

11. Linear Mixed-Effects Models. Copyright c 2018 Dan Nettleton (Iowa State University) 11. Statistics / 49

STAT5044: Regression and Anova. Inyoung Kim

Ma 3/103: Lecture 24 Linear Regression I: Estimation

Ch 2: Simple Linear Regression

3. For a given dataset and linear model, what do you think is true about least squares estimates? Is Ŷ always unique? Yes. Is ˆβ always unique? No.

Peter Hoff Linear and multilinear models April 3, GLS for multivariate regression 5. 3 Covariance estimation for the GLM 8

The outline for Unit 3

STAT 540: Data Analysis and Regression

Generalized Linear Models

20. REML Estimation of Variance Components. Copyright c 2018 (Iowa State University) 20. Statistics / 36

Problems. Suppose both models are fitted to the same data. Show that SS Res, A SS Res, B

Matrix Approach to Simple Linear Regression: An Overview

Simple and Multiple Linear Regression

BIOS 2083 Linear Models c Abdus S. Wahed

General Linear Model: Statistical Inference

Financial Econometrics

Lecture 15. Hypothesis testing in the linear model

Lecture 6 Multiple Linear Regression, cont.

Lecture 6: Linear models and Gauss-Markov theorem

The Multivariate Normal Distribution. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 36

Chapter 5 Matrix Approach to Simple Linear Regression

Ma 3/103: Lecture 25 Linear Regression II: Hypothesis Testing and ANOVA

Weighted Least Squares

Part IB Statistics. Theorems with proof. Based on lectures by D. Spiegelhalter Notes taken by Dexter Chua. Lent 2015

Basic Distributional Assumptions of the Linear Model: 1. The errors are unbiased: E[ε] = The errors are uncorrelated with common variance:

Formulary Applied Econometrics

A Note on UMPI F Tests

Simple linear regression

Maximum Likelihood Estimation

Well-developed and understood properties

TMA4267 Linear Statistical Models V2017 (L10)

Linear models and their mathematical foundations: Simple linear regression

Topic 7 - Matrix Approach to Simple Linear Regression. Outline. Matrix. Matrix. Review of Matrices. Regression model in matrix form

Associated Hypotheses in Linear Models for Unbalanced Data

Biostatistics 533 Classical Theory of Linear Models Spring 2007 Final Exam. Please choose ONE of the following options.

Generalized Linear Mixed-Effects Models. Copyright c 2015 Dan Nettleton (Iowa State University) Statistics / 58

3. (a) (8 points) There is more than one way to correctly express the null hypothesis in matrix form. One way to state the null hypothesis is

Inverse of a Square Matrix. For an N N square matrix A, the inverse of A, 1

Summer School in Statistics for Astronomers V June 1 - June 6, Regression. Mosuk Chow Statistics Department Penn State University.

Linear Models and Estimation by Least Squares

MISCELLANEOUS TOPICS RELATED TO LIKELIHOOD. Copyright c 2012 (Iowa State University) Statistics / 30

14 Multiple Linear Regression

STAT200C: Review of Linear Algebra

Math 3330: Solution to midterm Exam

The Multivariate Normal Distribution. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics / 36

4 Multiple Linear Regression

Lecture 14 Simple Linear Regression

[y i α βx i ] 2 (2) Q = i=1

Multivariate Regression

18.S096 Problem Set 3 Fall 2013 Regression Analysis Due Date: 10/8/2013

Linear Models Review

Lecture 7: September 17

Matrix Algebra, Class Notes (part 2) by Hrishikesh D. Vinod Copyright 1998 by Prof. H. D. Vinod, Fordham University, New York. All rights reserved.

Chapter 8: Hypothesis Testing Lecture 9: Likelihood ratio tests

Math 5305 Notes. Diagnostics and Remedial Measures. Jesse Crawford. Department of Mathematics Tarleton State University

Econ 620. Matrix Differentiation. Let a and x are (k 1) vectors and A is an (k k) matrix. ) x. (a x) = a. x = a (x Ax) =(A + A (x Ax) x x =(A + A )

13. The Cochran-Satterthwaite Approximation for Linear Combinations of Mean Squares

2.7 Estimation with linear Restriction

Sampling Distributions

Matrix Algebra, part 2

Regression and Statistical Inference

Homework 2: Simple Linear Regression

The Standard Linear Model: Hypothesis Testing

STAT 3A03 Applied Regression With SAS Fall 2017

This model of the conditional expectation is linear in the parameters. A more practical and relaxed attitude towards linear regression is to say that

Mathematics I. Exercises with solutions. 1 Linear Algebra. Vectors and Matrices Let , C = , B = A = Determine the following matrices:

COMPLETELY RANDOMIZED DESIGNS (CRD) For now, t unstructured treatments (e.g. no factorial structure)

Linear Algebra Review

Biostatistics 533 Classical Theory of Linear Models Spring 2007 Final Exam. Please choose ONE of the following options.

Chapter 14. Linear least squares

Multiple Linear Regression

21. Best Linear Unbiased Prediction (BLUP) of Random Effects in the Normal Linear Mixed Effects Model

Applied Regression Analysis

Chapter 7, continued: MANOVA

I i=1 1 I(J 1) j=1 (Y ij Ȳi ) 2. j=1 (Y j Ȳ )2 ] = 2n( is the two-sample t-test statistic.

Transcription:

General Linear Test of a General Linear Hypothesis Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 1 / 35

Suppose the NTGMM holds so that y = Xβ + ε, where ε N(0, σ 2 I). opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 2 / 35

Suppose C is a known q p matrix and d is a known q 1 vector. The general linear hypothesis H 0 : Cβ = d is testable if rank(c) = q and each component of Cβ is estimable. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 3 / 35

Suppose p m A of rank s. Can H 0 : β C(A) be written as a testable general linear hypothesis? Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 4 / 35

β C(A) P A β = β β P A β = 0 (I P A )β = 0 w 1. w p s β = 0, where w 1,..., w p s form a basis for C((I P A ) ) = C(I P A ). Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 5 / 35

Suppose y ijk = µ + α i + β j + γ ij + ε ijk, i = 1, 2; j = 1, 2; k = 1,..., n ij. µ α 1 α 2 β 1 Let β = β 2. γ 11 γ 12 γ 21 γ 22 Write a testable general linear hypothesis for no interaction. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 6 / 35

In this case, no interaction means E(y 11k ) E(y 12k ) = E(y 21k ) E(y 22k ) E(y 11k ) E(y 12k ) E(y 21k ) + E(y 22k ) = 0 µ + α 1 + β 1 + γ 11 (µ + α 1 + β 2 + γ 12 ) (µ + α 2 + β 1 + γ 21 ) + (µ + α 2 + β 2 + γ 22 ) = 0 γ 11 γ 12 γ 21 + γ 22 = 0. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 7 / 35

Thus, H 0 : Cβ = 0 is testable GLH of no interaction if C = [0, 0, 0, 0, 0, 1, 1, 1, 1] because C is 1 p is of rank 1 and Cβ = γ 11 γ 12 γ 21 + γ 22 = E(y 111 ) E(y 121 ) E(y 211 ) + E(y 221 ) is estimable as a LC of elements of E(y). Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 8 / 35

Suppose H 0 : Cβ = d is testable. Find the distribution of the BLUE of Cβ. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 9 / 35

Cˆβ = C(X X) X y N(Cβ, σ 2 C(X X) C ) where C(X X) C is a PD q q matrix of rank q based on previous results. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 10 / 35

Find the distribution of (Cˆβ d) (σ 2 C(X X) C ) 1 (Cˆβ d). opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 11 / 35

By Result 5.10, the distribution is χ 2 q(φ), where φ = 1 2 (Cβ d) (σ 2 C(X X) C ) 1 (Cβ d) = 1 2σ 2 (Cβ d) (C(X X) C ) 1 (Cβ d). opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 12 / 35

Show that Cˆβ and SSE are independent. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 13 / 35

[ŷ ] ˆε = [ P X y (I P X )y ([ PX ] N I P X ([ ] Xβ N 0 ] = Thus, ŷ and ˆε are independent. [ PX Xβ, I P X [ PX ] y I P X ], σ 2 [ PX 0 0 I P X [ ] ) σ 2 I P X I P X ]). Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 14 / 35

Cβ estimable = A C = AX. Cˆβ = C(X X) X y = AX(X X) X y = AP X y = Aŷ. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 15 / 35

SSE = ˆε ˆε. Cˆβ is a function of only ŷ and SSE a function of only ˆε, Cˆβ and SSE are independent. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 16 / 35

We could alternatively have used Result 5.16: C(X X) X (σ 2 I)(I P X ) = σ 2 C(X X) X (I P X ) = σ 2 C(X X) (X X P X ) = σ 2 C(X X) (X X ) = 0. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 17 / 35

Now note that independence of Cˆβ and SSE = (Cˆβ d) (σ 2 C(X X) C ) 1 (Cˆβ d) are independent. and SSE σ 2 (n r) = y (I P X )y σ 2 = ˆσ2 (n r) σ 2 Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 18 / 35

We have previously shown that SSE σ 2 χ 2 n r. Thus, and (n r)ˆσ 2 σ 2 χ 2 n r ˆσ 2 σ 2 χ2 n r/(n r). Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 19 / 35

It follows that (Cˆβ d) (σ 2 C(X X) C ) 1 (Cˆβ d)/q ˆσ 2 /σ 2 = (Cˆβ d) (C(X X) C ) 1 (Cˆβ d) qˆσ 2 F q,n r (φ), F where opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 20 / 35

as defined previously. φ = 1 2σ 2 (Cβ d) (C(X X) C ) 1 (Cβ d) We can use F to test H 0 : φ = 0 H 0 : Cβ d = 0 ( (C(X X) C ) 1 is PD.) H 0 : Cβ = d. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 21 / 35

To test H 0 : Cβ = d at level α, we reject H 0 iff F F q,n r,α where F q,n r,α is the upper α quantile of the F q,n r distribution. By Result 5.13, the power of the test is a strictly increasing function of φ. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 22 / 35

Now suppose that H 0 : c β = d is testable. By arguments analogous to the previous F case, it is straightforward to show that ( ) c ˆβ d t ˆσ 2 c (X X) c t c β d n r. σ 2 c (X X) c Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 23 / 35

We can conduct tests of H 0 : c β = d against H A1 : c β < d H A2 : c β > d, H A : c β d or by comparing the observed value of t to the t n r distribution. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 24 / 35

Returning to the F-test of testable GLH H 0 : Cβ = d, note that there are multiple ways to express the same null hypothesis. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 25 / 35

For example, suppose y ij = µ i + ε ij (i = 1, 2, 3; j = 1,..., n i ). Find different matrices C 1, C 2 and C 3 C k µ 1 µ 2 µ 3 = 0 µ 1 = µ 2 = µ 3 k = 1, 2, 3. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 26 / 35

[ ] [ ] 1 1 0 µ1 µ 2 C 1 =, C 1 µ = 1 0 1 µ 1 µ 3 [ ] [ ] 1 1 0 µ1 µ 2 C 2 =, C 2 µ = 0 1 1 µ 2 µ 3 [ ] [ ] 1 1 0 µ1 µ 2 C 3 =, C 3 µ =. µ 1/2 1/2 1 1 +µ 2 2 µ 3 opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 27 / 35

Suppose H 01 : C 1 β = d 1 and H 02 : C 2 β = d 2 are both testable and S 1 {β : C 1 β = d 1 } = {β : C 2 β = d 2 } S 2. Show that the F-test of H 01 is the same as the F-test of H 02. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 28 / 35

Recall that X = X P X = X X(X X) X. Thus, X(X X) is a GI of X X. It follows that C k (C kc k ) is a GI of C k. Thus, S k = {C k(c k C k) d k + (I C k(c k C k) C k )z : z R p } for k = 1, 2. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 29 / 35

Because S 1 = S 2, C 1 times any element of S 2 equal d 1 ; i.e., β S 2 = C 1 β = d 1. Thus C 1 [C 2(C 2 C 2) d 2 + (I C 2(C 2 C 2) C 2 )z] = d 1 z R p = C 1 C 2(C 2 C 2) d 2 d 1 + (C 1 C 1 C 2(C 2 C 2) C 2 )z = 0 z R p = C 1 = C 1 C 2(C 2 C 2) C 2 and C 1 C 2(C 2 C 2) d 2 = d 1 by Result A.8. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 30 / 35

Now C 1 = C 1 C 2(C 2 C 2) C 2 = C 1 = C 1 P C 2 = C 1 = P C 2 C 1 = C(C 1) C(P C 2 ) = C(C 2). Repeating the entire argument with the roles of C 1 and C 2 reversed gives C(C 2) C(C 1) so that C(C 2) = C(C 1). Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 31 / 35

Because C 1 β = d 1 and C 2 β = d 2 are both testable, C 1 and C 2 are both full-column rank = q. a unique nonsingular matrix q q B C 1 = C 2B. We have previously shown that C 1 = P C 2 C 1 = C 2[(C 2 C 2) ] C 2 C 1. Thus, B = [(C 2 C 2) ] C 2 C 1 and B = C 1 C 2(C 2 C 2). Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 32 / 35

We have also shown previously that C 1 C 2(C 2 C 2) d 2 = d 1 = B d 2 = d 1. Copyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 33 / 35

Now consider the quadratic form (C 1 b d 1 ) (C 1 (X X) C 1) 1 (C 1 b d 1 ) = (B C 2 b B d 2 ) (B C 2 (X X) C 2B) 1 (B C 2 b B d 2 ) = (C 2 b d 2 ) BB 1 (C 2 (X X) C 2) 1 (B ) 1 B (C 2 b d 2 ) = (C 2 b d 2 ) (C 2 (X X) C 2) 1 (C 2 b d 2 ). This is true for b R p including ˆβ and the true parameter vector β. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 34 / 35

the F statistics for testing H 01 : C 1 β = d 1 and H 02 : C 2 β = d 2 are identical, as are the noncentrality parameters associated with those F statistics. opyright c 2012 Dan Nettleton (Iowa State University) Statistics 611 35 / 35