Evaluating Volatility Using an ANFIS Model for Financial Time Series Prediction
Abstract
:1. Introduction
2. Preliminaries
2.1. ARIMA Models
2.2. GARCH Models
2.3. Fuzzy Logic
2.4. Adaptive Neuro Fuzzy Inference Systems—ANFIS
- Calculate the membership functions for each point in the plane.
- For each rule, estimate , which is defined as the firing strength of each rule. It can be calculated as a weight of the membership values or by multiplying the membership function values.
- Establish the percentage contribution of each rule to the final solution: .
- Finally, calculate the system’s output as ), where is typically a linear combination of the variables in the consequent.
3. Specification of ARIMA-ANFIS and ARIMA-GARCH Models
3.1. Identification Process for the Conditional Mean Model
3.2. Volatility with ANFIS Model
Layer 1—Fuzzification
Layer 2—Rule Evaluation
Layer 3—Aggregation
Layer 4—Defuzzification
4. Application to a Real Time Series
4.1. Identification Process for the Conditional Mean Model
4.2. ANFIS and GARCH Estimation
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Alenezy, Abdullah H., Mohd Tahir Ismail, Sadam Al Wadi, and Jamil J. Jaber. 2023. Predicting stock market volatility using modwt with hyfis and fs.hgd models. Risks 11: 121. [Google Scholar] [CrossRef]
- Aznarte, José Luis, and José Manuel Benítez. 2010. Equivalences between neural-autoregressive time series models and fuzzy systems. IEEE Transactions on Neural Networks 21: 1434–44. [Google Scholar] [CrossRef]
- Bergmeir, Christoph, Rob J. Hyndman, and Bonsoo Koo. 2018. A note on the validity of cross-validation for evaluating autoregressive time series prediction. Computational Statistics & Data Analysis 120: 70–83. [Google Scholar]
- Bollerslev, Tim. 2023. Reprint of: Generalized autoregressive conditional heteroskedasticity. Journal of Econometrics 234: 25–37. [Google Scholar] [CrossRef]
- Bollerslev, Tim, and Robert F. Engle. 1993. Common Persistence in Conditional Variances. Econometrica 61: 167–86. [Google Scholar] [CrossRef]
- Dickey, David A., and Wayne A. Fuller. 1979. Distribution of the estimators for autoregressive time series with a unit root. Journal of the American Statistical Association 74: 427–31. [Google Scholar]
- Diebold, Francis X., and Roberto S. Mariano. 1995. Comparing predictive accuracy. Journal of Business & Economic Statistics 13: 253–63. [Google Scholar]
- Engle, Robert F., and Andrew J. Patton. 2007. What good is a volatility model? In Forecasting Volatility in the Financial Markets. Amsterdam: Elsevier, pp. 47–63. [Google Scholar]
- Goodell, John W., Satish Kumar, Weng Marc Lim, and Debidutta Pattnaik. 2021. Artificial intelligence and machine learning in finance: Identifying foundations, themes, and research clusters from bibliometric analysis. Journal of Behavioral and Experimental Finance 32: 100577. [Google Scholar] [CrossRef]
- Hamilton, James D. 2020. Time Series Analysis. Princeton: Princeton University Press. [Google Scholar]
- Huarng, Kunhuang, and Hui-Kuang Yu. 2005. A type 2 fuzzy time series model for stock index forecasting. Physica A: Statistical Mechanics and its Applications 353: 445–62. [Google Scholar] [CrossRef]
- Hyndman, Rob J., and George Athanasopoulos. 2018. Forecasting: Principles and Practice. Melbourne: OTexts. [Google Scholar]
- Jang, J.S. Roger. 1993. Anfis: Adaptive-network-based fuzzy inference system. IEEE Transactions on Systems Man and Cybernetics 23: 665–85. [Google Scholar] [CrossRef]
- Jiang, Huimin, Farzad Sabetzadeh, and Chen Zhang. 2024. An intelligent adaptive neuro-fuzzy inference system for modeling time-series customer satisfaction in product design. Systems 12: 224. [Google Scholar] [CrossRef]
- Jithendra, Thandra, and Shaik Sharief Basha. 2023. A hybridized machine learning approach for predicting COVID-19 using adaptive neuro-fuzzy inference system and reptile search algorithm. Diagnostics 13: 1641. [Google Scholar] [CrossRef]
- Karaboga, Dervis, and Ebubekir Kaya. 2019. Adaptive network based fuzzy inference system (ANFIS) training approaches: A comprehensive survey. Artificial Intelligence Review 52: 2263–93. [Google Scholar] [CrossRef]
- Khan, Muhammad Zahir, and Muhammad Farid Khan. 2019. Application of anfis, ann and fuzzy time series models to co2 emission from the energy sector and global temperature increase. International Journal of Climate Change Strategies and Management 11: 622–42. [Google Scholar] [CrossRef]
- Khashei, Mehdi, and Mehdi Bijari. 2011. A novel hybridization of artificial neural networks and arima models for time series forecasting. Applied Soft Computing 11: 2664–75. [Google Scholar] [CrossRef]
- Mamdani, Ebrahim H., and Sedrak Assilian. 1999. An experiment in linguistic synthesis with a fuzzy logic controller. International Journal of Human-Computer Studies 51: 135–47. [Google Scholar] [CrossRef]
- Poon, Ser-Huang, and Clive W. J. Granger. 2003. Forecasting Volatility in Financial Markets: A Review. Journal of Economic Literature 41: 478–539. [Google Scholar] [CrossRef]
- Sahiner, Mehmet, David G. McMillan, and Dimos Kambouroudis. 2023. Do artificial neural networks provide improved volatility forecasts: Evidence from Asian markets. Journal of Economics and Finance 47: 723–62. [Google Scholar] [CrossRef]
- Takagi, Tomohiro, and Michio Sugeno. 1985. Fuzzy identification of systems and its applications to modeling and control. IEEE Transactions on Systems, Man, and Cybernetics SMC-15: 116–32. [Google Scholar] [CrossRef]
- Talebizadeh, Mansour, and Ali Moridnejad. 2011. Uncertainty analysis for the forecast of lake level fluctuations using ensembles of ann and anfis models. Expert Systems with Applications 38: 4126–35. [Google Scholar] [CrossRef]
- Tsai, Ming-Chi, Ching-Hsue Cheng, and Meei-Ing Tsai. 2019. A multifactor fuzzy time-series fitting model for forecasting the stock index. Symmetry 11: 1474. [Google Scholar] [CrossRef]
- Venugopal, Ravi, Chinnadurai Veeramani, and S. Muruganandan. 2024. An effective approach for predicting daily stock trading decisions using fuzzy inference systems. Soft Computing 28: 3301–19. [Google Scholar] [CrossRef]
- Walia, Navneet, Harsukhpreet Singh, and Anurag Sharma. 2015. Anfis: Adaptive neuro-fuzzy inference system-a survey. International Journal of Computer Applications 123: 32–38. [Google Scholar] [CrossRef]
- Wang, Li, Haofei Zou, Jia Su, Ling Li, and Sohail Chaudhry. 2013. An arima-ann hybrid model for time series forecasting. Systems Research and Behavioral Science 30: 244–59. [Google Scholar] [CrossRef]
- Wei, William W.S. 2006. Time Series Analysis: Univariate and Multivariate Methods. Time Series Analysis: Univariate and Multivariate Methods. Boston: Pearson Addison Wesley. [Google Scholar]
- Zadeh, Lotfi A. 1965. Fuzzy sets. Information and Control 8: 338–53. [Google Scholar] [CrossRef]
Sample | RMSE | MAE | MAPE | |
---|---|---|---|---|
Training | 1343.355 | 869.390 | 1.7998 | 0.9922 |
Testing | 1408.954 | 1061.159 | 1.6486 | 0.8856 |
Model | MSE | MAE |
---|---|---|
ANFIS | 4.5539 | 1.0780 |
GARCH(1,1) | 4.2307 | 1.3172 |
Loss Function | p-Value |
---|---|
Absolute error loss | 0.031 * |
Squared error loss | 0.590 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Orozco-Castañeda, J.M.; Alzate-Vargas, S.; Bedoya-Valencia, D. Evaluating Volatility Using an ANFIS Model for Financial Time Series Prediction. Risks 2024, 12, 156. https://doi.org/10.3390/risks12100156
Orozco-Castañeda JM, Alzate-Vargas S, Bedoya-Valencia D. Evaluating Volatility Using an ANFIS Model for Financial Time Series Prediction. Risks. 2024; 12(10):156. https://doi.org/10.3390/risks12100156
Chicago/Turabian StyleOrozco-Castañeda, Johanna M., Sebastián Alzate-Vargas, and Danilo Bedoya-Valencia. 2024. "Evaluating Volatility Using an ANFIS Model for Financial Time Series Prediction" Risks 12, no. 10: 156. https://doi.org/10.3390/risks12100156
APA StyleOrozco-Castañeda, J. M., Alzate-Vargas, S., & Bedoya-Valencia, D. (2024). Evaluating Volatility Using an ANFIS Model for Financial Time Series Prediction. Risks, 12(10), 156. https://doi.org/10.3390/risks12100156