Skip to main content

Discovering multi–level structures in bio-molecular data through the Bernstein inequality



The unsupervised discovery of structures (i.e. clusterings) underlying data is a central issue in several branches of bioinformatics. Methods based on the concept of stability have been recently proposed to assess the reliability of a clustering procedure and to estimate the “optimal” number of clusters in bio-molecular data. A major problem with stability-based methods is the detection of multi-level structures (e.g. hierarchical functional classes of genes), and the assessment of their statistical significance. In this context, a chi-square based statistical test of hypothesis has been proposed; however, to assure the correctness of this technique some assumptions about the distribution of the data are needed.


To assess the statistical significance and to discover multi-level structures in bio-molecular data, a new method based on Bernstein's inequality is proposed. This approach makes no assumptions about the distribution of the data, thus assuring a reliable application to a large range of bioinformatics problems. Results with synthetic and DNA microarray data show the effectiveness of the proposed method.


The Bernstein test, due to its loose assumptions, is more sensitive than the chi-square test to the detection of multiple structures simultaneously present in the data. Nevertheless it is less selective, that is subject to more false positives, but adding independence assumptions, a more selective variant of the Bernstein inequality-based test is also presented. The proposed methods can be applied to discover multiple structures and to assess their significance in different types of bio-molecular data.


Unsupervised cluster analysis of bio-molecular data is one of the main and well-established research lines in bioinformatics [1]. Classes of co-expressed genes, classes of functionally related proteins, or subgroups of patients with malignancies differentiated at bio-molecular level can be discovered through clustering algorithms, and several other tasks related to the analysis of bio-molecular data require the development and application of unsupervised clustering techniques [24]. Anyway, in most bioinformatics problems, we need to assess the reliability of the discovered clusters, as well as the proper selection of the “natural” number of clusters underlying the data [5].

Recently, several methods based on the concept of stability have been proposed to estimate the “optimal” number of clusters [6, 7]: multiple clusterings are obtained by introducing perturbations into the original data, and a clustering is considered reliable if it is approximately maintained across multiple perturbations. Different procedures may be applied to randomly perturb the data, ranging from bootstrapping techniques [8], to noise injection into the data [9] or random projections into lower dimensional subspaces [10, 11].

A major problem with stability-based methods is the detection of multi-level structures underlying the data (e.g. hierarchical subclasses of diseases, or hierarchical functional classes of genes). For instance, it is possible that data exhibit a hierarchical structure, with subclusters inside other clusters, and we need to detect these multi-level structures, possibly estimating their reliability and statistical significance. In [7], it is proposed a χ2-based statistical test of hypothesis to assess the significance of the “optimal” number of clusters and to discover multiple structures simultaneously present in bio-molecular data; however, by this approach, on one hand some assumptions about the distribution of the similarity measures are needed to estimate the reliability of the obtained clusterings, and on the other hand test results depend on the choice of user-defined parameters.

In this contribution we propose a distribution-free approach that does not assume any “a priori” distribution of the similarity measures, and that does not require any user-defined additional parameter. The proposed approach is based on the classical Bernstein inequality [12], and for its loose assumptions about the distribution of the data may in principle be applied to any unsupervised model order selection problem. More precisely the proposed stability-based method may be applied to several tasks related to the unsupervised analysis of complex bio-molecular data: (a) the assessment of the reliability of a given clustering solution; (b) the clustering model order selection, that is the discovery of the “natural” number of clusters in the data; (c) the assessment of the statistical significance of a given clustering solution; (d) the discovery of multiple structures underlying the data, i.e. the detection of multiple reliable clustering solutions at a given significance level.


In the following sections we summarize the characteristics of the stability-based procedures for the assessment of the reliability of clusterings, and we introduce our proposed method based on the Bernstein inequality.

Model order selection through stability based procedures

Let be C a clustering algorithm, ρ(D) a given random perturbation procedure applied to a data set D and sim a suitable similarity measure between two clusterings (e.g. the Jaccard similarity [13]). Among the random perturbations we recall random projections from a high dimensional to a low dimensional subspace [14], or bootstrap procedures to sample a random subset of data from the original data set D[8]. Fixing an integer k (the number of clusters), we define S k (0 ≤ S k ≤ 1) as the random variable given by the similarity between two k-clusterings obtained by applying a clustering algorithm C to data pairs D1 and D2 obtained by randomly and independently perturbing the original data D.

If S k is concentrated close to 1, then the corresponding clustering is stable with respect to a given controlled perturbation and hence it is reliable. This idea, mutuated by a qualitative method proposed in [15], can be formalized using the integral g(k) of the cumulative distribution F k of S k [7]:

g ( k ) = 0 1 F k ( s ) d s MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBamXvP5wqSXMqHnxAJn0BKvguHDwzZbqegm0B1jxALjhiov2DaeHbuLwBLnhiov2DGi1BTfMBaebbnrfifHhDYfgasaacH8qrps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaqaafaaakeaajugqbiabdEgaNPWaaeWaaeaacqWGRbWAaiaawIcacaGLPaaajugqbiaaysW7cqGH9aqpcaaMe8UcdaWdXaqaaKqzafGaemOrayucfa4aaSbaaSqaaiabdUgaRbqabaqcfa4aaeWaaeaacqWGZbWCaiaawIcacaGLPaaajugqbiabdsgaKjabdohaZbWcbaGaeGimaadabaGaeGymaedaniabgUIiYdqcLbuacaaMe8oaaa@5822@

If g(k) is close to 0 then the values of the random variable S k are close to 1 and hence the k-clustering is stable, while for larger values of g(k) the k-clustering is less reliable. This observation comes from the following fact:

Fact: E [ S k ] = 1 g ( k ) , V a r [ S k ] g ( k ) ( 1 g ( k ) ) . MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBamXvP5wqSXMqHnxAJn0BKvguHDwzZbqegm0B1jxALjhiov2DaeHbuLwBLnhiov2DGi1BTfMBaebbnrfifHhDYfgasaacH8qrps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaqaafaaakeaajugqbiabdweafPWaamWaaeaajugqbiabdofatLqbaoaaBaaaleaacqWGRbWAaeqaaaGccaGLBbGaayzxaaqcLbuacaaMe8Uaeyypa0JaaGjbVlabigdaXiaaysW7cqGHsislcaaMe8Uaem4zaCMcdaqadaqaaiabdUgaRbGaayjkaiaawMcaaKqzafGaeiilaWIaaGjbVlaaykW7caaMc8UaaGPaVlaaykW7caaMc8UaaGPaVlaaykW7caaMc8UaaGPaVlaaykW7caaMc8UaaGPaVlabdAfawjabdggaHjabdkhaYPWaamWaaeaacqWGtbWudaWgaaWcbaGaem4AaSgabeaaaOGaay5waiaaw2faaKqzafGaaGjbVlabgsMiJkaaysW7cqWGNbWzkmaabmaabaGaem4AaSgacaGLOaGaayzkaaqcLbuacaaMe8UcdaqadaqaaKqzafGaeGymaeJaaGjbVlabgkHiTiaaysW7cqWGNbWzkmaabmaabaGaem4AaSgacaGLOaGaayzkaaaacaGLOaGaayzkaaqcLbuacqGGUaGlaaa@8A6F@


