DOI: https://doi.org/10.31449/inf.v49i14.5751
تاريخ النشر: 2025-03-04
المؤلف: Mohamed Hassan Oukhouya وآخرون
الموضوع الرئيسي: طرق التنبؤ بسوق الأسهم
نظرة عامة
تدرس هذه الدراسة قدرات التنبؤ لثلاثة نماذج—ARDL (النموذج الذاتي الانحداري الموزع)، LSTM (ذاكرة طويلة وقصيرة الأجل)، وXGBOOST (تعزيز التدرج المتطرف)—في التنبؤ بمؤشر جميع الأسهم المغربي (MASI) خلال جائحة COVID-19. يتضمن نموذج ARDL حالات COVID-19 الجديدة اليومية لتحليل العلاقات القصيرة والطويلة الأجل مع MASI، كاشفًا عن علاقة سلبية طويلة الأجل وسببية أحادية الاتجاه من حالات COVID-19 إلى مؤشر MASI. يحقق نموذج ARDL، خاصة عندما يتم تحسينه بمتغيرات الاتجاه والموسمية، أقل خطأ نسبي مطلق متوسط (MAPE) بنسبة 26.7% ويظهر كفاءة معالجة متفوقة، حيث يتم تنفيذه في ثانية واحدة فقط، مقارنة بقيم MAPE البالغة 30.5% و32% لنموذجي LSTM وXGBOOST، على التوالي.
تؤكد النتائج على قوة وكفاءة نموذج ARDL في التنبؤ المالي، خاصة في ظل ظروف الوباء. تؤكد الدراسة على أهمية ضمان تلبية افتراضات النموذج—مثل ثبات سلسلة البيانات وغياب التعدد الخطي—للحفاظ على صحة تقديرات المعاملات. تؤكد الاختبارات التشخيصية للتباين غير المتجانس، والاعتدال، والتلقائية أيضًا موثوقية النموذج. لا تعزز هذه الرؤى استراتيجيات التداول والاستثمار فحسب، بل توفر أيضًا لصانعي السياسات إطارًا لفهم ديناميات السوق استجابةً للأزمات الصحية، مما يساهم في اتخاذ قرارات أكثر استنارة في السوق المالية المغربية.
مقدمة
تسلط مقدمة هذه الورقة البحثية الضوء على الاعتماد المتزايد على التعلم الآلي من قبل المتداولين في الأسواق المالية لتعزيز استراتيجياتهم التجارية وسط تعقيدات وعدم ثبات السلاسل الزمنية المالية. مع تطور ديناميات السوق، تزداد تحديات التنبؤ بدقة بحركات الأسعار، مما يستلزم استخدام خوارزميات متقدمة وتقنيات تحليل البيانات. تؤكد الورقة على أهمية دمج الاقتصاد المالي مع التعلم الآلي لتحسين دقة التنبؤ، خاصة في ضوء الأحداث العالمية غير المتوقعة مثل جائحة COVID-19 والصراعات الجيوسياسية.
تدرس الدراسة بشكل خاص فعالية خوارزميات التعلم الآلي—وهي النموذج الذاتي الانحداري الموزع (ARDL)، وذاكرة طويلة وقصيرة الأجل (LSTM)، وتعزيز التدرج المتطرف (XGBoost)—في التنبؤ بالاتجاهات داخل السوق المالية المغربية. تفترض أن هذه الخوارزميات يمكن أن تتفوق على طرق التنبؤ التقليدية من خلال التقاط التعقيدات التي أدخلتها الاضطرابات الأخيرة، بما في ذلك التأثيرات الاقتصادية للجائحة. تهدف الأبحاث إلى تقديم رؤى قيمة حول تطبيق التعلم الآلي في التنبؤ بالسلاسل الزمنية المالية، خاصة في التكيف مع التحديات التي تطرحها الأحداث غير المتوقعة.
طرق
تحدد قسم المنهجية في المقالة تركيزًا مزدوجًا: فحص كل من العلاقات القصيرة والطويلة الأجل بين جائحة COVID-19 والسوق المالية المغربية، وتقييم فعالية نموذج الانحدار الذاتي الموزع (ARDL) في تعزيز توقعات القيمة المستقبلية. تستخدم الدراسة نموذج ARDL كأداة تحليلية رئيسية وتقارن أدائه التنبؤي مع تقنيتين متقدمتين في التعلم الآلي، وهما شبكات الذاكرة طويلة وقصيرة الأجل (LSTM) وتعزيز التدرج المتطرف (XGBoost). يهدف هذا التحليل المقارن إلى تحديد أي نموذج يقدم دقة أفضل في التنبؤ باتجاهات السوق المتأثرة بالوباء.
نتائج
تظهر نتائج الدراسة فعالية نموذج الانحدار الذاتي الموزع (ARDL) في التنبؤ بمؤشر MASI مقارنة بنماذج الذاكرة طويلة وقصيرة الأجل (LSTM) وXGBOOST. استخدم نموذج ARDL خوارزمية جشعة لتحديد قيم التأخير المثلى، متضمنًا تأخيرات لمدة يومين لأسعار MASI وتأخيرات لمدة ستة أيام لحالات COVID-19 الجديدة المؤكدة. يبرز هذا النهج الديناميات القصيرة الأجل، مما يسمح للنموذج بالاستجابة بسرعة للتقلبات الأخيرة في أسعار MASI وبيانات COVID-19، مما يعزز دقة التنبؤ.
بالمقابل، استخدمت نماذج LSTM وXGBOOST طريقة البحث الشبكي لتحسين المعلمات، والتي، على الرغم من كونها شاملة، أثبتت أنها أقل كفاءة. لم يتفوق نموذج ARDL فقط على هذه النماذج من حيث الدقة، بل أظهر أيضًا كفاءة معالجة متفوقة، حيث نفذ التنبؤات في ثانية واحدة فقط. ساهم تضمين متغيرات الاتجاه والموسمية جنبًا إلى جنب مع المدخلات المتأخرة بشكل كبير في تحسين أداء نموذج ARDL، مما يبرز قوته في التقاط حركات السوق المتأثرة بالأحداث الأخيرة. بشكل عام، تؤكد النتائج على مزايا نموذج ARDL في الدقة والكفاءة واستخدام الموارد في التنبؤ بمؤشر MASI.
مناقشة
في مناقشة التنبؤ بأسعار الصرف، تسلط الورقة الضوء على التحديات الكبيرة التي تطرحها تقلبات وتعقيدات سوق الصرف الأجنبي. تستعرض دراسات مختلفة تستخدم تقنيات التعلم العميق مثل شبكات الذاكرة طويلة وقصيرة الأجل (LSTM) وXGBoost، جنبًا إلى جنب مع نموذج الانحدار الذاتي الموزع (ARDL)، لتعزيز دقة التنبؤ. تجدر الإشارة إلى أن البحث يبرز تأثير جائحة COVID-19 على الأسواق المالية، كاشفًا أن الجائحة أثرت سلبًا على مؤشرات الأسهم، خاصة في السياق السعودي، حيث ترتبط الزيادات في حالات COVID-19 بانخفاض أداء السوق. تشير النتائج إلى أنه بينما تقدم نماذج LSTM عمومًا دقة واستقرار أفضل، فإن نماذج ARDL تقدم مزايا مميزة في التقاط العلاقات الطويلة الأجل واستيعاب المتغيرات الخارجية، وهو أمر ذو صلة خاصة في السوق المغربية.
تناقش الورقة أيضًا نقاط القوة المنهجية لنموذج ARDL، خاصة قدرته على التعامل مع المتغيرات المدمجة في أوامر مختلفة، مما يجعله مناسبًا لتحليل العلاقة بين COVID-19 والسوق المالية المغربية. تستخدم الدراسة إطار ARDL لتأسيس الديناميات القصيرة والطويلة الأجل، كاشفة عن علاقة سلبية كبيرة بين حالات COVID-19 ومؤشر MASI. تشير النتائج إلى أن زيادة بنسبة 100% في حالات COVID-19 اليومية تؤدي إلى انخفاض بنسبة 0.2% في سعر MASI، مما يبرز ضرورة اتخاذ تدابير وطنية قوية للتخفيف من الانخفاضات السوقية خلال الأزمات. بشكل عام، تؤكد الأبحاث على أهمية نهج التنبؤ المخصص الذي يأخذ في الاعتبار الخصائص الفريدة للسوق المغربية، داعية إلى دمج نماذج ARDL وLSTM وXGBoost لتحسين دقة التنبؤ.
DOI: https://doi.org/10.31449/inf.v49i14.5751
Publication Date: 2025-03-04
Author(s): Mohamed Hassan Oukhouya et al.
Primary Topic: Stock Market Forecasting Methods
Overview
This study investigates the forecasting capabilities of three models—ARDL (AutoRegressive Distributed Lag), LSTM (Long Short-Term Memory), and XGBOOST (Extreme Gradient Boosting)—in predicting the Moroccan All Shares Index (MASI) during the COVID-19 pandemic. The ARDL model incorporates daily new COVID-19 cases to analyze both short-term and long-term relationships with MASI, revealing a negative long-term relationship and unidirectional causality from COVID-19 cases to the MASI index. The ARDL model, particularly when enhanced with trend and seasonality variables, achieves the lowest Mean Absolute Percentage Error (MAPE) of 26.7% and demonstrates superior processing efficiency, executing in just 1 second, compared to MAPE values of 30.5% and 32% for LSTM and XGBOOST, respectively.
The findings underscore the ARDL model’s robustness and efficiency in financial forecasting, especially under pandemic conditions. The study emphasizes the importance of ensuring the model’s assumptions—such as stationarity of data series and absence of multicollinearity—are met to maintain the validity of coefficient estimates. Diagnostic tests for heteroscedasticity, normality, and autocorrelation further confirm the model’s reliability. These insights not only enhance trading and investment strategies but also provide policymakers with a framework to understand market dynamics in response to health crises, ultimately contributing to more informed decision-making in the Moroccan financial market.
Introduction
The introduction of this research paper highlights the increasing reliance on machine learning by traders in financial markets to enhance their trading strategies amid the complexities and non-stationarity of financial time series. As market dynamics evolve, the challenge of accurately predicting price movements intensifies, necessitating the use of advanced algorithms and data analysis techniques. The paper emphasizes the importance of integrating financial econometrics with machine learning to improve forecasting accuracy, particularly in light of unpredictable global events such as the COVID-19 pandemic and geopolitical conflicts.
The study specifically investigates the effectiveness of machine learning algorithms—namely Autoregressive Distributed Lag (ARDL), Long Short-Term Memory (LSTM), and Extreme Gradient Boosting (XGBoost)—in forecasting trends within the Moroccan financial market. It posits that these algorithms can outperform traditional forecasting methods by better capturing the complexities introduced by recent disruptions, including the economic impacts of the pandemic. The research aims to contribute valuable insights into the application of machine learning in financial time series forecasting, particularly in adapting to the challenges posed by unforeseen events.
Methods
The methodology section of the article outlines a dual focus: examining both the short-term and long-term relationships between the COVID-19 pandemic and the Moroccan financial market, and assessing the efficacy of the Autoregressive Distributed Lag (ARDL) model in enhancing future value predictions. The study employs the ARDL model as a primary analytical tool and compares its predictive performance against two advanced machine learning techniques, Long Short-Term Memory (LSTM) networks and Extreme Gradient Boosting (XGBoost). This comparative analysis aims to determine which model offers superior accuracy in forecasting market trends influenced by the pandemic.
Results
The results of the study demonstrate the effectiveness of the Autoregressive Distributed Lag (ARDL) model in forecasting the MASI index compared to Long Short-Term Memory (LSTM) and XGBOOST models. The ARDL model utilized a greedy algorithm to identify optimal lag values, incorporating two-day lags for MASI prices and six-day lags for new confirmed COVID-19 cases. This approach emphasizes short-term dynamics, allowing the model to respond swiftly to recent fluctuations in MASI prices and COVID-19 data, thereby enhancing predictive accuracy.
In contrast, the LSTM and XGBOOST models employed a grid search method for hyperparameter optimization, which, while thorough, proved less efficient. The ARDL model not only outperformed these models in terms of accuracy but also demonstrated superior processing efficiency, executing forecasts in just one second. The inclusion of trend and seasonality variables alongside lagged inputs significantly contributed to the ARDL model’s enhanced performance, highlighting its robustness in capturing market movements influenced by recent events. Overall, the findings underscore the ARDL model’s advantages in accuracy, efficiency, and resource utilization for forecasting the MASI index.
Discussion
In the discussion of forecasting exchange rates, the paper highlights the significant challenges posed by the volatility and complexity of the foreign exchange market. It reviews various studies employing deep learning techniques such as Long Short-Term Memory (LSTM) networks and XGBoost, alongside the AutoRegressive Distributed Lag (ARDL) model, to enhance prediction accuracy. Notably, the research underscores the impact of the COVID-19 pandemic on financial markets, revealing that the pandemic has adversely affected stock indices, particularly in the Saudi Arabian context, where increases in COVID-19 cases correlate with declines in market performance. The findings suggest that while LSTM models generally offer superior accuracy and stability, ARDL models present distinct advantages in capturing long-term relationships and accommodating exogenous variables, especially relevant in the Moroccan market.
The paper further discusses the methodological strengths of the ARDL model, particularly its ability to handle variables integrated at different orders, making it suitable for analyzing the relationship between COVID-19 and the Moroccan financial market. The study employs the ARDL framework to establish both short- and long-term dynamics, revealing a significant negative relationship between COVID-19 cases and the MASI index. The results indicate that a 100% increase in daily COVID-19 cases leads to a 0.2% decrease in the MASI price, highlighting the necessity for robust national measures to mitigate market downturns during crises. Overall, the research emphasizes the importance of tailored forecasting approaches that consider the unique characteristics of the Moroccan market, advocating for the integration of ARDL, LSTM, and XGBoost models to optimize predictive accuracy.
