ECONOMETRICS

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/126

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

127 Terms

1
New cards

What does regression do?

Minimizes SSR

2
New cards

SSR formula

3
New cards

Normal equations

solution of SSR, derivatives of SSR wrt to alpha/beta

4
New cards

FOC wrt alpha 

5
New cards

FOC wrt beta

6
New cards

Beta

Or cov(x,y)/var(x)

7
New cards

Alpha

8
New cards

Sample covariance

measures relation between 2 random variables

9
New cards

Sample variance

spread of data

10
New cards

SST

Total Sum Squares

11
New cards

SSE

Explained Sum of Squares

12
New cards

SSR

Residual Sum of Squares

13
New cards

Coefficient of Determination

R² proportion of variation explained by regression

SSE/SST 1 - SSR/SST

Goodness of fit

14
New cards

Gauss Markoff Assumptions 

OLS: linearity, random sampling, …

15
New cards

Standard Error

sigma² = SSR/(n-2)

16
New cards

Standard error of beta

17
New cards

Stanard error of alpha

18
New cards

t test hypothesis

Ho: B = Bo
Ha: B ≠ Bo

if tcrit (wrt 1-alpha/2 and df - 2) < t reject ho

19
New cards

t

20
New cards

Confidence Interval

21
New cards

Coeffs in regression with mmultiple parameters

Partial effects

Effect of Xi on Y holding X2 constant and vv

Take deriv wrt each B to get new beta

22
New cards

Adjusted R²

R² automatically inflates artificially, R² bar (adj) penalizes irrelevant regressors

<p>R² automatically inflates artificially, R² bar (adj) penalizes irrelevant regressors </p>
23
New cards

Omitted var bias, what is effect on included coeff?

omitting relevant vars that are related to vars in model creates bias for coeff in existing vars

