การเปรียบเทียบอัลกอริธึม SES, DES, TES, ARIMA และ LSTM เพื่อการทำนายผลจากข้อมูลอนุกรมเวลาแบบสั้น

Main Article Content

ภูมิพัฒน์ ดวงกลาง
ชัญญาวัจน์ สถิตภัทรสมบัติ

บทคัดย่อ

A time series is a sequence of observations which are collected and ordered over a period. The observations can be collected for hours, days, months, or years. There has been an assumption that the dependence of successive observations in time series is probable to exist. By means of time series analysis, this dependence is examined to discover a pattern utilised to prepare a prediction, and the prediction is one of various common objectives which can be achieved using time series analysis. Fortunately, time series analysis has been a topic of interest among academics for many decades and quite different algorithms for the prediction task have already been at our disposal. These algorithms are either well-established statistical ones or based on approaches of machine learning. In this paper, an experimental comparison of five different algorithms (simple exponential smoothing (SES), double exponential smoothing (DES), triple exponential smoothing (TES), autoregressive integrated moving average (ARIMA), and long short-term memory (LSTM)) is carried out using 10 examples of short time series to examine the performance of the selected algorithms over the task of time series prediction. The experimental results reveal that of 10 time series, the application of TES, and LSTM provides the best results in four time series each, while SES, and ARIMA outperform others in one time series each. It is more likely that LSTM algorithm could be used for the prediction task of time series analysis.

Article Details

บท
บทความวิจัย

References

Box GEP, Jenkins GM, Reinsel GC. Time Series Analysis: Forecasting and Control. Hoboken, New Jersey: John Wiley & Sons; 2008.

Adhikari R, Agrawal RK. An Introductory Study on Time series Modeling and Forecasting [Internet]. New York: Cornell University; 2013. [updated 2013 Feb 26; cited 2022 Feb 26]. Available from: https://arxiv.org/pdf/1302.6613

Pant A, Rajput RS. Time Series Analysis of Gold Price Using R. In: Digitalization in Commerce & Its Impact on Economy. [Uttar Pradesh]: Social Research Foundation; 2019. p. 15–24.

Kirshners A, Borisov A. A Comparative Analysis of Short Time Series Processing Methods. Scientific Journal of RTU [Internet]. 2012 [cited 2022 Feb 26];15(1):65–69. Available from: https://itms-journals.rtu.lv/article/viewFile/v10313-012-0009-4/2677

Tarsitano A. Classification Of Short Time Series [Internet]. Ponte Pietro Bucci: Universita della Calabria; 2009. [updated 2009; cited 2022 Feb 26]. Available from: http://www.ecostat.unical.it/repec/workingpapers/WP05_2009.pdf

Montgomery DC, Jennings CL, Kulahci M. Introduction to Time Series Analysis and Forecasting. 2nd ed. Hoboken: John Wiley & Sons; 2015.

Berninger J. Forecasting the Time Series of Apple Inc.’s Stock Price [master’s thesis]. [Los Angeles]: University of California; 2018.

Devi BU, Sundar D, Alli P. An Effective Time Series Analysis for Stock Trend Prediction Using ARIMA Model for Nifty Midcap-50. International Journal of Data Mining & Knowledge Management Process [Internet]. 2013 Jan [cited 2022 Feb 27];3(1):65–78. Available from: https://aircconline.com/ijdkp/V3N1/3113ijdkp06.pdf

Booranawong T, Booranawong A. Simple and Double Exponential Smoothing Methods with Designed Input Data for Forecasting. Suranaree Journal of Science and Technology [Internet]. 2016 Jan-Mar [cited 2022 Feb 28];23(1):301–310. Available from: https://www.researchgate.net/publication/322355629_SIMPLE_AND_DOUBLE_EXPO NENTIAL_SMOOTHING_METHODS_WITH_DESIGNED_INPUT_DATA_FOR_

FORECASTING_A_SEASONAL_TIME_SERIES_IN_AN_APPLICATION_FOR_LIME_PRICES_IN_THAILAND

