Forecasting stock prices using hidden Markov models and support vector regression with firefly algorithm
Many models have been proposed for forecasting stock prices. One is the Autoregressive Integrated Moving Average (ARIMA) model which is extensively used in the fields of economics and finance (Ariyo et al., 2014). In the Philippines, the Philippine Stock Exchange (PSE) forecasts future stock price m...
Saved in:
Main Authors: | , |
---|---|
Format: | text |
Language: | English |
Published: |
Animo Repository
2016
|
Subjects: | |
Online Access: | https://animorepository.dlsu.edu.ph/etd_bachelors/18393 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | De La Salle University |
Language: | English |
id |
oai:animorepository.dlsu.edu.ph:etd_bachelors-18906 |
---|---|
record_format |
eprints |
spelling |
oai:animorepository.dlsu.edu.ph:etd_bachelors-189062022-02-04T00:25:02Z Forecasting stock prices using hidden Markov models and support vector regression with firefly algorithm Cantuba, Joshua Reno S. Nicolas, Patrick Emilio U. Many models have been proposed for forecasting stock prices. One is the Autoregressive Integrated Moving Average (ARIMA) model which is extensively used in the fields of economics and finance (Ariyo et al., 2014). In the Philippines, the Philippine Stock Exchange (PSE) forecasts future stock price movement by applying the ARIMA model on vast amounts of historical data (Trading Economics, n. d.). Although generally used, is ARIMA really the best model for the job? In this paper, two new forecasting techniques are introduced: Hidden Markov Models (HMM) and Support Vector Regression with Firefly Algorithm (SVR FA). Both methods are compared to ARIMA in analyzing closing stock prices of five selected Philippine companies: SM, Ayala Corporations (AC), Philippine Long Distance Telephone Company (TEL), JG Summit (JGS), and Meralco (MER). All of these five companies present closing stock price movements which cannot be analyzed easily. Thus, such companies will present a challenge to the proposed models as well as for ARIMA. HMM is a tool for time series data modelling that has a solid statistical foundation (Nath & Hassan, 2005). The HMMs are trained using observable states that can emit possible movement of hidden states. In stock price forecasting, we may assume an underlying hidden movement that governs the actual increases (decreases) in stock prices for model estimation. The SVR FA model uses the ε-sensitive loss function and a kernel function for analyzing the best regression hyperplane that relates the current day's closing stock prices with the future closing stock prices. Forecasting accuracies of the two proposed models are compared to ARIMA using the mean absolute percentage error (MAPE) and mean absolute deviation (MAD). Results show that the use of SVR-FA and HMM performed better in forecasting closing stock prices of the selected companies compared to ARIMA with SVR-FA having the best forecasts, yielding the lowest MAPEs and MADs. 2016-01-01T08:00:00Z text https://animorepository.dlsu.edu.ph/etd_bachelors/18393 Bachelor's Theses English Animo Repository Stocks--Prices--Philippines Markov processes Hidden Markov models Box-Jenkins forecasting MAD (Computer program language) Regression analysis Algorithms Mathematics |
institution |
De La Salle University |
building |
De La Salle University Library |
continent |
Asia |
country |
Philippines Philippines |
content_provider |
De La Salle University Library |
collection |
DLSU Institutional Repository |
language |
English |
topic |
Stocks--Prices--Philippines Markov processes Hidden Markov models Box-Jenkins forecasting MAD (Computer program language) Regression analysis Algorithms Mathematics |
spellingShingle |
Stocks--Prices--Philippines Markov processes Hidden Markov models Box-Jenkins forecasting MAD (Computer program language) Regression analysis Algorithms Mathematics Cantuba, Joshua Reno S. Nicolas, Patrick Emilio U. Forecasting stock prices using hidden Markov models and support vector regression with firefly algorithm |
description |
Many models have been proposed for forecasting stock prices. One is the Autoregressive Integrated Moving Average (ARIMA) model which is extensively used in the fields of economics and finance (Ariyo et al., 2014). In the Philippines, the Philippine Stock Exchange (PSE) forecasts future stock price movement by applying the ARIMA model on vast amounts of historical data (Trading Economics, n. d.). Although generally used, is ARIMA really the best model for the job? In this paper, two new forecasting techniques are introduced: Hidden Markov Models (HMM) and Support Vector Regression with Firefly Algorithm (SVR FA). Both methods are compared to ARIMA in analyzing closing stock prices of five selected Philippine companies: SM, Ayala Corporations (AC), Philippine Long Distance Telephone Company (TEL), JG Summit (JGS), and Meralco (MER). All of these five companies present closing stock price movements which cannot be analyzed easily. Thus, such companies will present a challenge to the proposed models as well as for ARIMA. HMM is a tool for time series data modelling that has a solid statistical foundation (Nath & Hassan, 2005). The HMMs are trained using observable states that can emit possible movement of hidden states. In stock price forecasting, we may assume an underlying hidden movement that governs the actual increases (decreases) in stock prices for model estimation. The SVR FA model uses the ε-sensitive loss function and a kernel function for analyzing the best regression hyperplane that relates the current day's closing stock prices with the future closing stock prices. Forecasting accuracies of the two proposed models are compared to ARIMA using the mean absolute percentage error (MAPE) and mean absolute deviation (MAD). Results show that the use of SVR-FA and HMM performed better in forecasting closing stock prices of the selected companies compared to ARIMA with SVR-FA having the best forecasts, yielding the lowest MAPEs and MADs. |
format |
text |
author |
Cantuba, Joshua Reno S. Nicolas, Patrick Emilio U. |
author_facet |
Cantuba, Joshua Reno S. Nicolas, Patrick Emilio U. |
author_sort |
Cantuba, Joshua Reno S. |
title |
Forecasting stock prices using hidden Markov models and support vector regression with firefly algorithm |
title_short |
Forecasting stock prices using hidden Markov models and support vector regression with firefly algorithm |
title_full |
Forecasting stock prices using hidden Markov models and support vector regression with firefly algorithm |
title_fullStr |
Forecasting stock prices using hidden Markov models and support vector regression with firefly algorithm |
title_full_unstemmed |
Forecasting stock prices using hidden Markov models and support vector regression with firefly algorithm |
title_sort |
forecasting stock prices using hidden markov models and support vector regression with firefly algorithm |
publisher |
Animo Repository |
publishDate |
2016 |
url |
https://animorepository.dlsu.edu.ph/etd_bachelors/18393 |
_version_ |
1772835268656627712 |