effect on existing vals (if there is relation bt X1/X2

<p>omitting relevant vars that are related to vars in model creates bias for coeff in existing vars<br><br>effect on existing vals (if there is relation bt X1/X2</p><p></p>
24
New cards

LOOK AT NOTES FOR MATRIX FORM

Du

25
New cards

Dummy Variables

allos to handle cat vars and encodes qualitative characteristics

26
New cards

Interaction term

lets us see affect of 1 var to depend on another

beta (x1*x2)

ex if education * male, beta is diff in return to educ bt men/somen

27
New cards

What are the 5 assumptions of OLS

Random sampling, linearity in param, no perfect multi-collinearity, zero conditional mean, homoskedasticity

28
New cards

A: Random sampling, what happens if it is violated?

all xi/yi come from same pop drawn independenly

sample is representative of pop

2. biased estimates

29
New cards

A: Linearity in parameters

x/y relation doesnt have to be linear but parameters must enter linearly
y = alpha + beta x² + u is stil linear in parameter

30
New cards

A: Zero cond mean

error has mena zero —> all determinatns are captured and only pure noise remains

31
New cards

A: Homoskedasticcity

variance X depend on any regressor 

32
New cards

Gauss Markov Theorem

under classic linear reg assumptions
(linearity, expected mean = 0 and homeoskedasticity)

then OLS estimators (a/b) are BEST LINEAR UNBIASED ESTIMATORSB

33
New cards

BLUE

Best linear unbiased estimators
- Linear: expressed as linear combination of Y
- unbiased (expected val of alpha/beta = a/b)
- best: minimum variance among all linear unbiased estimators

34
New cards

Unbiased

expected value of estimator B is B 

35
New cards

Consistency

consistent if predicted value converges to real value as sample size approaches infinity

36
New cards

Perfect vs near MC

one regressor is exact linear combo of others other is very close (high corr)

CANNNOT ESTIMATE MODEL IN PERFECT MC

37
New cards

Aux regression for perfect MC

Residual variation must be positive otherwise for R²j we have perfect MC

38
New cards

What does MC near do/not do

DOES NOT BIAS OLS COEFFICIENTS

Does:

  • increase var

  • wide CI

  • small t

  • makes coeff sensitive

39
New cards

VIF 

Variance Inflation Factor 

Rj² is from aux reg of Xj on all other regressors 

<p>Variance Inflation Factor&nbsp;<br><br>Rj² is from aux reg of Xj on all other regressors&nbsp;<br></p>
40
New cards

How to dieagnosse MC

  • pairwise corr among regressors

  • scatterplots/corr heatmaps

  • collect Rj²

  • get VIF

  • VIF GREATER THAN 10 IS SEVERE

41
New cards

What are sources of MC

Dummy var trap, deterministic identities, similar proxies, high order polynomials

42
New cards

source of MC: Dummy var trap

including all factor of dummies and an intercept - remove and use one cat as ref

43
New cards

source of MC: deterministic identities

vars are exact cobinations/sum to one paired with other vars

44
New cards

source of MC: too simiar proxies

add highly corr measures of same concept

45
New cards

source of MC: high order polynomials

x/x²/x³/x^4 can be highly corr with finite samples

helps to center xHo 

46
New cards

how to fix MC

simplify: drop redunant vars/combine proxies

Transform: center/standardize regressors

Theory first: justify variables by model want to test

Prediciton: regularization methods

47
New cards

Heterskedasticity vs homoskedastity

variance of u given x is constant (sigma²) over i

HETERO it RELIES ON sigma² of i - VARIES ON i/Xi

<p>variance of u given x is constant (sigma²) over i </p><p></p><p>HETERO it RELIES ON sigma² of i - VARIES ON i/Xi</p><p></p>
48
New cards

Effects of heteroskedasticy on OLS

OLS coeffs are UBIASED AND CONSISTENT

OLS SE are INVALID

  • therefore t/F tests based on SE are invalid

49
New cards

Breush Pagan Test

Tests whether error variance depends on regressors

Ho: homoskedasticity

test stat = nR² (follows X²m distribution ) (m = number of regressors in aux)

50
New cards

Breush Pagan test steps

  1. Estimate OLS, get resid

  2. regress squared resid on variables

  3. compute nR² from aux

51
New cards

White Test

Ho: constant variance of errors, model is correctly specified

regresses resid on X but also on X² and interactions

null: nR² follows X²q (q = nuber of aux regressors

NED LARGE N (aux reg is big)

can use subset

52
New cards

heteroskedasticity robust standard error

all diff obs have individual SE - use each squared resid in variance calc

SE robust > SE OLS (heteroskedasticity is present)

53
New cards

White’s (1980) heteroskedasticity-consistent estimator

each squared residual used directly

54
New cards

Weigted Least squares

impproves coefficients 

  • get ui from ols

  • model squared resid as function of x

  • run WLS using weight of w= 1/sigma²

    • may need to repea

55
New cards

When to use robust SEs?

misspecified variance

56
New cards

What to do for heteroskedasticity

  • plot resid against fitted vals

  • use BP/white test to diagnose

  • report hetero-robust SE

  • consider WLS if variance pattern present

57
New cards

What are main sources of model misspecification?

  • wrong regressors

  • measurement errors

  • wrong functional forms

58
New cards

Misspecification: Wrong regressors/omitted vars

estimated coeff = B1 + b2 (cov x1*x2 / var x1)

omitting pos cor regressive increases biases in corr regressors

59
New cards

Misspecification: Wrong regressors/endogeneity

regressor corr w error (covariance between regressor/resid ≠ 0)

FAILS ZERO MEAN COND

  • could be from omitted vars

  • simultaneity/reverse causlaity

  • measurement error in x

CAUSES BIASED/INCONSISTENT OLS

fix w better design/controls/instrumental vars

60
New cards

Misspecification: Wrong regressors/irrel vars

B1 remains unbiased

variance of B1 increases (R2 increases bc extra regressors)

lowers power of tests/wide CI

61
New cards

Misspecification: Wrong form/curvature

what is it, what are effects, how to diagnose?

conditional mean nonlenear, model estimated only in x not x²

OLS BIASED AND INCONSISTENT

diagnosis:

  • resid vs fitted values = systematic pattterns

  • scatter of y/x reveal curve

fix by adding x², poly, or transform

62
New cards

Y = b ln x

<> y for 1% <> in X

63
New cards

ln y = bx

Percent <> in y for 1 unit <> in x

64
New cards

ln y = bln x

b = elasticity, partial deriv of y wrt x 

65
New cards

misspecifications; functional form: interactions

effect of x depends on x2

omitting interaction = misspec and biased slope on x1/x2

expected val of y given x wrt x1 = b1 + b3x2

66
New cards

Ramsey RESET

form check

if functional form correct higher order functions of fitted vals should not add explanatory power

1. estimate baseline and get y^

  1. reestimate w extra powers of y^², y^³

  2. use f test for joint sig of added terms

Ho: no nonlinear terms or interactions

general check (doesnt identify exact form needed)

67
New cards

Endogeniety problem 

mean value of residuals  is not zero 

biased/inconsistent cov

from reverse causality, omitted vars, measurement error

68
New cards

Why does OLS fail with simultaneity

  • regressors are not exogenous (corr with error term)

69
New cards

Endogenous

jointly determined within system
ex. price/quantity within a market

70
New cards

Exogenous

proxy for ability/regressor

ex) weather and income

71
New cards

Proxy variable

proxy for ability/regressor that is included inregressionIn

72
New cards

Instrumental variable

z, instrument that affects x (helps predict) but is uncorrelated with our dependent variable (but only trhough x not directly)

helps us to isolate exogenous variation in endogenous regressor x

ex. weather shocks affect regressor agricultural supply but X consumer demand directly

73
New cards

What are conditions for a valid instrument (2)?

Revelance: must be corr with x (cov and must have non-zero coeff in auxilariy)

Exogeniety (inclusion restriction)

Z affects y only thorugh X (not directly or through omitted variables

74
New cards

Weak relevance

fails relevance

75
New cards

Strong invalid instrument

fails exogeniety

76
New cards

How to test relevance 

1st stage regression

if x = pi0 + pi Z + V and pi ≠ 0, then z is relevant (good)

2nd stage: estimate structural model by LS (replace endo reg 2 fitted xx^ from first stage)

77
New cards

How to test exogeniety?

cannot, U is unobserved must justify using economic reasoning

78
New cards

F stat

Ho: instruments are irrelevant (pi = 0)

F STAT > 10 is strong instrument

<p>Ho: instruments are irrelevant (pi = 0)<br><br>F STAT &gt; 10 is strong instrument <br><br></p>
79
New cards

What is the coefficeint of the IV estimator? 

B^ iv = cov(z,y) / cov(z,x)

if x is its own instrument you get cov(x,y)/var(x) = regular OLS

80
New cards

2SLS

Two stage least squares estimates

CAN DIFFER SIGNIFICANTLY FROM STANDARD OLS

x^ = purged version of X

removes endogenous part of x before running wnd stage reg

81
New cards

When/why to use 2SLS

if regressors are exogenous

if not OLS is unbiased and more efficient than 2SLS

82
New cards

How to compare OLS/2SLS? 

Hausman (Durbin-Wu-Hausman) test 

if both consistent (regressor exogenous) they should be close

if only 2SLS consistent (regressor endogenous) they differ systematically 

83
New cards

Hausman Test Interp/Steps

Ho: OLS is okay (exogenous)

Ha: OLS is inconsistent (endogenous)

Steps:

  • Estimate model by OSL/2SLS

  • Compute diff bt coeff vec

  • test whether this diff is stat sig

84
New cards

What are main objectives when using time series?

dynamic modeling, forecasting

(understand structure/response to shocks and accurate predictions)

85
New cards

Persistence

Lasting effects of shocks

86
New cards

Financial returns stylized facts

  • weak/no autocorr

  • voliatity clusters (lg <> followed by lg <> and VV)

  • asymmetric volatality (neg shocks inc volatility more than + shocks)

87
New cards

Beta in time series

CAPTURES SYSTEMATIC RISK (that X be diversified away)

B measures sensitivity of stocks return to movt in overall market

>> Response of asset returns to market returns

slope of regression of Ri onto Rm

trend

88
New cards

Spurious regression

if Xt1/xt2  affect yt, ommiting t can bias regression

2 related variables trend over time 

including a B3t3 allows yt to have its own effect on trend after controlling for x1t/x2t

unrellated variables may trend togethre over time —> corr ≠ causation 

89
New cards

multiplicative decomposition

Yt = Tt * Ct * St * ut *

take logs to get into additive form: ln(y) = ln(t) + ln(C)

90
New cards

Methods of removing seasonality

  • remove dummy variables

  • mean average smoothing

91
New cards

Remove seasonality with dummy variables 

regress yt on szl dummy variables 

D = 1 if obs in that time period

et = resid 

* Note that m = 2, do not do all otherwise perfect MC

FITTED COMPONENT CAPTURES SZL

RESIDUAL = DE-SZNL SERIES (can always add Y back in)

<p>regress yt on szl dummy variables&nbsp;</p><p>D = 1 if obs in that time period</p><p>et = resid&nbsp;</p><p>*&nbsp;Note that m = 2, do not do all otherwise perfect MC<br><br>FITTED COMPONENT CAPTURES SZL</p><p></p><p>RESIDUAL = DE-SZNL SERIES (can always add Y back in)</p>
92
New cards

Moving average smothing 

larger q = smoother trend 

estimated trend is avg of q obs

<p>larger q = smoother trend&nbsp;</p><p>estimated trend is avg of q obs</p><p></p>
93
New cards

centered moving avg

uses past/future obs

94
New cards

non-centered moving avg

only present/past obs

95
New cards

Trend-Cycle decomp

long/med movt

often estimated together bc difficult to seperate

96
New cards

How to sep trend-cycle?

HP filter

97
New cards

HP filter

Hodrick-Prescott filter: separates long-term comp from short term cyclical fluctuations (Ct = yt - Tt)

Term 1: ensures trend Tt follows yt closely 

Term 2: penalizes <> in slope of T to ensure smoothness 

Standard smoothing parameter: lamda = 1600, … 

<p>Hodrick-Prescott filter: separates long-term comp from short term cyclical fluctuations (Ct = yt - Tt)</p><p></p><p>Term 1: ensures trend Tt follows yt closely&nbsp;</p><p>Term 2: penalizes &lt;&gt; in slope of T to ensure smoothness&nbsp;</p><p></p><p>Standard smoothing parameter: lamda = 1600, …&nbsp;</p>
98
New cards

X-13ARIMA-SEATS

method of szn adjustment in nat stat offices

X13ARIMA: TS decomp based on moving averages/ARIMA

SEATS: extracts sznl trend/irregular

>> getrs rid of recurring szn patterns, estimate underlying trend/cylical movt, improve comparability across timeW

99
New cards

White Noise

ut ~ (0, sigma²)

no autocorr

100
New cards

Random walk

summed sequence of random shocks/white noise terms 

yt = yt-1 + ut

yt = y0 + u1 + … ut

ex) stock prices