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

Similar documents
Forecasting in STATA: Tools and Tricks

Simple Methods and Procedures Used in Forecasting

5. Multiple regression

11. Analysis of Case-control Studies Logistic Regression

FINAL EXAM SECTIONS AND OBJECTIVES FOR COLLEGE ALGEBRA

Integrated Resource Plan

1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96

17. SIMPLE LINEAR REGRESSION II

Answer: C. The strength of a correlation does not change if units change by a linear transformation such as: Fahrenheit = 32 + (5/9) * Centigrade

Week TSX Index

Forecasting in supply chains

Module 6: Introduction to Time Series Forecasting

Non-Linear Regression Samuel L. Baker

Linear Regression. Chapter 5. Prediction via Regression Line Number of new birds and Percent returning. Least Squares

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

Simple Linear Regression

Univariate Regression

Scatter Plot, Correlation, and Regression on the TI-83/84

3. Regression & Exponential Smoothing

Straightening Data in a Scatterplot Selecting a Good Re-Expression Model

Time Series Analysis. 1) smoothing/trend assessment

A Primer on Forecasting Business Performance

Theory at a Glance (For IES, GATE, PSU)

4. Simple regression. QBUS6840 Predictive Analytics.

AP Physics 1 and 2 Lab Investigations

Nonlinear Regression Functions. SW Ch 8 1/54/

2. What is the general linear model to be used to model linear trend? (Write out the model) = or

Demand Forecasting LEARNING OBJECTIVES IEEM Understand commonly used forecasting techniques. 2. Learn to evaluate forecasts

Stat 412/512 CASE INFLUENCE STATISTICS. Charlotte Wickham. stat512.cwick.co.nz. Feb

Time Series Analysis and Forecasting

Part 1 : 07/27/10 21:30:31

Chapter 23. Inferences for Regression

Chapter 7: Dummy variable regression

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

8. Time Series and Prediction

Nominal and Real U.S. GDP

Chapter 27 Using Predictor Variables. Chapter Table of Contents

Forecasting the first step in planning. Estimating the future demand for products and services and the necessary resources to produce these outputs

Objectives of Chapters 7,8

Factors affecting online sales

Interaction between quantitative predictors

SPSS Guide: Regression Analysis

HYPOTHESIS TESTING: CONFIDENCE INTERVALS, T-TESTS, ANOVAS, AND REGRESSION

Causal Forecasting Models

ANALYSIS OF TREND CHAPTER 5

2013 MBA Jump Start Program. Statistics Module Part 3

2. Linear regression with multiple regressors

Simple Linear Regression Inference

Using R for Linear Regression

Auxiliary Variables in Mixture Modeling: 3-Step Approaches Using Mplus

Multiple Regression in SPSS This example shows you how to perform multiple regression. The basic command is regression : linear.

ECON 142 SKETCH OF SOLUTIONS FOR APPLIED EXERCISE #2

IAPRI Quantitative Analysis Capacity Building Series. Multiple regression analysis & interpreting results

OLS Examples. OLS Regression

Analysis of Bayesian Dynamic Linear Models

Final Exam Practice Problem Answers

INCREASING FORECASTING ACCURACY OF TREND DEMAND BY NON-LINEAR OPTIMIZATION OF THE SMOOTHING CONSTANT

Section A. Index. Section A. Planning, Budgeting and Forecasting Section A.2 Forecasting techniques Page 1 of 11. EduPristine CMA - Part I

Introduction to proc glm

Testing for Granger causality between stock prices and economic growth

4. Forecasting Trends: Exponential Smoothing

Regression III: Advanced Methods

MGT 267 PROJECT. Forecasting the United States Retail Sales of the Pharmacies and Drug Stores. Done by: Shunwei Wang & Mohammad Zainal

Part 2: Analysis of Relationship Between Two Variables

December 2014 Revenue Forecast Methodology

Outline: Demand Forecasting

Simple Regression Theory II 2010 Samuel L. Baker

Outline. Topic 4 - Analysis of Variance Approach to Regression. Partitioning Sums of Squares. Total Sum of Squares. Partitioning sums of squares

5-30. (25 min.) Methods of Estimating Costs High-Low: Adriana Corporation. a. High-low estimate

POLYNOMIAL AND MULTIPLE REGRESSION. Polynomial regression used to fit nonlinear (e.g. curvilinear) data into a least squares linear regression model.

Week 5: Multiple Linear Regression

Name: Date: Use the following to answer questions 2-3:

