Evaluation of two models for predicting Amazon stock based on machine learning

Authors

  • Zixuan You

DOI:

https://doi.org/10.54691/bcpbm.v34i.2862

Keywords:

Machine Learning; Python; Amazon.

Abstract

With the fast growth of artificial intelligence and technology, the use of machine learning techniques in financial markets is gaining popularity. As a result, many opportunities arise, such as predicting future stock movements. Financial markets are complex and constantly evolving environments, so analyzing them can be challenging and interesting. There are no specific rules to predict or estimate the value of a stock in the stock market, so one can do stock price prediction by various methods. In this project, the stock price data of Amazon for the past five years, ‘Date’, ‘Starting price’, ‘Closing price’, ‘Highest price’, ‘Lowest price’, ‘Adjusted close price’, and 'Volume’ are all included. The data were obtained from Yahoo Finance to predict the future stock price. Two forecasting models, the Linear Regression model, and the Long short-term memory model were analyzed, and based on the comparison of Mean Absolute Error, it was concluded that the LSTM forecasting model was shown to be more effective for forecasting the time-series data category.

Downloads

Download data is not yet available.

References

Shah, R., Shah, P., Joshi, C., Jain, R., & Nikam, R. (2022). Linear Regression vs LSTM for Time Series Data. 2022 IEEE World Conference on Applied Intelligence and Computing (AIC), 670 – 675. https://doi.org/10.1109/AIC55036.2022.9848887.

History and background of Amazon. (2018, August 13). MBA Knowledge Base. https://www.mbaknol.com/business-history/history-and-background-of-amazon/

NasdaqGS. (2022). Amazon.com, Inc. stock quote. Yahoo! Finance. https: //finance.yahoo.com/quote/AMZN/.

Moving average (MA) definition. (2003, November 24). Investopedia. https: //www.investopedia.com/terms/m/movingaverage.asp.

Kim, T., & Kim, H. Y. (2019). Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data. PloS One, 14 (2), e0212320 – e0212320. https://doi.org/10.1371/journal.pone.0212320.

Chong, E., Han, C., & Park, F. C. (2017). Deep learning networks for stock market analysis and prediction: Methodology, data representations, and case studies. Expert Systems with Applications, 83, 187 – 205. https://doi.org/10.1016/j.eswa.2017.04.030.

Cipiloglu Yildiz, Z., & Yildiz, S. B. (2022). A portfolio construction framework using LSTM‐based stock markets forecasting. International Journal of Finance and Economics, 27 (2), 2356 – 2366. https://doi.org/10.1002/ijfe.2277.

Zou, C., Zhang, L., Wang, Y., & Cong, L. (2018, April 8). The Stock Index Prediction Based on SVM. Hans Publishers. https: //doi.org/10.12677/CSA.2018.84046.

Subasi, A., Amir, F., Bagedo, K., Shams, A., & Sarirete, A. (2021). Stock Market Prediction Using Machine Learning. Procedia Computer Science, 194, 173 – 179. https://doi.org/10.1016/j.procs.2021.10.071.

Olah, C. (2015). Understanding lstm networks. Colah's blog. https://colah.github.io/posts/2015-08-Understanding-LSTMs/.

Parmar, I., Agarwal, N., Saxena, S., Arora, R., Gupta, S., Dhiman, H., & Chouhan, L. (2018). Stock Market Prediction Using Machine Learning. IEEE Xplore. https://ieeexplore-ieee-org.ezproxy.library.sydney.edu.au/document/8703332/authors#authors.

Downloads

Published

2022-12-14

How to Cite

You, Z. (2022). Evaluation of two models for predicting Amazon stock based on machine learning. BCP Business & Management, 34, 39-47. https://doi.org/10.54691/bcpbm.v34i.2862