Let be f k (s) the probability density function of S k ; then

E [ S k ] = 0 1 s f k ( s ) d s = 0 1 s F k ' ( s ) d s = 1 0 1 F k ( s ) d s = 1 g ( k ) MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaaeaabaWaaaGcbaqcLbuacqWGfbqrkmaadmaabaqcLbuacqWGtbWukmaaBaaaleaacqWGRbWAaeqaaaGccaGLBbGaayzxaaqcLbuacaaMe8Uaeyypa0JaaGjbVRWaa8qmaeaajugqbiabdohaZjabdAgaMPWaaSbaaSqaaiad0b4GRbWAaeqaaKqbaoaabmaabaGaem4CamhacaGLOaGaayzkaaqcLbuacqWGKbazcqWGZbWCaSqaaiabicdaWaqaaiabigdaXaqdcqGHRiI8aKqzafGaaGjbVlaaysW7cqGH9aqpcaaMe8UcdaWdXaqaaKqzafGaem4CamNaemOrayucfa4aa0baaSqaaiabdUgaRbqaaiabcEcaNaaajuaGdaqadaqaaiabdohaZbGaayjkaiaawMcaaKqzafGaemizaqMaem4CamhaleaacqaIWaamaeaacqaIXaqma0Gaey4kIipajugqbiaaysW7caaMe8Uaeyypa0JaaGjbVlabigdaXiaaysW7cqGHsislcaaMe8UcdaWdXaqaaKqzafGaemOrayucfa4aaSbaaSqaaiabdUgaRbqabaqcfa4aaeWaaeaacqWGZbWCaiaawIcacaGLPaaajugqbiabdsgaKjabdohaZbWcbaGaeGimaadabaGaeGymaedaniabgUIiYdqcLbuacaaMe8UaaGjbVlabg2da9iaaysW7cqaIXaqmcaaMe8UaeyOeI0IaaGjbVlabdEgaNPWaaeWaaeaacqWGRbWAaiaawIcacaGLPaaaaaa@8E6A@


V a r [ S k ] = E [ S k 2 ] E [ S k ] 2 E [ S k ] E [ S k ] 2 = g ( k ) ( 1 g ( k ) ) MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBamXvP5wqSXMqHnxAJn0BKvguHDwzZbqegm0B1jxALjhiov2DaeHbuLwBLnhiov2DGi1BTfMBaebbnrfifHhDYfgasaacH8qrps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaqaafaaakeaacqWGwbGvcqWGHbqycqWGYbGCdaWadaqaaiabdofatnaaBaaaleaacqWGRbWAaeqaaaGccaGLBbGaayzxaaqcLbuacaaMe8Uaeyypa0JaaGjbVlabdweafPWaamWaaeaacqWGtbWudaqhaaWcbaGaem4AaSgabaGaeGOmaidaaaGccaGLBbGaayzxaaqcLbuacaaMe8UaeyOeI0IaaGjbVlabdweafPWaamWaaeaajugqbiabdofatLqbaoaaBaaaleaacqWGRbWAaeqaaaGccaGLBbGaayzxaaqcfa4aaWbaaSqabeaacqaIYaGmaaqcLbuacaaMe8UaeyizImQaaGjbVlabdweafPWaamWaaeaajugqbiabdofatLqbaoaaBaaaleaacqWGRbWAaeqaaaGccaGLBbGaayzxaaqcLbuacaaMe8UaeyOeI0IaaGjbVlabdweafPWaamWaaeaajugqbiabdofatLqbaoaaBaaaleaacqWGRbWAaeqaaaGccaGLBbGaayzxaaqcfa4aaWbaaSqabeaacqaIYaGmaaqcLbuacaaMe8Uaeyypa0JaaGjbVlabdEgaNLqbaoaabmaabaGaem4AaSgacaGLOaGaayzkaaqcLbuacaaMe8Ecfa4aaeWaaeaacqaIXaqmcqGHsislcqWGNbWzdaqadaqaaiabdUgaRbGaayjkaiaawMcaaaGaayjkaiaawMcaaaaa@8CF3@


Hence, g(k) 0 implies Var[S k ] 0. As a consequence, g(k) or equivalently E[S k ] can be used as a good index of the reliability of the k-clusterings (clusterings with k clusters). E[S k ] may be estimated by the empirical mean ξ k of n replicated similarity measures between pairs of perturbed clusterings:

ξ k = j = 1 n S k j n MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbWexLMBbXgBcf2CPn2qVrwzqf2zLnharyWqVvNCPvMCG4uz3bqegqvATv2CG4uz3bIuV1wyUbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaamaaeaqbaaGcbaGaeqOVdG3aaSbaaSqaaiabdUgaRbqabaqcLbuacaaMe8Uaeyypa0JaaGjbVRWaaabCaeaajuaGdaWcaaGcbaqcLbuacqWGtbWujuaGdaWgaaWcbaGaem4AaSMaemOAaOgabeaaaOqaaKqzafGaemOBa4gaaaWcbaGaemOAaOMaeyypa0JaeGymaedabaGaemOBa4ganiabggHiLdaaaa@58A2@

where S kj represents the similarity between two k-clusterings obtained through the application of the algorithm C to a pair of perturbed data.

We may perform a sorting of the ξ k :