The existence of credential effects in Canadian nursing education; Quebec versus the rest of Canada

Ch.3 Demand Forecasting.

Fuzzy regression model with fuzzy input and output data for manpower forecasting

Interaction effects between continuous variables (Optional)

KSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management

Estimation of σ 2, the variance of ɛ

Mgmt 469. Regression Basics. You have all had some training in statistics and regression analysis. Still, it is useful to review

LOGIT AND PROBIT ANALYSIS

Data Mining Introduction

Trend and Seasonal Components

Introduction to Quantitative Methods

TIME SERIES ANALYSIS & FORECASTING

Draft 1, Attempted 2014 FR Solutions, AP Statistics Exam

Big Data, Socio- Psychological Theory, Algorithmic Text Analysis, and Predicting the Michigan Consumer Sentiment Index

Forecasting Methods. What is forecasting? Why is forecasting important? How can we evaluate a future demand? How do we make mistakes?

FORECASTING DEPOSIT GROWTH: Forecasting BIF and SAIF Assessable and Insured Deposits

Rockefeller College University at Albany

2. Simple Linear Regression

Chapter 7: Simple linear regression Learning Objectives

Logs Transformation in a Regression Equation

X X X a) perfect linear correlation b) no correlation c) positive correlation (r = 1) (r = 0) (0 < r < 1)

Chapter 3 Quantitative Demand Analysis

Directions for using SPSS

Introduction to Regression and Data Analysis

Why High-Order Polynomials Should Not be Used in Regression Discontinuity Designs

Introduction to Basic Reliability Statistics. James Wheeler, CMRP

hp calculators HP 50g Trend Lines The STAT menu Trend Lines Practice predicting the future using trend lines

Transcription:

Forecast Forecast is the linear function with estimated coefficients T T + h = b0 + b1timet + h Compute with predict command

Compute residuals Forecast Intervals eˆ t = = y y t+ h t+ h yˆ b t+ h 0 b Time 1 t Compute standard deviation of forecast These are constant over time Add to predicted values Identical to constant mean case

Out of Sample Forecast Out of sample prediction might be too low.

Out of Sample Women s Labor Force Participation No: Prediction was way too high!

Men s Labor Force Participation Rate

Estimation

In Sample Fit

Residuals

Forecast End of Sample looks worrying

Out of Sample Men s Labor Force Participation Linear Trend Terrible

Example 2 Retail Sales

Linear and Quadratic Trend

Linear and Quadratic Trend

Forecast

Residuals

Actual Values

Example 3: Volume

Estimating Logarithmic Trend

Fitted Trend

Residuals

Forecast

Out of Sample

Forecasting Levels from a Forecast of Logs Let Y t be a series and y t =ln(y t ) its logarithm Suppose the forecast for the log is a linear trend: E(y t+h Ω t ) = T t = β 0 + β 1 Time t Then a forecast for Y t is exp(t t ) If [L T, U T ] is a forecast interval for y T+h Then [exp(l T ), exp(u T )] is a forecast interval for Y T+h In other words, just take your point and interval forecasts, and apply the exponential function. In STATA, use generate command

Forecast in Levels

Out of Sample

Example 4: Real GDP

Ln(Real GDP)

Estimation

Fitted Trend

Residuals

Forecast of ln(rgdp)

Forecast of RGDP (in levels)

Out of Sample

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).

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.

Final Trend Forecast World Record 100 meter sprint

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.

Labor Force Participation Men Separate trends fit to 1950 1982 and 1983 1992

Sub Sample Trend Lines If you fit a trend for observations before and after a breakdate τ, then for t τ and for t>τ T 1 t = β 0 + β Time t T 1 = α + α Time t 0 t Notice that both the intercept and slope change

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 τ d t = 1 t ( τ )

Dummy Equation where This is a linear regression, with regressors Time t, d t and Time t d t ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 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 β α β β α β = =

Estimation

Fitted

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τ β 2 + β3τ = 0

Continuous Break You can impose a continuous trend by using a technique known as a spline T where t = β + β Time 0 1 ( Time τ ) ( t τ ) 0 1 t 2 t 1 = β + β Time Time t + β + β Time The variable Time t* is 0 before the breakdate, and is a smoothly increasing trend afterwards. 2 * t ( Time τ ) ( τ ) = t * t t 1

Fitted Continuous Trend

Continuous Trend Forecast

Contrast with Linear Trend Forecast

Break in 1974q1 Real GDP

Real GDP fitted

Forecast Breaking Trend Model

Contrast Forecast from Linear Trend

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