Docsity

Econometric handouts, Study notes of Introduction to Econometrics

Toggle sidebar
bg1
LECTURE NOTES, FORMULAS AND EXAM PRACTICE
Econometrics
Complete Learning Guide
Lecture chapters 1 to 5, dummy variables, a formula book with worked numbers, three
solved exam papers, the teacher’s exam advice, and a 130-question practice bank in
one document.
How to use this guide
Read each part in order the first time. Every par t opens with a short In plain words box, then
gives the full detail. Green boxes are worked examples, red boxes are exam traps, gold boxes
are corrections or things to watch. Before the exam, go straight to Parts 7 to 10.
Notation:
ˆ
β2
is the estimate from your sample and
β2
is the true value.
ˆ
Y
is a fitted value and
ˆ
u
a residual.
k
counts parameters including the intercept unless stated.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36

Partial preview of the text

Download Econometric handouts and more Study notes Introduction to Econometrics in PDF only on Docsity!

L E C T U R E N OT E S, F O R M U L A S A N D E X A M P R AC T I C E

Econometrics

Complete Learning Guide

Lecture chapters 1 to 5, dummy variables, a formula book with worked numbers, three solved exam papers, the teacher’s exam advice, and a 130-question practice bank in one document.

How to use this guide

Read each part in order the first time. Every part opens with a short In plain words box, then gives the full detail. Green boxes are worked examples, red boxes are exam traps, gold boxes are corrections or things to watch. Before the exam, go straight to Parts 7 to 10.

Notation: β ˆ 2 is the estimate from your sample and β 2 is the true value. Yˆ is a fitted value and uˆ a residual. k counts parameters including the intercept unless stated.

ii Econometrics · Learning Guide

FOUNDATIONS OF ECONOMETRICS 1

PART 1

Foundations of Econometrics

In plain words Economic theory tells you the direction of an effect (more income means more spending). It almost never tells you how big. Econometrics is the toolkit that puts a number on the effect, using real data, and then tells you how much to trust that number.

1.1 What econometrics does

Economic theory suggests relationships and signs. It rarely gives the size of a causal effect. Econometrics combines economic theory, mathematics and statistical inference to measure those effects. Goldberger (1964) defines it as the social science that applies these tools to economic phenomena.

Typical questions:

  • What is the effect of one more year of education on earnings?
  • What is the price elasticity of demand for cigarettes?
  • What does a 1 percentage point rise in interest rates do to output growth?
  • What do environmental improvements do to housing prices?

In this course you learn to estimate causal effects from observational data, to focus on applica- tions, to read and judge other people’s regression work, and to run regressions on real data in Stata or EViews.

1.2 The eight steps of the econometric method

The running example is Keynes’s consumption theory: people spend more when income rises, but by less than the rise in income.

2 Econometrics · Learning Guide

Step What you do Keynes consumption example

1 State the theory or hy- pothesis

Consumption rises with income, by less than the rise in income (marginal propensity to consume below 1) 2 Write the mathemati- cal model

Y = β 1 + β 2 X with 0 < β 2 < 1

3 Write the econometric model (add an error u)

Y = β 1 + β 2 X + u

4 Collect data Specify the model first, then collect data 5 Estimate the parame- ters

Ordinary least squares (OLS)

6 Test hypotheses t and F tests 7 Forecast or predict Predict Y for a given X 8 Use for policy Use the fitted model for control or policy

Exam trap The first step is to specify the econometric model, not to collect data. This is a repeated exam question.

1.3 Types of data

Type Definition Example

Cross-sectional Many units at one point in time Income, age and education of 500 households in 2025

Time series One unit over many periods GDP of a country over 10 years

Pooled cross-section Independent cross-sections from different periods, new units each time

Two annual household surveys with different households

Panel (longitudinal) The same units followed across periods

Several countries over many years

Link to later chapters Autocorrelation appears mostly in time series, because today is linked to yesterday. Heteroscedasticity appears mostly in cross-sectional data, because units differ in size.

4 Econometrics · Learning Guide

Deterministic form Stochastic form

Population (PRF) E(Y | Xi) = β 1 + β 2 Xi Yi = β 1 + β 2 Xi + ui

Sample (SRF) Yˆi = β ˆ 1 + β ˆ 2 Xi Yi = β ˆ 1 + β ˆ 2 Xi + uˆi, so ˆui = Yi − Yˆi

  • β 1 is the intercept : the mean of Y when X = 0. β 2 is the slope : the change in mean Y for one more unit of X.
  • u holds every omitted factor, measurement error and pure randomness. Reasons for not adding the omitted factors: vague theory, no data, core versus peripheral variables, limited resources.
  • The residual uˆ estimates u. The SRF only approximates the PRF, and different samples give different lines.