( ξ 2 , ξ 3 , ... , ξ H + 1 ) s o r t ( ξ p ( 1 ) , ξ p ( 2 ) , ... , ξ p ( H ) ) MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaaeaabaWaaaGcbaqcfa4aaeWaaeaacqaH+oaEdaWgaaqaaiabikdaYaqabaGaeiilaWIaaGjbVlabe67a4naaBaaabaGaeG4mamJaeiilaWIaaGjbVlabc6caUiabc6caUiabc6caUiaayIW7cqGGSaalcaaMe8oabeaacqaH+oaEdaWgaaqaaiabdIeaijabgUcaRiabigdaXaqabaaacaGLOaGaayzkaaGaaGjcVNqzafGaaGjbVNqbaoaaFyaakeaajugqbiabdohaZjabd+gaVjabdkhaYjabdsha0bGccaGLxdcajugqbiaaysW7juaGdaqadaqaaiabe67a4naaBaaabaGaemiCaa3aaeWaaeaacqaIXaqmaiaawIcacaGLPaaaaeqaaiabcYcaSiaaysW7cqaH+oaEdaWgaaqaaiabdchaWnaabmaabaGaeGOmaidacaGLOaGaayzkaaaabeaacaaMi8UaeiilaWIaeiOla4IaeiOla4IaeiOla4IaaGjcVlabcYcaSiaayIW7caaMi8UaeqOVdG3aaSbaaeaacqWGWbaCdaqadaqaaiabdIeaibGaayjkaiaawMcaaaqabaaacaGLOaGaayzkaaaaaa@778D@

where p is an index permutation such that ξp(1) ≥ ξp(2) ≥ … ≥ ξp(H). In this way we obtain an ordering of the clusterings, from the most to the least reliable one.

Exploiting this ordering, we proposed a χ2-based statistical test to detect and to estimate the statistical significance of multiple-structures discovered by clustering algorithms [7]. The main drawbacks of this approach consists in an implicit normality assumption for the distribution of the S k (random variables that measure the similarity between two perturbed k-clusterings, see above), and in a user defined threshold parameter that determines when two k-clusterings can be considered similar and “stable”. Indeed, in general we have no guarantee that the S k random variables are normally distributed; moreover the “optimal” choice of the threshold parameter seems to be application dependent and may affect the overall test results.

In this contribution, to address these problems we propose a new statistical method that, adopting a stability-based approach, makes no assumptions about the distribution of the random variables and does not require any user-defined threshold parameter.

Hypothesis testing based on Bernstein inequality

We briefly recall the Bernstein inequality, because this inequality is used to build-up our proposed hypothesis testing procedure.

Bernstein inequality. If Y1, Y2, …, Y n are independent random variables s.t. 0 ≤ Y i ≤ 1, with μ = E [ Y i ] , σ 2 = V a r [ Y i ] , Y ¯ = Y i / n MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBamXvP5wqSXMqHnxAJn0BKvguHDwzZbqegm0B1jxALjhiov2DaeHbuLwBLnhiov2DGi1BTfMBaebbnrfifHhDYfgasaacH8qrps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaqaafaaakeaajugqbiabeY7aTjaaysW7cqGH9aqpcaaMe8UaemyrauKcdaWadaqaaKqzafGaemywaKvcfa4aaSbaaSqaaiabdMgaPbqabaaakiaawUfacaGLDbaajugqbiabcYcaSiaaysW7cqaHdpWCjuaGdaahaaWcbeqaaiabikdaYaaajugqbiaaysW7cqGH9aqpcaaMe8UaemOvayLaemyyaeMaemOCaiNcdaWadaqaaiabdMfaznaaBaaaleaacqWGPbqAaeqaaaGccaGLBbGaayzxaaqcLbuacqGGSaalcaaMe8UafmywaKLbaebacaaMe8Uaeyypa0JaaGjbVlabggHiLlabdMfazLqbaoaaBaaaleaacqWGPbqAaeqaaKqzafGaei4la8IaemOBa4gaaa@6F66@ then

P r o b { Y ¯ μ Δ } e n Δ 2 2 σ 2 + 2 / 3 Δ MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaaeaabaWaaaGcbaqcLbuacqWGqbaucqWGYbGCcqWGVbWBcqWGIbGykmaacmaabaqcLbuacuWGzbqwgaqeaiaaysW7cqGHsislcaaMe8UaeqiVd0MaaGjbVlabgwMiZkaaysW7cqGHuoaraOGaay5Eaiaaw2haaKqzafGaaGjbVlabgsMiJkabdwgaLjaaysW7kmaaCaaaleqabaWaaSaaaeaacqGHsislcqWGUbGBcqGHuoardaahaaadbeqaaiabikdaYaaaaSqaaiabikdaYiabeo8aZnaaCaaameqabaGaeGOmaidaaSGaey4kaSIaaGjbVlabikdaYiabc+caViabiodaZiaaysW7cqGHuoaraaaaaaaa@5E4E@

Using the Bernstein inequality, we would estimate if for a given r, 2 ≤ rH, there exists a statistically significant difference between the reliability of the best p(1) clustering and the p(r) clustering (eq. 3). In other words we may state the null hypothesis H0 and the alternative hypothesis in the following way:

H0: p(1) clustering is not more reliable than p(r) clustering, that is E[Sp(1)] ≤ E[Sp(r)]

H a : p(1) clustering is more reliable than p(r) clustering, that is E[Sp(1)] > E[Sp(r)]

To this end, consider the following random variables:

P i = S p ( 1 ) S p ( i ) and X i = ξ p ( 1 ) ξ p ( i ) MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbWexLMBbXgBcf2CPn2qVrwzqf2zLnharyWqVvNCPvMCG4uz3bqegqvATv2CG4uz3bIuV1wyUbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaamaaeaqbaaGcbaqcLbuacqWGqbaujuaGdaWgaaWcbaGaemyAaKgabeaajugqbiaaysW7cqGH9aqpcaaMe8Uaem4uamLcdaWgaaWcbaGaemiCaa3aaeWaaeaacqaIXaqmaiaawIcacaGLPaaaaeqaaKqzafGaaGjbVlabgkHiTiaaysW7cqWGtbWujuaGdaWgaaWcbaGaemiCaa3aaeWaaeaacqWGPbqAaiaawIcacaGLPaaaaeqaaKqzafGaaGjbVlaaykW7caaMc8UaeeyyaeMaeeOBa4MaeeizaqMaaGPaVlaaykW7caaMe8UaemiwaGvcfa4aaSbaaSqaaiabdMgaPbqabaqcLbuacaaMe8Uaeyypa0JaaGjbVlabe67a4LqbaoaaBaaaleaacqWGWbaCdaqadaqaaiabigdaXaGaayjkaiaawMcaaaqabaqcLbuacaaMe8UaeyOeI0IaaGjbVlabe67a4LqbaoaaBaaaleaacqWGWbaCdaqadaqaaiabdMgaPbGaayjkaiaawMcaaaqabaaaaa@8242@

