Skip to main content
Log in

A New Strategy for Short-Term Stock Investment Using Bayesian Approach

  • Published:
Computational Economics Aims and scope Submit manuscript

Abstract

In this paper, an application of the Bayesian classifier for short-term stock trend prediction is presented. In order to use Bayesian classifier effectively, we transform the daily stock price time series object into a data frame format where the dependent variable is the stock trend label and the independent variables are the stock variations of the last few days. Based on the posterior probability density function, we propose a new method for stock selection and then propose a new stock trading strategy. The numerical examples demonstrate the potential of the proposed strategy for application to short-term stock trading.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11

Similar content being viewed by others

References

  • Addesso, P., Capodici, F., D’Urso, G., Longo, M., Maltese, A., Montone, R., et al. (2013). Enhancing TIR image resolution via bayesian smoothing for IRRISAT irrigation management project. Remote Sensing for Agriculture, Ecosystems, and Hydrology XV, 8887, 888710.

    Article  Google Scholar 

  • Alfarano, S., Lux, T., & Wagner, F. (2005). Estimation of agent-based models: The case of an asymmetric herding model. Computational Economics, 26(1), 19–49.

    Article  Google Scholar 

  • Amin, G. R., & Hajjami, M. (2016). Application of optimistic and pessimistic OWA and DEA methods in stock selection. International Journal of Intelligent Systems, 31(12), 1220–1233. https://doi.org/10.1002/int.21824.

    Article  Google Scholar 

  • Arratia, A. (2014). Time series models in finance. In: Computational finance. Atlantis studies in computational finance and financial engineering, vol 1. Atlantis Press, Paris. https://doi.org/10.2991/978-94-6239-070-6_4.

  • Atsalakis, G. S., Protopapadakis, E. E., & Valavanis, K. P. (2016). Stock trend forecasting in turbulent market periods using neuro-fuzzy systems. Operational Research, 16(2), 245–269. https://doi.org/10.1007/s12351-015-0197-6.

    Article  Google Scholar 

  • Batra, R., & Daudpota, S. M. (2018). Integrating StockTwits with sentiment analysis for better prediction of stock price movement. In 2018 International Conference on Computing, Mathematics and Engineering Technologies (iCoMET), pp. 1–5. https://doi.org/10.1109/ICOMET.2018.8346382.

  • Boscaljon, B., Filbeck, G., & Ho, C. C. (2008). Rebalancing strategies for creating efficient portfolios. The Journal of Investing, 17(2), 93–103.

    Article  Google Scholar 

  • Box, G. E., & Jenkins, G. M. (1976). Time series analysis: Forecasting and control San Francisco. California: Holden-Day.

    Google Scholar 

  • Cartea, A., Jaimungal, S., & Ricci, J. (2014). Buy low, sell high: A high frequency trading perspective. SIAM Journal on Financial Mathematics, 5(1), 415–444.

    Article  Google Scholar 

  • Castellaro, M., Rizzo, G., Tonietto, M., Veronese, M., Turkheimer, F. E., Chappell, M. A., & Bertoldo, A. (2017). A variational Bayesian inference method for parametric imaging of PET data. NeuroImage, 150, 136–149.

    Article  Google Scholar 

  • Chen, C., Dongxing, W., Chunyan, H., & Xiaojie, Y. (2014). Exploiting social media for stock market prediction with factorization machine. In 2014 IEEE/WIC/ACM International Joint Conferences on Web Intelligence (WI) and Intelligent Agent Technologies (IAT), 2, pp. 142–149. https://doi.org/10.1109/WI-IAT.2014.91.

  • Chen, H. (2008). Stock selection using data envelopment analysis. Industrial Management & Data Systems, 108(9), 1255–1268. https://doi.org/10.1108/02635570810914928.

    Article  Google Scholar 

  • Deng, S., Yoshiyama, K., Mitsubuchi, T., & Sakurai, A. (2015). Hybrid method of multiple kernel learning and genetic algorithm for forecasting short-term foreign exchange rates. Computational Economics, 45(1), 49–89.

    Article  Google Scholar 

  • Deng, S., Yu, H., Wei, C., Yang, T., & Tatsuro, S. (2020). The profitability of ichimoku kinkohyo based trading rules in stock markets and fx markets. International Journal of Finance & Economics. 1–16. https://doi.org/10.1002/ijfe.2067.

  • Elliott, N. (2007). Ichimoku charts: An introduction to Ichimoku Kinko clouds. London: Harriman House Limited.

    Google Scholar 

  • Ghasemiyeh, R., Moghdani, R., & Sana, S. S. (2017). A hybrid artificial neural network with metaheuristic algorithms for predicting stock price. Cybernetics and Systems, 48(4), 365–392. https://doi.org/10.1080/01969722.2017.1285162.

    Article  Google Scholar 

  • Goldman, M. B., Sosin, H. B., & Gatto, M. A. N. N. (2018). Path dependent options: Buy at the low, sell at the high. The Journal of Finance, 34(5), 1111–1127. https://doi.org/10.1111/j.1540-6261.1979.tb00059.x.

    Article  Google Scholar 

  • Gupta, S., & Wang, L. P. (2010). Stock forecasting with feedforward neural networks and gradual data sub-sampling. Australian Journal of Intelligent Information Processing Systems, 11(4), 14–17.

    Google Scholar 

  • Hajjami, M., & Amin, G. R. (2018). Modelling stock selection using ordered weighted averaging operator. International Journal of Intelligent Systems. https://doi.org/10.1002/int.22029.

    Article  Google Scholar 

  • Hilliard, J. E., & Hilliard, J. (2015). Evaluating strategies to maximize portfolio performance measures using rebalancing, buy and hold and monetary policy indicators, forthcoming. The review of pacific basin financial markets and policies.

  • Hilliard, J. E., & Hilliard, J. (2018). Rebalancing versus buy and hold: Theory, simulation and empirical analysis. Review of Quantitative Finance and Accounting, 50(1), 1–32.

    Article  Google Scholar 

  • Hu, Z., Liu, W., Bian, J., Liu, X., & Liu, T. Y. (2018). Listening to chaotic whispers: A deep learning framework for news-oriented stock trend prediction. In Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining, WSDM ’18, pp. 261–269. ACM, New York, NY, USA. https://doi.org/10.1145/3159652.3159690.

  • Huang, C. Y., Chiou, C. C., Wu, T. H., & Yang, S. C. (2015). An integrated DEA-MODM methodology for portfolio optimization. Operational Research, 15(1), 115–136. https://doi.org/10.1007/s12351-014-0164-7.

    Article  Google Scholar 

  • Huarng, K., & Yu, H. K. (2005). A Type 2 fuzzy time series model for stock index forecasting. Physica A: Statistical Mechanics and its Applications, 353, 445–462. https://doi.org/10.1016/j.physa.2004.11.070.

    Article  Google Scholar 

  • Hui, E. C., & Chan, K. K. K. (2019). Alternative trading strategies to beat buy-and-hold. Physica A: Statistical Mechanics and its Applications, 534, 120800.

    Article  Google Scholar 

  • Jeon, S., Hong, B., & Chang, V. (2018). Pattern graph tracking-based stock price prediction using big data. Future Generation Computer Systems, 80, 171–187. https://doi.org/10.1016/j.future.2017.02.010.

    Article  Google Scholar 

  • Kale, A., Khanvilkar, O., Jivani, H., Kumkar, P., Madan, I., & Sarode, T. (2018). Forecasting Indian stock market using artificial neural networks. In 2018 Fourth International Conference on Computing Communication Control and Automation (ICCUBEA), pp. 1–5. https://doi.org/10.1109/ICCUBEA.2018.8697724.

  • Kociński, M. A., et al. (2017). On transaction costs in stock trading. Metody Ilościowe w Badaniach Ekonomicznych, 18(1), 58–67.

    Google Scholar 

  • Kohli, P. P. S., Zargar, S., Arora, S., & Gupta, P. (2019). Stock prediction using machine learning algorithms BT–applications of artificial intelligence techniques in engineering (pp. 405–414). Singapore: Springer.

    Google Scholar 

  • Li, X., Li, Y., Liu, X. Y., & Wang, C. D. (2019). Risk management via anomaly circumvent: Mnemonic deep learning for midterm stock prediction. arXiv:1908.01112.

  • Liu, Z., & Zhang, T. (2019). A second-order fuzzy time series model for stock price analysis. Journal of Applied Statistics, 46(14), 2514–2526. https://doi.org/10.1080/02664763.2019.1601163.

    Article  Google Scholar 

  • Maciel, L., & Ballini, R. (2020). Functional fuzzy rule-based modeling for interval-valued data: An empirical application for exchange rates forecasting. Computational Economics, 57, 743–771. https://doi.org/10.1007/s10614-020-09978-0.

  • Markowitz, H. (1952). Portfolio selection. The Journal of Finance, 7(1), 77–91.

    Google Scholar 

  • Mladjenovic, P. (2016). Stock investing for dummies. Hoboken: Wiley.

    Google Scholar 

  • Nguyen-Trang, T., & Vo-Van, T. (2017). A new approach for determining the prior probabilities in the classification problem by Bayesian method. Advances in Data Analysis and Classification, 11(3), 629–643.

    Article  Google Scholar 

  • Ng’ang’a, J. (2019). An assessment of select market timing strategies’ performance in nairobi securities exchange. Ph.D. thesis, Strathmore University.

  • Parmar, I., Agarwal, N., Saxena, S., Arora, R., Gupta, S., Dhiman, H., & Chouhan, L. (2018). Stock market prediction using machine learning. In 2018 First International Conference on Secure Cyber Computing and Communication (ICSCCC), pp. 574–576. https://doi.org/10.1109/ICSCCC.2018.8703332.

  • Pätäri, E., Karell, V., Luukka, P., & Yeomans, J. S. (2018). Comparison of the multicriteria decision-making methods for equity portfolio selection: The U.S. evidence. European Journal of Operational Research, 265(2), 655–672. 10.1016/j.ejor.2017.08.001

  • Patel, M. (2010). Trading with Ichimoku clouds: The essential guide to Ichimoku Kinko Hyo technical analysis (Vol. 473). Hoboken: Wiley.

    Google Scholar 

  • Pham-Gia, T., Turkkan, N., & Vovan, T. (2008). Statistical discrimination analysis using the maximum function. Communications in Statistics-Simulation and Computation\(\textregistered \), 37(2), 320–336.

  • Pizzo, A., Teyssere, P., & Vu-Hoang, L. (2018). Boosted Gaussian Bayes Classifier and its application in bank credit scoring. Journal of Advanced Engineering and Computation, 2(2), 131–138.

    Article  Google Scholar 

  • Quah, T. S. (2008). DJIA stock selection assisted by neural network. Expert Systems with Applications, 35(1), 50–58. https://doi.org/10.1016/j.eswa.2007.06.039.

    Article  Google Scholar 

  • Roscoe, P., & Howorth, C. (2009). Identification through technical analysis: A study of charting and UK non-professional investors. Accounting, Organizations and Society, 34(2), 206–221. https://doi.org/10.1016/j.aos.2008.05.003.

    Article  Google Scholar 

  • Sanderson, R., & Lumpkin-Sowers, N. L. (2018). Buy and hold in the new age of stock market volatility: A story about etfs. International Journal of Financial Studies, 6(3), 79.

    Article  Google Scholar 

  • Sang, X., Zhou, Y., & Yu, X. (2019). An uncertain possibility-probability information fusion method under interval type-2 fuzzy environment and its application in stock selection. Information Sciences, 504, 546–560. https://doi.org/10.1016/j.ins.2019.07.032.

    Article  Google Scholar 

  • Shawn, K., Yanyali, S., & Savidge, J. (2015). Do ichimoku cloud charts work and do they work better in Japan. International Federation of Technical Analysts Journal. 18–24.

  • Sollis, R., Newbold, P., & Leybourne, S. J. (2000). Stochastic unit roots modelling of stock price indices. Applied Financial Economics, 10(3), 311–315. https://doi.org/10.1080/096031000331716.

    Article  Google Scholar 

  • Syriopoulos, T., Tsatsaronis, M., & Karamanos, I. (2020). Support vector machine algorithms: An application to ship price forecasting. Computational Economics, 57, 55–87. https://doi.org/10.1007/s10614-020-10032-2.

  • Tan, Z., Yan, Z., & Zhu, G. (2019). Stock selection with random forest: An exploitation of excess return in the Chinese stock market. Heliyon, 5(8), e02310.

    Article  Google Scholar 

  • Usmani, M., Adil, S. H., Raza, K., & Ali, S. S. A. (2016). Stock market prediction using machine learning techniques. In 2016 3rd International Conference on computer and Information Sciences (ICCOINS), pp. 322–327. IEEE.

  • Vasiliou, D., Eriotis, N., & Papathanasiou, S. (2006). How rewarding is technical analysis? Evidence from Athens stock exchange. Operational Research, 6(2), 85–102. https://doi.org/10.1007/BF02941226.

    Article  Google Scholar 

  • Verousis, T. (2013). Bid‐Ask spreads, commissions, and other costs. In H. K. Baker & H. Kiymaz (Eds.), Market microstructure in emerging and developed markets. https://doi.org/10.1002/9781118681145.ch18.

  • Vovan, T. (2017). Classifying by Bayesian Method and Some Applications. In Bayesian Inference, pp. 39–61. InTech.

  • Vu, H., Van, T. V., Nguyen-Minh, N., & Nguyen-Trang, T. (2019). A technique to predict short-term stock trend using Bayesian classifier. Asian Journal of Economics and Banking, 3(2), 70–83.

    Google Scholar 

  • Wiesinger, J., Sornette, D., & Satinover, J. (2013). Reverse engineering financial markets with majority and minority games using genetic algorithms. Computational Economics, 41(4), 475–492.

    Article  Google Scholar 

  • Xu, Y., & Cohen, S. B. (2018). Stock movement prediction from tweets and historical prices. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1970–1979.

  • Yang, F., Chen, Z., Li, J., & Tang, L. (2019). A novel hybrid stock selection method with stock prediction. Applied Soft Computing, 80, 820–831. https://doi.org/10.1016/j.asoc.2019.03.028.

    Article  Google Scholar 

  • Zervos, M., Johnson, T. C., & Alazemi, F. (2012). Buy-low and sell-high investment strategies. Mathematical Finance, 23(3), 560–578. https://doi.org/10.1111/j.1467-9965.2011.00508.x.

    Article  Google Scholar 

  • Zhai, J., & Bai, M. (2018). Mean-risk model for uncertain portfolio selection with background risk. Journal of Computational and Applied Mathematics, 330, 59–69. https://doi.org/10.1016/j.cam.2017.07.038.

    Article  Google Scholar 

  • Zhang, G. P. (2003). Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing, 50, 159–175.

    Article  Google Scholar 

  • Zhang, X., & Tan, Y. (2018). Deep stock ranker: A LSTM neural network model for stock selection. In International Conference on Data Mining and Big Data, pp. 614–623. Springer.

  • Zhou, Z., Jin, Q., Xiao, H., Wu, Q., & Liu, W. (2018). Estimation of cardinality constrained portfolio efficiency via segmented DEA. Omega, 76, 28–37. https://doi.org/10.1016/j.omega.2017.03.006.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Thao Nguyen-Trang.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Vo-Van, T., Che-Ngoc, H., Le-Dai, N. et al. A New Strategy for Short-Term Stock Investment Using Bayesian Approach. Comput Econ 59, 887–911 (2022). https://doi.org/10.1007/s10614-021-10115-8

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10614-021-10115-8

Keywords

Navigation