International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 143 - Number 2 |
Year of Publication: 2016 |
Authors: I. S. L. Sarwani, N. Siva Nandhalahari, S. Sobha Sri |
10.5120/ijca2016910019 |
I. S. L. Sarwani, N. Siva Nandhalahari, S. Sobha Sri . Comparative Analysis of Id3 and Naïve Bayes Algorithm on Stock Market Prediction. International Journal of Computer Applications. 143, 2 ( Jun 2016), 21-25. DOI=10.5120/ijca2016910019
Stock market is a high risk investment influenced by many factors. Stock market prices prediction is not an easy task. With the aid of classification, a data mining technique predicting stock prices considering some factors of influence had been done. This paper put a light on the performance of ID3 and Naïve Bayes algorithms on a given Stock market data. ID3 and Naïve Bayes were classification algorithms which classifies the given data to be classified (test data) basing on the historical data (training data) provided. The historical and test datasets contain attributes which are the factors influencing the stock prices. ID3 algorithm is a Decision Tree technique which constructs a decision tree using the historical data. After decision tree construction, prediction is done for the test dataset values and forecast accuracy is calculated using original value dataset values. Bayesian networks are also used for prediction. The Naïve Bayes algorithm is a Bayesian Network technique used for the Bayesian Network construction using the historical data. The constructed Bayesian Network aids in prediction of the test dataset stock prices and forecast accuracy is calculated using original value dataset values. For computing forecast accuracy root mean square deviation is used. Along with forecast accuracy, under and upper forecasting of the algorithms are also presented. These two algorithms namely ID3 and Naïve Bayes are evaluated on various stock market datasets and the comparison of their performance is provided.