We start considering the first and last ranked clustering p(1) and p(H). In this case the above null hypothesis H0 becomes: E[Sp(1)] ≤ E[Sp(H)], or equivalently E[Sp(1)] − E[Sp(H)] = E[P H ] ≤ 0. The distribution of the random variable X H (eq. 5) is in general unknown; anyway note that in the Bernstein inequality no assumption is made about the distribution of the random variables Y i (eq. 4). Hence, fixing a parameter Δ ≥ 0, considering true the null hypothesis E[P H ] ≤ 0, and using Bernstein inequality, we have:

P r o b { X H Δ } P r o b { X H E [ P H ] Δ } e n Δ 2 2 σ 2 + 2 / 3 Δ MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaaeaabaWaaaGcbaacbiGae8huaaLae8NCaiNae83Ba8Mae8Nyai2aaiWaaeaacqWGybawdaWgaaWcbaGaemisaGeabeaakiabgwMiZkaayIW7cqqHuoaraiaawUhacaGL9baacaaMi8UaaGjcVlabgsMiJkaayIW7cqWFqbaucqWFYbGCcqWFVbWBcqWFIbGycaaMi8+aaiWaaeaacqWGybawdaWgaaWcbaGaemisaGeabeaakiaayIW7cqGHsislcaaMi8Uaemyrau0aamWaaeaacqWGqbaudaWgaaWcbaGaemisaGeabeaaaOGaay5waiaaw2faaiabgwMiZkaayIW7cqqHuoaraiaawUhacaGL9baacaaMi8UaaGjcVlaayIW7cqGHKjYOcaaMi8Uaemyzau2aaWbaaSqabeaadaWcaaqaaiabgkHiTiabd6gaUjaayIW7cqqHuoardaahaaadbeqaaiabikdaYaaaaSqaaiabikdaYiabeo8aZnaaCaaameqabaGaeGOmaidaaSGaey4kaSIaeGOmaiJaei4la8IaeG4mamJaeuiLdqeaaaaaaaa@77E0@

Considering an instance (a measured value) X ^ H MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBamXvP5wqSXMqHnxAJn0BKvguHDwzZbqegm0B1jxALjhiov2DaeHbuLwBLnhiov2DGi1BTfMBaebbnrfifHhDYfgasaacH8qrps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaqaafaaakeaajugqbiqbdIfayzaajaqcfa4aaSbaaSqaaiabdIeaibqabaaaaa@4107@ of the random variable X H , if we let Δ = X ^ H MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBamXvP5wqSXMqHnxAJn0BKvguHDwzZbqegm0B1jxALjhiov2DaeHbuLwBLnhiov2DGi1BTfMBaebbnrfifHhDYfgasaacH8qrps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaqaafaaakeaajugqbiabfs5aejabg2da9iqbdIfayzaajaqcfa4aaSbaaSqaaiabdIeaibqabaaaaa@4373@ we obtain the following probability of type I error:

P e r r { X H X ^ H } e n X ^ H 2 2 σ H 2 + 2 / 3 X ^ H MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaaeaabaWaaaGcbaqcLbuacqWGqbaujuaGdaWgaaqaaiabdwgaLjabdkhaYjabdkhaYbqabaWaaiWaaeaacqWGybawdaWgaaqaaiabdIeaibqabaGaaGjbVlabgwMiZkaaysW7cuWGybawgaqcamaaBaaabaGaemisaGeabeaaaiaawUhacaGL9baajugqbiaaysW7cqGHKjYOcaaMe8UaemyzauMcdaahaaWcbeqaamaalaaabaGaeyOeI0IaaGjbVlabd6gaUjaaysW7cuWGybawgaqcamaaDaaameaacqWGibasaeaacqaIYaGmaaaaleaacaaMe8UaeGOmaiJaeq4Wdm3aa0baaWqaaiabdIeaibqaaiabikdaYaaaliabgUcaRiaaysW7cqaIYaGmcqGGVaWlcqaIZaWmcaaMe8UafmiwaGLbaKaadaWgaaadbaGaemisaGeabeaaaaaaaaaa@62A8@

with σ H 2 = σ p ( 1 ) 2 + σ p ( H ) 2 . MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBamXvP5wqSXMqHnxAJn0BKvguHDwzZbqegm0B1jxALjhiov2DaeHbuLwBLnhiov2DGi1BTfMBaebbnrfifHhDYfgasaacH8qrps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaqaafaaakeaajugqbiabeo8aZPWaa0baaSqaaiabdIeaibqaaiabikdaYaaajugqbiaaysW7cqGH9aqpcaaMe8Uaeq4WdmNcdaqhaaWcbaGaemiCaa3aaeWaaeaacqaIXaqmaiaawIcacaGLPaaaaeaacqaIYaGmaaqcLbuacaaMe8Uaey4kaSIaaGjbVlabeo8aZPWaa0baaSqaaiabdchaWnaabmaabaGaemisaGeacaGLOaGaayzkaaaabaGaeGOmaidaaKqzafGaeiOla4caaa@5AC2@

If P e r r { X H X ^ H } < α , MathType@MTEF@5@5@+=feaafiart1ev1aqatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBamXvP5wqSXMqHnxAJn0BKvguHDwzZbqegm0B1jxALjhiov2DaeHbuLwBLnhiov2DGi1BTfMBaebbnrfifHhDYfgasaacH8qrps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaqaafaaakeaajugqbiabdcfaqLqbaoaaBaaaleaacqWGLbqzcqWGYbGCcqWGYbGCaeqaaKqbaoaacmaabaGaemiwaG1aaSbaaeaacqWGibasaeqaaiaaysW7cqGHLjYScaaMe8UafmiwaGLbaKaadaWgaaqaaiabdIeaibqabaaacaGL7bGaayzFaaqcLbuacqGH8aapcaaMe8UaeqySdeMaeiilaWcaaa@564F@ we reject the null hypothesis: a significant difference between the two clusterings is detected at α significance level and we continue by testing the p(H − 1) clustering. More in general if the null hypothesis has been rejected for the p(Hr + 1) clustering, 1 ≤ rH − 2 then we consider the p(Hr) clustering, and using the Boole inequality, we can estimate the type I error:

