ArticleslgStudy

computer science

Correlation clustering

Correlation clustering is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Correlation clustering rather than just read about it. In short: Clustering is the problem of partitioning data points into groups based on similarity or dissimilarity. Correlation clustering is a clustering framework in which a set of objects is partitioned into clusters based on pairwise similarity and dissimilarity information, without requiring the number of clusters to be specified in advance.

Key takeaways

  • Correlation clustering belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Correlation clustering to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Correlation clustering from memory before moving on to harder problems.

Reference excerpt

Clustering is the problem of partitioning data points into groups based on similarity or dissimilarity. Correlation clustering is a clustering framework in which a set of objects is partitioned into clusters based on pairwise similarity and dissimilarity information, without requiring the number of clusters to be specified in advance.

Description of the problem

In machine learning, correlation clustering (also known as cluster editing) considers settings in which pairwise similarity or dissimilarity relationships between objects are known. A standard formulation models the input as an unweighted complete graph G=(V,E), where each edge is labeled either + or − (that is, the graph is a signed graph), indicating whether the corresponding endpoints are similar or dissimilar. The goal is to find a clustering (that is, a partition of V) that either maximizes the number of agreements—the sum of positive edges whose endpoints lie in the same cluster and negative edges whose endpoints lie in different clusters—or minimizes the number of disagreements—the sum of positive edges whose endpoints are separated and negative edges whose endpoints lie in the same cluster. Unlike other clustering methods such as k-means, correlation clustering does not require choosing the number of clusters k in advance. It is not always possible to find a clustering with zero disagreements. For example, consider a triangle graph containing two positive edges and one negative edge. In this case, every clustering incurs at least one disagreement. Such configurations are referred to in the literature as bad triangles. From a computational perspective, optimizing the correlation clustering objective is challenging. The (decision version of the) problem is NP-complete. A large body of subsequent work has developed approximation algorithms for correlation clustering under various assumptions, including complete or general graphs and unweighted or weighted graphs, for both minimization and maximization objectives. This problem is considered one of the fundamental combinatorial optimization problems, and many algorithmic techniques have been developed to address it. The problem has also been studied extensively across multiple disciplines. A comprehensive literature review of early correlation clustering research is provided by Wahid and Hassini.

Formal Definitions Let G=(V,E) be a graph with nodes V and edges E. A clustering of G is a partition of its node set Π={π1,…,πk} with V=π1∪⋯∪πk and πi∩πj=∅︀ for i≠j. For a given clustering Π, let δ(Π)={{u,v}∈E∣{u,v}⊈π∀π∈Π} denote the subset of edges of G whose endpoints are in different subsets of the clustering Π. Now, let w:E→ℝ≥0 be a function that assigns a non-negative weight to each edge of the graph and let E=E+∪E− be a partition of the edges into attractive (E+) and repulsive (E−) edges; that is, the edges are signed. The minimum disagreement correlation clustering problem is the following optimization problem: minimizeΠ∑e∈E+∩δ(Π)we+∑e∈E−∖δ(Π)we. Here, the set E+∩δ(Π) contains the attractive edges whose endpoints are in different components with respect to the clustering Π and the set E−∖δ(Π) contains the repulsive edges whose endpoints are in the same component with respect to the clustering Π. Together these two sets contain all edges that disagree with the clustering Π. Similarly to the minimum disagreement correlation clustering problem, the maximum agreement correlation clustering problem is defined as maximizeΠ∑e∈E+∖δ(Π)we+∑e∈E−∩δ(Π)we. Here, the set E+∖δ(Π) contains the attractive edges whose endpoints are in the same component with respect to the clustering Π and the set E−∩δ(Π) contains the repulsive edges whose endpoints are in different components with respect to the clustering Π. Together these two sets contain all edges that agree with the clustering Π. Instead of formulating the correlation clustering problem in terms of non-negative edge weights and a partition of the edges into attractive and repulsive edges the problem is also formulated in terms of positive and negative edge costs without partitioning the set of edges explicitly. For given weights w:E→ℝ≥0 and a given partition E=E+∪E− of the edges into attractive and repulsive edges, the edge costs can be defined by ce={weif e∈E+−weif e∈E− for all e∈E. An edge whose endpoints are in different clusters is said to be cut. The set δ(Π) of all edges that are cut is often called a multicut of G. The minimum cost multicut problem is the problem of finding a clustering Π of G such that the sum of the costs of the edges whose endpoints are in different clusters is minimal: minimizeΠ∑e∈δ(Π)ce. Similar to the minimum cost multicut problem, coalition structure generation in weighted graph games is the problem of finding a clustering such that the sum of the costs of the edges that are not cut is maximal: maximizeΠ∑e∈E∖δ(Π)ce. This formulation is also known as the clique partitioning problem. It can be shown that all four problems that are formulated above are equivalent. This means that a clustering that is optimal with respect to any of the four objectives is optimal for all of the four objectives.

Algorithms If the graph admits a clustering with zero disagreements, then deleting all negative edges and computing the connected components of the remaining graph yields an optimal clustering. A necessary and sufficient condition for the existence of such a clustering was given by Davis: no cycle in the graph may contain exactly one negative edge. Bansal et al. discuss the NP-completeness proof and also present both a constant factor approximation algorithm and polynomial-time approximation scheme to find the clusters in this setting. Ailon et al. propose a randomized 3-approximation algorithm for the same problem.

CC-Pivot(G=(V,E+,E−)) Pick random pivot i ∈ V Set C={i}, V'=Ø For all j ∈ V, j ≠ i; If (i,j) ∈ E+ then Add j to C Else (If (i,j) ∈ E−) Add j to V' Let G' be the subgraph induced by V' Return clustering C,CC-Pivot(G')

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Correlation clustering

Start with the simplest possible case. Write down what Correlation clustering claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Correlation clustering before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Correlation clustering ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Correlation clustering

In research
Correlation clustering appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Correlation clustering in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Correlation clustering is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cluster analysis, Computational problems in graph theory, so understanding it makes those chapters shorter.
In everyday life
Look for Correlation clustering outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Correlation clustering” →

How to study Correlation clustering in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Correlation clustering means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Correlation clustering out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Correlation clustering in simple terms?

Clustering is the problem of partitioning data points into groups based on similarity or dissimilarity. Correlation clustering is a clustering framework in which a set of objects is partitioned into clusters based on pairwise similarity and dissimilarity information, without requiring the number of…

Why does Correlation clustering matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Correlation clustering?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Correlation clustering.

Tags

  • Cluster analysis
  • Computational problems in graph theory

Keep exploring