Abstract
The stock market is essential in the economic growth of the nations in which it operates, and stock price prediction is of great significance to investors and government departments, as stocks provide both high reward and high risk. Nowadays, stock price prediction makes extensive use of machine learning algorithms. A large number of machine-learning models are available for predicting stock prices in the existing literature. In this article, the K-Nearest Neighbor (KNN), Random Forest (RF), Long Short-Term Memory (LSTM), and Gate Recurrent Unit (GRU) methods are applied to construct models to make stock forecasting based on Airbnb's historical stock data. The stock data are collected from 10th December 2020 to 19th August 2022. In addition, the accuracy of these four different models is analyzed and compared through Mean Square Error (MSE), Mean Absolute Error (MAE), and Resolvable coefficient (R^2) score metrics. The result shows that the LSTM and GRU models perform better than KNN and RF, with GRU showing the best results.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.