Analysis the relationship between consumer confidence index and...

11
Analysis the relationship between consumer confidence index and other macroeconomic indices using RBF network Sun Hao ECE539 Instructor: Pro.Yu Hen Hu

Transcript of Analysis the relationship between consumer confidence index and...

Page 1: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

 Analysis the relationship between 

consumer confidence index and other macroeconomic indices using RBF 

network         

Sun Hao  ECE539 

Instructor: Pro.Yu Hen Hu 

Page 2: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

Introduction: Motivation: 

Economists are always concern about how people respond to the current economic situations. So they develop the consumer confidence index to measure the people’s opinion on current and future situation. They also have many other macroeconomic indices, which measure different section of the current economic situation. But what is the relation between these indices and other index, in other words, which economic factor has the greatest effect on the attitude of consumer is still not clear?  

Besides, In American, consumption is account for 70% of GDP, which is the main part of economy. The power of consummation is consumers. So both government and investors pay close attention to the consumer’s attitude on consumption. Some researchers have shown that consumer confidence is valuable in the prediction of national consummation. If we can find the relation between consumer confidence and other indices, and successfully predict the confidence using these indices, then it will be helpful for us to predict the future consummation.   In my approach, I try to use radial basis function neural network to approximate the relation between the consumer confidence index and other indices. Then I will compare my result with multivariable linear regression method. Finally, I will use my model to see the effect of each economic factor on consumer confidence.  

 

Background: 

There are two key macroeconomic indicators describe the attitude of consumer, one is (ICS) consumer sentiment index published by university of Michigan and consumer confidence index published by The Conference Board. These two indices are quite similar. In my approach, I will use the consumer sentiment index by university of Michigan.  The other indices I choose is: CPI: Consumer confidence index, which is a very important index measure the current price level. This data is published every month.  Unemployment Insurance initial claims: it is published every week, which is more sensitive than the unemployment rate to the current labor market.  DJI: Dow Jones Industrial Average Index, which is a general index measure the performance of stock market.  Disposable household income: measure how many money people can spend. 

Page 3: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

 

Data and preprocessing: The data is from the website of Federal Reserve Bank of ST. Louis and Yahoo! Finance. I get the following indices: consumer sentiment index, CPI, UI Claim, unemployment rate, and DJI return. These data is published at least monthly, I get the monthly data from Jan.2005 to Oct.2008.  I choose this data range since the economic situation and consumer’s behavior changes over years. So the relation years ago may be different from now. Actually, I also get the data from 1992 to 2008 and do the training, which is harder to fitting.  

Then I calculate the monthly change of each index. For some of the index, I calculated 2nd degree monthly change.  

The next step is to choose valuable feature. There are so many kinds of indices, some of them may have relation with ICS and others may don’t have. So it is important to choose valuable data.  My method is to plot the ICS against each other indices to see weather there is any relation I can see from the plot. If it has relation, I will remain it in my feature vector. Otherwise I will not choose it. The result shows that CPI, UI claims both have some extent linear relationship with ICS and DJI index has weaker relationship with ICS.  The ICS in current month has stronger linear relationship with the ICS value in previous month.  There is not obvious relation between ICS and disposable income and unemployment rate, the reason may be that these two data is not sensitive and accurate enough. The plot is shown below: 

Notice in my plot, 1st change means the monthly change, and 2nd change means the monthly change on monthly change. For example, if the CPI for Jan. is 100, Feb. is 120, March is 130, then the 1st change for March is 130‐120 = 10 and 2nd change for March is (130‐120)‐(120‐100) = 10 ‐20 = ‐10. Besides, all the ICS 2nd change data I use are one month after other data. For example, for the following plot, a point may correspond to 2nd degree change of April and 1st degree change of CPI in March. In other words, I am doing a prediction problem on ICS(2nd change) here.  

 ‐400.00000 

‐300.00000 

‐200.00000 

‐100.00000 

0.00000 

100.00000 

200.00000 

‐200  ‐100  0  100  200  300  400  500 

CPI(1st) Vs ICS(2nd) 

Page 4: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

 

 

 

‐400.00000 

‐300.00000 

‐200.00000 

‐100.00000 

0.00000 

100.00000 

200.00000 

‐400  ‐300  ‐200  ‐100  0  100  200  300 

CPI(2nd change) Vs. ICS(2nd change) 

‐400.00000 

‐300.00000 

‐200.00000 

