Contents
Cophenetic correlation
In statistics, and especially in biostatistics, cophenetic correlation (more precisely, the cophenetic correlation coefficient) is a measure of how faithfully a dendrogram preserves the pairwise distances between the original unmodeled data points. Although it has been most widely applied in the field of biostatistics (typically to assess cluster-based models of DNA sequences, or other taxonomic models), it can also be used in other fields of inquiry where raw data tend to occur in clumps, or clusters. This coefficient has also been proposed for use as a test for nested clusters.
Calculating the cophenetic correlation coefficient
Suppose that the original data {Xi} have been modeled using a cluster method to produce a dendrogram {Ti}; that is, a simplified model in which data that are "close" have been grouped into a hierarchical tree. Define the following distance measures. Then, letting \bar{x} be the average of the x(i, j), and letting \bar{t} be the average of the t(i, j), the cophenetic correlation coefficient c is given by
Software implementation
It is possible to calculate the cophenetic correlation in R using the dendextend R package. In Python, the SciPy package also has an implementation. In MATLAB, the Statistic and Machine Learning toolbox contains an implementation.
This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.
Wikipedia® is a registered trademark of the
Wikimedia Foundation, Inc.
Bliptext is not
affiliated with or endorsed by Wikipedia or the
Wikimedia Foundation.