Stock Price Analysis and Prediction Method Based on Machine Learning: Taking Apple Inc as an Example

Authors

  • Yixuan Jin

DOI:

https://doi.org/10.54097/hbem.v21i.14720

Keywords:

Stock Price Analysis, Vector Autoregression model, Time Series Prediction.

Abstract

Stock forecasts are analyses of Apple's future performance based on financial data, market dynamics and macroeconomic factors. However, there are conflicting arguments that the wider the time horizon of the data, the more accurate the forecast. These forecasts are crucial for investment decisions, risk management and corporate governance. Therefore, in this paper, we will use vector autoregressive modelling to compare nine training sets with different time horizons and evaluate these nine sets of predictions by calculating the weights of the corresponding variables in the predictions. Knowledge of machine learning and graphical visualization is used to evaluate the share of five factors affecting stock prices as well as the training time horizon. This paper demonstrates that in the field of stock prediction the closer the time horizon is to the prediction the closer it is to the actual value. At the same time investors should consider multiple factors to diversify the risk.

Downloads

Download data is not yet available.

References

JI Hongyun, SUN Yaxuan. What factors affect stock prices:a literature review[J]. Productivity Research,2013(10):193-196.

Nti, I. K., Adekoya, A. F., & Weyori, B. A. (2020). A systematic review of fundamental and technical analysis of stock market predictions. Artificial Intelligence Review, 53(4), 3007-3057.

Pavithya, M. B. D., Perera, G. S. D., Munasinghe, S. L., & Karunarathna, S. N. (2021, August). Quantitative analysis and sentiment analysis for stock price forecast: the case of Colombo Stock Exchange. In 2021 10th International Conference on Information and Automation for Sustainability (ICIAfS) (pp. 512-517). IEEE.

Ji, X., Wang, J., & Yan, Z. (2021). A stock price prediction method based on deep learning technology. International Journal of Crowd Science, 5(1), 55-72.

Lütkepohl, H. (2013). Vector autoregressive models. Handbook of research methods and applications in empirical macroeconomics, 30. https://www.geeksforgeeks.org/data-visualization-with-pairplot-seaborn-and-pandas/

Chatfield, C. (1986). Exploratory data analysis. European journal of operational research, 23(1), 5-13.

Gu, Z., Eils, R., & Schlesner, M. (2016). Complex heatmaps reveal patterns and correlations in multidimensional genomic data. Bioinformatics, 32(18), 2847-2849.

Bisong, E., & Bisong, E. (2019). Matplotlib and seaborn. Building Machine Learning and Deep Learning Models on Google Cloud Platform: A Comprehensive Guide for Beginners, 151-165.

Yoffie, D. B., & Rossano, P. (2012). Apple Inc. in 2012. Harvard Business School.

https://www.apple.com/

Downloads

Published

12-12-2023

How to Cite

Jin, Y. (2023). Stock Price Analysis and Prediction Method Based on Machine Learning: Taking Apple Inc as an Example. Highlights in Business, Economics and Management, 21, 652-658. https://doi.org/10.54097/hbem.v21i.14720