Professional Documents
Culture Documents
Group 9 - Mid - Term Assignment
Group 9 - Mid - Term Assignment
Group members:
Tạ Mai Linh: 1714450039
Vũ Thị Thu Nga: 1714410079
Hoàng Minh Quyên: 114410027
LIST OF TABLES
i
Table 3-4. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Double Exponential Smoothing Method ......................................................... 11
Table 3-5. The result of Holt Exponential Smoothing ............................................. 12
Table 3-6. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Holt Exponential Smoothing Method .............................................................. 12
Table 3-7. The result of Winter Exponential Smoothing ........................................ 15
Table 3-8. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Winter Exponential Smoothing Method ......................................................... 15
Table 3-9. Result of Analytics method ....................................................................... 17
Table 3-10. Collinearity test result ............................................................................. 18
Table 3-11. Heteroskedasticity test result ................................................................. 19
Table 3-12. Omitted variable test result .................................................................... 19
Table 3-13. Predicted values of CPI in Vietnam from January 2019 to June 2019
using Analytics Method ............................................................................................... 20
Table 3-14. Unit Root Test result ............................................................................... 21
Table 3-15. Correlogram Specification of CPI ......................................................... 22
Table 3-16. Seasonal ARIMA model result ............................................................... 23
Table 3-17. Stable and invertible test result .............................................................. 23
Table 3-18. Predicted result of CPI in Vietnam from January 2019 to June 2019
using ARIMA Method ................................................................................................. 24
Table 3-19. Unit Root Test result ............................................................................... 25
Table 3-20. Correlogram Specification of CPI ......................................................... 26
Table 3-21. Non-seasonal ARIMA model result ....................................................... 27
Table 3-22. Stable and invertible test result .............................................................. 27
Table 3-23. Predicted result of CPI in Vietnam from January 2019 to June 2019
using SARIMA Method............................................................................................... 28
Table 4-1. Predicts monthly CPI from January 2019 to June 2019 using different
method .......................................................................................................................... 30
Table 4-2. Predicted CPI from January 2019 to June 2019 using Analytics method31
ii
LIST OF FIGURES
1
CHAPTER 1: INTRODUCTION
The CPI is an economic indicator that plays an important role in society. The CPI is
closely related to the inflation rate of a country in a given period. The volatility of the CPI
can have a huge impact on the domestic market, because when it exceeds the prescribed
threshold, it will cause inflation or deflation to weaken an economy in a short period of
time. The calculation and analysis of the CPI can not only make the an approximate
predictions about the future of the economy but also act as an announcement, helping the
government and people to prepare necessary measures to cope with or to change these
adverse effects.
Recognizing the importance of consumer price index in the economy, with the
knowledge of Economics 1, Economics 2, and Economic Forecasting, group uses
quantitative analysis, analyzing the monthly CPI from January 2014 to December 2018 to
implement the project: "FORECAST VIETNAM MONTHLY CONSUMER PRICE
INDEX FROM JANUARY 2019 TO JUNE 2019". Paper structure consists of 3 sections:
Chapter 1: Introduction
Chapter 2: Methodology and data description
Chapter 3: Forecast process and results
Chapter 4: Conclusion and recommendations
We would also want to express our gratitude toward PhD. Chu Thi Mai Phuong and the
Department of International Economics at Foreign Trade University for providing us with
the necessary background knowledge to complete the essay in the best way
During the forecasting process, due to the limited time and limited knowledge, the essay
may have many shortcomings, and we hope to receive your profound comments so that we
can improve the accuracy in our predict result.
In which:
2
- Ft - Forecast demand level for period t
- Ft-1 - Forecast demand level for period t-1
- At-i - Actual demand level for period t-i
- αt-i - Exponential smoothing coefficient
𝒀𝑫𝑬 𝑺𝑬 𝑺𝑬
𝒕 = (𝒀 )𝒕
In which:
However, when using the method of winter hats, we must consider the influence of the
following factors:
3
• The additive model: the influence of periodic and seasonal factors is not related to the
general level of the chain.
• The multiplication model: seasonal factors depend on trend and cyclical factors.
In which:
- St = Seasonal estimation
- γ = Estimated constant of smoothing exponent (0 < γ <1)
- h = The number of periods (observations) for ahead estimation.
- P = The number of periods (observation) in the seasonal cycle
➔ The most effective model with the smallest RMSE/MAPE should be selected
Check whether the data is a multiplication model or an additive model by observing the
trend of the series
4
- Step 2: Separate the seasonal elements from the series
+ Calculate the value of CMA4 if the data by quarter, and CMA12 if the data by month
+ Calculate the ratio of observations, which is the ratio between the original series and
the moving average series
+ Adjust the original series through seasonal indicators: there is a seasonal index every
quarter / month that reflects the seasonal impact. The adjusted series value is:
𝒀(𝒋)𝒊
The multiplication model: 𝒀𝑺𝑨𝑹
(𝒋)𝒊 = 𝑺𝑹
The additive model: = 𝒀𝑺𝑨𝑫
(𝒋)𝒊
𝑺𝑨𝑹
𝒀(𝒋)𝒊 - SDi
- Step 3: Estimate the trend function and forecast
+ Inspection of violations:
· Self-correlation test
- Step 4: Combine the trendy and seasonal factors to give the final forecast results
+ From the estimation in the sample to get the result: the percentage of average error of
the smallest MAPE, we conduct the forecast outside the sample given by YSAF
5
2.3. Forecast by ARIMA Model
6
+ Test the stability and reversibility
+ Test white noise
+ Test quality forecast
If testing the selected model is not satisfied, then go back the identification stage to
choose another more reasonable model.
- Step 4: Forecast outside the sample
After testing the error, if the model is suitable, the model will be used in the forecast.
The criteria used to compare forecast effectiveness are RMSE, MAE and R2.
3. Data description:
Our research dataset consists of 60 observations between January 2014 and December
2018 examining the Monthly Consumer Price Index of Vietnam, according to research
from General Statistics Office of Vietnam. It is clear that the consumer price index was
highest at 100.9 in August 2017 and went down to the lowest at 99.5 in May 2017. The
mean of our data is 100.2050 while the standard deviation is 0.318058.
From the dataset, the team made forecasts for the CPI of Vietnam from January 2014 to
December 2018 using a number of different methods such as exponential smoothing
method, analysis method and ARIMA model.
7
Figure 2-2. GPI by Season
Proc => Exponential smoothing => Simple exponential smoothing => Single
8
Table 3-1. Result of the Single Exponential Smoothing Method
Forecasted values of CPI in Vietnam from January 2019 to June 2019 are as in the
following table:
Table 3-2. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Single Exponential Smoothing Method
Graph the differences between observed CPI and predicted CPI using Eview
9
Figure 3-1. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Single Exponential Smoothing Method
Forecasted values of CPI in Vietnam from January 2019 to June 2019 are as in the
following table:
Table 3-4. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Double Exponential Smoothing Method
Graph the differences between observed CPI and predicted CPI using Eview
Figure 3-2. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Double Exponential Smoothing Method
11
3.1.3. Holt Exponential Smoothing
Proc => Exponential smoothing => Simple exponential smoothing => Holt –
winter: No seasonal. The results are as follow:
Forecasted values of CPI in Vietnam from January 2019 to June 2019 are as in the
following table:
Table 3-6. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Holt Exponential Smoothing Method
Graph the differences between observed CPI and predicted CPI using Eview
12
Figure 3-3. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Holt Exponential Smoothing Method
First, we have to determine whether the data is Multiplicative or Additive. We run the
following command: line cpi
13
Figure 3-4. CPI line graph
According to the shape of the line graph, we can see that the data is Multiplicative
After having determine the data type, we proceed using the following step in Eview:
Proc => Exponential smoothing => Simple exponential smoothing => Holt –
winter- Multiplicative
14
Table 3-7. The result of Winter Exponential Smoothing
Forecasted values of CPI in Vietnam from January 2019 to June 2019 are as in the
following table:
Table 3-8. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Winter Exponential Smoothing Method
15
Graph the differences between observed CPI and forecasted CPI using Eview
Figure 3-5. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Winter Exponential Smoothing Method
16
Table 3-9. Result of Analytics method
From the above table, we can see that variable CPI(-1) have p-value = 0.0051 < α = 0.05
=> Reject H0 => The model is significant
In Stata, choose View -> Residual Diagnostics -> Serial Correlation LM test
17
Table 3-10. Collinearity test result
From the above table, we can see that p-value = 0.1947 > α = 0.05 => Does not reject
H0 => Collinearity doesn’t exist
Histogram – Normality test: In Stata, choose View -> Residual Diagnostics ->
Histogram – Normality LM test. We have the following graph:
Heteroskedasticity Test:
In Stata, choose View -> Residual Diagnostics -> Heteroskedasticity Test. We have the
following result:
18
Table 3-11. Heteroskedasticity test result
From the above table, we can see that p-value = 0.1316 > α = 0.05 => Does not reject
H0 => Heteroskedasticity doesn’t exist
In Stata, choose View -> Stability Diagnostics -> Ramsey RESET Test. We have the
following result:
From the above table, we can see that p-value = 0.000 < α = 0.05 => Reject H0 =>
Omitted variable exists
We will proceed to forecast CPI from 2014M01 2015M01 and obtain the following
result:
19
Figure 3-7. Forecasted values of CPI in Vietnam from January 2019 to June 2019
using Analytics Method
- Step 4: Combine the trend and seasonal factors to give the final forecast results
In Stata we use the following command Genr cpip = cpiaf1*sr and obtain the following
result:
Table 3-13. Predicted values of CPI in Vietnam from January 2019 to June 2019
using Analytics Method
20
Figure 3-8. Predicted values of CPI in Vietnam from January 2019 to June 2019
using Analytics Method
21
We have the following pair of hypothesis:
We have P-value = 0.0000 < 0.05, => Reject 𝐻0 => CPI is stationary at level
- Step 2: Estimate the parameters and select the model of the parameters
In Eview, choose view → Correlogram Specification → 1st different & lags to 24
22
Table 3-16. Seasonal ARIMA model result
23
Next we forecast from 2015M01 2016M01:
Figure 3-9. Forecasted result of CPI in Vietnam from January 2015 to January 2016
using ARIMA Method
Table 3-18. Predicted result of CPI in Vietnam from January 2019 to June 2019
using ARIMA Method
24
Figure 3-10. Forecasted result of CPI in Vietnam from January 2015 to January
2016 using ARIMA Method
25
We have the following pair of hypothesis:
We have P-value = 0.0000 < 0.05, => Reject 𝐻0 => CPI is stationary at level
- Step 2: Estimate the parameters and select the model of the parameters
Next we choose p and q. In Eview, choose view → Correlogram Specification → 1st
different & lags to 24
26
Table 3-21. Non-seasonal ARIMA model result
Figure 3-11. Forecasted result of CPI in Vietnam from January 2015 to January
2016 using SARIMA Method
Type the following command genr cpip3 = cpip2*sr and obtain the following predicted
values:
Table 3-23. Predicted result of CPI in Vietnam from January 2019 to June 2019
using SARIMA Method
28
Figure 3-12. Forecasted result of CPI in Vietnam from January 2019 to June 2019
using SARIMA Method
29
CHAPTER 4: CONCLUSION AND RECOMMENDATIONS
Table 4-1. Predicts monthly CPI from January 2019 to June 2019 using different method
Single exponential Double exponential Holt exponential Winter exponential Analytics ARIMA models ARIMA model
Time
smoothing method smoothing method smoothing method smoothing method method without seasonal with seasonal
2019M01 100.1769 100.2995 99.84961 100.3472 100.0550 99.76073 99.90807
2019M02 100.1769 100.3026 99.82961 100.4272 100.3152 99.75677 99.97893
2019M03 100.1769 100.3057 99.80961 100.1070 100.2113 99.56976 99.73274
2019M04 100.1769 100.3087 99.78961 100.1671 100.1775 99.54326 99.70053
2019M05 100.1769 100.3118 99.76961 100.2271 100.2346 99.54455 99.76501
2019M06 100.1769 100.3149 99.74961 100.3472 100.3660 99.55733 99.86373
RMSE 0.318483 0.314324 0.333001 0.279173
MAPE 0.226791 0.380664 0.270523
Source: Author’s calculation using Eview
30
By using many methods, we can conclude that Analytics method is the most suitable
one to predict Vietnam CPI from January to June 2019 because it provide result with the
smallest RMSE/MAPE (0.226791). Predicted values of Vietnam monthly CPI have a
tendency to fluctuate but will increase in general in the next 6 months, with detail as in
the following table:
Table 4-2. Predicted CPI from January 2019 to June 2019 using Analytics method
Time CPI
2019M01 100.0550
2019M02 100.3152
2019M03 100.2113
2019M04 100.1775
2019M05 100.2346
2019M06 100.3660
Source: Author’s calculation using Eview
A high CPI can indicate a risk of high inflation. Economists have warned of a
continued risk of high inflation if nothing is done to control the consumption price index
(CPI). There are a number of recommendations to Vietnam government to stabilize CPI:
First, the government needs to control price level and its closely-related factors such
as gold price, exchange rate. For example, the State Bank must reduce the difference
between domestic and gold prices in the world to reduce speculators having to buy USD
to import gold to avoid affecting the exchange rate.
Second, Vietnam needs to attract more foreign currency from other sources,
especially FDI, ODA, remittances, foreign visitors to Vietnam. This measure helps
stabilize the exchange rate while improving the balance of payments, increasing foreign
exchange reserves.
In addition, Vietnam should use more monetary tools to check the upswing in prices.
Raising of the compulsory reserve ratio, for example, would have a direct impact on the
credit market, serving as a tool for tightening monetary policy as it helps reduce the
volume of cash on circulation.
Another example is that keep the difference between deposit interest rates between
VND and USD large enough to increase the attractiveness of VND and increase the
31
conversion from USD to VND. At the same time, the State Bank can inject USD liquidity
into the interbank market to intervene when necessary, requiring commercial banks and
export enterprises to increase the USD supply to the market.
We would also want to suggest that Vietnamese government cut back on their public
spending in order to lower inflation rate.
REFERENCE
General statistics office of Vietnam (2020). Monthly consumer price index. [online].
Available at: https://www.gso.gov.vn/default.aspx?tabid=720 [Accessed 22 May
2020].
Nguyen, Q. and Nguyen, T., (2013). Giáo trình Kinh tế lượng. 2nd ed. National
Economy University Publishing.
Gujarati, D.N. and Porter, D.C. (2017). Basic econometrics. Usa: Mcgraw-Hill/Irwin.
Sanson, N. (2015). Forecasting the consumer price index of Ghana using exponential
smoothing methods. (2019). Mathematical Theory and Modeling.
32
Ingenito, R., & Trehan, B. (1996). Using monthly data to predict quarterly output.
Federal Reserve Bank of San Francisco Economic Review, 3, 3–11.
Koenig, E., Dolmas, S., & Piger, J. (2003). The use and abuse of real-time data in
economic forecasting. Review of Economics and Statistics, 85(3), 618–628.
33