Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 3: Time Series Regression (Ch. 6) Material.

Slides:



Advertisements
Similar presentations
Objectives 10.1 Simple linear regression
Advertisements

13- 1 Chapter Thirteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
Inference for Regression
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material.
Econ 140 Lecture 81 Classical Regression II Lecture 8.
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
Ch11 Curve Fitting Dr. Deshi Ye
Chapter 12 Simple Linear Regression
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Qualitative Forecasting Methods
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 13-1 Chapter 13 Simple Linear Regression Basic Business Statistics 11 th Edition.
Multiple Regression Involves the use of more than one independent variable. Multivariate analysis involves more than one dependent variable - OMS 633 Adding.
1 Qualitative Independent Variables Sometimes called Dummy Variables.
The Simple Regression Model
Chapter 11 Multiple Regression.
Simple Linear Regression Analysis
Multiple Regression and Correlation Analysis
Linear Regression Example Data
SIMPLE LINEAR REGRESSION
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
BCOR 1020 Business Statistics Lecture 24 – April 17, 2008.
Chapter 12 Section 1 Inference for Linear Regression.
Multiple Regression Models
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS & Updated by SPIROS VELIANITIS.
Lecture 5 Correlation and Regression
Introduction to Linear Regression and Correlation Analysis
Inference for regression - Simple linear regression
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 12-1 Chapter 12 Simple Linear Regression Statistics for Managers Using.
Correlation and Linear Regression
Regression Method.
Chapter 12 Multiple Regression and Model Building.
Simple Linear Regression Models
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 10-1 Review and Preview.
Inferences in Regression and Correlation Analysis Ayona Chatterjee Spring 2008 Math 4803/5803.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide Simple Linear Regression Part A n Simple Linear Regression Model n Least Squares Method n Coefficient of Determination n Model Assumptions n.
Econ 3790: Business and Economics Statistics
Econ 3790: Business and Economics Statistics Instructor: Yogesh Uppal
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 8: Estimation & Diagnostic Checking in Box-Jenkins.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
1 1 Slide Simple Linear Regression Coefficient of Determination Chapter 14 BA 303 – Spring 2011.
© The McGraw-Hill Companies, Inc., Chapter 11 Correlation and Regression.
#1 EC 485: Time Series Analysis in a Nut Shell. #2 Data Preparation: 1)Plot data and examine for stationarity 2)Examine ACF for stationarity 3)If not.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
©2006 Thomson/South-Western 1 Chapter 13 – Correlation and Simple Regression Slides prepared by Jeff Heyl Lincoln University ©2006 Thomson/South-Western.
Slide 1 DSCI 5180: Introduction to the Business Decision Process Spring 2013 – Dr. Nick Evangelopoulos Lectures 5-6: Simple Regression Analysis (Ch. 3)
Multiple Regression and Model Building Chapter 15 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Chapter 4 Linear Regression 1. Introduction Managerial decisions are often based on the relationship between two or more variables. For example, after.
Lesson Multiple Regression Models. Objectives Obtain the correlation matrix Use technology to find a multiple regression equation Interpret the.
Multiple Regression Petter Mostad Review: Simple linear regression We define a model where are independent (normally distributed) with equal.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 5: Exponential Smoothing (Ch. 8) Material.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 2: Review of Multiple Regression (Ch. 4-5)
1 1 Slide Simple Linear Regression Estimation and Residuals Chapter 14 BA 303 – Spring 2011.
Lecture 10: Correlation and Regression Model.
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 12 Simple Linear Regression.
Chapter 12 Simple Linear Regression n Simple Linear Regression Model n Least Squares Method n Coefficient of Determination n Model Assumptions n Testing.
2/25/ lecture 121 STATS 330: Lecture 12. 2/25/ lecture 122 Diagnostics 4 Aim of today’s lecture To discuss diagnostics for independence.
ENGR 610 Applied Statistics Fall Week 11 Marshall University CITE Jack Smith.
Conceptual Foundations © 2008 Pearson Education Australia Lecture slides for this course are based on teaching materials provided/referred by: (1) Statistics.
Statistics for Business and Economics Module 2: Regression and time series analysis Spring 2010 Lecture 8: Time Series Analysis and Forecasting 2 Priyantha.
Time Series Forecasting Trends and Seasons and Time Series Models PBS Chapters 13.1 and 13.2 © 2009 W.H. Freeman and Company.
Correlation and Simple Linear Regression
Chapter 13 Simple Linear Regression
Slides by JOHN LOUCKS St. Edward’s University.
Section 9-3   We already know how to calculate the correlation coefficient, r. The square of this coefficient is called the coefficient of determination.
Essentials of Statistics for Business and Economics (8e)
Section 9-3   We already know how to calculate the correlation coefficient, r. The square of this coefficient is called the coefficient of determination.
Chapter Thirteen McGraw-Hill/Irwin
Presentation transcript:

slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 3: Time Series Regression (Ch. 6) Material based on: Bowerman-O’Connell-Koehler, Brooks/Cole

slide 2 DSCI 5340 FORECASTING Review of Homework in Textbook Ex 4.20 Page 210 Ex 4.21 Page 212 Ex 5.5 Page 266 EX 5.10 Page 268

slide 3 DSCI 5340 FORECASTING Insurance Innovation Data Ex 4.20 Page part a. Since there are two parallel lines – one for Mutual and one for Stock, a dummy variable can show the difference in the intercepts of the models. Y =  0 +  1 X +  2 D S + 

slide 4 DSCI 5340 FORECASTING 4.20 part b Y =  0 +  1 X +  2 D S +   a,m =  0 +  1 a +  2 (0) for X = a assets, and m= Mutual type of company (D = 0)  a,s =  0 +  1 a +  2 (1) for X = a assets, and m= Stock type of company (D = 1)  a,m -  a,s =  2  2 is the difference between the mean of number of months pasted (y) for a mutual type of company and a stock type of company.

slide 5 DSCI 5340 FORECASTING Since the p-value for  2 is E-05, reject H 0 :  2 = 0, and conclude that  2 is not equal to 0. 95% CI for  2 is 4.98 to 11.13, which does not include 0. Type of Firm is a significant variable in predicting Number of months elapsed at both a significance level of 5% and 1%.

slide 6 DSCI 5340 FORECASTING Ex 4.20 part d - Interaction Since the data indicate that the lines for the two type of firms are parallel. A p-value of.9821 is less than any reasonable alpha level. So the beta coefficient for xDs cannot be assumed to be nonzero.

slide 7 DSCI 5340 FORECASTING Ex 4.21 page 212 a.Y =  0 +  1 D M +  2 D T +  For Bottom Shelf, D M = 0 and D T = 0 which implies:  B =  0 +  1 (0) +  2 (0) =  0. For Middle Shelf, D M = 1 and D T = 0 which implies:  M =  0 +  1 (1) +  2 (0) =  0 +  1. For Top Shelf, D M = 0 and D T = 1 which implies:  T =  0 +  1 (0) +  2 (1) =  0 +  2.  M could be used to represent  1  T could be used to represent  2

slide 8 DSCI 5340 FORECASTING Ex 4.21 part b 4.21 part b. Note if  M and  T are equal to zero, then:  B =  0,  M =  0 +  M =  0 +  0, and  T =  0 +  2 =  0 +  0. Thus, H 0 :  M =0 and  T = 0 implies H 0 :  B =  M =  T.

slide 9 DSCI 5340 FORECASTING Ex 4.21 part c Since  B =  0,  M =  0 +  M, and  T =  0 +  T, we can solve for  0,  M, and  T. Therefore,  M =  M -  B,  T =  T -  B, and  M -  T =  M -  T. Note that t (.025, df=15) = (see table on page 593). 95% CI for  M is /– 2.131*1.433, which is to % CI for  T is /– 2.131*1.433, which is to

slide 10 DSCI 5340 FORECASTING Ex 4.21 part d page 213 Note that the Fit is 77.2 which corresponds to the mean of the Middle Shelf sales. Thus the output at the bottom of the Analysis of Variance is for a 95% CI and 95% PI for mean sales when using a middle display height.

