January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from...

67
Time-series Econometrics Estimation and Inference Gerald P. Dwyer Clemson University January 2016

Transcript of January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from...

Page 1: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Time-series EconometricsEstimation and Inference

Gerald P. Dwyer

Clemson University

January 2016

Page 2: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Outline

1 About Me

2 Time-Series Econometrics – What will you learn?What is time-series econometrics?What is financial econometrics?Topics Covered

3 Inference and EstimationMinimum Variance Unbiased EstimationConsistency

4 Maximum Likelihood

5 Bayesian Inference in Econometrics

6 Summary

Page 3: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Who Am I?

Professor

I Clemson University from 1989 to 1999 and 2013 to todayI Teach Financial Econometrics to MsC in Finance students at Trinity

College, Dublin

Federal Reserve Bank of Atlanta from 1997 to 2012

Research

Brief summary

http://www.jerrydwyer.com

Use [email protected] for this course

Page 4: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

What is Time-Series Econometrics?

Time-series econometrics is the use of time-series data to answereconomic questions using statistical procedures

What sorts of questions?

I How are money growth and inflation related over time?

F Not across countries – will not talk about panel data

I Is inflation in the United States likely to increase?

F Statistical analysis to inform an economic analysis

I How likely is it that a portfolio will lose 20 percent of its value in anygiven 12-month period?

I Does real GDP have a predictable trend? What sort of trend?Constant or time varying?

I What is the effect of a recession on stock prices?I Is the value of the euro likely to go up or down? What does it depend

on?

Page 5: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

What is Financial Econometrics?

Financial econometrics is the use of statistical procedures to answerfinancial questions

I Neither a subset of time-series econometrics nor a superset

F Can use cross-section dataF Some questions the same, some not

What sorts of questions?

I What factors affect stock returns and how much do they do so?I How likely is it that a portfolio will lose 20 percent of its value in any

given 12-month period?I Are stock prices mean reverting? Are stock returns mean reverting?I What is the effect of a recession on stock prices?I Is the value of the euro likely to go up or down? What does it depend

on?

Mostly time series data

Page 6: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Topics covered

Estimation

Difference equations

Univariate time series (ARIMA)

Unit roots

Volatility (ARCH and GARCH)

Multivariate time series (Vector autoregressions)

Simultaneous-equation analysis

Cointegration and Error correction mechanisms

Nonlinear time series analysis

Bayesian analysis

Page 7: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Purpose of inference

What are plausible and implausible values of estimates of a particularparameter?

I Point estimate

Page 8: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Criteria for estimators

Classical statisticsI Minimum Variance Unbiased Estimators (MVUE)

F or Best Linear Unbiased Estimator (BLUE)

I Estimation proceduresF Ordinary Least Squares (OLS)F Maximum likelihood – Conditional on the data, pick the most likely

value

Page 9: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

OLS

Ordinary least squares with x fixed (nonstochastic)

Suppose that x is not stochasticI x is deterministic, fixed in repeated samplesI e.g. treatments of crops on plotsI time trendI quarterly dummy variables

yt = xtβ + εt , t = 1, ...,T

E yt = E xt = 0

E εt = 0, E ε2t = σ2, E εtεs = 0 ∀ t 6= s

Page 10: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

OLS with nonstochastic regressors is unbiased

Properties of equation

yt = xtβ + εt , t = 1, ...,T

E yt = E xt = 0

E εt = 0, E ε2t = σ2, E εtεs = 0 ∀ t 6= s

β̂ can be written

β̂ =∑ xy

∑ x2

=∑ xxβ

∑ x2+

∑ xε

∑ x2

=β +∑ xε

∑ x2

Page 11: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

OLS with nonstochastic regressors is unbiased

Properties of equation

yt = xtβ + εt , t = 1, ...,T

E yt = E xt = 0

E εt = 0, E ε2t = σ2, E εtεs = 0 ∀ t 6= s

β̂ can be written

β̂ =∑ xy

∑ x2

=∑ xxβ

∑ x2+

∑ xε

∑ x2

=β +∑ xε

