Mat530 - Mini Project - Group 2
Mat530 - Mini Project - Group 2
Mat530 - Mini Project - Group 2
METHOD
•
Nur Dini Huda binti Rosgi , Nur Hanani Sofiya Binti Mohamad Arif , and Faris Bin Nor Azmi
1
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA (UiTM) Kampus Seremban
3,70300 Seremban, Negeri Sembilan
According to the International Monetary Fund, Malaysia's economy is the fourth largest in Southeast Asia
and the 38th largest in the world. Due to a high density of knowledge-based sectors and adoption of cutting-
edge technologies for manufacturing and the digital economy, labour productivity in Malaysia is much higher
than in neighbouring Thailand, Indonesia, the Philippines, or Vietnam. According to the Global
Competitiveness Report 2019, Malaysia's economy is the world's 27th most competitive, and it is one of the
top ten countries to embrace a digital legal framework.
Gross domestic product (GDP) is the total monetary or market value of all the finished goods and services
produced within a country’s borders in a specific time period. As a broad measure of overall domestic
production, it functions as a comprehensive scorecard of a given country’s economic health.
A mathematical model is a representation of a system that uses mathematical concepts and language to
describe it. It's a model that includes a set of system-related questions and a set of mathematical statements
that can be used to answer them.
Figure utilization, to provide uninterrupted production process for diverse customer demand in relation to
quality and timely delivery and to help the company to deliver a good products to customers on continuous
basis at competitive rates (Biswas & Chakraborty, 2016). One of the keys in production planning is the
determination of the optimal product mix as it can impact the company’s profitability. Product mix problem
involves the selection of optimal product combinations that maximize profit in demand constraints and
production resources (Gunasekaran, Zainali, & Aghapour, 2015). By achieving an optimal product mix, the
company is able to increase profits and minimize production costs. As stated by Ginting,
Discrete model is a system which a quantity change value over discrete time interval. A nonlinear system
in which the country evolves in discrete time steps over state space following to a fixed rule is known as a
discrete dynamical system. One of the most prominent types of models in Discrete Dynamical Equations that
also we have been used in this project is the Discrete Malthusian Growth model. The Malthusian Growth
Model is named after Thomas Malthus, a British philosopher who lived in 1766. This model is also known as
the simple exponential growth model. This model is a model with only one variable and one parameter.
2
The objective of this project are to determine the equation for each GDP percentage model. We want to
calculate the values of Root-Mean-Square Deviation (RMSD) for each model. Lastly, we are to determine the
most suitable model for the GDP percentage in Malaysia.
LITERATURE REVIEW
(Fernando, 2021) stated that the total monetary or market worth of all finished goods and services produced
inside a country's borders in a certain time period is known as GDP. It serves as a comprehensive scorecard of
a country's economic health because it is a wide measure of entire domestic production. GDP is normally
estimated on an annual basis, although it is also calculated on a quarterly basis. The government of the United
States, for example, publishes an annualized GDP estimate for each fiscal quarter as well as the calendar year.
Because the data in this report is presented in actual terms, it has been corrected for price fluctuations and is
thus inflation-adjusted.
(Collins & Nguyen, 2021) extend the micro to macro literature, according to D. Collins, by dissecting
earnings into R&D and pre-R&D components. They find that both components may forecast future real GDP
growth with varied lead-lag structures using Almon's finite distributed lag model (1965). Importantly, this
breakdown considerably improves the predictive model's explanatory ability when accounting data is used.
Through the GDP channels of personal consumption, business investment, and net export, aggregate
accounting R&D can predict real GDP. Their research builds on previous work on the forecasting utility of
accounting data at the aggregate level, and it has practical implications for macro forecasting and public policy
decisions involving publicly traded companies' creative activities. (Akgül et al., 2022) investigates four
fractional derivatives in the gross domestic product model. They also use the Sumudu transform to obtain
fractional model solutions and demonstrate the efficiency of the Sumudu transform through the use of theoretic
findings and applications.
3
(Ge & Tang, 2020)explores the extent to which commodity prices can forecast GDP growth rates of various
countries using indices of 27 regularly traded commodity futures in another study linked to GDP prediction.
Commodity returns have a high prediction value for the next quarter's GDP growth, while the basis has a
moderate predictive capacity. Overall, commodity prices can be seen of as a leading indication of future
economic growth; rising commodity prices and basis values signal a stronger economy in the future. The futures
market can now give worldwide pricing information and has become an important indicator of economic
circumstances thanks to the creation of contemporary financial derivatives. Commodities play an essential role
in the economy as both raw materials for industrial production and important consumer goods for everyday
life. In the research of (Kouziokas, 2017), a machine learning methodology for time series forecasting of GDP
is proposed. To build forecasting models for projecting the Gross Domestic Product, Artificial Neural Networks
are used. Several network topologies were tested using different transfer functions and varied numbers
ofneurons in the hidden layers in order to produce the best forecasting model. The findings revealed that the
levels of Gross Domestic Product may be predicted with a high degree of precision.
(Zainon, 2019) built this study model using GDP data of Melaka and Negeri Sembilan for the years 2005-
2016. Discrete Dynamical System model is used to construct a mathematical model using state GDP data. The
states' future GDP was also predicted using the appropriate parameter value. In the long run, data that is not
monitored and examined will have an impact on economic growth. Any large shift in GDP, whether positive
or negative, can have a considerable impact on investor mood. If data is not monitored and examined, it is
obvious that economic activity and growth will suffer. To address this problem, a mathematical model will be
used to track and analyze data in an analytical and logical manner.
Static Model
Static and dynamic prediction models demonstrated excellent discriminations for incident Type 2 diabetes
(T2DM) in the (Asgari et al., 2021) study, with only minor variations between them. Our findings are
consistent with a study (Parastet al, 2019) that found that the dynamic land- mark model for predicting
incident T2DM had the same area under the curve (AUC) as the static model within three years among
people who were not taking metformin (dynamic = 0.682 vs. static = 0.678). (Russell et al., 2021) examines
the cost-effectiveness outcomes of two models of maternal immunization to prevent pertussis in infants in
Brazil, one static and the other dynamic, to see when static models are sufficient for public health choices and
when dynamic models are worth the extra work. The static model was also used to forecast the
costeffectiveness of maternal immunization under average conditions for the period 1999–2016, which is
similar to the dynamic model's projections(Russell et al., 2021).
4
Discrete Malthusian Model
The Gross Domestic Product of Malaysia was collected from the website Kaggle
(https://www.kaggle.com/holoong9291/gdp-of-all-countries19602020) based on our time series data. We
choose to use data from the Gross Domestic Product for a 20-year period, from 2001 to 2020.
5
2013 0.004216296
2014 0.004290699
2015 0.004067341
2016 0.004001191
2017 0.003981883
2018 0.004211217
2019 0.004227818
2020 0.004341755
Static Model and Discrete Dynamical System are the two types of models that we used. We apply the
Least Square Method for the Static Model. The straight-line equation, polynomial equation, and single
exponential equation are the three equations we determine. We apply the Discrete Malthusian Growth Model
for the Discrete Dynamical System. The data for each model was likewise computed using Microsoft Excel.
In terms of data forecasting, we may utilize the equation of an appropriate model to meet the study's goals.
For each model, we 8 calculate the Root-Mean-Square Deviation (RMSD). Then, based on the lowest RMSD
value, we chose the optimal model.
Static Model
Where,
𝑎0 ,𝑎1 = constant
6
1 0.002803726 1 0.0028
2 0.002934542 4 0.0059
3 0.002856959 9 0.0086
4 0.002869697 16 0.0115
5 0.003047883 25 0.0152
6 0.003186091 36 0.0191
7 0.003362305 49 0.0235
8 0.003653648 64 0.0292
9 0.003375288 81 0.0304
𝑛 ∑𝑥 𝑎0 ∑𝑦
[ 2 ] [𝑎 ] = [ ]
∑𝑥 ∑𝑥 1 ∑𝑥𝑦
20 210 𝑎0 0.07
[ ][ ] = [ ]
210 2870 𝑎1 0.83
20 210
𝐴=[ ]
210 2870
7
Where |𝐴| = 13300
|𝑎0 | = 36.73
|𝑎1 | = [ 20 0.07
]
210 0.83
|𝑎1 | = 1.16
|𝑎0 | |𝑎1 |
𝑎0 = and 𝑎1 =
|𝐴| |𝐴|
|36.73|
𝑎0 =
|13300|
𝑎0 = 0.00276197
|1.16|
𝑎1 =
|13300|
𝑎1 = 0.00008755
𝑦 = 𝑎0 + 𝑎1 𝑥
𝑦 = 0.00276197 + 0.00008755𝑥
After that, we calculate the predicted Gross Domestic Product (GDP) by using the equation obtained above
and the square of Actual minus Predict as shown in the table below:
8
0.003653648 0.00206156802 0.00000253471866
0.003375288 0.00197401782 0.00000196355811
0.003888252 0.00188646763 0.00000400714068
0.004089658 0.00179891743 0.00000524749236
0.004218684 0.00171136723 0.00000628663736
0.004216296 0.00162381704 0.00000672094717
0.004290699 0.00153626684 0.00000758689651
0.004067341 0.00144871665 0.00000685719351
0.004001191 0.00136116645 0.00000696972963
0.003981883 0.00127361625 0.00000733470877
0.004211217 0.00118606606 0.00000915153823
0.004227818 0.00109851586 0.00000979253188
0.004341755 0.00101096566 0.00001109415760
𝛴 (𝐴𝑐𝑡𝑢𝑎𝑙 − 𝑃𝑟𝑒𝑑𝑖𝑐𝑡)2
0.00008891936720
RMSD = 0.002108547
𝑦 = 𝐴𝑒𝐵𝑥
where,
9
= dependent variable (year)
= initial value of
Firstly, based on the equation, we need to linearize the equation as shown below,
𝑙𝑛 𝑦 = 𝑙𝑛 𝐴 + 𝑙𝑛 𝑒𝐵𝑥
𝑙𝑛 𝑦 = 𝑙𝑛 𝐴 + 𝑙𝑛 𝐵𝑥
Compare with
𝑦 = 𝛼0 + 𝛼
∴ 𝑌 = ln 𝑦
𝑎0 = ln 𝐴
𝑎1 = 𝐵
By using Least Square Method,
𝑦 = 𝛼0 + 𝛼1𝑥
20 210 𝑎0 −112.32516
[ ] [𝑎 ] = [ ]
210 2870 1 −1162.94996
|𝛼0| = -78153.72
|𝑎1 | = [ 20 −112.32516
]
210 −1162.94996
|𝛼1| = 329.2847
and
Equation exponential,
11
𝑦 = 𝐴𝑒𝐵𝑥
𝐴0 = ln 𝐴
𝐴 = 0.0028054
𝐴1 = 𝐵
𝐵 = 0.0247583
𝑦 = 0.0028054𝑒 0.0247583𝑥
After that, we calculate the predicted Gross Domestic Product (GDP) by using the equation obtained above
and the square of Actual minus Predict as shown in the table below:
12
Calculate value RMSD by using formula,
RMSD = 0.000237532
3. Polynomial Equation
𝑦 = 𝑎0 + 𝑎1𝑥 + 𝑎2𝑥2
where,
𝑎0 , 𝑎1 , 𝑎2 = constant
13
12 0.004218684 144 1728 20736 0.05 0.61
𝑛 ∑𝑥 ∑𝑥 2 𝑎0 ∑𝑦
[ ∑𝑥 ∑𝑥 2 ∑𝑥 ] [𝑎1 ] = [ ∑𝑥𝑦 ]
3
∑𝑥 2 ∑𝑥 3 ∑𝑥 4 𝑎2 ∑𝑥 2 𝑦
| 𝐴 | = -54195320.00
|𝑎0| = - 566591.74.00
20 0.07 2870
|𝑎1 | = [ 210 0.83 44100 ]
2870 11.71 722666
|𝑎1| = - 8072721.41
14
20 210.00 0.07
|𝑎2 | = [ 210 2870.00 0.83 ]
2870 44100.00 11.71
|𝑎2| = - 17270.96
and
𝑦 = 𝑎0 + 𝑎1 + 𝑎2𝑥2
15
0.003186091 -0.09 0.008978
n = number of years
RMSD = 0.188691481
16
Discrete Dynamical System
Assuming n is the GDP percentage and n is the year, the formula is as follows:
𝑃𝑛+1 = 𝑃𝑛 + 𝑟𝑃𝑛
= (1 + )𝑃𝑛
where;
= growth rate constant
= number of years
𝑃𝑛 = GDP percentage of
𝑃𝑛+1= Total GDP for year, +1
2001 0 0.002803726 -
-
2003 2 0.002856959
0.02644
-
2009 8 0.003375288
0.07619
17
-
2013 12 0.004216296
0.00057
-
2015 14 0.004067341
0.05206
-
2016 15 0.004001191
0.01626
-
2017 16 0.003981883
0.00483
We may get the growth rate constant, r, by substituting the data GDP percentage into this calculation. After
that, we calculate the average of r and construct the equation as follows:
Average of r
= 0.024507
𝑃𝑛 = (1 + 0.1152 ) 0
𝑃𝑛 = 1.1152 0
Then, using the formula above, we calculate the predicted GDP percent and determine the percentage
inaccuracy after 2002. Fill in the value of n in the form for each year. Using the following formula, we can
calculate the percentage error for each year:
18
The table of calculation as shown below:
Then, as indicated below, we must calculate the value of Actual minus Predict:
19
9 2010 0.003888 0.00365 6.1531% 2009.99611
10 2011 0.00409 0.00374 8.5882% 2010.99591
11 2012 0.004219 0.00383 9.2123% 2011.99578
12 2013 0.004216 0.00392 6.9346% 2012.99578
13 2014 0.004291 0.00402 6.3072% 2013.99571
14 2015 0.004067 0.00412 -1.2601% 2014.99593
15 2016 0.004001 0.00422 -5.4568% 2015.99600
16 2017 0.003982 0.00432 -8.5651% 2016.99602
17 2018 0.004211 0.00443 -5.1686% 2017.99579
18 2019 0.004228 0.00454 -7.3229% 2018.99577
19 2020 0.004342 0.00465 -7.0676% 2019.99566
Where P0 = 0.002934542
Then, as stated in the table below, we must square the amount of Actual minus Predict and total it:
Actual-Predict (A-P)square
-0.00007 0.000000005171999819
-0.00022 0.000000049808727581
-0.00029 0.000000081753340308
-0.00019 0.000000034252396504
-0.00013 0.000000015900171796
-0.00003 0.000000000964314733
0.00018 0.000000031374605893
-0.00019 0.000000034756156759
0.00024 0.000000057239218681
0.00035 0.000000123360605024
0.00039 0.000000151037802064
0.00029 0.000000085489044958
0.00027 0.000000073237936550
-0.00005 0.000000002626827734
-0.00022 0.000000047670903558
-0.00034 0.000000116316703167
-0.00022 0.000000047375972756
20
-0.00031 0.000000095850556225
-0.00031 0.000000094162160166
SUM 0.000001148349444276
Finally, we use the formula below to get the RMSD for the Discrete Malthusian Growth Model:
RMSD = 0.000245844
Results and Comparison
System
Equation
As a consequence of the analysis, we can deduce that the Static Model by Single Exponential Equation is
the best model for forecasting Gross Domestic Product. Because the RMSD in single exponential equations is
smaller than the others which is 0.000237532.
21
CONCLUSION
In conclusion, mathematical models can assist us in comprehending and exploring the application of
equations or functional connections in this subject. Then we can learn how to use mathematical modeling tools
like Microsoft Excel. As a consequence, we can put what we've learned into practice in our everyday lives.
We may deduce from the models that the Static Model in polynomial equations is the best model since it has
the minimum RMSD. Using equations that we uncover, we can also anticipate the value of the GDP in
Malaysia.
REFERENCES
https://www.investopedia.com/terms/g/gdp.asp#toc-what-is-gross-domestic-productgdp
Collins, D. W., & Nguyen, N. Q. (2021). Aggregate accounting research and development expenditures and
the prediction of real gross domestic product. Journal of Accounting and Public Policy, 106901.
https://doi.org/10.1016/j.jaccpubpol.2021.106901
Akgül, E. K., Jamshed, W., Nisar, K. S., Elagan, S., & Alshehri, N. A. (2022). On solutions of gross
domestic product model with different kernels. Alexandria Engineering Journal, 61(2), 1289–1295.
https://doi.org/10.1016/j.aej.2021.06.067
Fatinah, Z., Noraziah, M., Faezzah, M. D., & Rahela, A. R. (2019). INTRODUCTION. PROJECTION
ANALYSIS OF STATES GROSS DOMESTIC PRODUCT USING DISCRETE DYNAMICAL
SYSTEMS, 4(20), 1–2.
N. Kouziokas, G. (2017). Machine Learning Technique in Time Series Prediction of Gross Domestic
Product. ACM International Conference Proceeding Series, Part F1325.
Ge, Y., & Tang, K. (2020). Commodity prices and GDP growth. International Review of
Ortega-Bastida, J., Gallego, A. J., Rico-Juan, J. R., & Albarrán, P. (2021). A multimodal approach for
regional GDP prediction using social media activity and historical information. Applied Soft
Computing, 111, 107693.
https://doi.org/10.1016/j.asoc.2021.107693
Russell, L. B., Kim, S. Y., Toscano, C., Cosgriff, B., Minamisava, R., Lucia Andrade, A., Sanderson, C., &
Sinha, A. (2021). Comparison of static and dynamic models of maternal immunization to prevent
infant pertussis in Brazil. Vaccine, 39(1), 158–166.
22
https://doi.org/10.1016/j.vaccine.2020.09.006
Prentiss, A. M., Foor, T. A., & Hampton, A. (2018). Testing the Malthusian model: Population and storage at
Housepit 54, Bridge River, British Columbia. Journal of Archaeological Science:
23
APPENDIX
24
Figure 3: Static Model Calculation
ACKNOWLEDGEMENT
The authors would like to thank everyone that direct or indirectly gave a help for us in completing our mini
project.
25