Kim K-J. Financial time series forecasting using support vector machines. Neurocomputing [Internet]. 2003 Sep [cited 2022 Feb 28];55(1-2):307–319. Available from: https://www.sciencedirect.com/science/article/abs/pii/S0925231203003722

Siami-Namini S, Tavakoli N, Namin AS. A Comparison of ARIMA and LSTM in Forecasting Time Series. In: 17th IEEE International Conference on Machine Learning and Applications. Orlando: PublisherInstitute of Electrical and Electronics Engineers; 2018. p. 1394–1401.

Hyndman R, Yang Y. tsdl: Time Series Data Library v0.1.0 [Internet]. [Clayton]: Monash University; 2018 [updated 2018; cited 2022 Feb 28]. Available from: https://pkg.yangzhuo ranyang./tsdl/.

Hyndman RJ, Athanasopoulos G. Forecasting: Principles and Practice. 2nd ed. Heathmont, Vic.: OTexts; 2018.

Prabhakaran S. Augmented Dickey Fuller Test (ADF Test) – Must Read Guide [Internet]. [updated 2019 Nov 2; cited 2022 Feb 26]. Available from: https://www.machinelearning plus.com/time-series/augmented-dickey-fuller-test/.

Jarque CM, Bera AK. Efficient tests for normality, homoscedasticity and serial independence of regression residuals. Economics Letters. 1980;6(3):255–259.

Ljung GM, Box GEP. On a measure of lack of fit in time series models. Biometrika. 1978 Aug;65(2):297–303.

Hyndman RJ. Thoughts on the Ljung-Box test [Internet]. [Clayton]: [Monash University]; 2014 [updated 2014 Jan 24; cited 2022 Mar 19]. Available from: https://robjhyndman.com/ hindsight/ljung-box-test/.

Nau R. Moving average and exponential smoothing models [Internet]. [North Carolina]: [Duke University]; 2019 [updated 2020 Aug 18; cited 2022 Jan 13]. Available from: https://people.duke.edu/~rnau/411avg.htm#HoltLES

Kourentzes N. Additive and multiplicative seasonality – can you identify them correctly? [Internet]. Lancashire: Lancaster University; 2014 [updated 2014 Nov; cited 2022 Jan 13]. Available from: https://kourentzes.com/forecasting/2014/11/09/additive-and-multiplicative-seasonality/.

Goyal A. Data Science: Long Short Term Memory (LSTM) RNN [Internet]. [place unknown]: [publisher unknown]; 2018 Mar- [cited 2022 Jan 13]. Available from: https://datascience basicsblog.wordpress.com/2018/03/11/long-short-term-memorylstm-rnn/.

Hyndman RJ, Koehler AB. Another look at measures of forecast accuracy. International Journal of Forecasting. 2006 Oct-Dec;22(4):679–688.

statsmodels [Internet]. [place unknown]: statsmodels-developers; c2009-19 [updated 2020 Feb 08; cited 2022 Jan 13]. Available from: https://www.statsmodels.org/stable/index.html

Hyperopt: Distributed Hyperparameter Optimization [Internet]. [place unknown]: GitHub, Inc.; 2022 [updated 2021 Nov 29; cited 2022 Jan 13]. Available from: https://github.com/ hyperopt/hyperopt

pmdarima: ARIMA estimators for Python [Internet]. [place unknown]: Taylor G Smith; c2017-22 [updated 2017 Sep 3; cited 2022 Feb 26]. Available from: https://alkaline-ml.com/ pmdarima/index.html

TensorFlow [Internet]. [place unknown]: GitHub, Inc.; 2022 [updated 2021 Nov 29; cited 2022 Jan 13]. Available from: https://www.tensorflow.org/.

Keras [Internet]. [place unknown]: [publisher unknown]; 2022 [updated 2021 Nov 29; cited 2022 Jan 13]. Available from: https://keras.io/.