Anomaly detection, classification, and stock price prediction using ChatGPT, Random Forest Algorithm and LSTM model

Author:

Mushunje Leonard1,Allen David,Peiris Shelton

Affiliation:

1. Columbia University

Abstract

Abstract This paper explores whether there are anomalies in high-frequency stock trades in South Africa. Using the JSE daily data from 2010 to 2022, we hypothesize that there are complexities associated with high-frequency stock data, which carries hidden important information, and this information can be helpful to investors. Under high-frequency trading settings, traders should be able to quickly, efficiently, and profitably detach and disseminate information from complex sets. Given any stock portfolio, they should be able to separate the risky stocks from the less risky and rich ones before making any investment decisions. However, this is less attainable in emerging and less technical economies like South Africa, which still rely on traditional trading norms (managerial expertise and emotional trading). Therefore, this paper aims to provide a powerful solution to this fundamental problem. Firstly, we study the time-stamped behavior of stock prices using a long-term memory model (LSTM). We note that JSE stock prices are non-stationary, have fat tails, and have a long memory, which exhibits the stocks' ARCH effects and volatility traits. Secondly, we employ the Random Forest algorithm to capture useful stock features further and classify the data quickly. We trained the model hourly to capture the anomaly data, classify trades, and convert them to profitable trades. From this model, we managed to classify stock trades into three categories: high premium (less risky), premium(satisfactory), and doubtful (high risk). Ideally, volatile stocks with low returns are riskier (doubtful) and true otherwise. We evaluate our RF model using OOB error and cross-validation. Minor prediction errors were reported with increased trees, signaling its robustness in capturing the embedded stylized facts about stock trades.

Publisher

Research Square Platform LLC

Reference25 articles.

1. Angiulli, F. and Pizzuti, C. (2002) Fast Outlier Detection in High Dimensional Spaces. In: Tapio, E., Heikki, M. and Hannu, T., Eds., Principles of Data Mining and 230 Knowledge Discovery, Springer, Rende, 15–27. http://dx.doi.org/10.1007/3-540-45681-3_2.

2. Generalized autoregressive conditional heteroskedasticity;Bollerslev T;Journal of Econometrics,1986

3. Bagging predictors;Breiman L;Machine Learning,1996

4. Breiman (2001). Random Forests. Machine Learning, 45, 5–32, 2001.

5. Campbell, G., Polk, & Turley, (2018). An intertemporal CAPM with stochastic volatility. Journal of Financial Economics Volume 128, Issue 2, May 2018, Pages 207–233.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3