∑ x2

Page 12: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

OLS with nonstochastic regressors is unbiased

And the expected value of β̂ is

E β̂ =E β + E∑ xε

∑ x2

=β +∑ x E ε

∑ x2

Page 13: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Why x nonstochastic?

Consider the term E ∑ xε∑ x2

in E β̂ = β + E ∑ xε∑ x2

If x is not random, then

E∑ xε

∑ x2=

∑ x E ε

∑ x2

If x is random, then in general

E∑ xε

∑ x26= E ∑ xε

E ∑ x26= ∑

(E

[x

∑ x2

]E ε

)

Page 14: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Why unbiased if x nonstochastic?

Expectations operator is a linear operator

If a is a constant, thenE ax = aE x

If x∑ x2

is a constant, then

Exε

∑ x2=

x

∑ x2E ε

In general,

Exε

∑ x26= E (xε)

E ∑ x2and E

∑ x26= E

[x

∑ x2

]E ε

Page 15: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Right-hand side variable (x) stochastic and least squaresworks

The case with x stochastic in which least squares works: x and ε areindependent

Exε

∑ x2= E [f (x) ε] with f (x) =

x

∑ x2

E [f (x) ε] = E f (x)E ε if x and ε are independent

E f (x)E ε = 0 because E ε = 0

If x and ε are normally distributed and uncorrelated, then leastsquares is unbiased

I Sufficient but not necessary

Page 16: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

OLS is MVUE and BLUE

MVUE: Var[

β̂]

around true value is a minimum among estimators

that are unbiased

BLUE: β̂ is a linear function of the yt , is unbiased and has minimumvariance among unbiased estimators

I Estimator is a linear function of the yt because

β̂ =∑ xtyt

∑ x2t= ∑wtyt , wt =

xt

∑ x2t

Page 17: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Least squares and error term

One way to see why E ∑ xε = 0 is required for unbiasedness:

What is the correlation of the error term and right-hand-side variablesin a computed regression?

It is identically zero (for any correct program)

Page 18: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Least squares and error term

One way to see why E ∑ xε = 0 is required for unbiasedness:

What is the correlation of the error term and right-hand-side variablesin a computed regression?

It is identically zero (for any correct program)

Page 19: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Proof that OLS error term has zero correlation withright-hand-side variables

Proof of exactly zero correlation of right-hand-side variables and errorterm

Consider the regressionyt = bxt + et

No constant term: Either means of variables zero or variables aredeviations from their means

Assertion to be proved: ∑ xe = 0

By definitione = y − bx

OLS coefficient b always is

b =∑ xy

∑ x2

Page 20: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Proof that OLS error term has zero correlation withright-hand-side variables

Have

e =y − bx

b =∑ xy

∑ x2

Therefore

∑ xe = ∑ x (y − bx)

= ∑ xy − b∑ x2

= ∑ xy − ∑ xy

∑ x2 ∑ x2

= ∑ xy −∑ xy = 0

Therefore computed covariance of x and e is zero to machineprecision

And the correlation of x and e is zero as well

Page 21: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Unbiasedness in a time series setting

Unbiasedness will hardly come up in this class

Why?

Time series regression with dependence on past valuesI yt = βyt−1 + εt , t = 1, ...,T

F Assume that yt−1 and εt are independentF Correlation of yt−1 and εt is zeroF Implies that E yt−1εt = 0

The data are an ordered sequence of observations from 1 to T

The equation above is called a first-order autoregressionI y0I ↓I y1 ← ε1

I ↓I y2 ← ε2I ...

Page 22: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Unbiasedness in a time series setting

Unbiasedness will hardly come up in this class

Why?

Time series regression with dependence on past valuesI yt = βyt−1 + εt , t = 1, ...,T

F Assume that yt−1 and εt are independentF Correlation of yt−1 and εt is zeroF Implies that E yt−1εt = 0

The data are an ordered sequence of observations from 1 to T

The equation above is called a first-order autoregressionI y0I ↓I y1 ← ε1I ↓I y2 ← ε2I ...

Page 23: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

