Vanilla Recurrent Neural Network (RNN) have feedback loop that do not throw away the past information in the learning process. Vanishing gradient often happen in the learning process of Vanilla RNN effect failed keep long term dependencies and decrease accuration. Long Short-Term Memory (LSTM) solved its problem. The two methods used for forecasting Moderna Inc stock price which is currently producing a covid vaccine. The daily closed stock price used here were collected over the december 10th, 2018 until March 31th, 2022 which divided 80% training data and 20% testing data. Comparison between two methods using Mean Absolute Error (MAE) in testing data. Input layer, based on difference and partial autocorrelation functions, are lag 1, 3, 4, 5 and 6. The best method is LSTM with one hidden layer consist of 50 units and 91 epochs, yielded MEA 0.0076. Forecasting the next 167 days starting from April 1st, 2022, has an uptrend until 239.85.

1.
WHO
, “
Coronavirus disease (COVID-19) update
,”
2022
. https://www.who.int/bangladesh/emergencies/coronavirus-disease-(covid-19)-update (accessed Sep. 30, 2022).
2.
WHO
, “
Coronavirus disease (COVID-19): Vaccines
,” May 17,
2022
. https://www.who.int/news-room/questions-and-answers/item/coronavirus-disease-(covid-19)-vaccines (accessed Sep. 30, 2022).
3.
WHO
, “
The Moderna COVID-19 (mRNA-1273) vaccine: what you need to know
,” Aug. 18,
2022
. https://www.who.int/news-room/feature-stories/detail/the-moderna-covid-19-mrna-1273-vaccine-what-you-need-to-know (accessed Sep. 30, 2022).
4.
Yahoo Finance
, “
Moderna, Inc. (MRNA) Stock Price, News, Quote & History
,”
2022
. https://finance.yahoo.com/quote/MRNA/ (accessed Sep. 30, 2022).
5.
A.
Harel
and
G.
Harpaz
, “
Forecasting stock prices
,”
International Review of Economics & Finance
, vol.
73
, pp.
249
256
, May
2021
, doi: .
6.
P.
Wlodarczak
,
Machine Learning and its Applications
.
Queensland
:
CRC Press
,
2020
.
7.
C.
Deng
,
Y.
Huang
,
N.
Hasan
, and
Y.
Bao
, “
Multi-step-ahead stock price index forecasting using long short-term memory model with multivariate empirical mode decomposition
,”
Information Sciences
, vol.
607
, pp.
297
321
, Aug.
2022
, doi: .
8.
K. K.
Yun
,
S. W.
Yoon
, and
D.
Won
, “
Interpretable stock price forecasting model using genetic algorithm-machine learning regressions and best feature subset selection
,”
Expert Systems with Applications
, p.
118803
, Sep.
2022
, doi: .
9.
Y.
Lin
,
Z.
Lin
,
Y.
Liao
,
Y.
Li
,
J.
Xu
, and
Y.
Yan
, “
Forecasting the realized volatility of stock price index: A hybrid model integrating CEEMDAN and LSTM
,”
Expert Systems with Applications
, vol.
206
, p.
117736
, Nov.
2022
, doi: .
10.
S. K.
Chandar
, “
Hybrid models for intraday stock price forecasting based on artificial neural networks and metaheuristic algorithms
,”
Pattern Recognition Letters
, vol.
147
, pp.
124
133
, Jul.
2021
, doi: .
11.
S. F.
Crone
and
N.
Kourentzes
, “
Feature selection for time series prediction – A combined filter and wrapper approach for neural networks
,”
Neurocomputing
, vol.
73
, no.
10
, pp.
1923
1936
, Jun.
2010
, doi: .
12.
J.
Faraway
and
C.
Chatfield
, “
Time series forecasting with neural networks: a comparative study using the air line data
,”
Journal of the Royal Statistical Society: Series C (Applied Statistics)
, vol.
47
, no.
2
, pp.
231
250
, Jun.
1998
, doi: .
13.
C.
Tian
,
J.
Ma
,
C.
Zhang
, and
P.
Zhan
, “
A Deep Neural Network Model for Short-Term Load Forecast Based on Long Short-Term Memory Network and Convolutional Neural Network
,”
Energies
, vol.
11
, no.
12
, Art. no. 12, Dec.
2018
, doi: .
14.
G. S.
Chadha
,
A.
Panambilly
,
A.
Schwung
, and
S. X.
Ding
, “
Bidirectional deep recurrent neural networks for process fault classification
,”
ISA Transactions
, vol.
106
, pp.
330
342
, Nov.
2020
, doi: .
15.
A.
Sherstinsky
, “
Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network
,”
Physica D: Nonlinear Phenomena
, vol.
404
, p.
132306
, Mar.
2020
, doi: .
16.
Y.
Wu
,
M.
Yuan
,
S.
Dong
,
L.
Lin
, and
Y.
Liu
, “
Remaining useful life estimation of engineered systems using vanilla LSTM neural networks
,”
Neurocomputing
, vol.
275
, pp.
167
179
, Jan.
2018
, doi: .
This content is only available via PDF.
You do not currently have access to this content.