• Nie Znaleziono Wyników

Michał Rubaszek

N/A
N/A
Protected

Academic year: 2021

Share "Michał Rubaszek"

Copied!
36
0
0

Pełen tekst

(1)

Advanced Econometrics Topic 8: Forecasting

Michał Rubaszek

SGH Warsaw School of Economics

1

(2)

Introduction

(3)

Michał Rubaszek, Advanced Econometrics

Introduction

The ultimate goal of a positive science is to develop a theory or hypothesis that yields valid and meaningful predictions about phenomena not yet

observed. Theory is judged by it's predictive power.

A hypothesis can't be tested by its assumptions. What is important is

specifying the conditions under which the hypothesis works. What matters is it's predictive power, not it's conformity to reality.

Milton Friedman, 1953. The Methodology of Positive Economics.

in Essays in Positive Economics: University of Chicago Press.

3

(4)

Introduction

 Predicting future economic outcomes is helpful in making appropriate plans, making investment decisions, conducting economic policies.

 We make inference about future outcome using available data (for time series: current and past data) and statistical models.

We call this process econometric forecasting

 Point forecast from model , horizon and information set Ω

!

:

"

!,#$

% "

!&#|!

% (

!

"

!&#

| % (("

!&#

| , Ω

!

)

 Density forecast provides information on all quantiles of the distribution. We

focus on the entire distribution (pdf):

(5)

Michał Rubaszek, Advanced Econometrics

Point forecast

5

(6)

Density forecast

(7)

Michał Rubaszek, Advanced Econometrics

Fan chart

7

Source: Bank of England, February 2013 Inflation Report

(8)

Economic forecasting - introduction

Types of time series forecasts

 Qualitative / model-based (e.g. from VAR/DSGE model)

 Quantitative / expert based (e.g. survey forecast, SPF)

General characteristics of time series forecasts:

 Forecasting is based on the assumption that the past predicts the future

Think carefully if the past is related to what you expect about the future

 Forecasts are always wrong

However, some models/methods might work better or worse than the other

 Forecasts are usually more accurate for shorter time periods

But, economic theories are more informative for longer horizon

(9)

Ex-ante forecast

9

(10)

Ex-ante vs ex-post forecast

 Ex-ante forecast is a true inference about the future It is for periods in which we don't know the realization

 Ex-post forecast is to check model reliability

It is for periods in which we know the realization

(11)

Michał Rubaszek, Advanced Econometrics

Ex-ante forecast:

error in known ARMA/VAR model

Assume we know DGP, i.e. the parameters and the specification of ARMA/VAR.

We therefore know the parameters of infinite moving average representation

"

-

% ? @ A

B

C

-

@ A

D

C

-ED

+ A

F

C

-EF

+ A

G

C

-EG

… C

-

∼ I(0, K)

Forecast from known DGP is called optimum forecast.

We cannot obtain more accurate forecast from another model.

Forecast error of optimal forecast is solely due to futures shocks (random error):

"

!&#

L "

!&#|!

% A

B

C

!&#

@ A

D

C

!&#ED

+ ⋯ + A

#ED

C

!&D

The resulting variance of forecast is:

( "

!&#

L "

!&#|! F

% A

B

A

BN

@ A

D

A

DN

+ ⋯ + A

#ED

A

#EDN

11

(12)

Ex-ante forecast

error in estimated ARMA/VAR model

 Assume that we don't know the true DGP but use a model instead

 The variance of our forecast is:

Component A: error of "optimum forecast" (see previous slide) Component B: estimation / misspecification error

we want to minimize this value

Component C: equals to 0 if we cannot forecast future shock

(13)

Michał Rubaszek, Advanced Econometrics

Ex-ante forecast

estimation / misspecification error

Let us focus on the estimation / misspecification error and model complexity (S "

!&#

L "

!&#|! F

T

I. Large / complex models

 many parameters % large estimation error (high variance)

 many explanatory variables % good specification (low bias)

II. Small / simple models

 few parameters % small estimation error (low variance)

 few explanatory variables % potential misspecification (high bias)

Which effect dominates? We don't know and need to check it

13

(14)

Ex-ante forecast

Illustration of the variance / bias trade-off

(15)

Michał Rubaszek, Advanced Econometrics

Ex-ante forecast

Illustration of the variance / bias trade-off

 Let as assume that the true DGP is AR(1):

"

-

% ? @ W "

-

L ? @ X

-

 We have a sample of 180 monthly observations (15 years) for "

-

and would like to decide on one of the three competing models:

RW, Random walk: ?

[\

% 0 and W

[\

% 1

HL, 5-year half life model: ?

^_

% "` and W

^_

% 0.5

D/aB

AR, estimated AR model: ?

b[

and W

b[

are estimated

 Which model performs best?

It depends on the value of W

15

(16)

Ex-ante forecast

Illustration of the variance / bias trade-off

(17)

Ex-post forecast

17

(18)

About ex-post forecast

 We usually work with models that performed well in the past

 In ex-post forecast we ask a question :

how accurate forecasts the model would deliver if it was used in the past

 We evaluate ex-postforecasts to be sure about model reliability

 An important issue in the use of "real time data, RTD"

(19)

Michał Rubaszek, Advanced Econometrics

About ex-post forecast

 We compare forecast "

-,#c

from model

d

to realization "

-&#

to assess:

 the absolute quality of forecasts from model

d

MFE, effciency/unbiasedness tests, sequential forecasts, PIT

 the relative quality of forecasts from models

d

and

e

RMSFE/MSFE/MAFE, log predictive scores

 Various forecasting schemes

 rolling scheme

 recursive schemes

 fixed schemes

 A very important choice relates to the split of the sample into estimation and evaluation subsamples

19

(20)

Recursive forecasting scheme - illustration

(21)

Michał Rubaszek, Advanced Econometrics

Recursive forecasting scheme with RTD illustration

21 Source: Rubaszek M. & Skrzypczynski P., 2008. On the forecasting performance of a small-scale DSGE model, International Journal of Forecasting

(22)

Point forecasts accuracy measures

MFE - Mean Forecasts Error

f(# % 1

g# h "-&# L "-,#$

!E#

-i!j&D

(23)

Michał Rubaszek, Advanced Econometrics

Point forecasts accuracy measures

RMSFE - Root Mean Squared Forecast Error:

k lf(# % 1

g# h "-&# L "-,#$ F

!E#

-i!j&D

where T# % g L gD L @ 1

MSFE - Mean Squared Forecast Error:

lf(# % 1

g# h "-&# L "-,#$ F

!E#

-i!j&D

MAFE - Mean Absolute Forecast Error:

mf(# % 1

g# h |"-&# L "-,#$ |

!E#

-i!j&D

23

(24)

Point forecasts accuracy measures

Diebold-Mariano test for equal forecast accuracy

Forecast errors from two competing models nD-,# % "-&# L "D-,#$ and nF-,# % "-&# L "F-,#$ The quadratic loss function o-,# % nD-,#F L nF-,#F

The null of equal forecast accuracy (RMSFE) pB: ((o-,#) % 0

Test statistic:

q % o̅-,#

l/g# ∼ I 0,1

where l % ∑#EDdiE #ED tu(v)is the estimate of ``long-term’’ variance Important: loss function does not necessary need to be quadratic!

(25)

Michał Rubaszek, Advanced Econometrics

Point forecasts accuracy measures

25 Source: M. Kolasa & M. Rubaszek & P. Skrzypczyński, 2012. Putting the New Keynesian DSGE Model to the Real-Time Forecasting Test,

Journal of Money, Credit and Banking

RMSFE / DM test example

(26)

Point forecasts accuracy measures

RMSFE – graphical illustration

Notes: Each line represents the ratio of RMSE from a given method to RMSE from the random walk, where values below unity indicate better accuracy of point forecasts. The straight and dotted lines stand for VAR1 and VAR2, respectively. The forecast horizon is expressed in months.

(27)

Michał Rubaszek, Advanced Econometrics

Point forecasts accuracy measures

Efficiency / unbiasedness test – graphical illustration

27 Source: M. Kolasa & M. Rubaszek & P. Skrzypczyński, 2012. Putting the New Keynesian DSGE Model to the Real-Time Forecasting Test,

Journal of Money, Credit and Banking

(28)

Point forecasts accuracy measures

Efficiency / unbiasedness test

A relatively good forecast accuracy does not imply that they are satisfactory in the absolute sense! Absolute performance include ME and efficiency/unbiasedness test. For regression:

"-&# % {B @ {D"-,#$ @ X-,#

we test whether {B % 0 and {D % 1.

[ the alternative specification is n-,# % {B@ {D"-,#$ @ X-,# in which we test {B% 0 and {D% 0 ]

(29)

Michał Rubaszek, Advanced Econometrics

Point forecasts accuracy measures

29 Source: Ca’ Zorzi M. & Kolasa M. & Rubaszek M., 2017. Exchange rate forecasting with DSGE models, Journal of International Economics

(30)

Density forecasts accuracy measures

PIT – Probability Integral Transform

|Kg

-,#

% }

~•€•

,

-,#$

. o.

E‚

∈ „0,1…

where ,-,#$ (.) is the forecast for density distribution.

 In other words, PIT is the value forecasted cdf at realization

(31)

Michał Rubaszek, Advanced Econometrics

Density forecasts accuracy measures

PIT – Probability Integral Transform

 For a well calibrated model the series |Kg-,# should be drawn from KKq † 0,1

 We can check it through QQ plot or histogram

31 Source: M. Kolasa & M. Rubaszek & P. Skrzypczyński, 2012. Putting the New Keynesian DSGE Model to the Real-Time Forecasting Test,

Journal of Money, Credit and Banking

(32)

Density forecasts accuracy measures

LPS – Log Predictive Score

|l-,# % log(,-,#$ "-&# ) where ,-,#$ () is the forecast for density distribution.

(33)

Michał Rubaszek, Advanced Econometrics

Density forecasts accuracy measures

Amisano-Giacomini (2007) test

 AG test allows to compare LPS from two competing models The loss differential ‰-,# % ‰|lD-,# L ‰|lF-,#

The null of equal forecast accuracy pB: ((‰-,#) % 0 Test statistic: Šm % _`‹/!•,•

→ I 0,1

where l is the HAC estimate of the ``long-term’’ variance for ‰-,#

 Interpretation of average LPS difference between models:

‰|lD L ‰|lF

average percentage difference in data fit to predictive density

* Amisano, G., Giacomini, R., 2007. Comparing density forecasts via weighted likelihood ratio tests. Journal of Business & Economic Statistics 25, 177-190.

33

(34)

Density forecasts accuracy measures

LPS / AG test: example

(35)

Michał Rubaszek, Advanced Econometrics

Exercises

Exercise 1.

Select a country among US, EA, UK, CAD, AUS and try to replicate selected results from Table 2 from Ca'Zorzi, Kolasa & Rubaszek (2017).

A. Calculate recursive point forecasts for real exchange rate (level) for % 1: 24 from:

RW, ARIMA(1,1,1), ARMA(1,0), VAR(2) on levels, VAR(2) on growt rates

- % „"- ,- v-- —˜- "- ,- v-…′

B. Calculate MFE and RMSFE for the 5 methods

C. Compare the accuracy of forecasts from 4 models to RW with DM test

D. Conduct efficiency test / draw a scatter-plot for forecasts from two VAR models E. Make a plot for sequential forecasts from two VAR models

F. Add the ''AR fixed'' model to the competition

G. Compare the results to those from Ca'Zorzi, Kolasa and Rubaszek (2017)?

Notes: perform model evaluation using data from the period 1995:1-2013:4, as in Ca' Zorzi Michele, Marcin Kolasa and Michał Rubaszek, 2017. Exchange rate forecasting with DSGE models, Journal of International Economics

35

(36)

Exercises

Exercise 2.

Select a country among UK, CAD, AUS and a variable (output, prices or interest rates) and try to replicate selected results from Tables 4 and 5 from Kolasa & Rubaszek (2018).

A. Calculate recursive point and density forecasts for output level from BVAR(4) models:

NK model: - % „"- ,- v-…′

LS model: - % „"- ,- v-- —˜-…′

B. Compare RMSFE from both models with DM test

C. Calculate PIT from both models for 4-quarter ahead horizon. Make a graph D. Compare LPS from both models with GA test

E. Are the results the same as in Kolasa and Rubaszek?

Notes: perform model evaluation using data from the period 1995:1-2013:4, as in Kolasa M.

& Rubaszek M., 2018. Does the foreign sector help forecast domestic variables in DSGE

Cytaty

Powiązane dokumenty

In the most optimistic case we could use solar energy to produce 30% of our electricity in 2050, provided that there is no delay in giving science what it needs to make this

Ineke Boneschansker Ineke Boneschansker Hans Bruining Hans Bruining Chris Hellinga Chris Hellinga Erik Kelder Erik Kelder Roel van de. Roel van de Krol Krol Paul

With the help of Theorem 7 and the Lemma, we can easily prove Theorem 9.. , be some sequences of complex numbers. .) be an asymptotic sequence. .)... By using the previous Lemma, we

3.7. Logical reasoning and problem solving is rarely used by people. Even medical doctors, after many years of studying, relay mostly on an intuitive knowledge acquired during

Uzupełnij luki 1–3, wybierając jedną z podanych możliwości a, b lub c, tak aby otrzymać logiczny, spójny i poprawny językowo tekst.. My girlfriend likes

Use the 690+ Quick Start (HA4700631) guide to set up the drive and Autotune the drive in the Closed Loop Vector mode. Set the desired Distance, Velocity & Acceleration values,

The future vision for which ASM TERNI is working for, by providing an ac- cess to a proper electrical grid for a development of the pilot project, together with European partners,

Keeping the type of option constant, in-the-money options experience the largest absolute change in value and out-of-the-money options the smallest absolute change in