Dynamic Time Warping Nearest Neighbors

Dynamic Time Warping (DTW) We apply Dynamic Time Warping (DTW) to transformed time series of prices, as explained below, to find nearest neighbors for current stocks and ETFs. DTW can be defined as: In time series analysis, dynamic time warping (DTW) is...

Portfolio Diversification Via K-means

Introduction We use the K-means algorithm to answer two questions regarding portfolio diversification. How diversified is a given portfolio? How can a diversified portfolio be constructed? Additionally, we use the multidimensional scaling (MDS) algorithm to visualize...