Skip to main content
QUICK REVIEW

[Paper Review] Selective Inference for Hierarchical Clustering

Lucy L. Gao, Jacob Bien|arXiv (Cornell University)|Dec 5, 2020
Gene expression and cancer classificationBiochemistry, Genetics and Molecular Biology6 citations
TL;DR

This paper proposes a selective inference framework to test for differences in means between clusters formed via hierarchical clustering, accounting for data-dependent hypothesis selection. By conditioning on the clustering outcome and computing exact p-values using a truncated chi distribution, the method controls the selective type I error rate—validating inference when clusters are estimated from the same data used for testing.

ABSTRACT

Classical tests for a difference in means control the type I error rate when the groups are defined a priori. However, when the groups are instead defined via clustering, then applying a classical test yields an extremely inflated type I error rate. Notably, this problem persists even if two separate and independent data sets are used to define the groups and to test for a difference in their means. To address this problem, in this paper, we propose a selective inference approach to test for a difference in means between two clusters. Our procedure controls the selective type I error rate by accounting for the fact that the choice of null hypothesis was made based on the data. We describe how to efficiently compute exact p-values for clusters obtained using agglomerative hierarchical clustering with many commonly-used linkages. We apply our method to simulated data and to single-cell RNA-sequencing data.

Motivation & Objective

  • To address the inflated type I error rate that arises when testing for mean differences between clusters estimated from the same data used for clustering.
  • To develop a statistical framework that accounts for the fact that the null hypothesis is selected based on the data, violating classical inference assumptions.
  • To provide exact p-values for mean difference tests under agglomerative hierarchical clustering with common linkages.
  • To ensure valid inference in high-dimensional settings such as single-cell RNA-sequencing data, where cluster-based testing is widespread.

Proposed method

  • The method uses selective inference to compute exact p-values by conditioning on the observed clustering outcome, treating the cluster assignment as a random selection mechanism.
  • It models the test statistic (difference in cluster means) as a truncated chi distribution, with the truncation region defined by the observed clustering structure.
  • The p-value is computed as the probability that the test statistic exceeds the observed value under the null, conditional on the clustering outcome being selected.
  • The approach applies to agglomerative hierarchical clustering with single, average, complete, and centroid linkages, using a closed-form expression for the conditional distribution.
  • The method accounts for the fact that the clusters are estimated from the data, thereby correcting for selection bias in hypothesis testing.
  • It derives the selective sampling distribution of the test statistic under the null, enabling valid inference even when the same data is used for clustering and testing.

Experimental results

Research questions

  • RQ1Can we develop a valid hypothesis test for a difference in means between clusters when the clusters are estimated from the same data used for testing?
  • RQ2How does data-dependent cluster selection affect the type I error rate in classical t-tests or Wald tests?
  • RQ3What is the correct sampling distribution of the test statistic when the null hypothesis is selected based on the data?
  • RQ4Can we compute exact p-values that control the selective type I error rate in hierarchical clustering?
  • RQ5How does the power of the proposed method vary with effect size, cluster size, and linkage type?

Key findings

  • The proposed method controls the selective type I error rate by conditioning on the clustering outcome, avoiding the severe inflation seen in classical Wald tests.
  • Classical tests applied after clustering yield highly anti-conservative p-values, with type I error rates far exceeding the nominal level, even with independent training and test sets.
  • Sample splitting does not resolve the problem, as test set assignments still depend on data-driven cluster selection, invalidating standard inference.
  • The method achieves valid inference across all tested linkages (single, average, complete, centroid), with p-values uniformly distributed under the null when the null is true.
  • Power increases with effect size Δ, and the method maintains adequate power even for small clusters, though power drops when min{|C₁|, |C₂|} < 10.
  • P-values increase as the test statistic approaches the boundary of the selection region, reflecting the conditional nature of the inference, consistent with selective inference theory.

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.