Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both.

Similar presentations


Presentation on theme: "1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both."— Presentation transcript:

1 1 Power Nine Econ 240C

2 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both models to forecast 1 period ahead Lab Five Preview Lab Five Preview –Airline passengers

3 3

4 4

5 5

6 6

7 7

8 8 Lab Three Exercises Process Identification Identification –Spreadsheet –Trace –Histogram –Correlogram –Unit root test Estimation Estimation Validation Validation

9 9

10 10

11 11

12 12

13 13

14 14

15 15

16 16

17 17 One Period Ahead Forecast E 2009.03 rsafnsa (2009.04) = 159,095.4 + 1090.535*207 E 2009.03 rsafnsa (2009.04) = 159,095.4 + 1090.535*207 E 2009.03 rsafnsa (2009.04) = E 2009.03 rsafnsaf (2009.03) + 1090.535 E 2009.03 rsafnsa (2009.04) = E 2009.03 rsafnsaf (2009.03) + 1090.535 E 2009.03 rsafnsa (2009.04) = 383745 + 1090.535 = 384835.5 +/- 2*ser E 2009.03 rsafnsa (2009.04) = 383745 + 1090.535 = 384835.5 +/- 2*ser Ser =21150 Ser =21150

18 18

19 19

20 20

21 21

22 22 Lab Three Exercises Process Identification Identification –Spreadsheet: check variable values –Trace: trended series and seasonal –Histogram: –Correlogram: similar to a “random walk” –Unit root test: evolutionary Estimation Estimation Validation Validation

23 23 Process Validating the model Validating the model –Actual, fitted, residual –Correlogram of the residuals –Histogram of the residuals

24 24 Add the quadratic term

25 25

26 26

27 27

28 28 Seasonal dummies

29 29

30 30

31 31

32 32

33 33

34 34

35 35 Now we know another way to forecast Seasonal difference retail Seasonal difference retail

36 36

37 37

38 38

39 39

40 40

41 41

42 42

43 43

44 44

45 45

46 46

47 47

48 48

49 49

50 50

51 51

52 52

53 53

54 54 Recap of Lab Four A Box-Jenkins famous time series: airline passengers A Box-Jenkins famous time series: airline passengers –Trend in mean –Trend in variance –seasonality Prewhitening Prewhitening –Log transform –First difference –Seasonal difference

55 55

56 56

57 57

58 58 Note trend from Spike in pacf at Lag one; seasonal Pattern in ACF

59 59

60 60

61 61 Log transform is fix for trend in Var

62 62 First difference for trend in mean Looks more stationary but is it?

63 63

64 64 Note seasonal peaks at, 12 24, etc.

65 65 No unit root, but Correlogram shows Seasonal Dependence on time

66 66

67 67

68 68

69 69 Note: sddlnbjpass is normal

70 70 Closer to white Noise; proposed Model ma(1), ma(12)

71 71

72 72

73 73 Satisfactory Model from Q-stats

74 74 And the residuals from the model are normal

75 75 How to use the model to forecast Forecast sddlnbjpass Forecast sddlnbjpass recolor recolor

76 76

77 77


Download ppt "1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both."

Similar presentations


Ads by Google