OLS an unbiased estimator?

Ordinary Least Squares (OLS) estimator for an autoregression?

β̂ =∑ ytyt−1

∑ y2t−1

=∑ βyt−1yt−1

∑ y2t−1+

∑ εtyt−1

∑ y2t−1

=β +∑ εtyt−1

∑ y2t−1

yt−1 not fixed in repeated samplesI Can’t have different εt and same set of y ’s ∀ t = 1, ...,TI For example, a different ε2 implies a different y2 and a different y2

implies a different y3, and so on

So the set of observations on the right-hand-side variable, yt−1, mustbe stochastic

Page 24: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

OLS an unbiased estimator?

Just because yt−1 is stochastic doesn’t mean that OLS is not unbiased

β̂ = β +∑ εtyt−1

∑ y2t−1

Seems like yt−1 and εt are independent and they areI By assumption, εt is independent of yt−1

But yt depends on εt , and so does yt+1, yt+2, etc.

E β̂ =β + E∑ εtyt−1

∑ y2t−1

=β + ∑ E

[(yt−1

∑ y2t−1

)εt

]εt and ∑T

t=1 y2t−1 cannot be independent and β̂ is not an unbiased

estimator in general

Page 25: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Unbiasedness in a time series context

In general, estimators are not unbiased in a time series contextbecause they’re part of a sequence

I What happens in the future depends on what happened in the past

Will focus on consistency

Page 26: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Bottom line on asymptotics and time series

Consistency is more pertinent than unbiasedness

The limiting distribution provides a way to estimate the variability ofthe estimator

I Some algebra can show that the mean yT of a normally distributedvariable has the asymptotic distribution N

(µ, σ2/T

)I This is the same as the finite-sample distribution in this case, but the

asymptotic distribution often is easier to find

Page 27: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Simple problem of estimating the mean of a normallydistributed variable

In general, estimators are not unbiased in a time series contextbecause they’re part of a sequence but they can be unbiased ifdependence over time is unimportantSuppose y is normally distributed

y ∼ N(µ, σ2

)or can be written y ∼ NIND

(µ, σ2

)By definition

yT =∑ ytT

and s2T =∑ (yt − y)2

T − 1It’s shown in basic statistics that

E yT = µ and E s2T = σ2

Also

Var [yT ] =Var [∑ yt ]

T 2= T−2 ∑ Var [yt ]

=∑ σ2

T 2=

Tσ2

T 2=

σ2

T

Page 28: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Definition of convergence in probability

Let θT be an estimator with sample size T and θ a parameter withsome particular value

Definition: θT converges in probability to a constant θ iflimT→∞ Pr (|θT − θ| > ε) = 0 ∀ ε > 0

I ε is “some constant value”, not an error term

Write plim θT = θ

Page 29: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Example of consistent estimatorSuppose that θ = 0 and θT is an estimator that takes on the values 0and T

Pr (θT = 0) = 1− 1

Tand Pr (θT = T ) =

1

TTherefore

limT→∞

Pr (θT = T ) = 0

limT→∞

Pr (θT = 0) = 1

Because θ = 0,

limT→∞

Pr (|θT − θ| > ε) = 0 ∀ ε > 0

andlim

T→∞Pr (|θT − θ| < ε) = 1 ∀ ε > 0

and thereforeplim θT = 0 = θ

If θ equalled something other than zero, then θT is an inconsistentestimator of θ

Page 30: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Consistency and convergence in mean square

An estimator θT is a consistent estimator of θ if and only ifplim θT = θ

Often a convenient way to prove consistency is to prove mean squareconvergence

Definition: θT converges in mean square to a constant θ withVar θT = σ2

T if

limT→∞

E θT = θ and limT→∞

σ2T = 0

I Convergence in mean square implies convergence in probabilityI Convergence in probability does not imply convergence in mean squareI In other words, an estimator can converge in probability even though it

does not converge in mean square

If θT converges in mean square to θ, then

plim θT = θ

This method of proof can be applied to easily show that the mean yTof a normally distributed variable is a consistent estimator of µ