0 1 2 3 4 5 6

0

2

4

6

X

Y

Observed Yi Fitted line ˆY = 2.2 + 0.6X

The dashed segments are the residuals uˆi = Yi − Yˆi. OLS chooses the line that makes the sum of their squares smallest (data from Worked Example 3).

2.2 What “linear” means

Linear regression means linear in the parameters. The variables themselves may enter at any power or inside a log.

Equation Linear regression? Reason

Y = β 1 + β 2 X^2 + u Yes β 2 multiplies X^2

Y = β 1 + β 2 ln X + u Yes ln X is just a transformed variable

Y = β 1 + β 2 (1/X) + u Yes Parameters enter as multipliers

ln Y = a + β 2 ln X + u Yes The log-log model

Y = β 1 + X β^2 + u No Parameter sits in the exponent

Y = 1/( β 0 + β 1 X) + u No Parameters sit inside a reciprocal

SIMPLE LINEAR REGRESSION 5

2.3 The OLS estimators

OLS minimises the residual sum of squares:

min RSS = (^) ∑ uˆ^2 i = (^) ∑

Yi − β ˆ 1 − β ˆ 2 Xi

Setting the partial derivatives to zero gives the normal equations

∑ Y^ =^ n^ β ˆ 1 +^ β ˆ 2 ∑ X,^ ∑ XY^ =^ β ˆ 1 ∑ X^ +^ β ˆ 2 ∑ X^2.

Solving them gives the two estimators you must know by heart:

β ˆ 2 = Sxy Sxx

= ∑^

XY − n X¯ Y¯ ∑ X^2 −^ n^ X¯^2

Cov(X, Y) Var(X)

, β ˆ 1 = Y¯ − β ˆ 2 X¯

where the shorthand sums are

Sxy = (^) ∑(X − X¯)(Y − Y¯), Sxx = (^) ∑(X − X¯)^2 , Syy = (^) ∑(Y − Y¯)^2.

For regression through the origin (no intercept) the slope is ˆ β 2 =

∑ XY

∑ X^2

Worked example 1: working hours ( X ) and income ( Y ), n = 10 Given ∑ X = 80, ∑ Y = 96, ∑ X^2 = 668, ∑ Y^2 = 952, ∑ XY = 789. So ¯X = 8 and ¯Y = 9.6.

Sxx = 668 − 10 ( 8 )^2 = 28, Sxy = 789 − 10 ( 8 )(9.6) = 21, Syy = 952 − 10 (9.6)^2 = 30.4,

β ˆ 2 = 21 28 = 0.75, β ˆ 1 = 9.6 − 0.75( 8 ) = 3.6.

SRF: Yˆ = 3.6 + 0.75X. Meaning: one more working hour goes with about 0.75 dollars more income. Fit and precision:

R^2 =

S^2 xy Sxx Syy

28 × 30.

RSS = Syy −

S^2 xy Sxx

= 30.4 − 15.75 = 14.65, σ ˆ^2 =

se( β ˆ 2 ) =

r

28

= 0.256, t =

These match the EViews output (p = 0.0189).

Worked example 2: rice price ( X ) and rice demand ( Y ), n = 6 Given (^) ∑ X = 24, (^) ∑ Y = 36, (^) ∑ XY = 111, (^) ∑ X^2 = 120, so ¯X = 4, ¯Y = 6.

Sxy = 111 − 6 ( 4 )( 6 ) = −33, Sxx = 120 − 6 ( 16 ) = 24,

β ˆ 2 = −^33 24

= −1.375, β ˆ 1 = 6 + 1.375( 4 ) = 11.5.

SIMPLE LINEAR REGRESSION 7

Assumption Meaning If violated

Linear in parameters Betas enter as multipliers Wrong model X fixed in repeated samples

Analysis is conditional on X Endogeneity concerns

E(u | X) = 0 and Cov(X, u) = 0

Errors average zero at every X; X independent of u

Omitted variable or wrong form: OLS biased and inconsistent Var(u | X) = σ^2 Homoscedasticity Heteroscedasticity: OLS not efficient Cov(ui, uj) = 0 No autocorrelation Autocorrelation: OLS not efficient n larger than number of parameters

Enough data Cannot estimate

Var(X) > 0 X must vary No slope can be estimated Correct specification Right variables and form Specification bias No perfect multi- collinearity

No X is an exact linear function of the others

OLS cannot be computed

Gauss–Markov theorem. Under these assumptions OLS is BLUE : L inear (a linear function of Y), U nbiased (E( β ˆ 2 ) = β 2 ), B est (smallest variance among linear unbiased estimators).

