Docsity

Linear regression one regressor, Schemi e mappe concettuali di Econometria

Toggle sidebar
bg1
Linear Regression-One
regressor cp 4
Organization
This chapter introduces the linear regression model relating one variable X to
another Y. this model postulated a linear relationship between X and Y
The regression model is:
where the subscript i runs over observations
is the dependent variable, the regressand
is the independent variable, the regressor
is the population regression line or the population regression
function, this is the relationship that holds between X and Y, on average, over
the population. Given the value of X, according to this population regression line
you would predict the value of the dependent variable Y to be its conditional
mean X. →
is the intercept of the population regression line, the value of the population
regression line when X=0, the point at which the population regression line
intersects the Y axis.
is the slope of the population regression line, the difference in Y associated
with an unit difference in X.
is the error term, the difference beteween and its predicted value using
regression line.
Y =
iβ +
0β
X +
1iu
i
i= 1, ..., n
Y
i
X
i
β +
oβ X
1
E(Y∣Z) = β +
0β X
1
β
0
β
1
u
iY
i
Linear Regression-One regressor cp 4
1
pf3
pf4
pf5

Anteprima parziale del testo

Scarica Linear regression one regressor e più Schemi e mappe concettuali in PDF di Econometria solo su Docsity!

Linear Regression-One

regressor cp 4

Organization

This chapter introduces the linear regression model relating one variable X to

another Y. this model postulated a linear relationship between X and Y

The regression model is:

where the subscript i runs over observations

is the dependent variable, the regressand

is the independent variable, the regressor

is the population regression line or the population regression

function, this is the relationship that holds between X and Y, on average, over

the population. Given the value of X, according to this population regression line

you would predict the value of the dependent variable Y to be its conditional

mean X. →

is the intercept of the population regression line, the value of the population

regression line when X=0, the point at which the population regression line

intersects the Y axis.

is the slope of the population regression line, the difference in Y associated

with an unit difference in X.

is the error term, the difference beteween and its predicted value using

regression line.

Y =

i

β +

0

β X +

1 i

u

i

i = 1, ..., n

Y

i

X

i

β +

o

β X

1

E(Y ∣Z) = β +

0

β X

1

β

0

β

1

u

i

Y

i

The lower student-teacher-ratio (smaller classes) tend to have higher test score.

Estimating the coefficient of the linear regression model

The OLS estimator chooses the regression coefcients so that the estimated

regression line is as close as possible to the observed data, where closeness is

measured by the sum the squared mistakes made in predicting Y given X.

The sample average is the least squares estimator of the population mean, ;

that is minimizes the total squared estimation mistakes among

all possible estimator.

The OLS extends this idea to the linear regression model.

Let some estimators of. the regression line based on these

estimators is , so the value of predicted using this line is:.

Thus the mistake made in predicting the observation is

The sum of squared prediction mistakes over all observation is

There are just an unique par of estimators and that minimize this expression.

This unique estimator are called ordinary least squared (OLS) estimators of

and and its notation are:

and.

Y

E(Y )

Y

∑ (Y −

i=

n

i

m)

2

m

b and b

0 1

β and β

0 1

b +

0

b X

1

Y

i

b +

0

b X

1 i

i

th

Y −

i

(b +

0

b X ) =

1 i

Y −

i

b −

0

b X

1 i

n

∑ (Y −

i=

n

i

b −

0

b X )

1 i

2

β

0

β

1

β

0

β

1

β

^

0

β

^

1

In this notation is the ratio of the sample variance of to the sample variance Y.

Mathematically can be written as the ratio of the explained sum of squares to the

total sum of sqares:

Explained sum of squares; the sum of squared deviations of the predicted value

from its average

Total sum of of squares is the sum of squared deviations of from its average:

Alternatively can be written in terms of the fraction of the variance of not

explained by ,

The sum of squared residuals, is the sum of squared OLS residuals:

Finally of the regression of Y on the single regressor X is the square of the

correlation coefcient between X and Y

→ then explains none of the variation of ,

explain all of the variations of

Standard error of the regression SER is an estimator of the standard deviation of the

regression error. SER measure the spread of the obs around the regression line,

measured in the units of the dependent variable.

where

degrees of freedom correction because when two coefcients were estimated

because we have 2 coefcients.

Prediction using OLS

The predicted value for the OBS is the value of Y predicted by OLS regression

line whrn X takes on its value for that observation.

This is called an in-sample prediction because the obs for which the prediction is

made was also udes to estimate the regression coefcients.

Such OBS not in data set is called out of ample prediction.

R

2

Y

^

R

2

Y

^

ESS = ∑ ( −

i=

n

Y

^

i

Y)

2

Y

i

TSS = ∑ (Y −

i=

n

i

Y)

2

R =

2

(Y − Y)

ˉ 2

( Y− )

^

Y

ˉ

2

TSS

ESS

R

2

Y

i

X

i

SSR = ∑

i=

n

u^

i

2

TSS = ESS + SSR

R =

2

TSS

SSR

R

2

0 ≤ R ≥

2

1 R =

2

0 X

i

Y

i

R =

2

1 X

i

Y

i

u

i

SER = s = u^

s

u^

2

s =

u^

2

n−

1

i=

n

u^

i

2

n−

SSR

n − 2

β , β 0 1

Y

^

i

i

th

X

i

The goal of prediction is to provide accurate out of sample prediction, but no

prediction is perfect, a prediction should be accompanied by an estimate of its

accuracy, that is, by an estimate of how accurate the prediction mighr reasonably be

expected to be.

A natural measure of accuracy is the standard deviation of the out-of sample

prediction error

A common way to report a prediction and its accuracy is as the prediction ± SER →

Assumptions for Causal Inference

ASSUMPTION 1 → Conditional distribution of has a

mean zero

The conditional distribution of given has a mean of zero. so the other

factors contained in and asserts that these other factors are unrelated to X_i in

the sense that, given a value of , the mean of the distribution of these other

factor is zero.

in a randomized controlled experiment with a binary treatment:

This implies that and are uncorrelated so

ASSUMPTION 2→ Independently and identically distributed

This assumption is a statement about how the sample is drawn. if the obs are

drawn by simple random sampling from a single large population then

are i.i.d. not all sampling scheme produce i.i.d. obs, for example ig

X is xed in repeated experiments that is repeated draws of the sample. Thus

is nonrandom and also no i.i.d.. The same if we refer to the same unit in different

time,

Y − Y

^

Y ±

^

s

u^

u ∣X

i i

u

i

X

i

u

i

X

i

E(u ∣X ) =

i i

X

i

u

i

xorr(X u ) =

i i

(X , Y ) =

i i

X

i

If the least squares assumprion hold, then in large samples have a jointly

normal sampling distribution of is where the variance of this

distribution is:

The large sample normal distribution of is , where:

where

In general the larger is the variance of the smaller is the variance of. This

because the variance is inversely proportional to the square of the variance of.

Than larger X larger denominator smaller variance. Similarly smaller variance error

smaller variance.

β ,

^

0

β

^

1

β

^

1

N (β , σ )

1

β 1

2

σ

β

^

1

2

σ =

β

^

1

2

n

1

[var(X )]

i

2

var[(X −μ )u ]

i X i

β

^

0

N (β , σ )

0

β

^

0

2

σ =

β

^

0

2

n

1

[E(H )]

i

2 2

var(H u ) i i

H =

i

1 − [ ]X

E(X )

i

2

μ X

i

X

i

σ

β

2

β

^

1

β

^

1

X

i

β

^

1