Page 31: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Properties of probability limits

Suppose have estimates aT of a parameter α and bT of a parameter β

Suppose that plim aT = α and plim bT = β

Then

plim (aT + bT ) = plim aT + plim bT = α + β

plim (aTbT ) = plim aT plim bT = αβ

plim (aT /bT ) = plim aT / plim bT = α/β if β 6= 0

This can be contrasted with the expectation operator for which, ingeneral,

E aTbT 6= αβ

E aT /bT 6= α/β

Page 32: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Convergence in distribution

Want nondegenerate distribution of estimatorI If an estimator θT is a consistent estimator of θ, then estimator

converges to a constantI We want some measure of the variability of the estimatorI This is where the asymptotic distribution comes in

The asymptotic distribution of an estimator is a distribution that isused to approximate the finite-sample distribution of the estimator

Some function of the estimator converges to a distribution, theasymptotic distribution

Page 33: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Limiting Distribution

Definition: If θT converges in distribution to the random variable θ,where F (θ) is the cumulative distribution function of θ, then F (θ) isthe limiting distribution of θT

Often writtenθT →d F (θ)

If F (θ) is a common form such as N(µ, σ2/T

), this is often written

asθT →d N

(µ, σ2/T

)I Proved by showing, for example, that

√T θT converges to N

(µ, σ2

)

Page 34: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Bottom line on asymptotics and time series

Consistency is more pertinent than unbiasedness

The limiting distribution provides a way to estimate the variability ofthe estimator

I Some algebra can show that the mean yT of a normally distributedvariable has the asymptotic distribution N

(µ, σ2/T

)I This is the same as the finite-sample distribution in this case, but the

asymptotic distribution often is easier to find

Page 35: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Maximum likelihood estimation is commonly invoked tojustify an estimator

Maximum likelihood often is a convenient way to obtain a consistentestimator

Maximum likelihood uses the distribution of the observations

Maximum likelihood obtains point estimates of the parameters as theones most likely to have generated the observations

Maximum likelihood provides a relatively straightforward way ofestimating the variance of parameters

Page 36: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Maximum likelihood estimation of the parameters of anormal distribution

Have a sample of T observations, y1, y2, ..., yTSuppose they are generated independently from a normal distributionwith mean µ and variance σ2

Each observation has the distribution

1

σ (2π)1/2 exp

[− 1

2σ2(yt − µ)2

]The joint sample of T observations has the distribution

f(yt |µ, σ2

)=

1

σT (2π)T/2 exp

[− 1

2σ2

T

∑t=1

(yt − µ)2]

The likelihood function of these data and parameters is

L(µ, σ2|yt

)=

1

σT (2π)T/2 exp

[− 1

2σ2

T

∑t=1

(yt − µ)2]

Page 37: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

The log of the likelihood function

The likelihood function of the parameters for a normal distribution is

L(µ, σ2|yt

)=

1

σT (2π)T/2 exp

[− 1

2σ2

T

∑t=1

(yt − µ)2]

The log of the likelihood often is more convenient for exponentialdistributions such as the normal distribution

ln L(µ, σ2|yt ,

)= −T

22π − T ln σ− 1

2σ2

T

∑t=1

(yt − µ)2

Page 38: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Illustration

Likelihood function

Figure: Likelihood function of normally distributed data with mean y of 2and variance s2ml = ∑ (y − y)2 /T of 1. The maximum likelihood estimatoris the mean of the normal distribution.

Page 39: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Maximum likelihood estimation of mean and variance

The log of the likelihood function

ln L(µ, σ2|yt ,

)= −T

2ln 2π − T ln σ− 1

2σ2

T

∑t=1

(yt − µ)2

Maximize likelihood as a function of parameters conditional on thedata

I Can do all at once or sequentially

Want to estimate µ

Denote the estimator by a “hat” over it

Maximize by solving

∂ ln L

∂µ=

1

σ2

T

∑t=1

(yt − µ̂) = 0

Page 40: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Maximum likelihood estimation of mean and variance

Maximize by solving

∂ ln L