P e r r ( H r ) = P r o b { H r i H X i X ^ i } i = H r H P r o b { X i X ^ i } i = H r H e n X ^ i 2 2 σ i 2 + 2 / 3 X ^ i MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaaeaabaWaaaGcbaqcLbuacqWGqbaujuaGdaWgaaWcbaGaemyzauMaemOCaiNaemOCaihabeaakmaabmaabaqcLbuacqWGibascaaMe8UaeyOeI0IaaGjbVlabdkhaYbGccaGLOaGaayzkaaqcLbuacaaMe8Uaeyypa0JaaGjbVJqaciab=bfaqjab=jhaYjab=9gaVjab=jgaIPWaaiWaaeaadaGfqbqabSqaaiabdIeaijabgkHiTiabdkhaYjabgsMiJkabdMgaPjabgsMiJkabdIeaibqab0qaaiabgIIiAdaakiaaykW7jugqbiabdIfayPWaaSbaaSqaaiabdMgaPbqabaqcLbuacaaMe8UaeyyzImRaaGjbVlqbdIfayzaajaGcdaWgaaWcbaGaemyAaKgabeaaaOGaay5Eaiaaw2haaKqzafGaaGjbVlabgsMiJkaayIW7kmaaqahabaqcLbuacqWFqbaucqWFYbGCcqWFVbWBcqWFIbGykmaacmaabaqcLbuacqWGybawkmaaBaaaleaacqWGPbqAaeqaaKqzafGaaGjbVlabgwMiZkaaysW7cuWGybawgaqcaOWaaSbaaSqaaiabdMgaPbqabaaakiaawUhacaGL9baaaSqaaiabdMgaPjabg2da9iabdIeaijabgkHiTiabdkhaYbqaaiabdIeaibqdcqGHris5aKqzafGaaGjbVlabgsMiJQWaaabCaeaajugqbiabdwgaLLqbaoaaCaaabeqaamaalaaabaGaeyOeI0IaaGjbVlabd6gaUjaaysW7cuWGybawgaqcamaaDaaabaGaemyAaKgabaGaeGOmaidaaaqaaiabikdaYiabeo8aZnaaDaaabaGaemyAaKgabaGaeGOmaidaaiabgUcaRiaaysW7cqaIYaGmcqGGVaWlcqaIZaWmcaaMe8UafmiwaGLbaKaadaWgaaqaaiabdMgaPbqabaGaaGjbVdaaaaaaleaacqWGPbqAcqGH9aqpcqWGibascqGHsislcqWGYbGCaeaacqWGibasa0GaeyyeIuoaaaa@B107@

As in the previous case, if P err (Hr) < α we reject the null hypothesis: a significant difference is detected between the reliability of the p(1) and p(Hr) clustering and we iteratively continue the procedure estimating P err (Hr − 1).

This procedure stops if either of these cases succeeds:

  1. I)

    The null hypothesis is rejected till r = H − 2, that is r, 1 ≤ rH − 2, P err (Hr) < α: all the possible null hypotheses have been rejected and the only reliable clustering at α-significance level is the top ranked one, that is the p(1) clustering.

II) The null hypothesis cannot be rejected for rH − 2, that is, r, 1 ≤ rH − 2, P err (Hr) ≥ α: in this case the clusterings that are significantly less reliable than the top ranked p(1) clustering are the p(r + 1), p(r + 2),…, p(H) clusterings.

Note that in this second case we cannot state that there is no significant difference between the first r top-ranked clusterings, since the upper bound provided by the Bernstein inequality is not guaranteed to be tight. To answer to this question, we may apply the χ2-based hypothesis testing proposed in [7] to the remaining top ranked clusterings to establish which of them are significant at α level, but in this case we need to assume that the similarity measures between pairs of clusterings are distributed according to a normal distribution.

If we assume that the X i random variables (eq. 5) are (at least approximately) independent, we can obtain a variant of the previous Bernstein inequality-based approach, that we name Bernstein ind. for brevity. By this approach we should in principle obtain lower p values, thus assuring lower false positive rates than the Bernstein test without independence assumptions.

With these independence assumptions the null hypothesis H 0 and the alternative hypothesis for the Bernstein ind. test can be formulated as follows:

H0: i, 2 ≤ irH such that E[Sp(1)] ≤ E[Sp(r)]: it does exist at least one p(i)-clustering equally or more reliable than the first one in the group of the first r ordered clusterings.

H a : i, 2 ≤ irH, E[Sp(1)] > E[Sp(r)]: all the clusterings in the group of the first r ordered clusterings are less reliable than the first one.

If we assume that the null hypothesis is true, using the independence among the X i random variables, we may obtain the type I error:

P e r r ( r ) = P r o b { Λ 2 i r X i X ^ i } = i = 2 r P r o b { X i X ^ i } i = 2 r e n X ^ i 2 2 σ i 2 + 2 / 3 X ^ i MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaaeaabaWaaaGcbaqcLbuacqWGqbaujuaGdaWgaaWcbaGaemyzauMaemOCaiNaemOCaihabeaakmaabmaabaqcLbuacqWGYbGCaOGaayjkaiaawMcaaKqzafGaaGjbVlabg2da9iaaysW7ieGacqWFqbaucqWFYbGCcqWFVbWBcqWFIbGykmaacmaabaWaaybuaeqaleaacqWFYaGmcqGHKjYOcqWFPbqAcqGHKjYOcqWFYbGCaeqaneaacqqHBoataaqcLbuacqWGybawjuaGdaWgaaWcbaGaemyAaKgabeaajugqbiaaysW7cqGHLjYScaaMe8UafmiwaGLbaKaajuaGdaWgaaWcbaGaemyAaKgabeaaaOGaay5Eaiaaw2haaKqzafGaaGjbVlabg2da9iaaysW7kmaarahabaGae8huaaLae8NCaiNae83Ba8Mae8NyaigaleaacqWGPbqAcqGH9aqpcqaIYaGmaeaacqWGYbGCa0Gaey4dIunakmaacmaabaqcLbuacqWGybawjuaGdaWgaaWcbaGaemyAaKgabeaajugqbiaaysW7cqGHLjYScaaMe8UafmiwaGLbaKaajuaGdaWgaaWcbaGaemyAaKgabeaaaOGaay5Eaiaaw2haaKqzafGaaGjbVlabgsMiJkaaysW7kmaarahabaGaaGjcVNqzafGaemyzauwcfa4aaWbaaeqabaWaaSaaaeaacqGHsislcqWGUbGBcuWGybawgaqcamaaDaaabaGaemyAaKgabaGaeGOmaidaaaqaaiabikdaYiabeo8aZnaaDaaabaGaemyAaKgabaGaeGOmaidaaiabgUcaRiaaysW7cqaIYaGmcqGGVaWlcqaIZaWmcuWGybawgaqcamaaBaaabaGaemyAaKgabeaaaaaaaaWcbaGaemyAaKMaeyypa0JaeGOmaidabaGaemOCaihaniabg+Givdaaaa@A0F5@

