Comparative Analysis of K-NN and Naïve Bayes Methods to Predict Stock Prices

Budi Soepriyanto

Abstract


Abstract— Buying and selling shares is a transaction that is widely carried out at this time, especially buying and selling stocks online which are widely available in the market, to make buying and selling shares require ability or knowledge so that the buying and selling of shares are profitable, to be able to help economic players predict prices. Profit shares or not purchased in the future, this research will conduct stock price predictions using classification methods, namely K-Nearest Neighbor and Naïve Bayes, to predict the stock price data used for one month in minute levels totalling 39065 data, based on prediction results. The highest results obtained were using Naïve Bayes with an accuracy value of 69.38 then the K-Nearest Neighbor method with a K = 5 value of 67.25%, based on these results it can be concluded that the use of the K-Nearest Neighbor and Naïve Bayes methods for prediction share price not yet owned I high accuracy, so it can be combined with other methods or by using other variable predictors.


Full Text:

PDF

References


M. Nanja and P. Purwanto, “METODE K-NEAREST NEIGHBOR BERBASIS FORWARD SELECTION UNTUK PREDIKSI HARGA KOMODITI LADA,” Pseudocode, vol. 2, no. 1, pp. 53–64, Aug. 2015.

M. Jannah and N. Nurfauziah, “ANALISIS PENGARUH NILAI TUKAR RUPIAH, TINGKAT SUKU BUNGA SBI (BI RATE) DAN HARGA EMAS DUNIA TERHADAP INDEKS LQ45 DI BURSA EFEK INDONESIA,” J. Manaj. Maranatha, vol. 17, no. 2, p. 103, May 2018.

M. Guntur, J. Santony, and Y. Yuhandri, “Prediksi Harga Emas dengan Menggunakan Metode Naïve Bayes dalam Investasi untuk Meminimalisasi Resiko,” J. RESTI (Rekayasa Sist. dan Teknol. Informasi), vol. 2, no. 1, pp. 354–360, 2018.

Liao. 2007. Recent Advances in Data Mining of Enterprise Data: Algorithms and Application. Singapore: World Scientific Publishing.

Budi Santosa. 2007. Data Mining Teknik Pemanfaatan Data UntukKeperluanBisnis. GrahaIlmu.

K. Kaharuddin, K. Kusrini, V. Wati, E. Pawan, and P. Hasan, “Classification of Spice Types Using K-Nearest Neighbor Algorithm,” in 2019 International Conference on Information and Communications Technology (ICOIACT), 2019, pp. 285–290.

Siregar, A. M., &Puspabhuana, A., 2002. Data Mining Pengolahan Data MenjadiInformasidengan RapidMiner. Sukoharjo: CV Kekata Group.

Muqorobin, M., Rokhmah, S., Muslihah, I., & Rais, N. A. R. (2020). Classification of Community Complaints Against Public Services on Twitter. International Journal of Computer and Information System (IJCIS), 1(1).

Muqorobin, M., Kusrini, K., Rokhmah, S., & Muslihah, I. (2020). Estimation System For Late Payment Of School Tuition Fees. International Journal of Computer and Information System, 1(1), 341475.




DOI: https://doi.org/10.29040/ijcis.v2i2.32

Article Metrics

Abstract view : 530 times
PDF - 412 times

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.