Fakultas Teknologi Informasi Universitas Kristen Satya Wacana
Doi
Abstract
Prediksi harga Bitcoin menjadi topik yang menarik dan menantang seiring meningkatnya volatilitas dan penggunaan aset kripto dalam berbagai sektor. Salah satu aspek yang memengaruhi kualitas prediksi adalah pendekatan yang digunakan untuk membagi data latih dan data uji. Penelitian ini membandingkan dua pendekatan validasi yang umum digunakan, yaitu sliding window dan static split, dalam konteks prediksi harga Bitcoin menggunakan algoritma Random Forest. Data historis diambil dari Yahoo Finance selama tahun 2015–2022. Fitur input berupa harga penutupan dengan tujuh lag harian. Pendekatan sliding window melibatkan pelatihan model dengan data yang terus bergeser dengan jendela waktu 365 hari dan pengujian satu hari ke depan, sedangkan static split membagi data berdasarkan tanggal tetap. Evaluasi menggunakan metrik Root Mean Square Error (RMSE), Mean Absolute Error (MAE), R-squared (R²), Mean Absolute Percentage Error (MAPE), dan direction accuracy. Hasil menunjukkan bahwa sliding window menghasilkan prediksi yang lebih akurat dan konsisten, serta lebih baik dalam mengikuti arah pergerakan harga dibandingkan static split.Bitcoin price prediction remains a complex and relevant challenge due to the asset’s high volatility and increasing adoption across sectors. One important factor influencing prediction performance is the data-splitting strategy used during model development. This study compares two approaches (sliding window and static split) in the context of Bitcoin price forecasting using the Random Forest algorithm. Historical data from Yahoo Finance spanning 2015 to 2022 is used, with input features constructed from closing prices and seven daily lags. The sliding window method trains the model with a moving 365-day window and tests it on the following day, whereas the static split uses a fixed date-based partition. Evaluation is conducted using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), R-squared (R²), Mean Absolute Percentage Error (MAPE), and direction accuracy metrics. The results indicate that the sliding window approach produces more accurate and consistent predictions and better captures directional trends in price movement than the static split method
Is data on this page outdated, violates copyrights or anything else? Report the problem now and we will take corresponding actions after reviewing your request.