Professional Documents
Culture Documents
Lecture - Simple - Regression - Model
Lecture - Simple - Regression - Model
UPB
Semestre II - 2022
Ecuación lineal
y = a + bx
Supuestos, u
y = β0 + β1 x + u
E (y |x)
Regression line
Slope
Pn
(x − x̄)(yi − ȳ )
βˆ1 = Pn i
i=1
2
i=1 (xi − x̄)
Properties of OLS
Sample average is the same as the sample average of the fitted values
The OLS regression line always goes through the mean of the sample
Analysis of residuals
yi = yˆi + ûi
(yi − ȳ )2
P
Total sum of squares (SST),
Explained sum of squares (SSE), (ŷi − ȳ )2
P
P 2
Residual sum of squares (SSR), ûi
Proof:
Goodness-of-Fit
Unbiasedness assumptions
Required assumptions
Linear parameters
Random sampling
Sample variation
Heteroskedastic
Variance
1 2X 1 2X 2
Var (βˆ1 ) = ( ) di Var (ui ) = σ 2 ( ) di
SSTx SSTx
1 2 σ2
= σ2( ) SSTx = = Var (βˆ1 )
SSTx SSTx
The larger the error variance, σ 2 , the larger the variance of the slope
estimate
The larger the variability in the xi , the smaller the variance of the
slope estimate
A larger sample size should decrease the variance of the slope estimate
An unbiased estimator
P
ûi 2 SSR
σˆ2 = =
(n − 2) n−2
Standard error q
σ̂ = σˆ2