NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Direct Clustering of a Data Matrix

J. A. HartiganJournal of the American Statistical Association 1972

TL;DR

Hartigan introduces "direct clustering," a method to simultaneously group the rows and columns of a data matrix into homogeneous blocks. By bypassing traditional distance metrics, this approach provides a more interpretable view of raw data interactions while avoiding the computational bottlenecks and subjective weighting issues inherent in standard clustering.

What Problem Does This Paper Address?

Traditional clustering algorithms typically operate in one dimension: they group "cases" (rows) based on their similarity across "variables" (columns). This approach has three major drawbacks:

  1. Computational Expense: Calculating all pairwise distances between $n$ objects requires $O(n^2)$ operations, which becomes prohibitive as datasets grow.
  2. Subjective Weighting: Defining "similarity" requires choosing a distance metric. This often involves arbitrary decisions about how much weight to give each variable, which can fundamentally alter the resulting clusters.
  3. Loss of Local Interaction: Distance-based methods can mask specific, interesting interactions between a subset of cases and a subset of variables. For example, a group of states might vote similarly only in a specific set of election years, a pattern that might be "washed out" in a global distance calculation.

Hartigan proposes "direct clustering" to find homogeneous sub-matrices (blocks) within the data, treating rows and columns as equal partners in the search for structure.

Methods

The paper moves away from distance matrices and toward a Partitioned Response Model. The goal is to partition the data matrix into $k$ disjoint blocks such that the values within each block are as similar as possible.

The Algorithm

The author proposes a top-down, recursive splitting algorithm:

  • Initialization: Start with the entire data matrix as a single block.
  • Splitting: At each step, the algorithm identifies a block and splits it either horizontally (by rows) or vertically (by columns). The split is chosen to maximize the reduction in the total Sum of Squares (SSQ) within the blocks.
  • Statistical Stopping Rule: To prevent overfitting to noise, Hartigan introduces a criterion based on the Mean Square (MSQ) reduction. It distinguishes between "free splits" (where the algorithm has total freedom) and "fixed splits" (which are constrained by the hierarchical tree structure already established).

The Three-Tree Structure

Hartigan conceptualizes the ideal result as a "three-tree structure." This involves a tree for cases, a tree for variables, and a tree for the response values themselves. This framework allows for complex, overlapping clusters that are still visually interpretable when the matrix rows and columns are permuted.

Diagrams of various cluster structures, including the three-tree structure and partitioned responses.

Datasets

The method is demonstrated on two primary datasets:

  • Republican Presidential Vote: A matrix of the percentage of Republican votes by U.S. state (rows) and election year (columns) from 1900 to 1968.
  • UN Voting Records (1969-1970): A matrix showing how different countries (rows) voted on specific UN resolutions (columns), using a scale for Yes, No, Abstain, and Absent.

Key Insights and Ideas

  • Direct Interpretation: Because the clusters are blocks of the original matrix, they have immediate physical meaning. You aren't just told "State A is like State B"; you can see which years and which voting patterns make them similar.
  • Symmetry: The algorithm treats rows and columns symmetrically. This is a precursor to what is now commonly known in bioinformatics and machine learning as biclustering or co-clustering.
  • Visual Homogeneity: The algorithm naturally leads to a "block-diagonal" look after reordering. As seen in the UN voting example, this clearly delineates political blocs (e.g., the Soviet bloc vs. the Western bloc) and highlights specific "defections" on particular issues.
The UN voting data matrix reordered to show homogeneous blocks of voting behavior.

Key Results

  • Stability: In the Republican voting data, the direct clustering method successfully identified the "Solid South" as a stable block that only began to fragment in the late 1960s.
  • Robustness: Compared to standard "average distance" clustering, Hartigan’s method was less sensitive to "tiny, irrelevant details" and produced more stable clusters under subsampling (testing the model on random halves of the data).
  • Efficiency: By focusing on local block variances rather than global $O(n^2)$ distances, the method offers a path toward clustering large matrices where traditional methods struggle.

Limitations and Future Work

  • Greedy Search: The splitting algorithm is "greedy"—it makes the best local choice at each step, which may not lead to the globally optimal partition of the matrix.
  • Computational Complexity of Splits: While it avoids the distance matrix, finding the optimal row or column split in a large block still requires significant computation, especially if many possible split points are tested.
  • Model Complexity: The full "three-tree" model is theoretically elegant but more difficult to implement and visualize than the simpler partitioned response model. Hartigan notes that a "slight adjustment" is needed to handle models where responses are not comparable across all variables.

Summary updated

BibTeX
@article{hartigan1972direct,
  author = {J. A. Hartigan},
  title = {{Direct Clustering of a Data Matrix}},
  journal = {Journal of the American Statistical Association},
  year = {1972},
  doi = {10.1080/01621459.1972.10481214},
}
Figure