Using the Random Forest Method in Predicting Stock Price Movements

In the era of globalization, rapid technological advancements have significantly impacted the financial sector, particularly stock price movements. This study aims to contribute to financial analysis and investment by providing a predictive tool to help investors make more informed investment decisions. The Random Forest method, a machine learning al-gorithm known for effectively handling complex and heterogeneous data, is used to pre-dict stock price movements. The study utilizes historical stock data from companies listed on the Indonesia Stock Exchange (IDX) as a case study. The resulting predictive model demonstrates high accuracy, achieving 98% accuracy, with an R-squared (R²) value of 0.94 and a Mean Absolute Percentage Error (MAPE) of 0.40%. This research identifies key factors, such as Previous, High, Low, Volume, and Change, that significantly influ-ence stock price movements. The strengths of this study lie in its use of an extensive da-taset, involving 104 stock codes as examples, and its integration of interactive visualiza-tion via Streamlit to enhance data interpretation. This tool is expected to be a reliable solu-tion that provides superior predictive capabilities compared to traditional methods and supports more accurate investment analysis in the stock market.

Authors

Institutions

Publication Details

Journal
Journal of Dinda Data Science Information Technology and Data Analytics
Published
2025-02-07
DOI
https://doi.org/10.20895/dinda.v5i1.1765
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Using the Random Forest Method in Predicting Stock Price Movements

Samsudin Samsudin, Muhammad Amsari Lubis
Journal of Dinda Data Science Information Technology and Data Analytics
Stock Market Forecasting Methods
article

Using the Random Forest Method in Predicting Stock Price Movements

Samsudin Samsudin, Muhammad Amsari Lubis
article en

Abstract

In the era of globalization, rapid technological advancements have significantly impacted the financial sector, particularly stock price movements. This study aims to contribute to financial analysis and investment by providing a predictive tool to help investors make more informed investment decisions. The Random Forest method, a machine learning al-gorithm known for effectively handling complex and heterogeneous data, is used to pre-dict stock price movements. The study utilizes historical stock data from companies listed on the Indonesia Stock Exchange (IDX) as a case study. The resulting predictive model demonstrates high accuracy, achieving 98% accuracy, with an R-squared (R²) value of 0.94 and a Mean Absolute Percentage Error (MAPE) of 0.40%. This research identifies key factors, such as Previous, High, Low, Volume, and Change, that significantly influ-ence stock price movements. The strengths of this study lie in its use of an extensive da-taset, involving 104 stock codes as examples, and its integration of interactive visualiza-tion via Streamlit to enhance data interpretation. This tool is expected to be a reliable solu-tion that provides superior predictive capabilities compared to traditional methods and supports more accurate investment analysis in the stock market.

Journal of Dinda Data Science Information Technology and Data AnalyticsVol. 5(1)
Universitas Islam Negeri Sumatera Utara (ID)
Openalex Percentile: Top 96%
Stock Market Forecasting Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.