Research Article
Open access
Published on 10 November 2023
Download pdf
Qian,H. (2023). Stock Price Prediction: Moving Average and Markov Chain. Advances in Economics, Management and Political Sciences,36,66-71.
Export citation

Stock Price Prediction: Moving Average and Markov Chain

Hongyi Qian *,1,
  • 1 Tsinghua University

* Author to whom correspondence should be addressed.

https://doi.org/10.54254/2754-1169/36/20231786

Abstract

Under the assumption that the operation of corporations is stable and the economic environment is steady, there are mathematical rules in the changing of stock prices, making prediction of stock price possible. This paper selects stock price data of Xiaomi Inc, one of the leading technology companies in China, from January 2, 2019 to December 31, 2021 from Yahoo Finance. Three moving average methods, SMA, EMA and MACD, are implemented to analyze the data. Among the three moving average methods, the effect of MACD is better than that of SMA and EMA. Afterwards, Markov chain is employed to calculate from another angle The stable probability distribution of stock price is obtained by using the stability and ergodicity of Markov chain. The feasibility and accuracy of two angles of forecasting methods are verified through being compared.

Keywords

stock price prediction, simple moving average (SMA), exponential moving average(EMA), moving average convergence divergence (MACD), Markov chain

[1]. Yuanlie Lin. (2002). Applied Stochastic Processes. Tsinghua University Press.

[2]. Wang Y F. On-demand forecasting of stock prices using a real-time predictor[J]. IEEE Transactions on Knowledge and Data Engineering, 2003, 15(4): 1033-1037.

[3]. Choji D N, Eduno S N, Kassem G T. Markov chain model application on share price movement in stock market[J]. Computer Engineering and Intelligent Systems, 2013, 4(10): 84-95.

[4]. Long Yan, Cong Lin, Jiahui Zhu. Application of Markov chain in financial investment [J]. Journal of Ningbo Institute of Technology,2017,29(04):1-8.

[5]. Chowdhury R, Mahdy M R C, Alam T N, et al. Predicting the stock price of frontier markets using machine learning and modified Black–Scholes Option pricing model[J]. Physica A: Statistical Mechanics and its Applications, 2020, 555: 124444.

[6]. Leung C K S, MacKinnon R K, Wang Y. A machine learning approach for stock price prediction[C]//Proceedings of the 18th International Database Engineering & Applications Symposium. 2014: 274-277.

[7]. Yongjie Yang. Prediction Method of Stock price Change Trend Based on Optimized MACD Model [J]. Journal of Guangxi Academy of Sciences,2017,33(1):65-70

[8]. Cihua Liu. Stochastic Process [M]. Wuhan: Huazhong University of Science and Technology Press, 2001:20-35.

Cite this article

Qian,H. (2023). Stock Price Prediction: Moving Average and Markov Chain. Advances in Economics, Management and Political Sciences,36,66-71.

Data availability

The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.

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 EWA Publishing and/or the editor(s). EWA Publishing 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.

About volume

Volume title: Proceedings of the 7th International Conference on Economic Management and Green Development

Conference website: https://www.icemgd.org/
ISBN:978-1-83558-093-6(Print) / 978-1-83558-094-3(Online)
Conference date: 6 August 2023
Editor:Canh Thien Dang
Series: Advances in Economics, Management and Political Sciences
Volume number: Vol.36
ISSN:2754-1169(Print) / 2754-1177(Online)

© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license. Authors who publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See Open access policy for details).