lecture 5

80
Lecture 5

Upload: holli

Post on 05-Jan-2016

38 views

Category:

Documents


0 download

DESCRIPTION

Lecture 5. Linear Models for Correlated Data: Inference. Inference. Estimation Methods Weighted Least Squares (WLS) (V i known) Maximum Likelihood (V i unknown) Restricted Maximum Likelihood (V i unknown) Robust Estimation (V i unknown) Hypothesis Testing - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Lecture 5

Lecture 5

Page 2: Lecture 5

Linear Models for Correlated Data: Inference

Page 3: Lecture 5

Inference

• Estimation Methods– Weighted Least Squares (WLS)

(Vi known)

– Maximum Likelihood (Vi unknown)

– Restricted Maximum Likelihood (Vi unknown)

– Robust Estimation (Vi unknown)

• Hypothesis Testing• Example: Growth of Sitka Trees

Page 4: Lecture 5

Weighted-Least Squares Estimation

Page 5: Lecture 5

Weighted-Least Squares Estimation (cont’d)

Page 6: Lecture 5

Weighted-Least Squares Estimation (cont’d)

Page 7: Lecture 5

Weighted-Least Squares Estimation (cont’d)

Page 8: Lecture 5

Weighted-Least Squares Estimation (cont’d)

Page 9: Lecture 5

Weighted-Least Squares Estimation (cont’d)

Page 10: Lecture 5

Weighted-Least Squares Estimation (cont’d)

Page 11: Lecture 5

Weighted-Least Squares Estimation (cont’d)

Page 12: Lecture 5

Estimation of Mean Model: Weighted Least Squares

Page 13: Lecture 5

Estimation of Mean Model: Weighted Least Squares (cont’d)

Page 14: Lecture 5

Estimation of Mean Model: Weighted Least Squares (cont’d)

Page 15: Lecture 5

Note that we can re-write the WRRS as:

Page 16: Lecture 5

What does this equation say?Examples…

Page 17: Lecture 5

Examples: V diagonal

Page 18: Lecture 5

Examples: V diagonal (cont’d)

Page 19: Lecture 5

Examples: V not diagonal

Page 20: Lecture 5

Examples: AR-1 (V not diagonal)

Page 21: Lecture 5

Examples: AR-1 (V not diagonal) (cont’d)

Page 22: Lecture 5

Weighted Least Squares Estimation:Summary

Page 23: Lecture 5

Pigs – “WLS” Fit

“WLS” Model results

Page 24: Lecture 5

Pigs – “WLS” Fit

Page 25: Lecture 5

Pigs – “WLS” Fit

Page 26: Lecture 5

Pigs – “WLS” Fit

Page 27: Lecture 5

Pigs – “WLS” Fit

Page 28: Lecture 5

Pigs – OLS fit. regress weight time

Source | SS df MS Number of obs = 432-------------+------------------------------ F( 1, 430) = 5757.41 Model | 111060.882 1 111060.882 Prob > F = 0.0000 Residual | 8294.72677 430 19.2900622 R-squared = 0.9305-------------+------------------------------ Adj R-squared = 0.9303 Total | 119355.609 431 276.927167 Root MSE = 4.392

------------------------------------------------------------------------------ weight | Coef. Std. Err. t P>|t| [95% Conf. Interval]-------------+---------------------------------------------------------------- time | 6.209896 .0818409 75.88 0.000 6.049038 6.370754 _cons | 19.35561 .4605447 42.03 0.000 18.45041 20.26081------------------------------------------------------------------------------

OLS results

Page 29: Lecture 5

Pigs – “WLS” Fit

Page 30: Lecture 5

Pigs – “WLS” Fit

“WLS” Model results

Page 31: Lecture 5

Pigs – OLS fit. regress weight time

Source | SS df MS Number of obs = 432-------------+------------------------------ F( 1, 430) = 5757.41 Model | 111060.882 1 111060.882 Prob > F = 0.0000 Residual | 8294.72677 430 19.2900622 R-squared = 0.9305-------------+------------------------------ Adj R-squared = 0.9303 Total | 119355.609 431 276.927167 Root MSE = 4.392

------------------------------------------------------------------------------ weight | Coef. Std. Err. t P>|t| [95% Conf. Interval]-------------+---------------------------------------------------------------- time | 6.209896 .0818409 75.88 0.000 6.049038 6.370754 _cons | 19.35561 .4605447 42.03 0.000 18.45041 20.26081------------------------------------------------------------------------------

OLS results

Page 32: Lecture 5

Efficiency

Page 33: Lecture 5

Efficiency (cont’d)

Page 34: Lecture 5

Example

Page 35: Lecture 5

Example (cont’d)

Page 36: Lecture 5

