Professional Documents
Culture Documents
Fibonacci
Fibonacci
Abstract—The prediction of stock price with high accuracy and consistency is a major challenge. A lot of research has been done to
predict the stock price. However, there is a scope of improvement in accuracy and consistency of the prediction. This article proposes
a Fibonacci heap based ensemble model that predicts the closing price of a stock for the next trading day. The proposed model is a
combination of different (time series and regression) models. The model computes the median of significant prediction models that are
organized in a Fibonacci heap data structure. The performance of this model is tested with the datasets of well-known eleven stocks.
The results prove the effectiveness of the proposed model over other traditional prediction models with respect to consistency and
accuracy.
Keywords: Accuracy, Consistency, Ensemble, Fibonacci Heap, Prediction, Stock Price
models. The popular variants of ensemble techniques are (that may influence the change in stock price). The sensex
Bagging [1, 3], Boosting [4], and Stacking [2, 6]. data of world's ten major stock exchanges have also been
The proposed model is based on stacking ensemble downloaded for the experimental purpose.
technique, which utilizes the predicted values by different Table 1: Stocks listed on S&P BSE-IT
prediction models. A combiner algorithm is used to predict
the stock price, which accepts the prediction values of Sl. No. Company Name No. of Observations
1 HCL Tech Ltd. 4025
different models and returns the computed effective value 2 HEXAWARE TECH. LTD. 3853
for the ensemble model. 3 INDIAN INFO TECH. LTD. 1413
4 INFOSYS LTD. 3941
III. FIBONACCI HEAP BASED ENSEMBLE MODEL 5 MINDTREE LTD. 2206
6 MPHASIS LTD. 3929
A Fibonacci heap is a data structure which links multiple 7 ORACLE FINANCIAL SERVICES 3382
values in such a way that the minimum value is pointed by LTD.
the root of the structure. In other words, a Fibonacci heap 8 TCS LTD. 2838
is a collection of several other min-heap data structures. 9 TECH MAHINDRA LTD. 2336
This article proposes a Fibonacci heap based ensemble 10 VAKRANGEE LTD. 3940
11 WIPRO LTD. 4041
model for stock price prediction. Initially, a Fibonacci heap TOTAL OBSERVATIONS 35904
is constructed for various predicted prices of a stock that
are generated by various other prediction models. Then, the The proposed model also generates various types of
model computes the median of these values extracted in a technical analysis indicators. Table 2 shows the list of
Fibonacci sequence from the earlier constructed Fibonacci technical analysis indicators used by various regression
heap data structure. Figure 1 shows the overview of the technique based prediction models.
proposed model. Table 2: Technical analysis indicators
Smoothing. For non-stationary datasets, the prediction Figure 2 shows the performance of the proposed ensemble
models are based on other techniques, like, Naïve Trend, model for all the considered stocks in the gathered
Naïve Rate of Change, Double Moving Average, Double historical data sets. The proposed model predicts 90
Exponential Smoothing, Triple Exponential Smoothing, percent of the observations with 70 percent accuracy,
Simple Linear Regression and Multiple Linear Regression. which is much better than the considered traditional
The proposed ensemble model utilizes the list of models. As the accuracy is increased, there is a sharp dip in
global indicators & technical analysis indicators, list of consistency. Due to page limitation, the detailed result of
attributes belonging to historical data sets, and the all the generated models for considered stocks could not be
attributes of datasets belonging to world's major stock shown.
exchanges. The details of all these lists could not be
provided due to page limitation. The base prediction V. CONCLUSION
models are pruned on the basis of obtained Mean A Fibonacci heap based ensemble model for stock price
Percentage Error (MPE) of the training datasets. The prediction has been proposed. The proposed model follows
values predicted by the remaining prediction models are an incremental approach to predict the closing price of a
organized in a Fibonacci heap data structure. Then the stock for the next trading day. The analysis of results
ensemble model is trained with the training datasets of that exhibits that the proposed ensemble model predicts better
stock. This model predicts the closing price of a stock for than the other traditional prediction models with high
the next trading day. accuracy in a consistent manner.
IV. RESULTS REFERENCES
[1] Leo Brieman, “Bagging predictors”, Machine Learning, vol. 24(2),
pp. 123-140, August 1996.
[2] Leo Breiman, “Stacked regressions”. Machine Learning, vol. 24(1),
pp. 49-64, 1996.
[3] K Leo Breiman, “Random forests”, Machine Learning, vol. 45(1),
pp. 5-32, Oct. 2001.
[4] Yoav Freund and Robert E. Schapire, “Experiments with a new
boosting algorithm”, In Proceedings of the Thirteenth International
Conference on Machine Learning (ICML'96), pp. 148-156, San
Francisco, CA, USA, Morgan Kaufmann Publishers Inc., 1996.
[5] Lucas Nunno, “Stock market price prediction using linear and
polynomial regression models”, University of New Mexico
Computer Science Department Albuquerque, New Mexico, United
States, 2014.
[6] David H. Wolpert, “Stacked generalization”, Neural Networks, vol.
5, pp. 241-259, 1992.