Re: How to cluster time series data



Jani Rautianen wrote:
Is there a way to apply kmeans-function to time series data?
Data is represented by a matrix of n rows and m columns
where columns corresponds to different time series and rows
to measurements. By default kmeans-function assumes that
the rows corresponds to data points to be clustered but in
this case it should calculate and evaluate the distances
between time series (columns) as whole. So instead of
calculating the distance between two rows it should
calculate the distances between the time series and build
the clusters according to that. Euclidean distance between
two time series in this matrix can be calculated with:
"sqrt(sum((( matrix(:,i) ) - ( matrix(:,j) )).^2))" but how
to exploit this with kmeans-clustering?

Jani, wouldn't you just transpose the matrix and pass it into KMEANS?
.



Relevant Pages

  • Re: how to compute distance metrics with multi dimensional data
    ... > time series in the units of measurement is important. ... > trying to get the distances you might have something in mind where ...
    (sci.nonlinear)
  • Re: how to compute distance metrics with multi dimensional data
    ... time series in the units of measurement is important. ... trying to get the distances you might have something in mind where you ... can scale one time series to get it on a meaningful scale to compare to ...
    (sci.nonlinear)
  • Re: how to compute distance metrics with multi dimensional data
    ... does not matter what it is, but the measurement units are different for ... paper on computing multi dimensional distances... ... suppose you have a time series with 3d ... vectors ie with 3d embedded time series? ...
    (sci.nonlinear)
  • How to cluster time series data
    ... Is there a way to apply kmeans-function to time series data? ... where columns corresponds to different time series and rows ... calculate the distances between the time series and build ...
    (comp.soft-sys.matlab)
  • Akaike Information Criterion
    ... I've been doing some self-study of forecasting and have a question ... I have a time series of data and wish to ... fitting a linear model of the form: ... I think my question is on calculating sigmahat_k^2. ...
    (sci.math.num-analysis)