‐100.00000 

0.00000 

100.00000 

200.00000 

‐150  ‐100  ‐50  0  50  100 

DJI(1st) Vs. ICS(2nd) 

‐400.00000 

‐300.00000 

‐200.00000 

‐100.00000 

0.00000 

100.00000 

200.00000 

‐200  ‐100  0  100  200  300  400 

UI claim(1st) Vs. ICS(2nd) 

Page 5: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

 

 

As we can see, ICS (2nd change) has linear relation ship with other indices to some extent.  

Then these selected data are organized as my data set. Which is shown in the appendix. 

‐400.00000 

‐300.00000 

‐200.00000 

‐100.00000 

0.00000 

100.00000 

200.00000 

‐400  ‐200  0  200  400  600 

UI claim(2nd) Vs. ICS(2nd) 

‐400.00000 

‐300.00000 

‐200.00000 

‐100.00000 

0.00000 

100.00000 

200.00000 

‐200.0  ‐150.0  ‐100.0  ‐50.0  0.0  50.0  100.0  150.0 

ICS(1st) Vs. ICS(2nd) 

Page 6: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

 

Model construction: Structure: The overall structure of my model is shown below. I will use the value of current month to predict (approximate) the value in next month.   

  I use the MATLAB neural network toolbox to implement the RBF network. The main function I use is newgrnn. newgrnn creates a two‐layer network. The first layer has radial basis neurons, and calculates weighted inputs with dist and net input with netprod. The second layer has purelin neurons, calculates weighted input with normprod, and net inputs with netsum. Only the first layer has biases. The structure of neural network is shown below[MATLAB].  

 

Page 7: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

Training and testing: 

I divide the whole data into two part, training set and test set. Training set contains 31 samples and testing contains 10 samples. The model will be developed from the training set and then apply to the testing set to see the result. 

The RBF is quite powerful in approximate a function, a drawback of RBF is that it is doing interpolation locally, so it may not approximate data well if there is not data near by.  The spread parameter of newgrnn function plays a role to increase the prediction range.  A smaller the spread will give better fitting on the training data, but it may result in over fitting problem and the prediction region may be too small. So I try different parameter of spread. The corresponding mean square errors are listed and plot below: 

Spread  1  10  15  20  25  30  40  60 MSE(Training)  0  0.1509  1.4625  2.9288  4.1277  5.699  10.710  24.317 MSE(testing)  95.66  94.34  63.285  65.866  67.386  67.549  67.531  70.105 

 

 Notice that the best fit for the training set is spread 1 and the best for testing set is corresponding to spread 15.  So I choose the order 15 to develop model.  

Page 8: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

Result: 

Model testing: Apply  my  model  to  the  training  set  and  plot  the  target  curve  and  my  RBF approximation curve the result is shown below: 

 

Notice that the RBF fit the training curve quite well.  

Finally I apply my RBF model and multivariable linear regression method to the testing data. The curve I get is shown below: 

 

Notice that the RBF network curve (red) can partly approximate the target curve (blue). And compare with the multivariable linear regression (green), it fit better. 

‐200 

‐150 

‐100 

‐50 

50 

100 

150 

200 

0  5  10  15  20  25  30  35 

Target 

RBF 

‐200 

‐150 

‐100 

‐50 

50 

100 

150 

200 

0  2  4  6  8  10  12 

target  RBF  Mutilvariable linear regression 

Page 9: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

The mean square error is 63.285 for RBF, which is better than the 69.2200 for linear regression method.  

Effect of each factor: Here I try to vary each variable by 20% and see what is the change of the output: 

  CPI(1st)  CPI(2nd)  DJI(1st)   UI(1st)  ICS(pass value) 

Output change 

0.6950      0.3454      0.1898      0.1287      0.3424 

 

 

 

Conclusion and discussion: 1. The RBF network can be used to predict the value of consumer confidence 

index, which give better result than the standard multivariable linear regression method.  

2. Besides, I try MLP with back propagation learning. The best mean square I can get is 70.5653, which is larger than 63.285 (the best testing result of RBF). In other words, RBF perform better in this case than MPL.  

3. To predict the ICS value, it is quite useful and important to include the past ICS value. If we only include the other macroeconomics indices as input. The mean square error will increase from 63.285 to 68.9896. And MSE for the linear regression method will increase from 70.5653 to 77.6966.  