When can we use OLS and ignore V?

1. Uniform Correlation Model2. Balanced Data

Page 37: Lecture 5

When can we use OLS and ignore V? (cont’d)

1. (Uniform Correlation) With a common correlation between any two equally-spaced measurements on the same unit, there is no reason to weight measurements differently.

2. (Balanced Data) This would not be true if the number of measurements varied between units because, with >0, units with more measurements would then convey more information per unit than units with fewer measurements.

Page 38: Lecture 5

When can we use OLS and ignore V? (cont’d)

In many circumstances where there is a balanced design, the OLS estimator is perfectly satisfactory for point estimation.

Page 39: Lecture 5

Example: Two-treatment crossover design

Page 40: Lecture 5

Example: Two-treatment crossover design (cont’d)

Page 41: Lecture 5

Example: Two-treatment crossover design (cont’d)

Page 42: Lecture 5

Example: Two-treatment crossover design (cont’d)

Page 43: Lecture 5

(Recall slide) Inference

• Estimation Methods– Weighted Least Squares (WLS)

(Vi known)

– Maximum Likelihood (Vi unknown)

– Restricted Maximum Likelihood (Vi unknown)

– Robust Estimation (Vi unknown)

• Hypothesis Testing• Example: Growth of Sitka Trees

Page 44: Lecture 5

Maximum Likelihood Estimation under a Gaussian Assumption

Page 45: Lecture 5

Maximum Likelihood Estimation under a Gaussian Assumption (cont’d)

Page 46: Lecture 5

Maximum Likelihood Estimation under a Gaussian Assumption (cont’d)

Page 47: Lecture 5

Maximum Likelihood Estimation under a Gaussian Assumption (cont’d)

Page 48: Lecture 5

(Recall slide) Inference

• Estimation Methods– Weighted Least Squares (WLS)

(Vi known)

– Maximum Likelihood (Vi unknown)

– Restricted Maximum Likelihood (Vi unknown)

– Robust Estimation (Vi unknown)

• Hypothesis Testing• Example: Growth of Sitka Trees

Page 49: Lecture 5

Restricted Maximum Likelihood Estimation

Page 50: Lecture 5

(Recall slide) Inference

• Estimation Methods– Weighted Least Squares (WLS)

(Vi known)– Maximum Likelihood (Vi unknown)– Restricted Maximum Likelihood

(Vi unknown)– Robust Estimation (Vi unknown)

• Hypothesis Testing• Example: Growth of Sitka Trees

Page 51: Lecture 5

Generalized Least Square EstimatorRobust Estimation

(unstructured covariance matrix)

Page 52: Lecture 5

Robust Estimation of V under a saturated model

Page 53: Lecture 5

Robust Estimation of V

“restricted ML” – makes estimates unbiased

Page 54: Lecture 5

Example

Page 55: Lecture 5

Robust Estimation vs.

A Parametric Approach

Page 56: Lecture 5

Maximum Likelihood Estimation of V

Page 57: Lecture 5

Example: Growth of sitka trees

Page 58: Lecture 5

Figure 1. Observed data and mean response profiles in each of the four growth chambers for the treatment and control.

Page 59: Lecture 5

Figure 2. Observed mean response in each of the four

chambers.

Season 1

Season 2

Page 60: Lecture 5
Page 61: Lecture 5

Example: Growth of sitka trees (cont’d)

Page 62: Lecture 5

Example: Growth of sitka trees (cont’d)

We first consider the 1998 data.

Page 63: Lecture 5

Example: Growth of sitka trees (cont’d)

• Unstructured covariance matrix

Page 64: Lecture 5
Page 65: Lecture 5

Example: Growth of sitka trees (cont’d)

Page 66: Lecture 5

Example: Growth of sitka trees (cont’d)

Page 67: Lecture 5
Page 68: Lecture 5

Example: Growth of sitka trees (cont’d)

Page 69: Lecture 5

Example: Growth of sitka trees (cont’d)

Page 70: Lecture 5
Page 71: Lecture 5
Page 72: Lecture 5

Sitka spruce data: Estimated covariance matrix for 1988

Page 73: Lecture 5

Sitka spruce data: Estimated covariance matrix for 1989

Page 74: Lecture 5
Page 75: Lecture 5

Summary: Unstructured Covariance Matrix

Page 76: Lecture 5

Summary: Parametric Models for Covariance

Reasons for parametric modelling:

Page 77: Lecture 5

Summary: Parametric Models for Covariance

(cont’d)Reasons for parametric modelling (cont’d):

Page 78: Lecture 5

Summary: Unstructured vs. Parametric Covariance

Page 79: Lecture 5

Overall Summary

Page 80: Lecture 5

Overall Summary