Normality is not part of BLUE Normality of u is not needed for BLUE. It is needed only for exact small-sample t and F tests. If u is normal, then β ˆ 1 and β ˆ 2 are normal and Y is normal with mean β 1 + β 2 X and variance σ^2.

Intercept trick: if u has a nonzero constant mean, the intercept absorbs it. Rule of thumb for sample size: at least 50, or 10 times the number of regressors.

2.6 Precision of the estimates

σ ˆ^2 =

RSS

n − k

, se( β ˆ 2 ) = σ ˆ √ Sxx

The square root σ ˆ is the standard error of the regression (Root MSE in Stata). In simple regression k = 2, so the degrees of freedom are n − 2.

2.7 Goodness of fit

Total variation splits into an explained part and an unexplained part.

ESS (explained) (^) RSS

TSS (total variation of Y)

8 Econometrics · Learning Guide

TSS = ESS + RSS, R^2 =

ESS

TSS

RSS

TSS

, 0 ≤ R^2 ≤ 1

  • TSS = (^) ∑(Y − Y¯)^2 is total variation of Y. ESS = (^) ∑( Yˆ − Y¯)^2 is the explained part. RSS = (^) ∑ uˆ^2 is the unexplained part.
  • R^2 = 1 means a perfect fit. R^2 = 0 means no linear relationship. A high R^2 alone does not prove the model is right.
  • Example: TSS = 200, RSS = 50, so ESS = 150 and R^2 = 0.75.

PART 3

Multiple Regression

In plain words Multiple regression lets you ask: “what does x 2 do to y if everything else stays fixed?” Each slope is a partial effect. That is why you must write “holding other variables constant” in every interpretation.

3.1 Why add variables

In simple regression the key assumption (all other factors are uncorrelated with x) is often unrealistic. Multiple regression allows ceteris paribus statements, explains more variation in y, and fits general forms such as consumption on income and income squared.

Yi = β 1 + β 2 X 2 i + β 3 X 3 i + · · · + β k Xki + ui

Each slope is a partial effect : the change in mean Y for a one-unit rise in that X, holding all other X constant.

When simple and multiple slopes are equal The simple slope of y on x 2 equals the multiple slope only if (1) the partial effect of x 3 on y is zero in the sample, or (2) x 2 and x 3 are uncorrelated in the sample.

3.2 OLS in the three-variable model

Minimise (^) ∑(Y − β ˆ 1 − β ˆ 2 X 2 − β ˆ 3 X 3 )^2. Work in deviations from means: y = Y − Y¯, x 2 = X 2 − X¯ 2 , x 3 = X 3 − X¯ 3.

10 Econometrics · Learning Guide

versions give the same answer. Follow the exam paper.

  • Do not play the game of maximising adjusted R^2. Theory, expected signs and significance matter more.

Worked example college GPA ( n = 141 , k = 3 ) R^2 = 0.1764, so hsGPA and ACT explain about 17.6% of the variation in college GPA.

R¯^2 = 1 − 0.8236 · 140

which matches the Stata output.

Worked example dropping a weak variable R^2 = 0.60, n = 30, k = 4 gives ¯R^2 = 0.554. Add a useless variable (k = 5, R^2 = 0.601):

R¯^2 = 1 − 0.399 · 29

It falls, so drop the variable.

PART 4

Statistical Inference and Functional Forms

In plain words Inference answers one question: “Is this estimate far enough from the claimed value that it can’t be blamed on sampling luck?” The t-test checks one coefficient, the F-test checks several at once, and the choice of functional form decides what the coefficient means in words.

4.1 The t-test on one coefficient

t =

β^ ˆj − β ∗ j se( β ˆj)

∼ t(n−k)

Test H 0 H 1 Reject H 0 if

Two-tail β j = value β j ̸= value |t| > t α /2, n−k

Right-tail β j ≤ value β j > value t > t α , n−k

Left-tail β j ≥ value β j < value t < −t α , n−k

STATISTICAL INFERENCE AND FUNCTIONAL FORMS 11

−t α /2 0 t α /

reject reject

fail to reject

t

Two-tail test at 5%: the shaded tails hold 2.5% each. If your t lands there, reject H 0.

  • Default test of zero: t = β ˆj/ se( β ˆj). This is the t printed in Stata and EViews.
  • p-value rule: reject H 0 when p < α.
  • Confidence interval: ˆ β j ± t α /2, n−k × se( β ˆj). If it excludes the hypothesised value, reject H 0.
  • Language: say “fail to reject H 0 ”, never “accept H 0 ”.
  • Statistical significance depends on the size of t. Economic significance depends on the size and sign of the estimate.