∂µ=

1

σ2

T

∑t=1

(yt − µ̂) = 0

T

∑t=1

(yt − µ̂) = 0

T

∑t=1

yt = T µ̂

µ̂ =

T

∑t=1

yt

T= y

Page 41: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Finish by finding estimator of variance

Estimator of σ2

Concentrate µ out of likelihood function by replacing it by y

ln L(σ2|yt

)=− T

2ln 2π − T ln σ− 1

2σ2

T

∑t=1

(yt − y)2

=− T

2ln 2π − T

2ln σ2 − 1

2σ2

T

∑t=1

(yt − y)2

Maximize the concentrated likelihood function with respect to σ2

Page 42: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Finish by finding estimator of variance

Maximize likelihood function with respect to σ2

ln L(σ2|yt

)= −T

2ln 2π − T

2ln σ2 − 1

2σ2

T

∑t=1

(yt − y)2

Solve

∂ ln L

∂σ2= −T

2

1

σ̂2+

1

2

1

σ̂4

T

∑t=1

(yt − µ̂)2 = 0

− T +1

σ̂2

T

∑t=1

(yt − y)2 = 0

σ̂2 =

T

∑t=1

(yt − y)2

T

Page 43: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Consistency and unbiasedness

µ̂ = y and σ̂2 =T

∑t=1

(yt − y)2 /T are consistent estimators of µ and

σ

I Not necessarily unbiased

I σ̂2 =T

∑t=1

(yt − y)2 /T is a biased estimator of σ2

I Not very important with enough observations

Page 44: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Properties of maximum likelihood estimation commonlymentioned

Maximum likelihood provides a couple of natural estimators of thevariance of the estimatorLet θ be a parameter we have estimated

Var[θ̂]≥(

E [(∂ ln L (θ|y) /∂θ)]2)−1

where the expectation with respect to the distribution of y ’s isevaluated at the true parameterUnder regularity conditions

E [(∂ ln L (θ|y) /∂θ)]2 = −E

[∂2 ln L (θ|y)

∂θ2

]The term information matrix denotes

I = −E

[∂2 ln L (θ|y)

∂θ2

]Therefore, under regularity conditions,

Var[θ̂]= I−1

Page 45: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Typical properties of maximum likelihood estimators

Let θ̂ML be the maximum likelihood of some parameter

I Suppose that the likelihood function has a single peak and a uniquemaximum

Fairly general properties

I plim θ̂ML = θI θ̂ML →d N

(θ, I−1

)I Asymptotic variance of θ̂ML is AVar

(θ̂ML

)= I−1

I Asymptotic standard deviation of θ̂ML is ASD(

θ̂ML

)I t-ratio is θ̂ML−θ

ASD(θ̂ML)∼ N (0, 1)

I Can do more complicated tests by likelihood ratio test

I −2 ln(

maxLikelihood RestrictedmaxLikelihood Unrestricted

)∼

χ2 (degrees of freedom = number of restrictions)

Page 46: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Bayes rule

Foundation is Bayes rule

Combine likelihood function of parameters with prior information toget posterior distribution and conclusions

Prior – before the data

Posterior – after the data

Page 47: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Bayesian analysis in Econometrics

Want to characterize knowledge about parameters

What do you think is a plausible value for a parameter?

Elasticity of demand for cars

qd = f (p, y , ...)

Elasticity is

ηqd ,y =dqd/qd

dy/y

Page 48: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

A somewhat obvious way to answer this question

What do you think is a plausible value of the elasticity of demand forcars with respect to income?

I Suppose have looked at no empirical studiesI Weighted average of all income elasticities is unity

I Suggests one is a plausible starting value

What is a plausible range?

Set up as “What is a plausible standard deviation of this estimate?”

Suppose approximately normally distributed so don’t have to worryabout skewness, etc.

I Speaking personally, ...I I probably would guess a standard deviation of about 0.4I Why?

I am not asserting that I am correctI I am just saying what I think is plausibleI Your prior distribution might be quite different

Page 49: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

A somewhat obvious way to answer this question

