Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA006 · Hypothesis test
SigClust
Tests whether apparent two-cluster structure is stronger than expected under a single multivariate Gaussian population.
In CodeSplash
A CodeSplash method runs this entry in Python and R. Set it up from the method's page.
- Is the split significant? (SigClust) Verified in Python and R
Do it in CodeSplash Run it on your own data, in Python or R.
- Availability
- Runs in CodeSplash
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- Verified in Python and R through discover.sigclust. The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Tests whether apparent two-cluster structure is stronger than expected under a single multivariate Gaussian population.
Question / hypotheses
H0: observations follow one multivariate Gaussian distribution, with covariance estimation defined by the procedure; H1: stronger two-cluster separation than that null predicts.
Architecture / computational structure
Two-means minimizes within-cluster sum of squares, which is divided by total sum of squares to form CI. A Gaussian null covariance estimator supplies simulated datasets; each simulation reruns the same clustering search. Unusually small CI is evidence against that fitted Gaussian null.
Assumptions
The single-Gaussian null and covariance-estimation strategy must be appropriate. High dimension relative to sample size makes eigenvalue regularization central. The same clustering statistic must be used in null simulations.
Formula / computational definition
Parameters and notation
CI is the two-means cluster index; covariance eigenvalue estimator and simulation count are hyperparameters. Gaussian mean/covariance are fitted nuisance parameters.
Fitting, fine-tuning, and adaptation
There are no neural weights to fine-tune. Estimate the covariance spectrum with the chosen SigClust procedure, keep the two-means search effort comparable across observed and simulated data, and increase simulations for tail precision. Covariance-estimation choices affect size and power; a plug-in simulation p-value should not be described as universally finite-sample exact.
How to use and calibrate
Fit the null covariance with the selected SigClust estimator, simulate datasets, rerun two-means, and compare the lower tail. Report the estimation variant and Monte Carlo precision.
Example application
Evaluate whether two expression-profile groups show more separation than one Gaussian cloud.
Interpretation / pitfalls
Watch out
Rejecting Gaussianity is not the same as proving biological subtypes. Skewness, heavy tails, preprocessing, or batch effects may drive rejection.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
observed_CI=.32; null_CI=np.array([.49,.51,.44,.37,.56])
print((1+np.sum(null_CI<=observed_CI))/(len(null_CI)+1))
# Tail calculation only, not the SigClust covariance estimator.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
observed.CI <- .32; null.CI <- c(.49,.51,.44,.37,.56)
print((1+sum(null.CI<=observed.CI))/(length(null.CI)+1))
# For the complete procedure inspect sigclust::sigclust and its covariance options.
Sources
- Source 1tandfonline.com
- Source 2cran.r-project.org
From the CodeSplash reference, entry EVA006.