advanced statistical techniques for economic forecasting

64
Advanced Statistical Techniques for Economic Forecasting 1 Seminar for the National Association of Business Economics Dr. Oral Capps, Jr.

Upload: others

Post on 06-Oct-2021

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advanced Statistical Techniques for Economic Forecasting

Advanced Statistical Techniques for Economic Forecasting

1

Seminar for theNational Association of Business Economics

Dr. Oral Capps, Jr.

Page 2: Advanced Statistical Techniques for Economic Forecasting

Course Outline• Forecasting

• Considerations Basic to Successful Forecasting

• Evaluating and Combining Forecasts

• Nature of Economic Modeling

2

• Nature of Economic Modeling

• Diagnostics (Serial Correlation, Collinearity, and Influence)

• Distributed Lag Models

• Multi-Equation Models (Simultaneous, SeeminglyUnrelated, Recursive)

Page 3: Advanced Statistical Techniques for Economic Forecasting

• Time-Series Models

Auto Regressive Integrated Moving Average

Models (ARIMA) (Univariate) (Box-Jenkins)

Vector Autoregression Models (VAR) (Multivariate)

Impulse Response Functions

Granger Causality

3

Granger Causality

Cointegration

Error Correction Models

Page 4: Advanced Statistical Techniques for Economic Forecasting

Econometric results -- indeed a term that for many economists

conjures up horrifying visions of well-meaning but perhaps

marginally skilled, likely nocturnal, individuals sorting through

endless piles of computer print-outs. One “final”print-out is then

chosen for seemingly mysterious reasons and the rest discarded to

be recycled through a local paper processor and another computer

printer for other “econometricians” to to repeat the process ad

infinitum. Besides supplying a lucrative business for the paper

recyclers, what useful output, if any, results from such a process?

This question lies at the heart of the so called “science” of

4

This question lies at the heart of the so called “science” of

econometrics as currently applied, a practice which has been called

“data mining,” “number crunching,” “model sifting, “ “data

grubbing,” “fishing,” “data massaging,” and even “alchemy,”

among other less palatable terms. All of these euphemisms describe

basically the same process: choosing an econometric model based

on repeated experimentation with available sample data.

Zimmerman, Rod F., “ Reporting Econometric Results:

Believe It or Not?” Land Economics, 60 (February 1984):122.

Page 5: Advanced Statistical Techniques for Economic Forecasting

Section 1:

NABE ASTEF

5

Page 6: Advanced Statistical Techniques for Economic Forecasting

Tea-Leaf Reading, Soothsaying,

or Quantitative Business Analysis?

6

Page 7: Advanced Statistical Techniques for Economic Forecasting

1. Interpret the economic and financial

landscape.

2. Forecast various economic and

Business analysts often need to be in position to:

7

2. Forecast various economic and

financial activities.

How does one achieve these objectives?

Page 8: Advanced Statistical Techniques for Economic Forecasting

8

Page 9: Advanced Statistical Techniques for Economic Forecasting

Course of Action:Development of

Formal Quantitative Models

9

Page 10: Advanced Statistical Techniques for Economic Forecasting

10

Page 11: Advanced Statistical Techniques for Economic Forecasting

Modeling Approaches

Econometric (Structural) Models Time-Series Models

Single-Equation

Multi-Equation

UnivariateMultivariate

Box-Jenkins

11

Multi-Equation

Simultaneous Models

Seemingly Unrelated

Regression Models

Recursive Models

Box-Jenkins

ARIMA Models

Vector Autoregression

(VAR) Models

Error Correction

Models

Page 12: Advanced Statistical Techniques for Economic Forecasting