Starting from r = H, if P err (r) < α we reject the null hypothesis: a significant difference is detected between the reliability of the p(1) and the other first r-clustering and we iteratively continue the procedure estimating P err (r − 1). As in the Bernstein test, the procedure is iterated until we remain with a single clustering (and this will be the only significant one), or until P err (r) ≥ α and in this case we cannot reject the null hypothesis and the first r clusterings can be considered equally reliable. Note that, strictly speaking, in this case we can only say that at least one of the first r clusterings is equally or more reliable than the first one.

Results and discussion

In this section we apply the Bernstein test to synthetic and DNA microarray data analysis, and compare it to the previously proposed χ2-based test [7]. For the experiments we used the mosclust R package [16], and all the data used in the experiments are available from the authors.

Analysis of hierarchical structures in synthetic data

In order to show the effectiveness of the proposed approach we consider synthetic data with a priori known multi-level hierarchical structure. To this end we generated a two-dimensional synthetic data set with a three-level hierarchical structure (Fig. 1) using the clusterv R package [17]: at a first level three large clusters are present in the data (black ovals); at a second level we have a 6-clustering (red ovals) and finally a third-level 12-clustering may be detected (blue ovals).

Figure 1
figure 1

Synthetic data set: a three-level hierarchical structure with 3, 6 and 12 clusters.

We performed analysis of the stability of the clusters (see Section Model order selection through stability based procedures), by applying random subsample techniques to perturb the data (100 subsample pairs each composed by 80 % of the data randomly drawn without replacement) and Ward's hierarchical clustering algorithm [18] with dendrogram cuts from k = 2 to k = 15 clusters. Then we computed the similarity indices for each k from 2 to 15: their empirical cumulative distribution is shown in Fig. 2. From Fig. 2 we may observe that 3 and 6-clusterings similarities are closely concentrated near 1, thus showing that these clusterings are clearly detectable by the hierarchical clustering algorithm. Indeed both χ2-based and Bernstein-based test of hypothesis select these clusterings at 10−5 significance level. Nevertheless, the Bernstein test selects also the 7-clustering (false positive) and the 12-clustering (true positive) (Table 1). As a second experiment we considered a 1000-dimensional synthetic multivariate gaussian distributed data set. These data are characterized by a two-level hierarchical structure: at a first level we have two main clusters with inside each one three other clusters, thus resulting in a second level 6-clustering. Each of the six second-level clusters is distributed according to a hyperspherical gaussian distribution and each cluster contains only 20 examples, thus resulting in a sparse data set (low number of examples in a high dimensional space). We applied the Prediction Around Medoids clustering algorithm [19], and we perturbed the data through Bernoulli random projections [7], from a 1000 to a 479-dimensional subspace, considering the reliability of clusterings composed from 2 to 10 clusters. In this case both the χ2-based and the Bernstein based iterative procedures correctly detect 2 and 6-clusterings at 10 −4 significance level. With these high dimensional data the Bernstein test is not subject to false positives, but also the χ2 test correctly detects all the structures underlying the data.

Table 1 Synthetic data: comparison of the χ2 and Bernstein inequality-based tests.
Figure 2
figure 2

Synthetic data set: empirical cumulative distribution functions of the similarity measures for different number of clusters (Hierarchical clustering).

Discovery of multi-level structures in DNA microarray data

As an example of the application of the Bernstein test to the discovery of multiple structures in bio-molecular data, we consider two classical DNA microarray data sets: Leukemia[20] and Lymphoma[21]. The Leukemia data set is composed by a group of 25 acute myeloid leukemia (AML) samples and another group of 47 acute lymphoblastic leukemia (ALL) samples, that can be subdivided into 38 B-Cell and 9 T-Cell subgroups, resulting in a two-level hierarchical structure.

We applied both resampling and random projections to lower dimensional subspaces to perturb the original data using the R package mosclust [16] that implements the Bernstein-based test and the stability measures described in Sect. Model order selection through stability based procedures.

Fig. 3 shows the empirical cumulative distributions of the similarity values and Table 2 the p values of the clusterings sorted according to their ξ values (eq. 2), using Bernoulli random projections [7]. Our proposed procedure detects the 2 – clustering as the most reliable at 0.01 significance level, according to the fact that two biologically meaningful groups (ALL, acute lymphoblastic leukemia and AML, acute myeloid leukemia) are present in the data. Choosing a significance level α = 10−5 we cannot reject the null hypothesis that a 2-clustering is less or equally reliable than a 3-clustering: in this case 2 structures (2 and 3-clusterings) are detected as simultaneously present in the data, reflecting the biological fact that ALL can be subdivided into two subclasses (B-cell and T-cell ALL).

Table 2 Leukemia data set: empirical means (ξ) and p values computed according to the Bernstein inequality.
Figure 3
figure 3

Leukemia data set. Empirical cumulative distributions of the similarity measures for different numbers of clusters k.

The results obtained with two variants of the χ2[7] and Bernstein based statistical tests are compared in Fig. 4 (k-means algorithm) and Fig. 5 (PAM, Prediction Around Medoids algorithm [19]) : log p values are represented in ordinate, while in abscissa the number of clusters are sorted according to the empirical mean of the corresponding pairwise similarities (eq. 2). In both figures a straight horizontal dashed line represents a significance level α = 0.001: k-clusterings above the dashed line are significant, that is their reliability significantly differ from the k-clusterings below the dashed horizontal line. Note that the k-means (Fig. 4) and PAM (Fig. 5) clustering algorithms provide a slightly different ranking of the similarity indices, but in most cases 2 and 3 clusterings are considered significantly more reliable than the others, according to the biological characteristics of the data. The Bernstein test, due to its more general assumptions (no particular distributions and no independence are assumed for the random variables that represent the similarity between clusterings) is less selective (in the sense that it may consider reliable a larger number of k-clusterings) than the χ2-based test that make assumptions about the distribution of the random variables. This is confirmed by the fact that Bernstein p values decrease more slowly with respect to the χ2 test (Fig. 4 and 5), thus resulting in a better sensitivity to multiple structures present in the data. The main drawback of this behaviour is the larger probability of false positives. Note that the Bernstein ind. test shows an intermediate trend between the Bernstein and χ2 test (red lines in Fig. 4 and 5): the assumption of independence between the random variables yields a more selective Bernstein inequality-based test less subject to false positives, but potentially less sensitive to multiple structures underlying the data.