Sign trap Labour force data: ˆ β 2 = 0.656, se = 0.1961, H 0 : β 2 = 1, H 1 : β 2 > 1.

t =

A right-tail test needs a positive t, so you can never reject H 0 , whatever the size of |t|.

Worked example college GPA H 0 : β 2 = 0 for hsGPA: t = 0.4534 / 0.0958 = 4.73. The critical value t1%, 138 df ≈ 2.61. Since 4.73 > 2.61, reject H 0 at 1%: hsGPA affects colGPA, ACT held constant. ACT: t = 0.87, p = 0.383. Fail to reject: ACT is not significant.

4.2 F-test of overall significance

H 0 : β 2 = β 3 = · · · = 0 (all slopes zero). H 1 : at least one slope is not zero. This also tests the significance of R^2.

F =

ESS/(k − 1 ) RSS/(n − k)

R^2 /(k − 1 ) ( 1 − R^2 )/(n − k) ∼ F(k−1, n−k)

Worked example overall F

GPA: F =

= 14.78 against F0.05(2, 138) = 3.06. Reject H 0.

STATISTICAL INFERENCE AND FUNCTIONAL FORMS 13

For a sum, H 0 : β 2 + β 3 = 1 (constant returns to scale in Cobb–Douglas):

t = β ˆ 2 + β ˆ 3 − 1 se( β ˆ 2 + β ˆ 3 )

, se( β ˆ 2 + β ˆ 3 ) =

q Var( β ˆ 2 ) + Var( β ˆ 3 ) + 2 Cov( β ˆ 2 , ˆ β 3 )

  • Get Var and Cov from the covariance matrix (estat vce). Stata shortcut: test exper = tenure.
  • H 0 : β 2 = − β 3 becomes β 2 + β 3 = 0. Use the sum formula.
  • Third route: the F-test with a restricted model.

Worked example wage: H 0 : β exper = β tenure se of the difference = 0.029635, t = −4.958, critical t0.025,522 ≈ 1.96. Reject H 0 : the two effects differ. Stata’s F = 24.58 = (−4.958)^2 , critical F(1, 522) = 3.85. Reject.

Worked example Cobb–Douglas, Mexico 1955–1974 ( n = 20 )

ln^ \ GDP = −1.6524 + 0.3397 ln L + 0.8460 ln K, RSSUR = 0.0136. The sum of elasticities is 1.1857. Restricted form (substitute β 2 = 1 − β 3 ): ln(GDP/L) = β 0 + β 3 ln(K/L), with RSSR = 0.0166.

F =

= 3.75 < F0.05(1, 17) = 4.45.

Fail to reject constant returns to scale.

4.5 Chow test for structural stability

H 0 : one regression fits both groups.

F =

(RSSR − RSSUR)/k RSSUR/(n 1 + n 2 − 2 k)

, RSSUR = RSS 1 + RSS 2 , RSSR = pooled RSS

Steps: estimate the pooled model, estimate each sub-period model, compute F, and reject stability if F exceeds the critical value.

Worked example US savings and income, 1970– Period 1: RSS 1 = 1785.03 (df 10). Period 2: RSS 2 = 10005.22 (df 12). Pooled RSS = 23248.30, so RSSUR = 11790.25.

F =

= 10.69 > F0.01(2, 22) = 5.72.

Reject: the savings–income relation changed structurally.

14 Econometrics · Learning Guide

4.6 Functional forms

The form of the model decides how you say the coefficient in words.

Form Model Meaning of β 2

Linear Y = β 1 + β 2 X One more unit of X changes Y by β 2 units

Log-log ln Y = β 1 + β 2 ln X A 1% rise in X changes Y by β 2 %. This is an elasticity

Log-lin (growth) ln Y = β 1 + β 2 X One more unit of X changes Y by 100 β 2 percent

Lin-log Y = β 1 + β 2 ln X A 1% rise in X changes Y by β 2 /100 units

Quadratic Y = β 1 + β 2 X + β 3 X^2 Marginal effect = β 2 + 2 β 3 X; turning point X∗^ = − β 2 /( 2 β 3 )

Interaction Y = · · · + β 4 (X 2 X 3 ) Effect of X 2 is β 2 + β 4 X 3

