encyclopegia.org

Medoid

Medoids are representative objects of a data set or a cluster within a data set whose sum of dissimilarities to all the objects in the cluster is minimal.[src] Medoids are similar in concept to means or centroids, but medoids are always restricted to be members of the data set.[src] Medoids are most commonly used on data when a mean or centroid cannot be defined, such as graphs.[src] They are also used in contexts where the centroid is not representative of the dataset like in images, 3-D trajectories and gene expression (where while the data is sparse the medoid need not be).[src] These are also of interest while wanting to find a representative using some distance other than squared euclidean distance (for instance in movie-ratings).[src] For some data sets there may be more than one medoid, as with medians.[src] A common application of the medoid is the k-medoids clustering algorithm, which is similar to the k-means algorithm but works when a mean or centroid is not definable.[src] This algorithm basically works as follows.[src] First, a set of medoids is chosen at random.[src] Second, the distances to the other points are computed.[src] Third, data are clustered according to the medoid they are most similar to.[src] Fourth, the medoid set is optimized via an iterative process.[src] Note that a medoid is not equivalent to a median, a geometric median, or centroid.…[src]

Medoids are representative objects of a data set or a cluster within a data set whose sum of dissimilarities to all the objects in the cluster is minimal.[src] Medoids are similar in concept to means or centroids, but medoids are always restricted to be members of the data set.[src] Medoids are most commonly used on data when a mean or centroid cannot be defined, such as graphs.[src] They are also used in contexts where the centroid is not representative of the dataset like in images, 3-D trajectories and gene expression (where while the data is sparse the medoid need not be).[src] These are also of interest while wanting to find a representative using some distance other than squared euclidean distance (for instance in movie-ratings).[src] For some data sets there may be more than one medoid, as with medians.[src] A common application of the medoid is the k-medoids clustering algorithm, which is similar to the k-means algorithm but works when a mean or centroid is not definable.[src] This algorithm basically works as follows.[src] First, a set of medoids is chosen at random.[src] Second, the distances to the other points are computed.[src] Third, data are clustered according to the medoid they are most similar to.[src] Fourth, the medoid set is optimized via an iterative process.[src] Note that a medoid is not equivalent to a median, a geometric median, or centroid.[src] A median is only defined on 1-dimensional data, and it only minimizes dissimilarity to other points for metrics induced by a norm (such as the Manhattan distance or Euclidean distance).[src] A geometric median is defined in any dimension, but unlike a medoid, it is not necessarily a point from within the original dataset.[src] Let \mathcal X := \{ x_1, x_2, \dots, x_n \} be a set of n points in a space with a distance function d.[src] Medoid is defined as x_{\text{medoid}} = \arg\min_{y \in \mathcal X} \sum_{i=1}^n d(y, x_i).[src] From the definition above, it is clear that the medoid of a set \mathcal X can be computed after computing all pairwise distances between points in the ensemble.[src] This would take O(n^2) distance evaluations (with n=|\mathcal X| ).[src] In the worst case, one can not compute the medoid with fewer distance evaluations.[src] However, there are many approaches that allow us to compute medoids either exactly or approximately in sub-quadratic time under different statistical models.[src] If the points lie on the real line, computing the medoid reduces to computing the median which can be done in O(n) by Quick-select algorithm of Hoare.[src] However, in higher dimensional real spaces, no linear-time algorithm is known.[src] RAND is an algorithm that estimates the average distance of each point to all the other points by sampling a random subset of other points.[src] It takes a total of O\left(\frac{n \log n}{\epsilon^2}\right) distance computations to approximate the medoid within a factor of (1+\epsilon\Delta) with high probability, where \Delta is the maximum distance between two points in the ensemble.[src] Note that RAND is an approximation algorithm, and moreover \Delta may not be known apriori.[src] RAND was leveraged by TOPRANK which uses the estimates obtained by RAND to focus on a small subset of candidate points, evaluates the average distance of these points exactly, and picks the minimum of those.[src] TOPRANK needs O(n^{\frac{5}{3}} \log^{\frac{4}{3}} n) distance computations to find the exact medoid with high probability under a distributional assumption on the average distances.[src] trimed presents an algorithm to find the medoid with O(n^{\frac{3}{2}} 2^{\Theta(d)}) distance evaluations under a distributional assumption on the points.[src] The algorithm uses the triangle inequality to cut down the search space.[src] Meddit leverages a connection of the medoid computation with multi-armed bandits and uses an upper-Confidence-bound type of algorithm to get an algorithm which takes O(n \log n) distance evaluations under statistical assumptions on the points.[src] Correlated Sequential Halving also leverages multi-armed bandit techniques, improving upon Meddit .[src] By exploiting the correlation structure in the problem, the algorithm is able to provably yield drastic improvement (usually around 1-2 orders of magnitude) in both number of distance computations needed and wall clock time.[src] An implementation of RAND , TOPRANK , and trimed can be found here.[src] An implementation of Meddit can be found here and here.[src] An implementation of Correlated Sequential Halving can be found here.[src] \text{WGSS} = \frac{1}{2} \left[(m_1-1) \overline{d_1^2} + \cdots + (m_k-1) \overline{d_k^2}\right] Where \overline{d_1^2} is the average distance of samples within the k-th cluster and m_k is the number of samples in the k-th cluster.[src] StatQuest k-means video used for visual reference in #Visualization_of_the_medoid-based_clustering_process section[src]

51 sentences · 51 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Medoid." encyclopegia.org, 2026, https://encyclopegia.org/wiki/medoid. Accessed 26 November 2026.

Chicago

"Medoid." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/medoid.

APA

encyclopegia.org. (2026). Medoid. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/medoid

Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1373028884 · 0.5 · snapshot enwiki-001373028884

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.