What do you think is a plausible value of the elasticity of demand forcars with respect to income?

I Suppose have looked at no empirical studiesI Weighted average of all income elasticities is unityI Suggests one is a plausible starting value

What is a plausible range?

Set up as “What is a plausible standard deviation of this estimate?”

Suppose approximately normally distributed so don’t have to worryabout skewness, etc.

I Speaking personally, ...I I probably would guess a standard deviation of about 0.4I Why?

I am not asserting that I am correctI I am just saying what I think is plausibleI Your prior distribution might be quite different

Page 50: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

A somewhat obvious way to answer this question

What do you think is a plausible value of the elasticity of demand forcars with respect to income?

I Suppose have looked at no empirical studiesI Weighted average of all income elasticities is unityI Suggests one is a plausible starting value

What is a plausible range?

Set up as “What is a plausible standard deviation of this estimate?”

Suppose approximately normally distributed so don’t have to worryabout skewness, etc.

I Speaking personally, ...I I probably would guess a standard deviation of about 0.4I Why?

I am not asserting that I am correctI I am just saying what I think is plausibleI Your prior distribution might be quite different

Page 51: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

A somewhat obvious way to answer this question

What do you think is a plausible value of the elasticity of demand forcars with respect to income?

I Suppose have looked at no empirical studiesI Weighted average of all income elasticities is unityI Suggests one is a plausible starting value

What is a plausible range?

Set up as “What is a plausible standard deviation of this estimate?”

Suppose approximately normally distributed so don’t have to worryabout skewness, etc.

I Speaking personally, ...I I probably would guess a standard deviation of about 0.4I Why?

I am not asserting that I am correctI I am just saying what I think is plausibleI Your prior distribution might be quite different

Page 52: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

A somewhat obvious way to answer this question

What do you think is a plausible value of the elasticity of demand forcars with respect to income?

I Suppose have looked at no empirical studiesI Weighted average of all income elasticities is unityI Suggests one is a plausible starting value

What is a plausible range?

Set up as “What is a plausible standard deviation of this estimate?”

Suppose approximately normally distributed so don’t have to worryabout skewness, etc.

I Speaking personally, ...I I probably would guess a standard deviation of about 0.4I Why?

I am not asserting that I am correctI I am just saying what I think is plausibleI Your prior distribution might be quite different

Page 53: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Prior Distribution of Income Elasticity

−1 0 1 2 3

0.0

0.4

0.8

Prior for Income Elasticity of Demand for Cars

Den

sity

Page 54: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Now get some data

What is a reasonable value of the estimated parameter after I getsome data?

Bayes rule gives me a way of combining my prior with the data

My prior distribution for the income elasticity is my prior distributionfor ηqd ,y

ηqd ,y ∼ N (µ, σ)

After I see some data, I have a distribution conditional on the data y

ηqd ,y ∼ p (µ, σ|y)

This might not be normally distribututed any more

How do I update conditional on the data?

Bayes rule

Page 55: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Now get some data

What is a reasonable value of the estimated parameter after I getsome data?

Bayes rule gives me a way of combining my prior with the data

My prior distribution for the income elasticity is my prior distributionfor ηqd ,y

ηqd ,y ∼ N (µ, σ)

After I see some data, I have a distribution conditional on the data y

ηqd ,y ∼ p (µ, σ|y)

This might not be normally distribututed any more

How do I update conditional on the data?

Bayes rule

Page 56: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Bayes Rule for updating parameter

Bayes rule for updating parameters conditional on data is

p(ηqd ,y |y

)=

L(ηqd ,y |y

)p(ηqd ,y

)p (y)

where p(ηqd ,y |y

)is the posterior probability distribution of values of

ηqd ,y conditional on the data

Page 57: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Bayes rule is simple

Start from definition of conditional probability

pr (A,B) = pr (A|B) pr (B)

where pr (A,B) is the joint probability of two events A and Bpr (A|B) is the probability of the event A conditional on the event Bpr (B) is the probability of B

This equation defines conditional probability

pr (A|B) = pr (A,B) / pr (B) if pr (B) 6= 0

