Research on Microsoft Stock Price Prediction Based on Various
Models
Yuanhao Fu
School of Finance, Inner Mongolia University of Finance and Economics, Inner Mongolia, China
Keywords: Machine Learning Models, Linear Regression, Microsoft Stock Price, Time Series Models, LSTM.
Abstract: With the development of social economy, stock investment is more and more popular. In the process of
investing in stocks, people execute investment strategies in a quantitative trading manner, hoping to obtain
the highest return with the least risk. To be successful in quantitative investing, the key is to build excellent
mathematical models and grasp the accurate trading time node. The paper uses the dataset of Microsoft stock
prices from April 2015 to April 2021 to build Machine learning models such as Linear regression, Time series
models such as ARIMA, and LSTM model are used to fotcast the Microsoft’s stock price. This thesis provides
the theoretical knowledge of LSTM neural model and time series model, selects the actual stocks in the stock
market, conducts modeling analysis and predicts the stock price, and then uses RMSE to compare the
prediction results of several models. Since the time series model cannot get the utmost out of the non-linear
part of the data and cannot carry out long-term memory, the LSTM neural network can make full use of it and
long-term memory to obtain useful information in the stock data. In terms of root-mean-square error, LSTM
neural network is smaller than the time series model, which indicates that LSTM neural network is a better
method for prediction.
1 INTRODUCTION
Nowadays, people try to use computers to manage
investment transactions, and add trading strategies to
the instructions of computers quantitatively, which is
called quantitative investment trading. To be
successful in quantitative investing, the key is to build
excellent mathematical models and grasp the accurate
trading time node. One idea is to build mathematical
models to predict the rise and fall of stock prices,
timing them to buy on the rise and sell on the fall.
Financial data are affected by many factors and
are characterized by high complexity. With the
development of artificial intelligence, more people
have applied machine learning to the study of
financial stocks.
Stock volatility is influenced by many elements,
such as historic stock price data, social media
opinion, investor sentiment, etc. Stock text fusion is a
high-efficiency method for forecast, but there are still
some problems such as poor time dependence of
historical information, low availability of experiment
and insufficient validity of fusion features. The noise
database, low quality of it and incomplete abnormal
one in the existing situation leads to the inaccuracy of
the learned characteristics and the poor prediction
performance of the model. In addition, most of the
subsistent sets improve the usability of it by changing
the network structure of outcome, and lack in-depth
research on the uncertainty factors of datum.
Chowdhury et al. in 2020 adopted machine
learning methods to verify stock prediction based on
improved Black code option pricing model. Akhtar et
al used support vector to predict stocks in 2022.
Saranya et al. in 2019 compared the results of various
machine learning algorithms to predict stock price
volatility and found the best means to predict stock
price. Maqbool et al. used three ways to compute
multifarious view scores and used them in disparate
groups to comprehend the incidence of news on stock
prices and the impact of each sentiment scoring
method.
Keren et al. studied the virtues of CNN and LSTM
in improving the accuracy of stock prediction, used
the convolution idea of CNN to build a feature
extraction layer to extract features, and input the
extracted features into LSTM to better study the time
information of features. Akshit et al. integrated ANN
to establish ANN 's-MLP, GACH-MLP hybrid