Figure 4
figure 4

K-means clustering: log p value computed for χ2-based and Bernstein-based statistical tests. Ordinate: log p value; abscissa: number of clusters sorted according the computed similarity means.

Figure 5
figure 5

PAM clustering: log p value computed for χ2-based and Bernstein-based statistical tests. Ordinate: log p value; abscissa: number of clusters sorted according the computed similarity means.

The Lymphoma gene expression data set [21] comprises three different lymphoid malignancies: Diffuse Large B-Cell Lymphoma (DLBCL), Follicular Lymphoma (FL) and Chronic Lymphocytic Leukemia (CLL). The data provides expression levels for 4026 genes [22], with 62 samples subdivided in 42 DLBCL, 11 CLL and 9 FL. We performed pre-processing of the data according to [21], replacing missing values with 0 and then normalizing the data to zero mean and unit variance across genes. We considered both resampling techniques and random projections to perturb the data. In particular, data have been resampled by randomly drawing 80% of the available data without replacement, and data have been projected using Bernoulli projections with ε = 0.2 corresponding to 413-dimensional subspaces. Fig. 6 and 7 show the empirical cumulative distribution of the similarity measures for different numbers of clusters, using the hierarchical Ward's clustering algorithm and respectively Bernoulli random projections (Fig. 6) and subsampling perturbation techniques (Fig. 7). Considering random projections both the Bernstein and χ2-based tests correctly select 2 and 3-clusterings at 0.001 significance level. On the contrary, using subsampling techniques only the Bernstein inequality based test select as significant both 2 and 3-clusterings, while the χ2 tests select only the 2-clustering (Table 3). These results confirm that the Bernstein test is more sensitive to multiple structures underlying the data.

Table 3 Lymphoma data: comparison of the χ2 and Bernstein inequality-based tests.
Figure 6
figure 6

Lymphoma data set. Empirical cumulative distribution functions of the similarity measures for different number of clusters k. Perturbation technique: random projections

Figure 7
figure 7

Lymphoma data set. Empirical cumulative distribution functions of the similarity measures for different number of clusters k. Perturbation technique: resampling

Considering the Leukemia and Lymphoma data sets, the proposed Bernstein test achieves results competitive with state-of-the-art stability methods proposed in the literature. Indeed the Model Explorer algorithm, based on subsampling techniques, correctly detect only the 2-clustering structure both in Leukemia and Lymphoma[15]. Another subsampling-based method (Figure of Merit[23]) detects 2, 8 and 19-clusterings in Leukemia and 2 and 9-clusterings in Lymphoma. Stability methods that apply supervised algorithms to assess the quality of the discovered clusterings correctly detect only a 3-clustering in Leukemia and a 2-clustering in Lymphoma[6, 24]. Our previously proposed χ2-based test correctly detects both 2 and 3-clusterings in both data sets, if random projections are used as perturbation method, but it fails to detect the 3-clustering in Lymphoma when subsampling techniques are applied. On the contrary, the Bernstein test discovers both the two-level structures in Leukemia and Lymphoma, independently of the applied perturbation method.

The experimental results with both synthetic and gene expression data support the hypothesis that the Bernstein test is more sensitive to multiple structures underlying the data. Indeed in the first experiment with synthetic data it correctly predicts also the third level of structure, that is the 12-clustering; on the other hand it is subject to false positives, as shown by the wrong discovery of a 7-clustering (Table 1). These results are confirmed by the fact that Bernstein p values decrease more slowly with respect to the χ2 test (Fig. 4 and 5): in this way for a given significance level it is likely that the Bernstein test selects larger sets of structures underlying the data. The risk of an increased rate of false positives may be balanced by the assumption of independence between the random variables, yielding to the proposed Bernstein ind. test (eq. 8), less subject to false positives, but potentially less sensitive to multiple structures underlying the data.

In real applications to complex bio-molecular data, we suggest to apply both Bernstein-based and χ2-based procedures: structures discovered by both tests are likely to be significant, and Bernstein-based tests can discover potential structures not detectable with the more selective χ2-based test. Moreover the computational burden due to the application of the χ2 and Bernstein-based iterative procedures is irrelevant with respect to the execution of clustering algorithms.


We proposed a test of hypothesis based on Bernstein inequality to estimate if there is a significant difference between the reliability of different clusterings performed on the same data. Our proposed method can be applied to discover multiple or hierarchical structures, using different clustering algorithms and different perturbation methods. Even if in our experiments we applied the Bernstein test to the analysis of gene expression data, this approach may be in principle applied to discover multiple structures in any type of complex bio-molecular data. Indeed no user-defined parameters are required, and very loose assumptions are made about the distribution of the data and the distribution of the similarity values used to estimate the stability of the discovered clusterings, thus assuring a reliable application of the method to a large range of bioinformatics problems.

Our experiments with synthetic and gene expression data show that Bernstein-based tests are more sensitive than χ2-based tests to multiple structures embedded in the data: in this way not self-evident structures may be detected too, as well as subtle relationships between the data. A drawback of the Bernstein test is its larger expected rate of false positives, but assuming independence between the empirical means of the similarity values a new test (Bernstein ind.), less subject to false positives, has been proposed.

