An investment is the placement of a current amount of funds in the hope of generating a profit in the future. There are several types of investments, including stocks, which are attractive options as they can bring a huge return to investors. However, rapidly fluctuating stock prices are influenced by various factors, such as company performance, interest rates, economic conditions, and government policies. In Indonesia, PT Bank Rakyat Indonesia Tbk (BBRI) had the largest profit among the 10 largest banks by the end of March 2024, with a profit of IDR 13.8 trillion. The higher the bank's return, the greater the investor's interest in purchasing the stock, influencing the stock price. The goal of stock price prediction is to forecast the stock's future price in order to increase investors' potential profits. Various methods, such as Linear Regression, Decision Tree, and Gradient Boosting, have been developed for stock price prediction. Comparative analysis is needed to determine the most accurate method in predicting the stock price of People's Bank of Indonesia, using Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), Root Mean Squared Error (RMSE), and R-squared metrics (R2). The analysis showed that Linear Regression achieved the highest accuracy with R2 of 0.96, MAE of 65.72 and RMSE of 86.74 compared to the Decision Tree and Gradient Boosting models.
Read full abstract