Model specification driven by:Data (# of observations)

Data (# of variables)

Theoretical Considerations

12

Atheoretical Considerations

Dynamics

Experience

Question(s) Addressed

Page 13: Advanced Statistical Techniques for Economic Forecasting

Critical ingredient in all models:- “Sufficiently large” amount of historical

data

- “Ask not what you can do to the data but

rather what the data can do for

you.”

13

you.”

- Data Types

Time-Series

Cross-Sectional

Combination

Page 14: Advanced Statistical Techniques for Economic Forecasting

Quote from Lord Kelvin:

“I often say that when you can measure

what you are speaking about, and

express it in numbers, you know

something about it; but when you

14

something about it; but when you

cannot measure it, when you cannot

express it in numbers, your knowledge

is of a meager and unsatisfactory kind.”

Page 15: Advanced Statistical Techniques for Economic Forecasting

Mathematical Considerations:- Functional form

- Derivatives to capture marginal effects (changes)

Statistical Considerations:

15

- Estimation Procedures

Ordinary Least Squares

Maximum Likelihood

- Tests of Hypotheses

- p-values and Levels of Significance

Page 16: Advanced Statistical Techniques for Economic Forecasting

Model Selection Criteria:

2R

2R

16

Akaike Information Criterion (AIC)

Schwarz or Bayesian Information

Criterion (SIC) or (BIC)

R

Page 17: Advanced Statistical Techniques for Economic Forecasting

Key Diagnostics

- Serial Correlation

(Autocorrelation)

- Heteroscedasticity

17

- Heteroscedasticity

- Collinearity Diagnostics

- Influence Diagnostics

- Structural Change

Page 18: Advanced Statistical Techniques for Economic Forecasting

Example of Structural ModelThe effect of unionization on earnings hypothesis:

Unionization increases real wages

Inw = 0.28InQ + 0.77Z + 0.84InP + 0.228U

(0.056) (0.28) (0.32) (0.094)

- 0.16UZ - 1.94UInP + CONSTANT

(1.10) (0.99)

R2 = 0.891

w = relative wages (average hourly compensation in unionized

18

w = relative wages (average hourly compensation in unionized

industries relative to compensation in nonunionized industries)

Q = relative value of output

Z = unemployment rate

P = measure of expected inflation

U = measure of the extent of union membership

UZ = interaction variable

UInP = interaction variable

Page 19: Advanced Statistical Techniques for Economic Forecasting

tmtm

1t1t0

t2t10t

ADVw...

ADVwADVw

INCOMEPRICESales

ε+++++

β+β+β=

weffect → 0SR

Distributed Lag ModelExample:

19effect

m

ii

m

ii

LR

iwlag

weffect

weffect

=

=

0

0

0

MEAN

LR

SR

Page 20: Advanced Statistical Techniques for Economic Forecasting

Models wherein the dependent variables correspond to choices

Probit Models

Logit Models

Censored Response Models(Dependent variables are discontinuous)

Tobit Models

20

Heckman Sample Selection Procedure

Count Data Models(Dependent Variables are integers)

ARCH/GARCH Models(Variance of Stochastic Disturbance term not constant)

Page 21: Advanced Statistical Techniques for Economic Forecasting

Multi-equation Models

Simultaneous equations model

KKgg

KKgg

xxxYBYBY

xxxYBYBY

∈++++++++=

∈++++++++=

ττττ

ττττ

KK

KK

222221212121202

112121111212101

21

Analytically Derived Reduced Forms

Impact, Interim, Total Multipliers

gKgKgggggggg

KKgg

xxxYBYBY

xxxYBYBY

∈++++++++=

∈++++++++=

ττττ

ττττ

KK

KK

2211110

222221212121202

Page 22: Advanced Statistical Techniques for Economic Forecasting

Seemingly Unrelated

Regression Models

t11k,t11k12,t1121,t111t1 X...XXY ε+β++β+β=

22

mtkm,mtmkm2,mt2M1,mt1mmt

t22k,t22k22,t2221,t221t2

t11k,t11k12,t1121,t111t1

X...XXY

:

X...XXY

X...XXY

ε+β++β+β=

ε+β++β+β=ε+β++β+β=

Page 23: Advanced Statistical Techniques for Economic Forecasting

Recursive ModelExample (Lee and Lloyd) Model for the Oil Industry

5tt54t543t532t521t5155t

4tt43t432t421t4144t

3tt32t321t3133t

2tt21t2122t

1tt111t

uMτ RβRβRβRβRβαR

uMτ RβRβRβRβαR

uMτ RβRβRβαR

uMτ RβRβαR

uMτ RβαR

uMτ αR

+++++++=++++++=+++++=++++=+++=++=

23

7tt76t765t754t743t732t721t7177t

6tt65t654t643t632t621t6166t

uMτRβRβRβRβRβRβαR

uMτ RβRβRβRβRβαR

++++++++=+++++++=

Where R1 = Rate of Return on Security 1 (* Imperial Oil)

Where R2 = Rate of Return on Security 2 (* Sun Oil)

Where R7 = Rate of Return on Security 7 (* Standard Oil of Indiana)

Where M t = Rate of Return on the Market Index

Where uit = Disturbances (i = 1, 2, …, 7)

Page 24: Advanced Statistical Techniques for Economic Forecasting

- Box-Jenkins Modeling (ARIMA Models)

AR, MA, ARMA, ARIMA models

Model specification, estimation, diagnostic checking

Forecasting

- Unit Roots and Unit Root Tests (Stationarity)

- Vector Autoregressions (VARs)

24

- Vector Autoregressions (VARs)

Specification and Estimation of VARs

Causality (Granger Causality)

- Cointegration

- Error Correction Models

Page 25: Advanced Statistical Techniques for Economic Forecasting

The Box-Jenkins ApproachOne of the most widely used methodologies for

the analysis of time-series data.

Basic Steps in the Box-Jenkins Methodology

(1) differencing the series so as to achieve

stationarity

25

stationarity

(2) identification of preliminary model(s)

(3) estimation of the model(s)

(4) diagnostic checking

(5) using the model for forecasting

Page 26: Advanced Statistical Techniques for Economic Forecasting

- Purely Random Process (White Noise)

A sequence of mutually independent identically distributed random variables

constant mean, constant variance

- Random Walk Process

- Moving-Average Process MA(q)

t1tt YY ε+= −

26

- Autoregressive Process AR(p)

- Autoregressive Moving-Average Process ARMA (p,q)

qtq1t1tt B...BY −− ε++ε+ε=

tptp2t21t1t Y...YYY ε+α++α+α= −−−

qtq1t1tptp2t21t1t B...BY...YYY −−−−− ε++ε+ε+α++α+α=

Page 27: Advanced Statistical Techniques for Economic Forecasting

Vector Autoregression

When we have several time series, we need to take

into account the interdependence between them.

VAR Approach

A multiple time-series generalization of the

autoregressive (AR) model.

27

autoregressive (AR) model.

2tst2,2s2t2,221t2,21

pt1,1p2t1,121t1,112t

1tnt2,2n2t2,221t2,21

mt1,1m2t1,121t1,111t

yβyβyβ

yβyβyβy

yαyαyα

yαyαyαy

∈+++++

+++=∈+++++

+++=

−−−

−−−

−−−

−−−

K

K

K

K

Page 28: Advanced Statistical Techniques for Economic Forecasting

Error Correction Model (ECM)If xt and yt are cointegrated, there is a long-run relationship between them. Furthermore, the short-run dynamics can be

described by the ECM.

If xt ~ I(1), yt ~ I(1) and and xt and yt are cointegrated. The Granger representation theorem says that,

therefore, xt and yt may be considered to be generated by

ECMs of the form.

)o(I~xyz ttt β−=

28

ECMs of the form.

At least one of the and are non-zero, and are

white-noise errors. Note that zt-1 is the one-period lag of the

residuals from the cointegrated relationship between xt and yt.

( )

( ) 2ttt1t1t

1ttt1t1t

∆y,∆xlaggedzρ∆y

∆y,∆xlaggedzρ∆x

∈++=

∈++=

1ρ 2ρ t2t1 ,εε

Page 29: Advanced Statistical Techniques for Economic Forecasting

Software Packages for Econometrics/Time Series

Without Regard to Order:

> SAS/ETS > SPSS > RATS

> SHAZAM > LIMDEP > FORECAST PRO

29

> SHAZAM > LIMDEP > FORECAST PRO

> EVIEWS > GAUSS > STATA

> TSP

No Single Package is Optimal for Every Situation

Page 30: Advanced Statistical Techniques for Economic Forecasting

Forecasting

and

Forecast Evaluation

30

Page 31: Advanced Statistical Techniques for Economic Forecasting

Forecasting

Self-styled “prophets” who mislead us should

be reminded that among the ancient

Scythians, when prophets predicted things

that failed to come true, they were laid,

shackled hand and foot, on a little cart filled

31

shackled hand and foot, on a little cart filled

with heather and drawn by oxen, on which

they were burned to death.

“Those who live by the crystal ball should

learn to eat ground glass.”

Ted Moskovitz

Page 32: Advanced Statistical Techniques for Economic Forecasting

Forecasting

Historical Ex-Post Ex-AnteBackcasting Simulation Forecast Forecast

32

Estimation Time, t

Period

T1 T2 T3

Out-of- Within- Out-of- Out-of-Sample Sample Sample Sample

Page 33: Advanced Statistical Techniques for Economic Forecasting

Forecast Methods

Qualitative Quantitative

33

Intuitive (Naive)Formal

Seasonal

Econometric

Analysis

Trend

Extrapolation

Time Series

Analysis

(ARIMA, VAR, Error

Correction Models)

Page 34: Advanced Statistical Techniques for Economic Forecasting

34

Page 35: Advanced Statistical Techniques for Economic Forecasting

Six Considerations Basic to Successful Forecasting

• Decision Environment and Loss Function

• Forecast Object

• Forecast Statement

35

• Forecast Statement

• Forecast Horizon

• Information Set

• Methods

Page 36: Advanced Statistical Techniques for Economic Forecasting

Forecast Error

Let Denote a Series and Let Its ForecastΥΥΥΥ ΥΥΥΥ^

Forecast Error (e)

==== −−−−ΥΥΥΥ ΥΥΥΥ^

36

e==== −−−−ΥΥΥΥ ΥΥΥΥ^

Page 37: Advanced Statistical Techniques for Economic Forecasting

Loss Functions

A Representation of the Loss Associated with a

Forecast, Dependent on the Size of the Forecast

Error

L(e)

37

Requirements of a Loss Function:

(1) L(0)=0

(2) L(e) is Continuous

(3) L(e) is Increasing in the Absolute Value of e

Page 38: Advanced Statistical Techniques for Economic Forecasting

Quadratic Loss or Squared-Error Loss

L(e)=e2

Absolute Loss or Absolute-Error Loss

38

Symmetric Loss Functions

L e e( ) ====

Page 39: Advanced Statistical Techniques for Economic Forecasting

Direction-Of-Change Forecast Takes on Two Values

(((( ))))

(((( ))))L Y Y

if sign Y sign

if sign Y sign,

^

^

^

====

====

////====

0

1

∆∆∆∆ ∆∆∆∆ ΥΥΥΥ

∆∆∆∆ ∆∆∆∆ ΥΥΥΥ

39

(((( ))))if sign Y sign////==== 1 ∆∆∆∆ ∆∆∆∆ ΥΥΥΥ

Page 40: Advanced Statistical Techniques for Economic Forecasting

Point Forecast

A single number

FVt+h

40

Interval Forecast -

Places Confidence or Tolerance Bands on the Forecast

( ) ( )htht FVhthtFVht kSEFV RVkSEFV++

+<<− +++

Page 41: Advanced Statistical Techniques for Economic Forecasting

Forecast Interval

41

Page 42: Advanced Statistical Techniques for Economic Forecasting

Parsimony PrincipleCeteris Paribus, Simple Models are Preferable to Complex Models

Shrinkage PrincipleImposing Restrictions on Models Often

42

Imposing Restrictions on Models Often Improves Marginal Effects Analysis and

Forecast Performance

Kiss Principle — Keep it Sophisticatedly Simple

Page 43: Advanced Statistical Techniques for Economic Forecasting

There is no efficacious substitute for economic analysis in business forecasting. Some maverick may

hit a homerun on occasion; but over the long season,

batting averages tend to settle down to a sorry level

when the more esoteric methods of soothsaying are

relied upon.

Better to be wrong in good company than run

43

Better to be wrong in good company than run the risk of being wrong all alone.

Often a forecaster is forced to give a single point estimate because his boss or others cannot

handle a more complicated concept. Then he must

figure out for himself which point estimate will do

them the most good, or the least harm.

Page 44: Advanced Statistical Techniques for Economic Forecasting

Measures of Forecast Accuracy

• Mean Error

• Mean Absolute Error

• MSE

Evaluating and Combining Forecasts

44

• MSE

• Decomposition of MSE

• RMSE

• MAPE

• WAPE

• Theil U Statistic

Page 45: Advanced Statistical Techniques for Economic Forecasting

Combining Forecasts (Composite Forecasts)

• Minimum Forecast Error Variance

• Arithmetic Average

• Use of Regression to Find Optimal Weights

45

Page 46: Advanced Statistical Techniques for Economic Forecasting

Paul A. Samuelson --

If prediction is the ultimate aim of all science,

then we forecasters ought to award ourselves the palm

for accomplishment, bravery or rashness.

Economic Forecasting & Science

… we (economists) are better than anything else

46

… we (economists) are better than anything else in heaven and earth at forecasting aggregate business

trends -- better than gypsy tea-leaf readers, Wall Street

soothsayers and chartist technicians, hunch-playing

heads of mail-order chains, or all-powerful heads of

state.

Page 47: Advanced Statistical Techniques for Economic Forecasting

Forecasting models have

47

Forecasting models have

their limitations because

they deal with human

behavior and ever-changing

institutions.

Page 48: Advanced Statistical Techniques for Economic Forecasting

Insight on the Forecasting ProcessForecasting is an important part of the economic policy-

making process.

Forecasting TerminologyForecast — a quantitative estimate (or set of

estimates) about the likelihood of future events based

on past and current information

48

on past and current information

Point forecasts — those which yield a single number

Interval forecasts — indicate in each period the

interval in which it is hoped the actual value will lie

Page 49: Advanced Statistical Techniques for Economic Forecasting

“If you twist my arm, you can make me give a single number as a guess about next

year’s GNP. But you will have to twist hard.

My scientific conscience would feel more

comfortable giving you my subjective

probability distribution for all the values of

GNP.”

49

GNP.”

— Samuelson

Page 50: Advanced Statistical Techniques for Economic Forecasting

Forecast Process

(1) Design Phase

(2) Specification Phase

(3) Evaluation Phase

Clearly & Levenbach

The Professional

Forecaster

50

A forecast is a systematic process of decisions

and actions performed in an effort to predict

the future. A forecast is not an end product,

but rather an input to the decision-making

process.

Page 51: Advanced Statistical Techniques for Economic Forecasting

Algebraic Measures of Forecast Accuracy

“In science and in real economic life,

it is terribly important

not to be wrong much.”

51

not to be wrong much.”

— Samuelson

Page 52: Advanced Statistical Techniques for Economic Forecasting

Forecast Evaluation(1) MSE = Mean Squared Error

(2) RMSE = Root Mean Squared Error

(3) MAE = Mean Absolute Error

( )∑=

−M

1t

2tt AF

M

1

( ) 21MSE

∑=

−M

1ttt AF

M

1

52

(4) MAPE = Mean Absolute

Percent Error

(5) WAPE = Weighted

Absolute Percent Error

=1tM

100A

AF

M

1 M

1t t

tt ×−∑

=

∑∑

=

=

=−× M

1tt

tM

1t t

ttt

A

A

A

AFw t wwhere100,

Page 53: Advanced Statistical Techniques for Economic Forecasting

Decomposition of MSE

53

Page 54: Advanced Statistical Techniques for Economic Forecasting

With this decomposition,

UM Measure of bias - unequal central tendencies of the

actual and forecasted values

US Measure of unequal variation - squared difference

between standard deviations, both actual and forecasted

2)AF( −

2)SS( −

54

UC Measure of incomplete covariation - correlation

coefficient r between actual and forecasted values

2AF )SS( −

1UUUMSE/SS)r1(2U

;MSE/)SS( U;MSE/)AF(U

SS)r1(2

CSM

AFC

2AFS

2M

AF

=++−=

−=−=−

Page 55: Advanced Statistical Techniques for Economic Forecasting

UC - nonsystematic random error, cannot be avoided

UM, US - represent systematic errors that should be avoided

US 0 as SF = SAUS indicates ability of the model to replicate the

degree of variability; if US large, then the actual series fluctuated

considerably but the simulated series shows little fluctuation or

UM 0 as if UM large, then average predicted value

deviates substantially from average realized valueAF =

55

considerably but the simulated series shows little fluctuation or

vice versa

UC 0 as r =1; can never hope that forecasters will be able to

predict so that all points are located on the straight line of

perfect forecasts

UC remaining error after deviations from average values and

deviations in variabilities have been accounted for

Page 56: Advanced Statistical Techniques for Economic Forecasting

MSE/S)r1(U

MSE/)rSS(U

MSE/)AF(U

S)r1()rSS()AF(MSE

2A

2D

2AFR

2M

2A

22AF

2

−=−=

−=

−+−+−=

Another Decomposition

56

component eDisturbancU

component RegressionU

1UU U unity toclose be should U

zero frommuch differ not should U,U

D

R

DRM

D

RM

=++

Page 57: Advanced Statistical Techniques for Economic Forecasting

Consider this decomposition in relation to the

regression A t=Ft+ et

If residuals have zero mean, then A F UM==== →→→→ ==== 0.

If regression coefficient truly 1, then UR =0.

57

R

MSE then will consist of only one term, the

disturbance proportion.

Page 58: Advanced Statistical Techniques for Economic Forecasting

58

Page 59: Advanced Statistical Techniques for Economic Forecasting

Composite Forecasting — often alternative forecasts of

the same data are available, each of which contains

information independent of others.

- Bates and Granger (1969)

- Granger and Newbold (1977)

- Just and Rausser (1981)

- Bessler and Brandt (1981)

59

- Bessler and Brandt (1981)

Bates and Granger suggest that if the objective is to

make as good a forecast as possible, the analyst should

attempt to combine the forecasts.

Composite forecasting can provide forecasts which are

preferred to the individual forecasts used to generate the

composite.

Page 60: Advanced Statistical Techniques for Economic Forecasting

CF = w1FM1 + w2FM2

Building composite forecasts requires that the analyst select

weights to assign the individual forecasts. How to weigh?

(1) Minimum variance weighting minimize the

variance of the forecast errors over the forecast

period.

60

Page 61: Advanced Statistical Techniques for Economic Forecasting

(2) Simple averaging

CFFM FM

====++++1 22

More generally,

61

More generally,

FM

r

ii

r

====∑∑∑∑

1

Page 62: Advanced Statistical Techniques for Economic Forecasting

Weights for Composite Forecasting

Run Actual W FM W FM

strict W Wt t t t==== ++++ ++++ ∈∈∈∈

++++ ====1 2

1 2

1 2

1Re

Use same procedure for more than two forecast

methods.

62

methods.

Page 63: Advanced Statistical Techniques for Economic Forecasting

Example:Ex-Post Forecast Evaluation of Germany Sales

ARIMA Model

Winters Model

ACTUAL ARIMA WINTERS

1293594 1392156 1571411

63

1293594 1392156 15714111275381 1294103 14010201559312 1549253 16644671789155 1860777 19368542139428 2153039 19362451458652 1686154 18215411517930 1810875 16400031541403 1351399 16133902107742 2015857 19443211664925 1730865 17925532118102 1649788 1754221

Page 64: Advanced Statistical Techniques for Economic Forecasting

64