Linear Regression Method Predicting BMRI Stock Price Using Machine Learning

Kholik Zaenudin Ashar(1*),Muhammad Raffi Muttaqin(2),Yudhi Raymond Ramadhan(3)
(1) Sekolah Tinggi Teknologi Wastukancana
(2) Sekolah Tinggi Teknologi Wastukancana
(3) Sekolah Tinggi Teknologi Wastukancana
(*) Corresponding Author
DOI : 10.35889/jutisi.v12i3.1427

Abstract

Investing in stocks carries considerable risk as stock prices fluctuate depending on market conditions and company performance. Therefore, it is necessary to analyze stock price movements so that investors can use the analysis results to make investment decisions. In this study, using the linear regression method, machine learning is used to predict the closing price of Bank Mandiri Tbk (BMRI) shares. The attributes used in this research are Open, High, and Low as inputs and Close labels to determine the prediction value. The data obtained is processed using Visual Studio Code tools with the Python programming language. This research focuses on assessing the value of error and precision, mean absolute error (MAE), mean square error (MSE), root mean square error (RMSE), and mean absolute percentage error (MAPE). Based on the tests conducted, the results obtained an error value of 960.97 for the MSE value, 30.9995 for the RMSE value, and 0.57% for the MAPE value.

 

Keywords


BMRI; Linear Regression; Stock Price Prediction

References


Ksei.com, “Statistik Pasar Modal Indonesia,” 2023. https://www.ksei.co.id/data/graph (accessed Feb. 20, 2023).

H. C. Latifah and A. W. Suryani, “Pengaruh kebijakan dividen, kebijakan hutang, profitabilitas, dan likuiditas terhadap harga saham,” J. Akunt. Aktual, vol. 7, no. 1, pp. 31–44, 2020, doi: 10.17977/um004v7i12020p31.

A. Izzah and R. Widyastuti, “Prediksi Harga Saham Menggunakan Improved Multiple Linear Regression untuk Pencegahan Data Outlier,” Kinet. Game Technol. Inf. Syst. Comput. Network, Comput. Electron. Control, vol. 2, no. 3, pp. 141–150, 2017, doi: 10.22219/kinetik.v2i3.268.

B. PT Bursa Efek Indonesia, “Indonesia Stock Exchange (IDX),” 2023. https://www.idx.co.id/ (accessed Mar. 22, 2023).

Bisnis.com, “Daftar 10 Bank Terbesar di Indonesia dari Segi Aset per Juni 2022,” 2022. https://finansial.bisnis.com/read/20221017/90/1588137/daftar-10-bank-terbesar-di-indonesia-dari-segi-aset-per-juni-2022 (accessed Mar. 23, 2023).

V. P. Ramadhan and F. Y. Pamuji, “Analisis Perbandingan Algoritma Forecasting dalam Prediksi Harga Saham LQ45 PT Bank Mandiri Sekuritas (BMRI),” J. Teknol. dan Manaj. Inform., vol. 8, no. 1, pp. 39–45, 2022, doi: 10.26905/jtmi.v8i1.6092.

I. Himawan, O. Nurdiawan, G. Dwilestari, and ..., “Irvan Himawan PREDIKSI HARGA SAHAM DENGAN ALGORITMA REGRESI LINIER DENGAN RAPIDMINER,” JURSIMA (Jurnal …, vol. 10, no. 3, pp. 239–247, 2022, [Online]. Available: https://ejournal.indobarunasional.ac.id/index.php/jursima/article/view/475%0Ahttps://ejournal.indobarunasional.ac.id/index.php/jursima/article/download/475/314

E. Fitri and D. Riana, “Analisa Perbandingan Model Prediction Dalam Prediksi Harga Saham Menggunakan Metode Linear Regression, Random Forest Regression Dan Multilayer Perceptron,” METHOMIKA J. Manaj. Inform. dan Komputerisasi Akunt., vol. 6, no. 1, pp. 69–78, 2022, doi: 10.46880/jmika.vol6no1.pp69-78.

H. Winnos, R. Septima, and H. Gemasih, “Perbandingan Metode Regresi Linier Berganda dan Autoregressive Integrated Moving Average (ARIMA) Untuk Prediksi Saham PT. BSI, Tbk.,” Ocean Eng. J. Ilmu Tek. Dan Teknol. Marit., vol. 1, no. 4, pp. 15–23, 2022, doi: 10.58192/ocean.v1i4.350.

T. Hermanto, I. M. ruf Nugroho, M. A. Sunandar, and M. H. Totohendarto, “IMPLEMENTASI ALGORITMA LINEAR REGRESSION UNTUK PREDIKSI HARGA SAHAM PT. ANEKA TAMBANG TBK,” J. Transform., vol. 19, no. 2, pp. 173–183, 2022, doi: 10.26623/transformatika.v19i2.4396.

A. I. putra and R. R. Santika, “Implementasi Machine Learning dalam Penentuan Rekomendasi Musik dengan Metode Content-Based Filtering,” EDUMATIC, vol. 4, no. 1, pp. 121–130, 2020, doi: 10.29408/edumatic.v4i1.2162.

D. Sari, O. Panggabean, E. Buulolo, and N. Silalahi, “Penerapan Data Mining Untuk Memprediksi Pemesanan Bibit Pohon Dengan Regresi Linear Berganda,” JURIKOM, vol. 7, no. 1, pp. 56–62, 2020, doi: 10.30865/jurikom.v7i1.1947.

R. P. Haki, “Perancangan dan Implementasi Data Mining,” in SKRIPSI, Banten: UMN (Unervisitas Multimedia Nusantara), 2018.

Susanto, Sani dan Suryadi, Dedy, Pengantar Data Mining Mengali Pengetahuan dari Bongkahan Data. Yogyakarta: CV ANDI Offset, 2010.

A. A. Suryanto, “Penerapan Metode Mean Absolute Error (Mea) Dalam Algoritma Regresi Linear Untuk Prediksi Produksi Padi,” Saintekbu, vol. 11, no. 1, pp. 78–83, 2019, doi: 10.32764/saintekbu.v11i1.298.

D. Beazley, Python: Essential Reference, Third Edition, 3rd ed. 2006.

L. Alfat, H. Hermawan, A. Rustandiputri, R. Inzhagi, and R. Tandjilal, “Prediksi Saham PT. Aneka Tambang Tbk. dengan K-Nearest Neighbors,” JSAI (Journal Sci. Appl. Informatics), vol. 5, no. 3, pp. 236–243, 2022, doi: 10.36085/jsai.v5i3.3975.

Y. Finance, “Harga saham PT Mandiri,” 2023. https://finance.yahoo.com/quote/BMRI.JK/history?p=BMRI.JK (accessed Mar. 28, 2023).

K. Hendarto, Belajar Trading: Pahami Trading Sebelum Anda Memulai. Yogyakarta: Andi, 2005.


The PDF file you selected should load here if your Web browser has a PDF reader plug-in installed (for example, a recent version of Adobe Acrobat Reader).

If you would like more information about how to print, save, and work with PDFs, Highwire Press provides a helpful Frequently Asked Questions about PDFs.

Alternatively, you can download the PDF file directly to your computer, from where it can be opened using a PDF reader. To download the PDF, click the Download link above.

Fullscreen Fullscreen Off

Full Text: File PDF

How To Cite This :

Refbacks

  • There are currently no refbacks.