Functional principal component analysis of financial time series