Universitas Syiah Kuala | ELECTRONIC THESES AND DISSERTATION

Electronic Theses and Dissertation

Universitas Syiah Kuala

    SKRIPSI
HENRIK VIAN LU, PERBANDINGAN PERFORMA ALGORITMA LONGRNSHORT-TERM MEMORY (LSTM), GATEDRNRECURRENT UNIT (GRU), DAN TRANSFORMERRNDALAM PREDIKSI HARGA SAHAM PERUSAHAANRNPLATFORM STREAMING GLOBAL. Banda Aceh Fakultas MIPA Matematika,2026

Harga saham perusahaan platform streaming global berfluktuasi tinggi akibat dinamika pasar yang stokastik dan pengaruh sentimen investor, sehingga prediksi harga penutupan menjadi penting untuk mendukung pengambilan keputusan investasi. penelitian ini bertujuan membandingkan performa long short-term memory (lstm), gated recurrent unit (gru), dan transformer dalam memprediksi harga penutupan saham netflix (nflx), the walt disney company (dis), warner bros. discovery (wbd), roku, inc. (roku), dan amazon.com, inc. (amzn) pada periode 28 september 2017 hingga 13 maret 2026. penelitian menerapkan skema direct multi-step forecasting dengan input window 60, 90, dan 120 hari serta output 5, 10, 20, 30, dan 45 hari ke depan. model terbaik dari setiap kombinasi dioptimasi menggunakan optuna dengan algoritma tree-structured parzen estimator (tpe) sebanyak 20 trial. evaluasi dilakukan menggunakan metrik root mean squared error (rmse), mean absolute error (mae), mean absolute percentage error (mape), training time, dan inference time. hasil menunjukkan bahwa performa model bersifat kontekstual dan bergantung pada karakteristik saham serta horizon prediksi. pada saham nflx dan amzn, gru pasca-tuning cenderung menghasilkan performa terbaik. pada saham dis, wbd, dan roku, model terbaik bervariasi menurut horizon prediksi, sehingga tidak terdapat satu arsitektur yang unggul secara universal. secara umum, transformer menghasilkan nilai mape yang lebih tinggi dibandingkan lstm dan gru pada sebagian besar konfigurasi. hasil visualisasi juga menunjukkan bahwa nilai mape cenderung meningkat seiring bertambahnya horizon prediksi, mencerminkan akumulasi ketidakpastian pada skema direct multi-step forecasting. kata kunci: harga saham, platform streaming global, direct multi-step forecasting, lstm, gru, transformer



Abstract

Global streaming platform companies stock prices fluctuate due to stochastic market dynamics and investor sentiment, making closing price prediction important for investment decision-making. This study compares the performance of Long Short- Term Memory (LSTM), Gated Recurrent Unit (GRU), and Transformer in predicting the closing stock prices of Netflix (NFLX), The Walt Disney Company (DIS), Warner Bros. Discovery (WBD), Roku, Inc. (ROKU), and Amazon.com, Inc. (AMZN) over the period from September 28, 2017 to March 13, 2026. The study applies a direct multi-step forecasting scheme with input windows of 60, 90, and 120 days and outputs of 5, 10, 20, 30, and 45 days ahead. The best model from each combination was optimized using Optuna with the Tree-structured Parzen Estimator (TPE) algorithm for 20 trials. Evaluation was conducted using Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), training time, and inference time. The results indicate that model performance is contextual and depends on stock characteristics and prediction horizons. For NFLX and AMZN, post-tuning GRU tended to achieve the best performance. For DIS, WBD, and ROKU, the best model varied across prediction horizons, indicating that no single architecture was universally superior. In general, Transformer produced higher MAPE values than LSTM and GRU across most configurations. The visualization results also show that MAPE tends to increase as the prediction horizon lengthens, reflecting the accumulation of uncertainty in the direct multi-step forecasting scheme. Keywords: stock price, global streaming platforms, direct multi-step forecasting, LSTM, GRU, Transformer



    SERVICES DESK