Skip to main content
QUICK REVIEW

[Paper Review] On Clustering Time Series Using Euclidean Distance and Pearson Correlation

Michael R. Berthold, Frank Höppner|arXiv (Cornell University)|Jan 10, 2016
Time Series Analysis and ForecastingComputer Science48 citations
TL;DR

This paper establishes that z-score normalized squared Euclidean distance is mathematically equivalent to the inverse of the Pearson correlation coefficient up to a constant factor, enabling standard Euclidean-based clustering algorithms like k-Means to emulate Pearson correlation-based clustering through simple data preprocessing. Experimental results show that even without modifying the algorithm to normalize cluster prototypes, standard k-Means on normalized data produces nearly identical results to the theoretically correct version, validating the use of normalization as a practical and effective substitute for Pearson correlation in time series clustering.

ABSTRACT

For time series comparisons, it has often been observed that z-score normalized Euclidean distances far outperform the unnormalized variant. In this paper we show that a z-score normalized, squared Euclidean Distance is, in fact, equal to a distance based on Pearson Correlation. This has profound impact on many distance-based classification or clustering methods. In addition to this theoretically sound result we also show that the often used k-Means algorithm formally needs a mod ification to keep the interpretation as Pearson correlation strictly valid. Experimental results demonstrate that in many cases the standard k-Means algorithm generally produces the same results.

Motivation & Objective

  • To clarify the mathematical relationship between normalized Euclidean distance and Pearson correlation in time series similarity measurement.
  • To address the theoretical and practical implications of using normalized Euclidean distance in place of Pearson correlation for clustering algorithms.
  • To evaluate whether standard k-Means on normalized data performs equivalently to a modified k-Means that properly normalizes cluster prototypes for Pearson correlation.
  • To demonstrate that preprocessing via z-score normalization enables standard algorithms to effectively use Pearson correlation as a similarity metric without code changes.

Proposed method

  • Derives the mathematical equivalence between z-score normalized squared Euclidean distance and the inverse of the Pearson correlation coefficient.
  • Shows that the equivalence holds up to a constant factor, meaning both measures induce the same ranking of time series pairs.
  • Proposes a modified k-Means algorithm that normalizes cluster prototypes to maintain strict adherence to Pearson correlation semantics.
  • Employs entropy-based clustering comparison to evaluate the similarity between clusterings produced by standard k-Means on normalized data and the modified k-Means with prototype normalization.
  • Uses multiple time series datasets (e.g., Gun Point, Synthetic Control, ECG) to empirically compare clustering stability and performance across methods.
  • Measures clustering differences using entropy between clusterings from different runs and algorithm variants to assess sensitivity to initialization and normalization.

Experimental results

Research questions

  • RQ1Is z-score normalized squared Euclidean distance mathematically equivalent to a distance based on the Pearson correlation coefficient?
  • RQ2Does standard k-Means applied to z-score normalized time series data produce clusterings equivalent to those from a k-Means variant that properly normalizes cluster prototypes for Pearson correlation?
  • RQ3How does the performance of standard k-Means on normalized data compare to the theoretically correct version in terms of clustering stability and result fidelity?
  • RQ4To what extent does data preprocessing via z-score normalization allow standard Euclidean-based algorithms to emulate Pearson correlation-based clustering without algorithmic modification?
  • RQ5How significant is the impact of prototype normalization on k-Means clustering outcomes compared to the natural instability introduced by different random initializations?

Key findings

  • Z-score normalized squared Euclidean distance is mathematically equivalent to the inverse of the Pearson correlation coefficient up to a constant factor, providing a theoretical foundation for using normalization as a proxy for correlation-based distance.
  • The standard k-Means algorithm applied to z-score normalized time series data produces clusterings that are nearly indistinguishable from those of the modified k-Means that normalizes cluster prototypes, indicating that the standard approach is practically sufficient.
  • In all tested datasets, the maximum entropy difference between the standard and modified k-Means (E_pear) was less than or equal to the minimum entropy difference due to random initialization (E_random), showing that prototype normalization has less impact than initialization.
  • For stable datasets like Gun Point and Wafer, both versions of k-Means produced identical clusterings (E_pear = 0), even when the standard k-Means was unstable (E_random > 0).
  • In cases of high instability, such as Face (All) and OSU Leaf, the difference between the two k-Means variants remained small compared to the variation caused by different initializations.
  • The results support the conclusion that z-score normalization of input data alone is sufficient to effectively use Pearson correlation as a similarity metric in time series clustering with standard algorithms like k-Means, k-NN, and hierarchical clustering.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.