slide 11 DSCI 5340 FORECASTING Ex 4.21 part e. Note that in part c, we were not able to get a confidence interval on  M -  T since it was equal to  M -  T. However, if the following model is used: Y =  0 +  1 D B +  2 D M +  then  M -  T is equal to  M since the Top Shelf is now the reference group. Note that t (.025, df=15) = (same as before). 95% CI for  M -  T (note equal to  M )is /– 2.131*1.433, which is to

slide 12 DSCI 5340 FORECASTING Page 266 Ex outliers

slide 13 DSCI 5340 FORECASTING EX 5.10 part a, Page 268 Y* =  0 +  1 X +  where Y* = ln(Y). Prediction point for 7 desktop computers and 95% PI for Y* is and to Prediction point for 7 desktop computers and 95% PI for Y is exp(5.0206) = and exp(4.3402) = to exp(5.7010) = Note that putting a “.” for Y* in the data with an X = 7 will provide a prediction interval and predicted value for this value in SAS.

slide 14 DSCI 5340 FORECASTING EX 5.10 part b, Page 268 There are a couple of small residuals at It may be possible to remove one of these residuals at a time or to try adding a square term to the model.

slide 15 DSCI 5340 FORECASTING Chapter 6 Polynomial Fits Use higher order terms when curvature exists in graph of y and x. Typically, x is time and square and cubic terms are added to increase the R square. Interactions can also be formed with higher order terms.

slide 16 DSCI 5340 FORECASTING Requirements for Fitting a pth-Order Polynomial Regression Model 1. The number of levels of x must be greater than or equal to (p + 1). 2. The sample size n must be greater than (p + 1) to allow sufficient degrees of freedom for estimating F 2.

slide 17 DSCI 5340 FORECASTING Count the number of times that a curve changes directions. A polynomial fit would have the highest order term be equal to one minus the number of times the curve changes directions. What degree polynomial would you use here?

slide 18 DSCI 5340 FORECASTING The use of a model outside its range is dangerous (although sometimes unavoidable). GNP (y) Inflation Rate (x,%) Extrapolation

slide 19 DSCI 5340 FORECASTING Line Tending Upward:  1 > 0 Curve Tending Downward:  1 < 0 Trend and coefficient sign

slide 20 DSCI 5340 FORECASTING Holds Water:  2 > 0 Does Not Hold Water:  2 < 0 Curvature and coefficient sign

slide 21 DSCI 5340 FORECASTING Curve Tending Upward:  1 < 0 Curve Tending Downward:  1 > 0 Inverse relationship

slide 22 DSCI 5340 FORECASTING Curve Tending Upward:  1 < 0 Curve Tending Downward:  1 > 0 Exponential curve

slide 23 DSCI 5340 FORECASTING S Curve y = exp(  0 +  1 (1/x) +  )

slide 24 DSCI 5340 FORECASTING Line Tending Upward: b 1 > 0 Curve Tending Downward: b 1 < 0 Logarithmic transformation for Y

slide 25 DSCI 5340 FORECASTING Curve Tending Upward: b 1 > 0 Curve Tending Downward: b 1 < 0 Logarithmic transformation for X

slide 26 DSCI 5340 FORECASTING Examples of autocorrelation in residuals

slide 27 DSCI 5340 FORECASTING Detecting Autocorrelation

slide 28 DSCI 5340 FORECASTING Detecting Positive Autocorrelation

slide 29 DSCI 5340 FORECASTING Detecting Negative Autocorrelation

slide 30 DSCI 5340 FORECASTING Rules of thumb for DW If DW is close to 2 then there is no autocorrelation. If DW is close to 0 then there is positive autocorrelation. If DW is close to 4 then there is negative autocorrelation.

slide 31 DSCI 5340 FORECASTING Modeling Seasonal Factor with Dummy Variables

slide 32 DSCI 5340 FORECASTING Trigonometric Models Model two is for increasing variation cyclically.

slide 33 DSCI 5340 FORECASTING Autoregressive errors Use Proc ARIMA for a First Order Autoregressive Process for the Error Term

slide 34 DSCI 5340 FORECASTING Prediction Intervals for Autoregressive Models

slide 35 DSCI 5340 FORECASTING Page 318 Ex 6.3 Page 318 Ex 6.4 Homework in Textbook