• No results found

Forecast. Forecast is the linear function with estimated coefficients. Compute with predict command

N/A
N/A
Protected

Academic year: 2021

Share "Forecast. Forecast is the linear function with estimated coefficients. Compute with predict command"

Copied!
53
0
0

Loading.... (view fulltext now)

Full text

(1)

Forecast

• Forecast is the linear function with estimated  coefficients

Compute with predict command

h T h

T

b b Time

T

+

=

0

+

1 +

(2)

Forecast Intervals

• Compute residuals

• Compute standard deviation of forecast

These are constant over time

• Add to predicted values

Identical to constant mean case

t h

t

h t h

t t

Time b

b y

y y

e

1 0

ˆ ˆ

=

=

+

+ +

(3)

Out‐of‐Sample Forecast

• Out of sample prediction might be too low.

(4)

Out‐of‐Sample

Women’s Labor Force Participation

• No: Prediction was way too high!

(5)

Men’s Labor Force Participation Rate

(6)

Estimation

(7)

In‐Sample Fit

(8)

Residuals

(9)

Forecast

• End of Sample looks worrying

(10)

Out‐of‐Sample

Men’s Labor Force Participation

• Linear Trend Terrible

(11)

Example 2

Retail Sales

(12)

Linear and Quadratic Trend

(13)

Linear and Quadratic Trend

(14)

Forecast

(15)

Residuals

(16)

Actual Values

(17)

Example 3: Volume

(18)

Estimating Logarithmic Trend

(19)

Fitted Trend

(20)

Residuals

(21)

Forecast

(22)

Out‐of‐Sample

(23)

Forecasting Levels from a Forecast of Logs

Let  Yt be a series and yt=ln(Yt) its logarithm

Suppose the forecast for the log is a linear trend:  

E(yt+h | Ωt) = Tt = β0+ β1 Timet

Then a forecast for  Yt is  exp(Tt)

If [LT , UT] is a forecast interval for  yT+h

Then [exp(LT) , exp(UT)]  is a forecast interval for  YT+h

In other words, just take your point and interval  forecasts, and apply the exponential function.

In STATA, use generate command

(24)

Forecast in Levels

(25)

Out‐of‐Sample

(26)

Example 4: Real GDP

(27)

Ln(Real GDP)

(28)

Estimation

(29)

Fitted Trend

(30)

Residuals

(31)

Forecast of ln(RGDP)

(32)

Forecast of RGDP (in levels)

(33)

Out‐of‐Sample

(34)

Problems with Pure Trend Forecasts

Trend forecasts understate uncertainty

Actual uncertainty increases at long forecast  horizons.

Short‐term trend forecasts can be quite poor  unless trend lined up correctly

Long‐term trend forecasts are typically quite  poor, as trends change over long time periods

It is preferred to work with growth rates, and  reconstruct levels from forecasted growth rates  (more on this later).

(35)

Trend Models

• I hope I’ve convinced you to be skeptical of  trend‐based forecasting.

• The problem is that there is no economic 

theory for constant trends, and “changes” in  the trend function are not apparent before  they occur.

• It is better to forecast growth rates, and build  levels from growth.

(36)

Final Trend Forecast

World Record – 100 meter sprint

(37)

Changing Trends

• We have seen in some cases that it appears  that the trend slope has changed at some  point.

• This is a type of structural change, sometimes  called a changing trend or breaking trend.

• We can model this using the interaction of  dummy variables with the trend.

(38)

Labor Force Participation ‐ Men

Separate trends fit to 1950‐1982 and 1983‐1992

(39)

Sub‐Sample Trend Lines

• If you fit a trend for observations before and  after a breakdate τ, then for  t≤τ

and for t>τ

• Notice that both the intercept and slope  change

t

t Time

T =

β

0 +

β

1

t

t

Time

T = α

0

+ α

1

(40)

Estimation

• You can simply estimate on each sub‐sample  separately, and then forecast using the second  set of estimates.

• Or, you can use dummy variable interactions.

• Define the dummy variable for observations  after time  τ

(

τ )

= t dt 1

(41)

Dummy Equation

where 

• This is a linear regression, with regressors Timet,  dt and  Timetdt

( ) ( ) ( ) ( )

( ) ( ( ) ( ) ) ( )

t t t

t

t t

t t

t

d Time d

Time

t Time

Time

t Time

t Time

T

3 2

1 0

1 1

0 0

1 0

1 0

1 0

1 1

1

β β

β β

τ β

α β

α β

β

τ α

α τ

β β

+ +

+

=

+

+

+

=

+

+

<

+

=

1 1

3

0 0

2

β α

β

β α

β

=

=

(42)

Estimation

(43)

Fitted

(44)

Discontinuity

• One problem with this method is that the 

estimated trend function can be discontinuous

At the breakdate τ there might be a jump in the  trend function

This might not be sensible

We may wish to impose continuity

• In the model, this requires or

τ α α

τ β

β0 + 1 = 0 + 1

3 0

2 + β τ =

β

(45)

Continuous Break

You can impose a continuous trend by using a  technique known as a spline

where

The variable  Timet* is 0 before the breakdate,  and is a smoothly increasing trend afterwards.

( ) ( )

* 2

1 0

2 1

0 1

t t

t t

t

Time Time

t Time

Time T

β β

β

τ τ

β β

β

+ +

=

+

+

=

(

τ

) (

τ

)

= Time t Timet* t 1

(46)

Fitted Continuous Trend

(47)

Continuous Trend Forecast

(48)

Contrast with Linear Trend Forecast

(49)

Real GDP

• Break in 1974q1

(50)

Real GDP ‐ fitted

(51)

Forecast – Breaking Trend Model

(52)

Contrast – Forecast from Linear Trend

(53)

How to pick Breaks/Breakdates

• With caution, and skeptically

• Always have plenty of data (at least 10 years)  after the breakdate

• Look for economic explanations

• Formally, the breakdate can be selected by  minimizing the sum of squared errors

References

Related documents

Our result suggests that every method, approach and tool should be considered to improve the organisational justice climate, which in turn can play an important role in

Then, in the second stage, we consider only those instances that are classified as positive by the first classifier, and classify them into one of four types within the positive

These patients may suffer from an insufficient control of motor symptoms despite treatment with L-Dopa+ or may suffer from dose dependent or non -dose dependent motor

Figures 8 and 9 show the PCAs carried out for this year, and it is possible to observe that for the harvest 2012, the e-nose can also discriminate the different grape ripening

Disciplinary action by a medical board was also associated with low scores on the Medical College Admission Test and poor grades in the first two years of medical school (1

NCQA ranked two of Missouri’s three Medicaid managed Care health plans, Health Care USA and Missouri Care Health Plan.. The state’s third Medicaid managed care plan, Home State

I. The acquisition is made through a domestic stock exchange. The acquisition and, if applicable, the sale on the stock market, is made at market price, except in the case of

Outcomes/Products, Assessments and Standards Matrix “Your American Dream” Entrepreneur