Parameter: Jurnal Matematika, Statistika dan Terapannya
Vol 5 No 1 (2026): Parameter: Jurnal Matematika, Statistika dan Terapannya

Cluster Analysis on Time Series Data for Indonesian Stock Prices Using Dynamic Time Warping

Saputra, Wisnowan Hendy (Unknown)
Shehu, Nuruddeen (Unknown)



Article Info

Publish Date
12 May 2026

Abstract

This study investigates the application of the Dynamic Time Warping (DTW) algorithm to cluster the ten stocks with the largest market capitalization on the Indonesia Stock Exchange as of February 2026. Unlike conventional distance metrics, DTW handles time lag nonlinearly to identify hidden temporal pattern similarities. Adjusted closing price data was obtained through web scraping from Yahoo Finance using the R programming language. The clustering procedure was performed using Ward's Hierarchical Agglomerative Clustering method, where the optimal number of clusters was determined through Silhouette coefficient analysis. The results indicate that a three-cluster solution is the most representative structure. The first cluster is dominated by the banking and energy sectors with stable growth trends. The second cluster includes cyclical industrial and infrastructure stocks with high volatility. The third cluster uniquely unites GOTO and UNVR stocks in a long-term bearish downward pattern, despite their origins in different sectors. These findings demonstrate that DTW is highly effective in uncovering cross-sector market dynamics, providing a more accurate basis for portfolio diversification strategies than traditional business sector classifications.

Copyrights © 2026






Journal Info

Abbrev

parameter

Publisher

Subject

Mathematics

Description

Parameter: Jurnal Matematika, Statistika dan Terapannya is an open access journal (e-journal) published since April 2022. Parameteris published by Department of Mathematics, Faculty of Science and Mathematics, Pattimura. Parameterpublished scientific articles on various aspects related to ...