5
$\begingroup$

I wish to compare and cluster 10 time-series with different lengths. What are the techniques that I can used and do they have implementation in R?

I found that dynamic time wrapping is nice but does it only work with equal lengths?

$\endgroup$
  • 1
    $\begingroup$ DTW does work with varying length. $\endgroup$ – Anony-Mousse Sep 15 '15 at 7:53
  • $\begingroup$ It is dynamic time warping. $\endgroup$ – skdhfgeq2134 Sep 30 '16 at 5:23
2
$\begingroup$

It just happened that few days ago I read Marco Cuturi's paper on "Fast Global Alignment Kernels" [1]. The idea is to cast the well-known DTW distances as similarities eligible for use in kernel machines, e.g. SVM. You cannot directly transform DTW distance into similarity and hope it will work (e.g. negative exponential of distance) - you will get non positive definite kernel. The author proposed a novel technique with Global Alignment kernels such that the nice DTW properties are accessible as well as the kernel is positive definite.

I have experimented with his code on several standard time-series classification datasets [2] and was pleasantly surprised of the performance. The beauty and power of his approach that it works for multivariate time-series as well. And oh, it works for different length time-series as well.

Ten time-series might be too little to train a good classifier. Perhaps getting more examples is possible.

The paper, implementations (C, MATLAB and Python) can be found [here].

UPDATE: Author's website has moved. Please use the following link to get paper and implementations [4].

$\endgroup$
  • $\begingroup$ The implementation link is broken, could you provide a fresh link. $\endgroup$ – user3933607 Dec 1 '17 at 14:00
  • $\begingroup$ @user3933607 Unfortunately I can't since I don't have access to the website. $\endgroup$ – Vladislavs Dovgalecs Dec 1 '17 at 17:13
  • $\begingroup$ Thanks, since you run the implementations, I think maybe you have a copy of it. $\endgroup$ – user3933607 Dec 1 '17 at 18:45
  • 1
    $\begingroup$ @user3933607 Please try this link marcocuturi.net/GA.html It looks like author has simply moved his website. $\endgroup$ – Vladislavs Dovgalecs Dec 1 '17 at 21:56
0
$\begingroup$

You can simply extend what I responded in How to statistically compare two time series? to more than two series . Essentially identify a common model and estimate the parameters both globally and locally. Perform an F test and either accept or reject the hypothesis of common parameters. Another post gives a similar view Proving similarities of two time series

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.