Docsity

Regression Analysis: Estimating Model Parameters and Explaining Variation - Prof. Brett D., Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
16 November
Estimating the Model
Our model is Yi = β0 + β1 x1 + ε1 where ε1
iid
N (0, σ2)
We need to estimate β0, β1, and σ2
Our estimated regression line is
^
y1
= b0 + b1 xi
b0 is estimate for β0
b1 is estimate for β1
Found by minimizing SSE
Se
2 is the estimate for σ2, where
Se
2 is the estimate for σ2, where se
2 =
∑ei
2
n−2
=
SSE
n−2
=
SSE
df
= MSE
Mean squared error
So
√
MSE
is the estimated standard deviation of the residuals, called the residual standard
error.
Note: We use n – 2 degrees of freedom so that MSE is an unbiased estimator of σ2, as we
estimate 2 parameters (β0, β1) beforehand.
Sums of Squares
In regression, we have a certain amount of variability in the y values. We want to understand
what portion of this error can be accounted for by our model.
SSE =
∑
(y
i
−
^
y
i
)
2
=
∑
e
i
2
Sum of squares error
SSResid – residual sum of squares
SSM =
Sum of squares model
pf3

Partial preview of the text

Download Regression Analysis: Estimating Model Parameters and Explaining Variation - Prof. Brett D. and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

16 November Estimating the Model Our model is Yi = β 0 + β 1 x 1 + ε 1 where ε 1

iid

N (0, σ^2 ) We need to estimate β 0 , β 1 , and σ^2

Our estimated regression line is ^ y 1 = b 0 + b 1 xi

b 0 is estimate for β 0 b 1 is estimate for β 1 Found by minimizing SSE Se^2 is the estimate for σ^2 , where

Se^2 is the estimate for σ^2 , where se^2 = ∑^

ei

2

n − 2

SSE

n − 2

SSE

df

= MSE

Mean squared error

So √ MSE is the estimated standard deviation of the residuals, called the residual standard

error. Note: We use n – 2 degrees of freedom so that MSE is an unbiased estimator of σ^2 , as we estimate 2 parameters (β 0 , β 1 ) beforehand. Sums of Squares In regression, we have a certain amount of variability in the y values. We want to understand what portion of this error can be accounted for by our model.

SSE = ∑ ( yi − ^ yi )^2 = ∑ ei^2

Sum of squares error SSResid – residual sum of squares

SSM = ∑ (^ y ¿¿ i − y )

2

Sum of squares model

SSR – sum of squares regression

TSS = ∑ ( yi − y )

2 = SSE + SSM Total sum of squares SST, SST● TSS is total variation in observed y-values SSM is the variation explained by our regression model SSE is the variation left unexplained by our model We want to account for as much variation as possible with our model. If there is a strong linear relationship between X and Y, we would expect SSM to make up most of TSS. R^2 = r^2 =

explained variation

total variation

SSM

TSS

SSE

TSS

R^2 is the coefficient of determination. It explains the percent of variability in Y that is accounted for by the regression onto X. Ex. If R^2 = .87, then about 87% of the variation in Y is explained by the variation in X. Good models have larger R^2 values

Note: r, Pearson’s correlation coefficient, is the same R used here, so r = ± √ R^2 (sign based on

slope) Extrapolation One reason for finding a regression model is so that we can predict Y values for various X values. We need to avoid extrapolating in our predictions. Extrapolation is the act of predicting Y values for values of X that are outside the range of X values contained in our sample. Call the range of X values in the sample the valid prediction sample (VPR) So if VPR is 20 – 60, don’t make a prediction for X = 72.