Developments of this work could consist in the adaptation and application of the proposed methods to large scale bioinformatics problems, to discover multiple structures underlying the data when a very large number of clusters is potentially involved.


  1. Dopazo J: Functional Interpretation of Microarray Experiments. OMICS 2006,10(3):398–410. 10.1089/omi.2006.10.398

    Article  CAS  PubMed  Google Scholar 

  2. Gasch P, Eisen M: Exploring the conditional regulation of yeast gene expression through fuzzy k-means clustering. Genome Biology 2002.,3(11):

  3. Dyrskjøt L, Thykjaer T, Kruhøffer M, Jensen J, Marcussen N, Hamilton-Dutoit S, Wolf H, Ørntoft T: Identifying distinct classes of bladder carcinoma using microarrays. Nature Genetics 2003, 33: 90–96. jan 10.1038/ng1061

    Article  PubMed  Google Scholar 

  4. Kaplan N, Friedlich M, Fromer M, Linial M: A functional hierarchical organization of the protein sequence space. BMC Bioinformatics 2004, 5: 196. 10.1186/1471-2105-5-196

    Article  PubMed Central  PubMed  Google Scholar 

  5. Handl J, Knowles J, Kell D: Computational cluster validation in post-genomic data analysis. Bioinformatics 2005,21(15):3201–3215. 10.1093/bioinformatics/bti517

    Article  CAS  PubMed  Google Scholar 

  6. Lange T, Roth V, Braun M, Buhmann J: Stability-based Validation of Clustering Solutions. Neural Computation 2004, 16: 1299–1323. 10.1162/089976604773717621

    Article  PubMed  Google Scholar 

  7. Bertoni A, Valentini G: Model order selection for bio-molecular data clustering. BMC Bioinformatics 2007,8(Suppl 2):S7. 10.1186/1471-2105-8-S2-S7

    Article  PubMed Central  PubMed  Google Scholar 

  8. Monti S, Tamayo P, Mesirov J, Golub T: Consensus Clustering: A Resampling-based Method for Class Discovery and Visualization of Gene Expression Microarray Data. Machine Learning 2003, 52: 91–118. 10.1023/A:1023949509487

    Article  Google Scholar 

  9. McShane L, Radmacher D, Freidlin B, Yu R, Li M, Simon R: Method for assessing reproducibility of clustering patterns observed in analyses of microarray data. Bioinformatics 2002,18(11):1462–1469. 10.1093/bioinformatics/18.11.1462

    Article  CAS  PubMed  Google Scholar 

  10. Smolkin M, Gosh D: Cluster stability scores for microarray data in cancer studies. BMC Bioinformatics 2003,4():36. 10.1186/1471-2105-4-36

    Article  PubMed Central  PubMed  Google Scholar 

  11. Bertoni A, Valentini G: Randomized maps for assessing the reliability of patients clusters in DNA microarray data analyses. Artificial Intelligence in Medicine 2006,37(2):85–109. 10.1016/j.artmed.2006.03.005

    Article  PubMed  Google Scholar 

  12. Hoeffding W: Probability inequalities for sums of independent random variables. J. Amer. Statist. Assoc. 1963, 58: 13–30. 10.2307/2282952

    Article  Google Scholar 

  13. Jain A, Murty M, Flynn P: Data Clustering: a Review. ACM Computing Surveys 1999,31(3):264–323. 10.1145/331499.331504

    Article  Google Scholar 

  14. Achlioptas D: Database-friendly random projections. In Proc. ACM Symp. on the Principles of Database Systems, Contemporary Mathematics. Edited by: Edited by Buneman P. New York, NY, USA: ACM Press; 2001:274–281.

    Google Scholar 

  15. Ben-Hur A, Ellisseeff A, Guyon I: A stability based method for discovering structure in clustered data. In Pacific Symposium on Biocomputing. Volume 7. Edited by: Edited by Altman R, Dunker A, Hunter L, Klein T, Lauderdale K, Lihue, Hawaii, USA. World Scientific; 2002:6–17.

    Google Scholar 

  16. Valentini G: Mosclust: a software library for discovering significant structures in bio-molecular data. Bioinformatics 2007,23(3):387–389. 10.1093/bioinformatics/btl600

    Article  CAS  PubMed  Google Scholar 

  17. Valentini G: Clusterv: a tool for assessing the reliability of clusters discovered in DNA microarray data. Bioinformatics 2006,22(3):369–370. 10.1093/bioinformatics/bti817

    Article  CAS  PubMed  Google Scholar 

  18. Ward J: Hierarchical grouping to optimize an objective function. J. Am. Stat. Assoc. 1963, 58: 236–244. 10.2307/2282967

    Article  Google Scholar 

  19. Kaufman L, Rousseeuw P: Finding Groups in Data: An Introduction to Cluster Analysis. New York: Wiley; 1990.

    Book  Google Scholar 

  20. Golub T, et al.: Molecular Classification of Cancer: Class Discovery and Class Prediction by Gene Expression Monitoring. Science 1999, 286: 531–537. 10.1126/science.286.5439.531

    Article  CAS  PubMed  Google Scholar 

  21. Alizadeh A, Eisen M, Davis R, Ma C, Lossos I, Rosenwald A, Boldrick J, Sabet H, Tran T, Yu X, Powell J, Yang L, Marti G, Moore T, Hudson J, Lu L, Lewis D, Tibshirani R, Sherlock G, Chan W, Greiner T, Weisenburger D, Armitage J, Warnke R, Levy R, Wilson W, Grever M, Byrd J, Botstein D, Brown P, Staudt L: Distinct types of diffuse large B-cell lymphoma identified by gene expression profiling. Nature 2000, 403: 503–511. 10.1038/35000501

    Article  CAS  PubMed  Google Scholar 

  22. Alizadeh A, et al.: The Lymphochip: a specialized cDNA microarray for genomic-scale analysis of gene expression in normal and malignant lymphocytes. In Cold Spring Harbor Symp. Quant. Biol. 2001.

    Google Scholar 

  23. Levine E, Domany E: Resampling method for unsupervised estimation of cluster validity. Neural Computation 2001,13(11):2573–2593. 10.1162/089976601753196030

    Article  CAS  PubMed  Google Scholar 

  24. Dudoit S, Fridlyand J: A prediction-based resampling method for estimating the number of clusters in a dataset. Genome Biol 2002,3(7):RESEARCH0036-. 10.1186/gb-2002-3-7-research0036

    Article  PubMed Central  PubMed  Google Scholar 

Download references


We would like to thank the anonymous reviewers for their comments and suggestions. This work has been developed in the context of CIMAINA Center of Excellence, and it has been funded by the Italian COFIN project Linguaggi formali ed automi: metodi, modelli ed applicazioni.

This article has been published as part of BMC Bioinformatics Volume 9 Supplement 2, 2008: Italian Society of Bioinformatics (BITS): Annual Meeting 2007. The full contents of the supplement are available online at

Author information

Authors and Affiliations


Corresponding author

Correspondence to Giorgio Valentini.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors' contributions

The authors equally contributed to this paper.

Rights and permissions

This article is published under license to BioMed Central Ltd. This is an open access article distributed under the terms of the Creative Commons Attribution License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and permissions

About this article

Cite this article

Bertoni, A., Valentini, G. Discovering multi–level structures in bio-molecular data through the Bernstein inequality. BMC Bioinformatics 9 (Suppl 2), S4 (2008).

Download citation

  • Published:

  • DOI: