Forecasting Modeling of Day of the Week Calendar Anomalies in Pakistan Stock Exchange: An Artificial Intelligence Perspective

Authors

  • Abdul Karim PhD Scholar, Institute of Business Administration, Khwaja Fareed University of Engineering and Information Technology, Pakistan Author
  • Abdul Rasheed Assistant Professor, Institute of Business Administration, Khwaja Fareed University of Engineering and Information Technology, Pakistan Author

DOI:

https://doi.org/10.61506/01.00351

Keywords:

Calendar anomalies, ANN, Decision Tree, SVM, EMH, Forecasting

Abstract

Stock price forecasting provide valuable insight to the investor to facilitate well-informed investment decision making. The aim of this study is to examine the calendar anomalies i.e. DOW in Pakistan stock exchange though Artificial intelligence techniques. For this purpose, Support vector machine (SVM), Decision Tree (DT) and Artificial Neural Network is used to forecast the daily stock prices. The daily stock prices data of KSE100 index ranges from May,1994 to August 2023 is used as out variable while stock open, close, high and low prices are used as features/input variables. The training and testing ratio was 80:20 means 80% of the data was used in training and the 20% values were utilized for forecasting.  To evaluate the accuracy of predictions, mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE)/mean absolute deviation (MAD), mean absolute percent error (MAPE), and R-squared (R^2) are taken as decision criteria. The daily forecasted stock prices show the almost zero error on Tuesday, Wednesday and Thursday in SVM. Decision tree show very low error in actual and forecasted stock prices. Therefore, it is concluded that, the DOW anomalies exist in KSE100 index of PSX.  Results show that, SVM can better predict the stock prices than DT and ANN. These results conclude that the forecasted stock prices are much closer to actual daily stock price means the daily stock prices can be forecast in KSE100 index. These finding contradicts the Efficient market hypothesis and conclude that the Pakistan stock exchange (PSX) is weak-form inefficient market.

References

Afrilianto, A., & Daryanto, W. M. (2019). Market Anomaly Testing: The Day of The Week Effect on LQ45 Stocks in Indonesia Stock Exchange. International Journal of Business, Economics and Law, 19(1), 74–82.

Aggarwal, K., & Jha, M. K. (2023). Stock returns seasonality in emerging asian markets. Asia-Pacific Financial Markets, 30(1), 109–130. DOI: https://doi.org/10.1007/s10690-022-09370-y

Ahmed, F. (2021). Assessment of Capital Market Efficiency in COVID-19. European Journal of Business and Management Research, 6(3), 42–46. DOI: https://doi.org/10.24018/ejbmr.2021.6.3.839

Aleknevičienė, V., Klasauskaitė, V., & Aleknevičiūtė, E. (2022). Behavior of calendar anomalies and the adaptive market hypothesis: evidence from the Baltic stock markets. Journal of Baltic Studies, 53(2), 187–210. DOI: https://doi.org/10.1080/01629778.2021.1990094

Alekneviciene, V., Kviedaraitiene, L., & Alekneviciute, E. (2018). Semi-strong form efficiency in the baltic stock markets under changing economic situation. Engineering Economics, 29(5), 495–506. DOI: https://doi.org/10.5755/j01.ee.29.5.19083

Alvi, J., Rehan, M., & Mohiuddin, I. (2021). Calendar Anomalies or illusions? Evidence from Pakistan Stock Market. Ege Academic Review, 21(3), 285–298. DOI: https://doi.org/10.21121/eab.970940

Andrei Shleifer. (2000). Are Markets efficient? No, arbitrage is inherent risky. A10, 236(125).

Anjum, S. (2020). Impact of market anomalies on stock exchange: a comparative study of KSE and PSX. Future Business Journal, 6(1), 1–11. DOI: https://doi.org/10.1186/s43093-019-0006-4

Bowman, R. G., & Buchanan, J. (1995). The Efficient Market Hypothesis—A Discussion of Institutional, Agency and Behavioural Issues. Australian Journal of Management, 20(2), 155–166. DOI: https://doi.org/10.1177/031289629502000203

Cizakca, M. (2024). Understanding the Determinants of Foreign Trade Volume in Turkiye: An Empirical Analysis. Journal of Business and Economic Options, 7(1), 19-28.

Damodaran, A. (2003). Investment philosophies: successful strategies and the investors who made them work.

Dinesh, K., Jyothi, J., & Ramyashree, D. (2021). Examination of Monday effect in Indian stock Market Examination of Monday effect in Indian stock Market. International Research Journal of Management Sociology & Humanity, 12(4), 260–268.

Dutta, A., & Das, S. (2021). Day-of-the-Week and Month of the Year Anomalies in the Indian Stock Market using Multiple Regression Technique. International Journal of Management (IJM), 12(5), 101–111.

Erdas, M. L. (2019). Validity of Weak-Form Market Efficiency in Central and Eastern European Countries (CEECs): Evidence from Linear and Nonlinear Unit Root Tests. Review of Economic Perspectives, 19(4), 399–428. DOI: https://doi.org/10.2478/revecp-2019-0020

Fama, E. F. (1970). Session Topic: Stock Market Price Behavior Session Chairman: Burton G. Malkiel Efficient Capital Markets: A Review Of Theory And Empirical Work. The Journal of Finance, 25(2), 383–417. DOI: https://doi.org/10.1111/j.1540-6261.1970.tb00518.x

Fender, J. (2020). Beyond the efficient markets hypothesis: Towards a new paradigm. Bulletin of Economic Research, 72(3), 333–351. DOI: https://doi.org/10.1111/boer.12225

Ferrouhi, E. M., Kharbouch, O., Aguenaou, S., & Naeem, M. (2021). Calendar anomalies in African stock markets. Cogent Economics and Finance, 9(1). DOI: https://doi.org/10.1080/23322039.2021.1978639

Gayaker, S., Yalcin, Y., & Berument, M. H. (2020). The day of the week effect and interest rates. Borsa Istanbul Review, 20(1), 55–63. DOI: https://doi.org/10.1016/j.bir.2019.07.010

Gemici, E., & Polat, M. (2018). MIST Borsalarında Rassal Yürüyüş Hipotezi. 129–142. DOI: https://doi.org/10.17153/oguiibf.344882

Gharaibeh, O. K. (2021). Calendar anomalies in the GCC equity markets. Jordan Journal of Business Administration, 17(2), 161–176. DOI: https://doi.org/10.35516/0338-017-002-001

Goss, B. A. (1983). The semi-strong form efficiency of the London Metal Exchange. Applied Economics, 15(5), 681–698. DOI: https://doi.org/10.1080/00036848300000044

Harikrishnan, R., Gupta, A., Tadanki, N., & Berry, N. (2021). Machine Learning Based Model to Predict Stock Prices : A Survey. IOP Conf. Series: Materials Science and Engineering, 1084(1), 1–9. DOI: https://doi.org/10.1088/1757-899X/1084/1/012019

Hussain, M., Sadiq, S., Rasheed, M. H., & Amin, K. (2022). Exploring the Dynamics of Investors’ Decision Making in Pakistan Stock Market: A Study of Herding Behavior. Journal of Economic Impact, 4(1), 165–173. DOI: https://doi.org/10.52223/jei4012220

Irtiza, M. S., Khan, S., Baig, N., Tirmizi, S. M. A., & Ahmad, I. (2021). The turn-of-the-month effect in Pakistani stock market. Future Business Journal, 7(1), 1–11. DOI: https://doi.org/10.1186/s43093-021-00087-4

Jierula, A., Wang, S., Oh, T. M., & Wang, P. (2021). Study on accuracy metrics for evaluating the predictions of damage locations in deep piles using artificial neural networks with acoustic emission data. Applied Sciences (Switzerland), 11(5), 1–21. DOI: https://doi.org/10.3390/app11052314

Kahraman, E., & Akay, O. (2022). Comparison of exponential smoothing methods in forecasting global prices of main metals. Mineral Economics, 2010. DOI: https://doi.org/10.2139/ssrn.4082817

Karim, A., & Said, F. (2024). Discussion on Malaysia’s Globalization Journey From Resource-Based Economy to Global Player. Journal of Business and Economic Options, 7(1), 29-38.

Khan, B., Aqil, M., Alam Kazmi, S. H., & Zaman, S. I. (2023). Day-of-the-week effect and market liquidity: A comparative study from emerging stock markets of Asia†. International Journal of Finance and Economics, 28(1), 544–561. DOI: https://doi.org/10.1002/ijfe.2435

Malkiel, B. G. (2000). Are markets efficient. The Wall Street Journal, 28.

Miss, S., Charifzadeh, M., & Herberger, T. A. (2020). Revisiting the monday effect: a replication study for the German stock market. Management Review Quarterly, 70(2), 257–273. DOI: https://doi.org/10.1007/s11301-019-00167-4

Mohamad Shariff, N. S., & Yusof, N. A. (2021). Stock Market Anomalies: a Case of Calendar Effects on the Malaysian Stock Market. Malaysian Journal of Computing, 6(1), 772. DOI: https://doi.org/10.24191/mjoc.v6i1.11212

Mumtaz, A., Munir, N., Mumtaz, R., Farooq, M., & Asif, M. (2023). Impact Of Psychological & Economic Factors On Investment Decision-Making In Pakistan Stock Exchange. Journal of Positive School Psychology, 7(4), 130–135.

Munir, Q., Akram, B., & Abbas, S. A. (2024). Understanding Stock Price Dynamics with Dividend-Related Metrics and Financial Indicators in Pakistan’s Non-Financial Sectors. Journal of Business and Economic Options, 7(1), 1-9.

Nti, I. K., Adekoya, A. F., & Weyori, B. A. (2020). A systematic review of fundamental and technical analysis of stock market predictions. In Artificial Intelligence Review (Vol. 53, Issue 4). Springer Netherlands. DOI: https://doi.org/10.1007/s10462-019-09754-z

Ozili, P. K. (2023). The acceptable R-square in empirical modelling for social science research. Social Research Methodology and Publishing Results: A Guide to Non-Native English Speakers, January 2023, 134–143. DOI: https://doi.org/10.4018/978-1-6684-6859-3.ch009

Pagano, M. (1993). Financial Markets and the Macroeconomy Financial markets and growth An overview. European Economic Review, 37(2–3), 613–622. DOI: https://doi.org/10.1016/0014-2921(93)90051-B

Riaz, S., Xu, Y., & Hussain, S. (2019). Workplace ostracism and knowledge hiding: The mediating role of Job Tension. Sustainability (Switzerland), 11(20), 1–16. DOI: https://doi.org/10.3390/su11205547

Sahoo, M. (2021). COVID-19 impact on stock market: Evidence from the Indian stock market. Journal of Public Affairs, 21(4), 1–13. DOI: https://doi.org/10.1002/pa.2621

Said, B., Rehman, S. U., Ullah, R., & Khan, J. (2021). Investor overreaction and global financial crisis: A case of Pakistan stock exchange. Cogent Economics and Finance, 9(1). DOI: https://doi.org/10.1080/23322039.2021.1966195

Sakalauskas, V., & Krikščiūnienė, D. (2007). the Impact of Daily Trade Volume on the Day-of-the- Week Effect in Emerging Stock Markets. Information Technology and Control, 36(1), 152–157.

Samaniego, J. D. V., Salgado, R. J. S., & Pérez, M. A. L. (2022). Are there “day-of-the-week” and “holiday” anomalies in the mexican stock market? Contaduria y Administracion, 67(3), 111–134. DOI: https://doi.org/10.22201/fca.24488410e.2022.2920

Wen, F., Xu, L., Ouyang, G., & Kou, G. (2019). Retail investor attention and stock price crash risk: Evidence from China. International Review of Financial Analysis, 65, 101376. DOI: https://doi.org/10.1016/j.irfa.2019.101376

Xiong, L. (2024). Driving Growth for SMEs in Laos’ Commercial Sector Challenges and Opportunities. Journal of Business and Economic Options, 7(1), 10-18.

Yang, X., & Nemlioğlu, İ. (2023). Investigation of Monday Effect in the American and Chinese Stock Markets. Bulletin of Economic Theory and Analysis, 8(May), 93–109. DOI: https://doi.org/10.25229/beta.1263271

Yardımcı, B., & Erdem, S. (2020). The day of the week effects in stock markets of countries with predominantly Muslim populations. International Journal of Islamic and Middle Eastern Finance and Management, 13(2), 195–218. DOI: https://doi.org/10.1108/IMEFM-06-2018-0199

Zaremba, A., & Nikorowski, J. (2019). Trading costs, short sale constraints, and the performance of stock market anomalies in Emerging Europe. Economic Research-Ekonomska Istrazivanja , 32(1), 403–422. DOI: https://doi.org/10.1080/1331677X.2018.1545593

Zhang, C., Sjarif, N. N. A., & Ibrahim, R. B. (2022). Decision Fusion for Stock Market Prediction: A Systematic Review. IEEE Access, 10(August), 81364–81379. DOI: https://doi.org/10.1109/ACCESS.2022.3195942

Downloads

Published

2024-06-01

Issue

Section

Articles

How to Cite

Karim, A. ., & Rasheed, A. . (2024). Forecasting Modeling of Day of the Week Calendar Anomalies in Pakistan Stock Exchange: An Artificial Intelligence Perspective. Bulletin of Business and Economics (BBE), 13(2), 436-447. https://doi.org/10.61506/01.00351