4. From the change of each variable, we can see that the CPI 1st change has the most significant effect on consumer confidence index. The DJI has weaker effect. And the unemployment insurance initial claim has the weakest effect. It makes sciences, since the CPI measure the price level.  It affects every consumers and many consumer indeed deicide their consumption plan depend on the price level. For the unemployment condition, it only affects some of the household. And even people lose job for a while, it may still have save in the bank to spending in a short time. So the effect of unemployment rate has relatively little effect on consumer confidence.  Done Jones Index has larger effect than the unemployment rate. The reason may be that most people will learn the news about the performance of stock market and some of them are even hold some stock. So the finance market’s performance will have great psychological effect on people’s opinion of current economic situation.  The last input is the past value of ICS. We may treat this input as a measure of the self adjusts ability of macroeconomic. If we have a higher increase of consumer confidence in the last month, it is quite possible to have low value in this month and vise versa.  

Page 10: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

 

Reference: http://www.federalreserve.gov/releases/ http://www.conference‐board.org/economics/consumerConfidence.cfm http://www.dol.gov/ http://research.stlouisfed.org/fred2/series/UMCSENT/ Tomaso Poggio, “Networks for Approximation and Learning”, proceedings of the IEEE, vol. 78, No. 9, September 1990 

 

Appendix: 

My data set: CPI(1st) CPI(2nd) DJI(1st) UI(1st) ICS(1st) ICS(2nd)

139.969 46.365 -31.125 -43.860 -9.100 113.840

-46.440 -186.409 27.497 33.639 104.700 -99.510

15.504 61.944 -19.251 -35.503 5.200 -81.892

201.446 185.942 36.594 -39.877 -76.700 -60.241

200.103 -1.344 -15.931 47.923 -136.900 101.814

397.554 197.451 8.710 179.878 -35.100 134.841

60.362 -337.191 -12.863 -162.791 99.700 21.593

-135.542 -195.904 36.580 -9.259 121.300 -124.602

-15.129 120.414 -8.837 -21.807 -3.300 -46.063

181.635 196.763 14.736 -76.433 -49.300 74.717

-15.045 -196.680 12.855 44.828 25.400 -42.248

45.158 60.203 11.591 -9.901 -16.900 -78.093

150.301 105.143 25.782 146.667 -95.000 168.291

104.686 -45.615 -19.883 -110.465 73.300 -75.681

89.419 -15.267 -1.809 32.680 -2.400 -29.522

148.588 59.170 3.546 15.823 -31.900 73.341

133.070 -15.518 19.547 -9.346 41.500 54.555

--265.553 29.792 -6.289 96.000 -112.044

Page 11: Analysis the relationship between consumer confidence index and …homepages.cae.wisc.edu/~ece539/fall08/project/Sun_rpt.pdf · 2008-12-19 · As we can see, ICS (2nd change) has

132.483

-147.856 -15.373 40.166 6.329 -16.000 11.683

29.718 177.574 14.120 25.157 -4.300 61.050

178.130 148.412 24.122 -33.742 56.700 -114.498

37.186 -140.943 15.854 -15.873 -57.800 26.028

89.314 52.127 -35.306 32.258 -31.800 17.058

138.128 48.815 8.572 25.000 -14.700 28.483

95.515 -42.613 70.856 -94.512 13.800 -47.752

138.371 42.856 56.473 47.138 -34.000 93.764

79.245 -59.126 -21.902 -22.508 59.800 -137.223

66.877 -12.368 -19.663 46.053 -77.400 77.434

5.922 -60.955 14.575 6.289 0.000 -29.976

109.748 103.826 53.789 -12.500 -30.000 -29.356

78.558 -31.190 3.438 25.316 -59.300 51.448

269.068 190.510 -55.829 49.383 -7.900 46.295

106.670 -162.397 -10.690 -29.412 38.400 -135.349

118.481 11.810 -61.446 63.636 -96.900 78.577

7.764 -110.717 -38.397 -19.943 -18.400 -80.919

103.024 95.260 -0.350 31.977 -99.300 54.552

62.166 -40.859 55.724 36.620 -44.700 -12.128

194.954 132.788 -18.181 48.913 -56.900 141.963

316.689 121.736 -128.831 -98.446 85.100 -55.695

245.351 -71.338 2.801 313.218 29.400 86.461

-41.199 -286.550 16.553 -26.258 115.900 -296.527

-9.183 32.016 -69.289 80.899 -180.700 107.157