Reciprocal Y = β 1 + β 2 (1/X) Effect shrinks as X grows

  • Log-lin: services spending ln\ EXS = 8.3226 + 0.00705 t: spending grew 0.705% per quarter. Compare the linear trend [EXS = 4111.5 + 30.67 t: spending rose about 30.7 billion dollars per quarter.
  • Lin-log: [Food = −1283.9 + 257.27 ln TotalExp. A 1% rise in total expenditure raises food spending by about 2.57 rupees.
  • Interaction: wage = 3 + 0.5 educ + 0.2 exper + 0.01 educ × exper gives a return to education of 0.5 + 0.01 exper.
  • Elasticity reading. Income elasticity: between 0 and 1 is a normal good (necessity), above 1 a luxury, below 0 inferior. Price elasticity of demand: |value| < 1 inelastic, = 1 unit elastic, > 1 elastic.

Worked example quadratic Y = 2 + 4 X − 0.2X^2. Marginal effect = 4 − 0.4X, which is 2 at X = 5 and 0 at X = 10 (the turning point).

0 2 4 6 8 10 12 14 16 18 20

0

10

20

turning point X∗^ = 10

X

Y

4.6.1 Choosing between linear and log-linear: the MWD test

  • H 0 : the true model is linear. H 1 : the true model is log-linear.

16 Econometrics · Learning Guide

Consequences

  • Large variances and covariances, so imprecise estimates: Var( β ˆ 2 ) = σ^2 ∑ x^22 (^1 −^ r^223 )^
  • Wide confidence intervals, so zero nulls are accepted too easily.
  • Small t-ratios, possibly wrong signs, while R^2 is high and the F-test is significant.
  • Estimates and standard errors react to small data changes.

Worked example consumption on income and wealth Both variables together explain about 96% of the variation in consumption. Neither slope is individually significant and wealth has the wrong sign, yet H 0 : β 2 = β 3 = 0 is rejected (F = 92.40). When collinearity is high, individual t-tests are unreliable.

Detection

Method Rule

High R^2 , low t-ratios R^2 > 0.8, F significant, few significant t

Pairwise correlations Above 0.8 is a warning. Sufficient but not necessary with 3 or more regressors

Auxiliary regressions Regress each X on the others. A significant F signals collinearity

VIF =

1 − R^2 j

VIF above 10 (R^2 j > 0.9) is serious. VIF = 5 at R^2 j = 0.

Tolerance =

VIF

R^2 j

Below 0.1 is serious. Equals 0 under perfect collinearity

Remedies

  • Do nothing when the problem is only a data weakness and the model is theory-based.
  • Add observations. A bigger sample raises (^) ∑ x^2 and cuts variance.
  • Use outside information. Cobb–Douglas with known constant returns: substitute β = 1 − α and estimate Q − K = A + α (L − K) + U.
  • Combine cross-section and time series: take an income elasticity from household data, then regress ln Y minus that term on ln P.
  • Transform variables, for example first differences Yt − Yt− 1.
  • Dropping a variable risks specification bias. The cure may be worse than the disease.

5.2 Heteroscedasticity

Homoscedasticity: Var(ui | Xi) = σ^2 for all X. Heteroscedasticity: Var(ui) = σ^2 i. The scatter forms a funnel instead of a band of constant width.

DIAGNOSING MODEL PROBLEMS 17

X

Y

Homoscedastic: constant band

X

Y

Heteroscedastic: funnel

Causes

  • Error learning: errors shrink over time as people learn.
  • Rising income gives more room for choice, so spending variance grows with income.
  • Outliers from a different population. Skewed regressors such as income and wealth.
  • Omitted important variables, wrong functional form or wrong data transformation.
  • Most common in cross-sectional data.

Consequences

OLS stays unbiased and consistent but is no longer BLUE. The usual variance formulas are wrong, so t, F and confidence intervals lose reliability.

Detection tests (know the names and what each regresses)

Test Auxiliary regression Statistic and rule

Graph Plot residuals or squared resid- uals against X or fitted Y

A funnel pattern signals the problem

Park ln( uˆ^2 ) on ln X t-test on the slope. H 0 : slope = 0 (homoscedastic) Glejser | uˆ| on X,

√ X, 1 /X and similar t-test on the slope. H 0 : slope = 0 Breusch–Pagan– Godfrey

pi = uˆ^2 / ˆu^2 on the Z variables (usually the X)

ESS/2 ∼ χ^2 with k − 1 df

White (general) uˆ^2 on X, X^2 and cross-products n · R^2 ∼ χ^2. Reject if above the critical value

Worked example White test Two regressors. The auxiliary regression has X 1 , X 2 , X^21 , X^22 and X 1 X 2 , so 5 df. With n = 100 and auxiliary R^2 = 0.15:

nR^2 = 100 (0.15) = 15 > χ^2 0.05( 5 ) = 11.07.

Reject homoscedasticity.