Docsity

Applied Regression Analysis: Interval Estimation and Prediction of Mean Response, Study notes of Statistics

Partial preview of the text

Download Applied Regression Analysis: Interval Estimation and Prediction of Mean Response and more Study notes Statistics in PDF only on Docsity!

STAT 4713: APPLIED REGRESSION ANALYSIS

FALL 2003

Dr. Nandini Kannan email : [email protected] Home Page : http://faculty.business.utsa.edu/nkannan

Chapter 2- Contd.

Remarks

  • The inferences for β 0 and β 1 require the Yi’s to be normally distributed. However the sampling distributions are fairly robust to slight departures from normality.
  • The variances of the LSE’s are affected by the spacing of the covariates.

Interval Estimation of the Mean Response

In many regression examples, we would like to estimate the average re- sponse for a specified level of X, say Xh. The mean response is denoted by E(Yh). The point estimator is

Yˆh = b 0 + b 1 Xh

Since Yˆh is a linear combination of b 0 and b 1 , the sampling distribution is normal with mean E( Yˆh = E(Yh)

and variance V ar( Yˆh) = σ^2

  (^1) n + ∑(X(Xh^ −^ X¯)^2 i −^ X¯)^2

 

From the formula, it is clear that the variability is affected by how far Xh is from the average X¯. Using the MSE for the unknown σ^2 , we can generate confidence intervals and hypothesis tests for E(Yh). using the t-distribution.

The prediction limits take into account:

  • error from the fitted model
  • error associated with the future observation

The 100(1 − α) % prediction interval on a new observation Yh(new) is given by

Yˆh ± t(1 − α/2; n − 2) s

√√√ √√1 +^1 n + ∑(Xh^ −^ X¯)^2 (Xi − X¯)^2

Prediction of the mean of m new observations

The 100(1−α) % prediction interval on the mean of m observations Y¯h(new) is given by

Yˆh ± t(1 − α/2; n − 2) s

√√√ √√ 1 m +

n + ∑(Xh^ −^ X¯)^2 (Xi − X¯)^2

The Analysis of Variance Approach

Partitioning the Total Sum of Squares

The variability in the responses is measured by the Total Sum of Squares SST O = (^) i∑=1n (Yi − Y¯ )^2 This is the inherent variability in the response. The natural question to ask is: How much of this variability occurs (can be explained) because of the changes in the values of the covariate?

The fitted model may be viewed as an explanation of the variability in the response. If the fitted values Yˆi are close to the original responses, the variation in the Yˆi around Y¯ will be close to the SSTO. The Regression Sum of Squares is given by SSR = ∑n i=1^ (ˆyi^ −^ y¯)

2

and measures the variation explained by the regression.

Using simple algebra, we can show that the Total Sum of Squares (SST) may be partitioned as

SST = (^) i∑=1n (yi − y¯)^2 = (^) i∑=1n (ˆyi − y¯)^2 + ∑ i=1n (yi − yˆi)^2 SST = SSR + SSE

where SSE is the Error Sum of Squares or the Variability unexplained.

The last column in the ANOVA Table, the Expected Mean Squares repre- sents the expected value of the means squares. The MSE is unbiased for σ^2. The MSR is a biased estimator of σ^2 with the bias a function of β 1. When β 1 = 0, both quantities are unbiased for σ^2.

To test the hypothesis H 0 : β 1 = 0, we may use the test statistic F ∗^ = M SRM SE

which has an F -distribution with (1, n − 2) df under H 0.

The test given above may be formulated in the more general framework of the General Linear Test approach, which involves 3 steps:

Full Model We begin with the unrestricted or full model we think is appropriate for the data, and obtain the error sum of squares which we will denote by SSE(F).

Reduced Model We next consider the hypothesis H 0 : β 1 = 0. When H 0 is true, we have a reduced or restricted model. We fit the reduced model to the data and obtain the error sum of squares SSE(R).

Test Statistic It can be shown that SSE(F ) ≤ SSE(R),

i.e more parameters in the model provides a better fit. If the difference is small, then the addition of the extra parameter β 1 has not really provided a significantly better fit. In other words, β 1 is probably 0.

The actual test is F ∗^ = SSE( dfRR) −− dgSSEF (F^ ) ÷ SSE dfF(F^ )

Coefficient of Determination R^2

R^2 = (^) SSTSSR 0 = 1 − (^) SST OSSE

represents the proportion of variability in the response that is explained by the model. Clearly 0 ≤ R^2 ≤ 1.

Remarks:

  • High R^2 does not always imply good predictions.
  • High R^2 does not always imply model is a good fit. If the slope of the regression line is large or the spread of the regressors is great, the coefficient of determination can appear to be artificially high.
  • R^2 close to 0 does not imply no relation between X and Y. R^2 is a measure of linear association.