Community Detection in Random Networks
Ery Arias-Castro, Nicolas Verzelen
Introduction
In recent years, the problem of detecting communities in networks has received a large amount of attention, with important applications in the social and biological sciences, among others (Fortunato, 2010). The vast majority of this expansive literature focuses on developing realistic models of (random) networks (Albert and Barabási, 2002; Barabási and Albert, 1999), on designing methods for extracting communities from such networks (Newman, 2006; Reichardt and Bornholdt, 2006; Girvan and Newman, 2002) and on fitting models to network data (Bickel et al., 2011).
The underlying model is that of graph , where is the set of edges and is the set of nodes. For example, in a social network, a node would represent an individual and an edge between two nodes would symbolize a friendship or kinship of some sort shared by these two individuals. In the literature just mentioned, almost all the methodology has concentrated on devising graph partitioning methods, with the end goal of clustering the nodes in into groups with strong inner-connectivity and weak inter-connectivity (Lancichinetti and Fortunato, 2009; Newman and Girvan, 2004; Bickel and Chen, 2009).
In this euphoria, perhaps the most basic problem of actually detecting the presence of a community in an otherwise homogeneous network has been overlooked. From a practical standpoint, this sort of problem could arise in a dynamic setting where a network is growing over time and monitored for clustering. From a mathematical perspective, probing the limits of detection (i.e., hypothesis testing) often offers insight into what is possible in terms of extraction (i.e., estimation).
Many existing community extraction methods can be turned into community detection procedures. For example, one could decide that a community is present in the network if the modularity of Newman and Girvan (2004) exceeds a given threshold. To set this threshold, one needs to define a null model. Newman and Girvan (2004) implicitly assume a random graph conditional on the node degrees. Here, we make the simplest assumption that the null model is an Erdös-Rényi random graph (Bollobás, 2001).
In this context, we also touch on another line of work, that of detecting a clique in a random graph — the so-called Planted (or Hidden) Clique Problem (Feige and Ron, 2010; Alon et al., 1998; Dekel et al., 2011). Although the emphasis there is to find the detection performance of computationally tractable algorithms, we mostly ignore computational consideration and simply establish the absolute detection limits of any algorithm whatsoever.
We study detectability in this framework in asymptotic regimes where , and may also change; all these parameters are assumed to be functions of . A test is a function that takes as input and returns to claim there is a community in the network, and otherwise. The (worst-case) risk of a test is defined as
2 Closely related work
We take the beaten path, following the standard approach in statistics for analyzing such composite hypothesis testing problems, in particular, the work of Ingster (1997) and others (Donoho and Jin, 2004; Ingster and Suslina, 2002; Hall and Jin, 2010) on the detection of a sparse (normal) mean vector. Most closely related to our work is that of Butucea and Ingster (2011). Specializing their results to our setting, they derive lower bounds and upper bounds for the same detection problem when the graph is directed and the probability of connection under the null (denoted ) is fixed, which is a situation where the graph is extremely dense. Their work leaves out the interesting regime where , which leads to a null model that is much more sparse.
3 Main Contribution
Our main contribution in this paper is to derive a sharp detection boundary for the problem of detecting a community in a network as described above. We focus here on the quasi-normal regimeThe quasi-Poisson regime where polynomially fast is qualitatively different and necessitates different proof arguments. This is beyond the scope of this paper and will appear somewhere else. where is either bounded away from zero, or tends to zero slowly, specifically,
On the one hand, we derive an information theoretic bound that applies to all tests, meaning conditions under which all tests are powerless. On the other hand, we display a test that basically achieves the best performance possible. The test is the combination of the two natural tests that arise in Butucea and Ingster (2011) and much of the work in that field (Ingster et al., 2010; Arias-Castro et al., 2011):
Total degree test. This test rejects when the total number of edges is unusually large. This is global in nature in that it cannot be directly turned into a method for extraction.
Scan (or maximum modularity) test. This test amounts to turning modularity into a test statistic by rejecting when its maximum value is unusually large. It is strictly speaking the generalized likelihood ratio test under our framework.
We also consider the situation, common in practice, where is unknown. Interestingly, the detection boundary becomes larger than in the former setting when is moderately sparse. We derive the corresponding lower bound in this situation and design a test that achieves this bound. The test is again the combination of the two tests:
Degree variance test. This test is based on the differences between two estimates for the degree variance, an analysis of variance of sorts. (Note that the total degree test cannot be calibrated without knowledge of .)
Scan test. This test can be calibrated in various ways when is unknown, for example by estimation of based on the whole graph, or by permutation. We study the former.
Finally, we consider various polynomial-time algorithms, the main one being a convex relaxation of the scan test based on a sparse eigenvalue problem formulation. Our inspiration there comes from the recent work of Berthet and Rigollet (2012). We discuss the discrepancy between the performances of the scan test and the relaxed scan test and compare it with other polynomial-time tests.
We summarize our findings in Tables 1 and 2, where
is (up to factor) the SNR for detecting the dense subgraph when it is known.
4 Finding a clique
We start the paper by addressing the problem of detecting the presence of a large clique in the graph, and treat it separately, as it is an interesting case in its own right. It is simpler and allows us to focus on the regime where in the rest of the paper. We establish a lower bound and prove that the following (obvious) test achieves that bound:
Clique number test. This tests rejects when the size of the clique number of the graph is unusually large. It can be calibrated without knowledge of , for example by permutation, but we do not know of a polynomial-time algorithm that comes even close.
5 Content
In Section 2, we consider the problem of detecting the presence of a large clique and analyze the clique number test. In Section 3, we consider the more general problem of detecting a densely connected subgraph and analyze the total degree test and the scan test. The more realistic situation of unknown is handled in Section 4. In Section 5.2, we investigate polynomial-time tests. We then discuss our results and the outlook in Section 6. The technical proofs are postponed to Section 7.
6 General assumptions and notation
We assume throughout that and the other parameters (and more) are allowed to change with , unless specified otherwise. This dependency is left implicit. In particular, we assume that , emphasizing the situation where the community to be detected is small compared to the size of the whole network. (When is of the same order as , the total degree test is basically optimal.) We assume that is bounded away from 1, which is the most interesting case by far, and that , the latter implying that the number of edges in the network (under the null) is not bounded. We also hypothesize that either or with , there is a non-vanishing chance that the community does not contain any edges, precluding any test to be powerful.
We use standard notation such as when ; when ; when is bounded; when and ; when there exists a positive constant such that and when there exists a positive constant such that . For an integer let . For two distributions and on the real line, let denote their convolution, which is the distribution of the sum two independent random variables and .
Because of its importance in describing the tails of the binomial distribution, the following function — which is the relative entropy or Kullback-Leibler divergence of to — will appear in our results:
Detecting a large clique in a random graph
We start with specializing the setting to that of detecting a large clique, meaning we consider the special case where . In this section, is not necessarily increasing with .
We establish the detection boundary, giving sufficient conditions for the problem to be too hard for any test, meaning that all tests are asymptotically powerless.
All tests are asymptotically powerless if
The result is, in fact, very intuitive. Condition (3) implies that, with high probability under the null, the clique number is at least , which is the size of the implanted clique under the alternative. This is a classical result in random graph theory, and finer results are known — see (Bollobás, 2001, Chap. 11). The arguments underlying Theorem 1 are, however, based on studying the likelihood ratio test when a uniform prior is assumed on the implanted clique , which is the standard approach in detection settings; see (Lehmann and Romano, 2005, Ch. 8). In this specific setting, the second moment method — which consists in showing that the variance of the likelihood ratio tends to 0 — suffices.
2 The clique number test
Computational considerations aside, the most natural test for detecting the presence of a clique is the clique number test defined in the Introduction. We obtain the following.
The proof is entirely based on the fact that, when (4) holds, the clique number under the null is at most with high probability (Bollobás, 2001, Th. 11.6), while it is at least under the alternative. (Thus the proof is omitted.) We conclude that the clique number test is seen to achieve the detection boundary established in Theorem 1.
Detecting a dense subgraph in a random graph
We now consider the more general setting of detecting a dense subgraph in a random graph. We start with an information bound that applies to all tests, regardless of their computational requirements. We then study the total degree test and the scan test, showing that the test that combines them with a simple Bonferroni correction is essentially optimal.
When assuming infinite computational power, what is left is the purely statistical challenge of detecting the subgraph. For simplicity, we assume that is not too small, specifically,
though our result below partially extends to this, particularly when is constant. As usual, a minimax lower bound is derived by choosing a prior over the composite alternative. Assuming that and are known, because of symmetry, the uniform prior over the community is least favorable, so that we consider testing
Assuming (5) and (1) hold, all tests are asymptotically powerless if
Conditions (7) and (8) have their equivalent in the work of Butucea and Ingster (2011). That said, (8) is more complex here because of the different behaviors of the entropy function according to whether is small or large — corresponding to the difference between large deviations and moderate deviations of the binomial distribution. Only in the case where is the normal approximation to the binomial in effect.
To better appreciate (8), note that it is equivalent to
In (9), is larger and only the moderate deviations of the binomial distribution are involved, while in (10), is smaller and the large deviations come into play.
Theorem 2 happens to be sharp because, as we show next, the test that combines the total degree test and the scan test is asymptotically powerful when the conditions (7) and (8) are — roughly speaking — reversed.
2 The total degree test
The total degree test rejects for large values of
The resulting test is exceedingly simple to analyze, since
It is equally straightforward to show that the total degree has risk strictly less than one — meaning has some non-negligible power — when the same ratio tends to a positive and finite constant, while it is asymptotically powerless when that ratio tends to zero.
3 The scan test
The scan test is another name for the generalized likelihood ratio test, and corresponds to the test that is based on the maximum modularity. It is particularly simple when is known, as it rejects for large values of
Unlike the total degree (11), the scan statistic (14) has an intricate distribution as the partial sums are not independent. Nevertheless, the union bound and standard tail bounds for the binomial distribution lead to the following result.
4 The combined test
Having studied these two tests individually, we are now in a position to consider them together, by which we mean a simple Bonferroni combination which rejects when either of the two tests rejects. Looking back at our lower bound and the performance bounds we established for these tests, we come to the following conclusion. When the limit in (7) is infinite — yielding (13) — then the total degree test is asymptotically powerful by Proposition 2. When the limit inferior in (8) exceeds one — yielding (15) — then the scan test is asymptotically powerful by Proposition 3.
5 Adaptation to unknown n𝑛n
The scan statistic in (14) requires knowledge of . When this is unknown, the common procedure is to combine the scan tests at all different sizes using a simple Bonferroni correction. This is done in (Butucea and Ingster, 2011), with the conclusion that the resulting test is essentially as powerful as the individual tests. It is straightforward to see that, here too, the tail bound used in the proof of Proposition 3 allows for enough room to scan over all subgraphs of all sizes.
Although it leads to interesting mathematics, the setting where is known is, for the most part, impractical. In this section, we evaluate how not knowing changes the difficulty of the problem. In fact, it makes the problem strictly more difficult in the denser regime.
There are (at least) two ways of formalizing the situation where is unknown. In the first option, we still consider the exact same hypothesis testing problem, but maximize the risk over relevant subsets of ’s and ’s, since now even the null hypothesis is composite. In the second option — which is the one we detail — for a given pair of probabilities , we consider testing
Note that, in this setting, we still assume that are known to the statistician. By design, the graph has the same expected total degree under the null and under the alternative hypotheses, that is we have
The risk of a test for this problem is defined as
We say that the a sequence of tests is asymptotically powerful for the problem with fixed expected total degree (resp. powerless) if (resp. ).
We first compute the detection boundary for this problem and then exhibit some tests achieving this detection boundary. Interestingly, these tests do not require the knowledge of and , or even , so that they can be used in the original setting (6) when these parameters are unknown.
all tests are asymptotically powerless for the problem (16) if
Comparing with Theorem 2, where is assumed to be known, the condition (18) is substantially weaker than the corresponding condition (7), while we shall see in the proof that (19) is comparable to (8). That said, when , the entropy condition (8) is a stronger requirement than either (7) or (18), implying that the setting where is known and the setting where unknown are asymptotically as difficult in that case.
2 Degree variance test
By construction, the total degree has the same expectation under the null and under the alternative in the testing problem with fixed expected total degree — and same variance also up to second order — making it difficult to see how to fruitfully use this statistic in this context.
We design instead a test based on comparing the two estimators for the node degree variance, not unlike an analysis of variance. Let
denote the degree of node in the whole network. The first estimate is simply the maximum likelihood estimator under the null
The second estimator is some sort of sample variance, modified to account for the fact that the are not independent
Assume that . The degree variance test is asymptotically powerful under fixed expected total degree if
The test based on achieves the part (18) of the detection boundary. We note that computing does not require knowledge of , or , and in fact, its calibration can be done without any knowledge of these parameters via a form of parametric bootstrap, as we do for the scan test below.
3 The scan test
When is not available a priori, we have at least three options:
Estimate . We replace with its maximum likelihood estimator under the null, i.e., , and then compare the magnitude of the observed scan statistic (14) with what one would get under a random graph model with probability of connection equal to .
Generalized likelihood ratio test. We simply implement the actual generalized likelihood ratio test (Kulldorff, 1997), which rejects for large values of
where , as above, and
which are the maximum likelihood estimates of and for a given subset .
Calibration by permutation. We compare the observed value of the scan statistic to simulated values obtained by generating a random graph with either the same number of edges — which leads to a calibration very similar to the first option — or the same degree distribution — which is the basis for in the modularity function of Newman and Girvan (2004).
Assume that . The scan test calibrated by estimation of is asymptotically powerful for fixed expected total degree if
Hence, the scan test calibrated by estimation of achieves the entropy condition (8) without requiring the knowledge of or . We mention that adaptation to unknown may be achieved as described in Section 3.5.
A combination of the degree variance test and of the scan test calibrated by estimation of is seen to achieve the detection boundary established in Theorem 3, without requiring knowledge of or , or even .
Testing in polynomial-time
While computing the total degree (11) or the degree variance statistic (21) can be done in linear time in the size of the network, i.e., in time, computing the scan statistic (14) is combinatorial in nature and there is no known polynomial-time algorithm to compute it. To see this, note that the ability to compute (14) in polynomial-time implies the ability to compute the size of the largest clique in the graph, since this is equal to
and computing the size of the largest clique in a general graph in known to be NP-hard (Karp, 1972), and even hard to approximate (Zuckerman, 2006).
A question of particular importance in modern times is determining the tradeoff between statistical performance and computational complexity. At the most basic level, this boils down to answering the following question: What can be done in polynomial-time?
We now suggest a convex relaxation to the problem of computing the scan statistic. To do so, we follow the footsteps of Berthet and Rigollet (2012), who consider the problem of detecting a sparse principal component based on a sample from a multivariate Gaussian distribution in dimension . Assuming the sparse component has at most nonzero entries, they show that a near-optimal procedure is based on the largest eigenvalue of any -by- submatrix of the sample covariance matrix. Computing this statistic is NP-hard, so they resort to the convex relaxation of d’Aspremont et al. (2007), which they also study. We apply their procedure to .
where denotes the principal submatrix of indexed by and the largest eigenvalue of . d’Aspremont et al. (2007) relaxed this to
When is unknown, we estimate as we did for the scan test in Proposition 5, and then calibrate the statistic by Monte Carlo, effectively using a form of parametric bootstrap.
Assume that (1) holds and for some . Then, the relaxed scan test is powerful if
To gain some insights on the relative performance of the scan test and the relaxed scan test, let us assume that , and . Applying Proposition 3 (or Proposition 5) in this setting, we find that the scan test is asymptotically powerful when
Thus, comparing with (25), we lose a factor when using the relaxed version. In the denser regime where , the total degree test and degree variance test both have stronger theoretical guarantees established in Proposition 2 and Proposition 4 respectively. Below we explain why the loss is not unexpected.
More generally, we may want to characterize the sequences for which there are asymptotically powerful tests running in polynomial time. In our findings, the only situation where we found this to be true was in the dense regime, where the total degree test is both powerful in the large-sample limit and computable in polynomial time. (Replace this with the degree variance test when is unknown.)
2 Other polynomial-time tests
Perhaps the first computationally-feasible test that comes to mind in the sparse regime is the test based on the maximum degree
where is the degree of node in the graph, defined in (20).
The maximal degree test is asymptotically powerful if and
Under condition (1), the maximal degree test is asymptotically powerless if and
Comparing with Propositions 2 and 6, we observe that the maximum degree test is either less powerful than the relaxed scan test (when for any ) or less powerful that the total degree test (when ). For unknown , the maximum degree test is also less powerful than the degree variance test.
2.2 Densest subgraph test
Another possible avenue for designing computationally tractable tests for the problem at hand lies in algorithms for finding dense subgraphs of a given size. We follow (Khuller and Saha, 2009), where the reader will find appropriate references and additional results. Define the density of a subgraph as
Finding that maximizes may be done in polynomial-time.
The densest subgraph test is powerful if .
The condition is stronger than what we have obtained for the relaxed scan test (25) in the sparser case ( for any ) and than what we have obtained for the total degree test (13) and the degree variance test (22) in the less sparse case . If , then the densest subgraph statistic seems to behave like the total degree statistic and we therefore expect similar performances although we have no proof of this statement.
In order to improve the power, we would like to restrict our attention to subgraphs of size (assumed known for now) and use Computing this, however, is NP-hard, and there is no known polynomial-time approximation within a constant factor. Nevertheless, the following variant statistic can be approximated within a constant factor in polynomial-time. However, the power of the resulting test is not improved. Since the statistic may only be approximated within a constant factor, the resulting test is powerful only if where is positive constant that depends on this approximation factor.
Discussion
With this paper, we have established the fundamental statistical (information theoretic) difficulty of detecting a community in a network, modeled as the detection of an unusually dense subgraph within an Erdös-Rényi random graph, in the quasi-normal regime where is not too small as made explicit in (1). The quasi-Poisson regime, where is smaller, requires different arguments and the application of somewhat different tests, and this will be detailed in a separate paper under preparation.
For the time being, in the quasi-normal regime, we learned the following. In the moderately sparse setting — for known and for unknown — this detection boundary is achieved by polynomial-time tests. In the sparser setting, there is a large discrepancy between the information theoretic boundaries and performances of known polynomial tests, which in view of the Planted Clique Problem, is not surprising.
It is of great interest to study this optimal detection boundary, this time under computational constraints, a theme of contemporary importance in statistics, machine learning and computer science. This promisingly rich line of research is well beyond the scope of the present paper.
Proofs
The following is Chernoff’s bound for the binomial distribution. Remember the definition of in (2).
For any positive integer , any , we have
A consequence of Chernoff’s bound is Bernstein’s inequality for the binomial distribution.
For positive integer , any and any , we have
We will need the following basic properties of the entropy function.
For , is convex in . Moreover,
We will also use the following upper bound on the binomial coefficients.
The next result bounds the hypergeometric distribution with the corresponding binomial distribution. Let denotes the hypergeometric distribution counting the number of red balls in draws from an urn containing red balls out of .
is stochastically smaller than .
Suppose the balls are picked one by one without replacement. At each stage, the probability of selecting a red ball is smaller than . The result follows. ∎
2 Proof of Theorem 1
Following standard lines, we start by reducing the composite alternative to a simple alternative by considering the uniform prior on subsets of size . The resulting likelihood ratio is
which is the observed number of cliques of size divided by the expected number under the null.
The risk of any test for the original problem is well-known to be bounded from below by the risk of the likelihood ratio test for this ‘averaged’ problem, which is equal to
Therefore, it suffices to show that . Here we use arguably the simplest method, a second moment argument, which is based on the fact that
where denotes the expectation with respect to . Hence, by Fubini’s theorem, we have
where . Indeed, the event means that all edges between pairs of nodes in exist, and similarly for , and there are a total of such edges.
Before going further, note that (3) and (30) imply that
In particular, this means that , eventually, and therefore
Since , by Lemma 5, is stochastically bounded by , where . Hence, with and Lemma 1, we have
Now, using Lemma 3 and (33), for we get
For fixed, the function is decreasing on and increasing on . Therefore,
By (32), the second term in the maximum tends to . This also the case of the first term, since
with the second difference bounded from below. Hence, . Hence, the sum in (35) is bounded by
3 Proof of Theorem 2
We assume that (1), (7) and (8) hold. We reduce the composite alternative to a simple alternative by considering the uniform prior on subsets of size . The resulting likelihood ratio is
where is the expectation with respect to , and
which is the moment generating function of .
Still leaving implicit, let be short for . It is well-known that is the Fenchel-Legendre transform of ; more specifically, for ,
The second moment argument used in Section 7.2 is also applicable here, though it does not yield sharp bounds. In Case 1 below (see Subsection 7.3.3), which is the regime where the moderate deviations of the binomial come into play, this method leads to a requirement that the limit superior in (8) be bounded by instead of 1. And, worse than that, in Case 3 below, which is the regime where the large deviations of the binomial are involved, it does not provide any useful bound whatsoever.
Fortunately, a finer approach was suggested by Ingster (1997). The refinement is based on bounding the first and second moments of a truncated likelihood ratio. Here we follow Butucea and Ingster (2011). They work with the following truncated likelihood
for some fixed. Notice that (5) and (8) imply that , which by Lemma 3 forces either or ; in any case, is bounded away from 1 this time.
In what follows, we provide the general arguments while the proof of the technical results (Lemmas 6-8) is postponed to the end of the section. To show these technical results, we divide the analysis depending on the behaviour of
In regime (41), the moderate deviations of the binomial distribution dominate and these are asymptotically equivalent to normal (Gaussian) deviations; in particular, it is in this setting (with constant) that Butucea and Ingster (2011) successfully reduce the binary setting to the normal setting. In regime (43), the large deviations of the binomial distribution dominate, which are not alike the normal deviations and lead to a completely different regime. Regime (42) is intermediary and requires special treatment.
First, we need some notations to introduce . Define the numbers
We have , , and .
This construction is possible by the following lemma, which serves as a definition.
For any integer between and , there exists a unique such that
Moreover, satisfies .
3.2 Second truncated moment
and note that . We use the decomposition
and the independence of the random variables on the RHS of (49), to get
The first two equalities are due to the fact that the likelihood integrates to one.
To bound , we follow Butucea and Ingster (2011), with a twist. When , we will use the obvious bound:
When , we use a different bound. For any , we have
where the expectation is with respect to .
Let be an integer sequence such that so slowly that
which is possible because of (7). Recall that and define . We divide the expectation into two parts: and . When , we simply have
When , we use the expression (50) of to derive
When , we use the bound (34) and the identity , to get
For fixed, the function is decreasing on and increasing on . Therefore, for ,
From what we did previously, we know that , so that the first term in the maximum tends to . Therefore, it suffices to look at the second term in the maximum. In fact, has been precisely defined in (45) to make this second term diverge. Indeed, by (45) and (50), we have
By Lemma 6 and since , we get . Consequently,
which goes to uniformly over all between and by the definition (47) of and by the control of from Lemma 8. Hence, the sum above tends to zero.
3.3 Proof of Lemma 6
We only need to prove that and that since
We divide the analysis into three cases depending on the behaviour of .
CASE 1: . Then, Lemma 3 tells us , so that
since by (40). Hence and .
CASE 2: with . Since goes to , this enforces . Using Lemma 3 and (40), we derive that
Hence, . Going back to the definition of , we derive that
CASE 3: Again, we have . By Lemma 3 and (40),
where the last part comes from (1). Hence,
Since (54) also implies that , we have
so that by (1).
3.4 Proof of Lemma 7
which implies . Because is strictly increasing and continuous on , to prove the existence of it suffices to show that
As in the proof of the previous lemma, we consider different cases depending on the convergence of and of . In all cases, except the last one, we show that
for some fixed , which suffices by Lemma 6. If , so that (with defined in (50)). If and , we have . Hence, it is enough the prove that
The last case, Case 3(c) below — which corresponds to and — requires a more delicate treatment.
CASE 1: By the definition of , we have and Lemma 3 tells us that
CASE 2: with Note that this forces . Here (55) implies that , so that by Lemma 3. At the same time, , so that
CASE 3(a): and We have , implying that by Lemma 3. Also, . Hence, .
CASE 3(b): and Here , so that , implying that . Also, . Hence, .
CASE 3(c): . By Definition (44) of , this implies . By definition of , we have , so that . On the other hand, . Therefore,
so that we are done if is bounded away from 0. When , we need to work a little harder and perform a second order analysis. From the definition of , we derive , so that
since . We use this lower bound to get
where we used Lemma 6 in the second inequality. In order to conclude, because of (5), it suffices to show that
The bound (54), coupled with , implies that . This, together with (1), forces . Hence,
so that, because of (5) and (54), we have
3.5 Proof of Lemma 8
Hence, we may lower bound as follows:
where the last inequality follows from Lemma 6 and the fact that .
where . Since is convex and satisfies , we have for . Taking and using (59), we derive that
eventually. As a consequence, is also lower bounded away from . Thus, is bounded away from by a constant that only depends on and . We then derive,
Now, for the entropy , by Lemma 3 we have
as . Since , we get by (59) and (60)
where the third line follows from the fact that the is lower bounded away from and that when . Thus,
CASE 3: . As in the proof of Lemma 7 (Case 2), we have . We start as in the two previous cases, again using Lemma 3 to get the asymptotic expressions of the entropies. By (57), , so that
Turning to the entropy , we have . Using Lemma 7 and Lemma 3, we get
We saw in the proof of Lemma 6 (Case 3) that , so we conclude that
4 Proof of Theorem 3
Under conditions (17), (18) and (19), we have
As in the proof of Theorem 2, for large enough, we may assume that there exists such that
We consider the likelihood ratio under the uniform prior:
All these expectations only depend on and through .
The term already appeared in the proof of Theorem 2, where we saw that for , and that for where is defined in (45), while and are defined in (50) and (51), respectively.
Since the expectations inside and are not thresholded, we easily compute these terms:
Since , we derive
By Lemma 10, and by (63), . Hence, there exists such that and . Define and . We can take small enough to constrain .
Under the entropy condition (64), the bounds (70) and (71) hold.
In fact the main difference between the proof of Theorem 2 and the current proof lies in the control of the two expectations in (68) and (69). Here, we need to carefully upper bound in order to balance . Using the identity , the property for — easily verified from the definition (67) — and , we get
for . In the sequel, we note
so that . Thus, we get for any ,
since by Lemma 10.
Using this upper bound (72), we consider the expectation in (68)
since and by definition of . We have proved (68).
To prove (69), we apply the Cauchy-Schwarz inequality and we upper bound by ,
since by definition of . All in all, we have proved (69).
The second convergence is a straightforward consequence of the definition of , (18) and (19), so that we focus on the first result. Let us compute the difference between the two entropies and .
Arguing as in the proof of Lemma 10, we note that, under conditions (17) and (64),
so that , since .
4.2 Proof of Lemma 10
CASE 1: . By condition (64),
CASE 2: . Similarly,
CASE 3: . We have
By condition (64) and . Dividing this inequality by and then taking the logarithm leads to by (17). It follows that and . All in all, we conclude that
4.3 Proof of Lemma 11
Let us first consider (71). Using the upper bound , we only have to prove that
We have shown in the proof of Theorem 2 (only using the entropy condition) that
tends to zero since all the terms simultaneously go to for . Consequently,
Let us turn to (70) following again the same arguments as in the proof of Theorem 2.
Hence, as in the previous proof, we only need to prove that
goes to . By definition of , we have , while we showed in the previous proof that . With this, we conclude.
5 Proof of Proposition 2
We start with a useful result for proving that a test is asymptotically powerful based on the first two moments of the corresponding test statistic.
Suppose that for testing versus , a statistic satisfies
Then there is a test based on that is asymptotically powerful.
For the probability of type II error, we have
We now apply Lemma 12 to the total degree test. From (12), under the null,
Recalling the definition of in (73), under (13) we have
Therefore, the total degree test is powerful when (13) holds.
6 Proof of Proposition 3
We use the union bound, Chernoff’s bound (28) and (30) to get
Choose with fixed, sufficiently small that
This is possible because of how varies, which is described in Lemma 3. We then consider the test that rejects when . We just chose so that its level tends to zero. Under the alternative, let denote the community. By definition, , and since and , . Therefore, the test is powerful when . Since and is constant, this is the same as . Now, if is bounded away from 1, this is true because and ; while if , we use Lemma 3 and (15) to get that , implying that .
7 Proof of Proposition 4
The arguments are based on cumbersome, but pedestrian moment calculations.
Under the null. We first show that remains bounded under the null. Rewrite as
since . Therefore, by Chebyshev’s inequality, . Under the null, , and because , we have with probability tending to 1 as . We conclude that, under the null, .
so that, using the fact that , we get
We already argued that the first one holds, while the second and third are easily seen to be implied by the first condition and the fact that .
8 Proof of Proposition 5
First note that is concentrated around its mean. Indeed, we have
Since , we have . If , then impies that . All in all, we get and . As in the previous proofs, we can assume that . In the three following case, we prove that
CASE 1: . In that case, we have and since
Hence, and we conclude that
CASE 2: . Hence, and . It follows that
CASE 3: . Since , we derive
It remains to prove that when . Assume that so that there exists a subsequence satisfying
It follows that and , which contradicts the assumption of the proposition.
9 Proof of Proposition 6
We prove the result when is known. The situation when is unknown can be dealt with in a similar way; see, for example, the proof of Proposition 5. Let . We first lower bound from below under the alternative where is the anomalous subset of indices. We have
and, after some tedious but straightforward calculations,
By Chebyshev’s inequality, under the alternative, .
Under the null, we bound from above as Berthet and Rigollet (2012) do. Specifically, they use a result of Bach et al. (2010), which says that
Fix . Using Bernstein’s inequality (Lemma 2) and the union bound, we find that the following inequalities happen simultaneously with probability tending to one under the null:
Hence, choosing , we have
with high probability under the null. In order to conclude, we need to prove that with probability going to one.
Before proceeding, we note that (25) implies that, for some ,
and (1) implies that either , or , for some sequence . In particular, this implies
so that . It also follows that .
We have , with
since with . Assuming that , it remains to show that to prove that with probability going to one in the asymptote.
We have , and
10 Proof of Proposition 7
Fix arbitrarily small. Applying Berntein’s inequality (Lemma 2) and using and , we derive that
with probability going to one since we assume that .
Let us consider a consider a subset of size with some . As the are not independent, it is not straightforward to directly lower bound their supremum. This is why we compare it to independent variables. Let us call the the smallest in that achieves
where we have summed the first inequality for . Applying this lower bound to and using Lemma 3, we derive that
Since the random variables for are independent, it follows that
with probability going to one. All in all, we derive that with probability going to one
where the last term is negligible in front of the second term. Comparing this last lower bound with (77) and taking and small enough allows us to conclude.
11 Proof of Proposition 8
with probability larger than . Comparing with , we get
Let us now assume that . For any subset , is the sum of two independent binomial distributions of parameters and . Applying, as previously, Bernstein’s inequality for all subsets of size larger than , we derive that
with probability going to one. Comparing with we get
Since we assume that , this quantity is away from one except if .
Acknowledgements
We would like to thank Jacques Verstraete for helpful discussions on the clique number of a random graph. We first learned about the work of Butucea and Ingster (2011) at the New Trends in Mathematical Statistics conference held at the Centre International de Rencontres Mathématiques (CIRM), Luminy, France, in 2011. The research of E. Arias-Castro is partially supported by a grant from the Office of Naval Research (N00014-13-1-0257). The research of N. Verzelen is partly supported by the french Agence Nationale de la Recherche (ANR 2011 BS01 010 01 projet Calibration).