Also can saypr (A,B) = pr (B |A) pr (A)

Equate two definitions and get

pr (B |A) = pr (A|B) pr (B)

pr (A)

Page 58: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Bayesian interpretation

pr (B |A) = pr (A|B) pr (B)

pr (A)

Want to draw an inference about probability of an event BI Observe some discrete event AI pr (B |A) is the probability of B conditional on observing AI pr (B) is prior probability of B – before seeing AI pr (A|B) is probability of observing A if the event B occursI pr (A) is the probability of observing A whether B occurs or notI Note that pr (A) is the unconditional probability of observing A

F pr (A) = pr (A|B) pr (B) + pr (A|not B) pr (not B)

pr (B |A) = pr (A|B) pr (B)

pr (A|B) pr (B) + pr (A|not B) pr (not B)

Page 59: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Example of Bayesian analysis

pr (B |A) = pr (A|B) pr (B)

pr (A|B) pr (B) + pr (A|not B) pr (not B)

Example: B is the result that have illness, say flu

I A is some evaluation – this is the observable eventI Have a prior probability of having flu, pr (B) , say 50 percentI How informative is it if you go to doctor’s office and he says you have

the flu?I Suppose doctor says you have the flu

F 80 percent of time when you do pr (A|B)F 20 percent when you don’t pr (A|not B)

I Then the probability of your having the flu given the doctor says youdo is

.8 · .5.8 · .5 + .2 · .5 =

.40

.50= .80

I A lot of information in the doctor’s evaluation

Page 60: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Other examples of Bayesian analysis

Could have a different prior probability

What is the probability that you have the flu after going to thedoctor’s if the prior probability is 0.8?

The doctor could be more or less informative

Suppose the doctor says you have the fluI 50 percent of time when you do pr (A|B)I 50 percent when you don’t pr (A|not B)

Do yourself

Page 61: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Analysis in econometric context

Bayes rule

pr (B |A) = pr (A|B) pr (B)

pr (A)

Can write this in terms of discrete or continuous probabilitydistribution functions

I Let B be a parameter β and pr (B) ≡ p (β)F Might be a regression parameter

I Prior probability distribution of plausible values of a parameter βF Income elasticity of demand would be an example

I Let A be some data y we observe and pr (A|B) = p (y |β), theprobability of the data given β

Page 62: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Bayesian analysis of parameter values

Posterior probability distribution of β is given by Bayes rule

p (β|y) = L (β|y) p (β)

p (y)

where p (β|y) is the posterior probability distribution of values of βconditional on the data

p (y) is a normalizing constant independent of β so this can beanalyzed using

p (β|y) ∝ L (β|y) p (β)

where ∝ means “proportional to”

Purpose is to make inferences about the posterior distribution ofparameter values

Very flexible

Coherent

Can be computationally demanding but computer time is cheap

Page 63: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Comparison of classical and Bayesian analysis

Classical: Probability distribution of estimator β̂I True value is a number, zero in this case if the estimator is unbiased

Page 64: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Comparison of classical and Bayesian analysis

Bayesian: Posterior probability distribution of various possible valuesof β

I True value is one of these possible values, with some more probablethan others

Page 65: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Comparison of classical and Bayesian analysis

Bayesian: Posterior probability distribution of various possible valuesof β

I True value is one of these possible values, with some more probablethan others

Page 66: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Interpretration of Estimate of Variability

Estimate of five percent confidence interval for a normal distribution

Page 67: January 2016 - Jerry Dwyerjerrydwyer.com/pdf/Clemson/Topic1Estimation.pdfI Clemson University from 1989 to 1999 and 2013 to today I Teach Financial Econometrics to MsC in Finance students

Summary

Time series estimators generally cannot deliver unbiased estimators

Major concern is whether an estimator is consistent

Maximum likelihood is a commonly used estimation strategyI ConsistentI Estimator of variance readily availableI Variance usually the least possible for any estimator given assumptions

Bayesian inference is an alternative to classical statistics

Provides a more natural measure of uncertainty about the value ofparameters