Learning to trade autonomously in stocks and shares: integrating uncertainty into trading strategies

Yuyang Li , Minghui Liwang , Li Li

Autonomous Intelligent Systems ›› 2025, Vol. 5 ›› Issue (1)

PDF
Autonomous Intelligent Systems ›› 2025, Vol. 5 ›› Issue (1) DOI: 10.1007/s43684-025-00101-4
Original Article
research-article

Learning to trade autonomously in stocks and shares: integrating uncertainty into trading strategies

Author information +
History +
PDF

Abstract

Machine learning, a revolutionary and advanced technology, has been widely applied in the field of stock trading. However, training an autonomous trading strategy which can effectively balance risk and Return On Investment without human supervision in the stock market with high uncertainty is still a bottleneck. This paper constructs a Bayesian-inferenced Gated Recurrent Unit architecture to support long-term stock price prediction based on characteristics of the stock information learned from historical data, augmented with memory of recent up- and-down fluctuations occur in the data of short-term stock movement. The Gated Recurrent Unit architecture incorporates uncertainty estimation into the prediction process, which take care of decision-making in an ever-changing dynamic environment. Three trading strategies were implemented in this model; namely, a Price Model Strategy, a Probabilistic Model Strategy, and a Bayesian Gated Recurrent Unit Strategy, each leveraging the respective model’s outputs to optimize trading decisions. The experimental results show that, compared with the standard Gated Recurrent Unit models, the modified model exhibits a huge tremendous/dramatic advantage in managing volatility and improving return on investment Return On Investment. The results and findings underscore the significant potential of combining Bayesian inference with machine learning to operate effectively in chaotic decision-making environments.

Keywords

Autonomous trading / Gated recurrent unit / Bayesian inference

Cite this article

Download citation ▾
Yuyang Li, Minghui Liwang, Li Li. Learning to trade autonomously in stocks and shares: integrating uncertainty into trading strategies. Autonomous Intelligent Systems, 2025, 5(1): DOI:10.1007/s43684-025-00101-4

登录浏览全文

4963

注册一个新账户 忘记密码

References

[1]

Wikipedia contributors: Stock Valuation. https://en.wikipedia.org/wiki/Stock_valuation. Accessed: June 2024. (2024)

[2]

LimB., ZohrenS.. Time-series forecasting with deep learning: a survey. Philos. Trans. R. Soc. A, Math. Phys. Eng. Sci., 2021, 3792194. 20200209

[3]

BisongE.. Recurrent neural networks (rnns). Building Machine Learning and Deep Learning Models on Google Cloud Platform: A Comprehensive Guide for Beginners, 2019443473

[4]

DeyR., SalemF.M.. Gate-variants of gated recurrent unit (gru) neural networks. 2017 IEEE 60th International Midwest Symposium on Circuits and Systems (MWSCAS), 201715971600IEEE

[5]

S. Zargar, Introduction to sequence learning models: rnn, lstm, gru. Department of Mechanical and Aerospace Engineering, North Carolina State University (2021)

[6]

F.M. Shiri, T. Perumal, N. Mustapha, R. Mohamed, A comprehensive overview and comparative analysis on deep learning models: cnn, rnn, lstm, gru. (2023). arXiv:2305.17473

[7]

ZhaoJ., ZengD., LiangS., KangH., LiuQ.. Prediction model for stock price trend based on recurrent neural network. J. Ambient Intell. Humaniz. Comput., 2021, 12: 745-753

[8]

KarpatneA., AtluriG., FaghmousJ.H., SteinbachM., BanerjeeA., GangulyA., ShekharS., SamatovaN., KumarV.. Theory-guided data science: a new paradigm for scientific discovery from data. IEEE Trans. Knowl. Data Eng., 2017, 29(10): 2318-2331

[9]

PavithraM., SaruladhaK., SathyabamaK.. Gru based deep learning model for prognosis prediction of disease progression. 2019 3rd International Conference on Computing Methodologies and Communication (ICCMC), 2019840844

[10]

LienY.-H., LinY.-S., WangY.-S.. Uncertainty awareness for predicting noisy stock price movements. Joint European Conference on Machine Learning and Knowledge Discovery in Databases, 2022, Berlin. Springer. 154169

[11]

GongX., ZhangW., XuW., LiZ.. Uncertainty index and stock volatility prediction: evidence from international markets. Financ. Innov., 2022, 8157

[12]

XiaT., WangZ., LiK.. Financial literacy overconfidence and stock market participation. Soc. Indic. Res., 2014, 119: 1233-1245

[13]

LoquercioA., SeguM., ScaramuzzaD.. A general framework for uncertainty estimation in deep learning. IEEE Robot. Autom. Lett., 2020, 5(2): 3153-3160

[14]

BoisF.Y.. Bayesian inference. Comput. Toxicol., 2013, II: 597-636

[15]

LiA., LioW.. Bayesian inference in the framework of uncertainty theory. J. Ambient Intell. Humaniz. Comput., 2024, 15: 2901-2908

[16]

BoxG.E., TiaoG.C.Bayesian Inference in Statistical Analysis, 2011, New York. Wiley.

[17]

CasellaG., BergerR.Statistical Inference, 2024, New York. CRC Press.

[18]

GelmanA., ShaliziC.R.. Philosophy and the practice of Bayesian statistics. Br. J. Math. Stat. Psychol., 2013, 66(1): 8-38

[19]

CarrieroA., ClarkT.E., MarcellinoM.. Measuring uncertainty and its impact on the economy. Rev. Econ. Stat., 2018, 100(5): 799-815

[20]

J.J. Murphy, Technical Analysis of the Financial Markets: a Comprehensive Guide to Trading Methods and Applications. New York Institute of Finance, New York (1999)

[21]

ChenJ.. Editorial-autonomous intelligent systems. Auton. Intell. Syst., 2021, 11. 1

RIGHTS & PERMISSIONS

The Author(s)

AI Summary AI Mindmap
PDF

97

Accesses

0

Citation

Detail

Sections
Recommended

AI思维导图

/