Degree sequences of random digraphs and bipartite graphs
Brendan D. McKay, Fiona Skerman
Introduction
We will study the joint distributions of the vertex degrees for three different models of random bipartite graphs. In each case, we construct simpler probability spaces which match these distributions to high precision. The new probability spaces are based on independent binomial distributions and allow asymptotic calculations of any random variable which is a function of the degrees and has maximum at most polynomially greater than its expectation. In Section 2.1 we will show an example of such a calculation. Note that our results are much stronger than contiguity or decreasing total variation distance. These results are similar to those obtained by McKay and Wormald for the case of ordinary (not necessarily bipartite) graphs.
We prefer to use graph terminology, but will also describe the problem in the matrix and other settings. Consider a probability space of matrices over . Three probability spaces will be considered. In the first case, which we call , some number is specified and each entry of the matrix is independently equal to 1 with probability and equal to 0 otherwise. In the second case, which we call , some integer is specified, and all binary matrices with exactly ones have the same probability, and no other matrices are allowed. In the third case, which we call , a list of integers is specified, and all binary matrices with column sums , respectively, are equally likely and no others are allowed.
We can interpret the matrix as a bipartite graph in the standard fashion. Associate distinct vertices with the rows, and with the columns, and place an edge between and exactly when the matrix entry in position equals 1. The row and column sums of the matrix correspond to the degrees of the vertices.
These probability models have also appeared in other settings. Given bins, at each stage throw balls into distinct bins with all possible placings equally likely. Then the distribution of the number of balls in each bin can be studied. This model is referred to as allocation by complexes and is precisely our model. If we allow the number of balls thrown to be a random variable , binomially distributed with parameters , we attain the model.
Similarly, in the coupon collection problem a customer repeatedly buys a random number, , of distinct coupons from a set of possible different coupons. This covers both our case when is binomially distributed with parameters and our case where with probability 1. (Here, our vector s describes the number of each coupon collected and t the number of coupons collected at each stage.)
Finally, consider a hypergraph on vertices. At each stage , choose at random a hyperedge of size , allowing multi-edges. Then if we set to be the number of hyperedges which contain the th vertex, we obtain the model.
If , we can also associate the matrix with a directed graph. There are vertices . A matrix entry equal to 1 in position corresponds to a directed edge from to . The case is permitted, so these directed graphs can have loops. The row and column sums of the matrix correspond to the out-degrees and in-degrees, respectively, of the directed graph. We will also treat the case of loop-free digraphs, which correspond to square matrices with zero diagonal. Our methods would also work if some other limited set of matrix entries are required to be zero, but we have not applied them in that case.
We now continue using the bipartite graph formulation. For each of the three probability spaces of random bipartite graphs, we seek to examine the -dimensional joint distribution of the vertex degrees. If is a bipartite graph on (respecting the partition into and ), then is the list of degrees of , and is the list of degrees of . We call the pair the degree sequence of .
Define and . Also let be the number of (labelled) bipartite graphs on with degree sequence . In the case of , we also define to be the number of loop-free digraphs with in-degrees s and out-degrees t.
For precision we need to distinguish between random variables (written in uppercase) and the values they may take (written in lowercase). For each probability space of random graphs, as determined by the context, will denote the random variable given by the degrees in and will denote the random variable given by the the degrees in . We will take S to have range and T to have range . Also define random variables
As usual, is an abbreviation for .
The model has received wide ranging attention, in particular the distribution of the number of isolated vertices. This is also a natural question in the alternative (non-graph) wordings of the model. It corresponds to the number of empty bins in the allocation model , the number of uncollected coupons in the collector’s problem , the number of isolated vertices in the hypergraph model and the number of zero rows in the binary matrix model . More generally, the number of vertices with a particular degree (or range of degrees) in has been studied in allocation , graph and matrix models . A different extension on this theme is to study the distribution of the number of draws required to go from to non-empty bins . In a similar direction, Khakimullin and Enatskaya studied the distribution of the number of draws to exceed a particular lineup in the bins in the model and in the i.i.d. case which includes the model as well . The monograph by Kolchin gives many results on phrased as the balls and bins model .
We are interested in asymptotic results as we take roughly equal as they tend to infinity, but another natural option is to fix , the number of vertices in one part, and let , the number of vertices in the other part, tend to infinity. There seems to be a consistent divide in the literature that when considered as a graph the asymptotics of are studied with both tending towards infinity while the balls and bins and coupon collection articles (including those cited above) fix and take tending toward infinity. The latter corresponds to fixing the number of bins and taking the number of balls to infinity or having a fixed number of coupons and letting the number of sampling rounds tend to infinity.
In the other two probability models on bipartite graphs, and , two types of results are known: those on the minimum and maximum degrees and those on the number of vertices with a given degree . For results in the digraph counterpart see (and below). The model also appears in papers on ball and bin models. Sometimes the numbers of balls thrown at each stage are allowed to be i.i.d. random variables . If we then set these random variables to be binomially distributed with parameters we recover the model. Godbole et. al. study the number of sets of mutually threatening rooks. This corresponds to the number of vertices with weighted by in our and models.
Palka and Sperling showed that if we fix such that , then any fixed number of the smallest and largest degrees are unique in and in the uniform model . A similar result for the model is shown by Palka in , where and . There is also some work on the degrees in random digraphs by Jaworski and Karoński who showed, in the case that and , that the minimum vertex degree in is almost surely the same as that in .
2 Asymptotic notation
As we are dealing with asymptotics of functions of many variables, we must be careful to define our asymptotic notation.
3 Graph models
We now define a sequence of finite probability spaces that we call “models”, with sample space either or . The probability measure for each model will be defined using random variables or S, respectively, whose distribution equals the respective probability measure. In general our notation will not distinguish between each probability space and its probability measure.
We first consider six models whose probability measures are derived from the degrees of a random bipartite graph or digraph .
(-models , for ) Generate by choosing each of the possible edges with probability , such choices being independent. The probability distribution on is that of the degree sequence of . If and the edges are forbidden, we obtain the probability distribution instead, corresponding to the degree sequences of a loop-free digraph where each possible directed edge is chosen independently with probability . Note that for many pairs . We have
where and .
(-models , for integer ) Generate by choosing each of the bipartite graphs on having edges, with equal probability. The probability distribution on is that of the degree sequence of . If and the edges are forbidden, we obtain the distribution of the degree-sequences for the uniform probability space of all loop-free digraphs with edges. We have
(t-models , for ) Generate by choosing each of the bipartite graphs on having , with equal probability. For consistency we can define the random variable T to have the value t, but since this is constant we will define our probability spaces using S only. The probability distribution on is that of the degree sequence S of in . If and the edges are forbidden, we obtain the distribution of the in-degrees for the uniform probability distribution of all loop-free digraphs with fixed out-degrees t. For a given , we have
The probability spaces , and are clearly related, by mixing and conditioning. In particular, for any event or , the following hold. Note that the first relationships on lines (2) and (3) are independent of and assume .
with similar relations between , and .
Note that the separate distributions of S and T in and are elementary. In , the components of S have independent binomial distributions, while in the model S has a multivariate hypergeometric distribution. The difficulty is in quantifying the dependence between S and T when all components are considered together.
4 Binomial models
Our aim is to compare the degree sequence distributions defined above to some distributions derived from independent binomials. Our motivating observation is the known marginal distributions of S and T in the models and .
(Independent models , for ) Generate components distributed and components distributed , all components being independent. The joint distribution on is . If instead we have and the components are all distributed , the joint distribution on is . We have
(Binomial -models , for ) The distribution on is the conditional distribution of subject to . For , the distribution on is obtained from by the same conditioning. We have
and similarly for .
(Binomial -models , for integer ) The distribution on is the conditional distribution of subject to . For , is derived from in the same way. In both cases, the distribution doesn’t depend on . We have
In each case S and T have independent multivariate hypergeometric distributions.
(Binomial t-models , for ) The distribution on is the distribution of S when has distribution for . For , is derived from in the same way. For a given , we have
In each case, S has a multivariate hypergeometric distribution.
(Integrated -models , for ) The distribution on is a mixture of distributions, while for the distribution on is a mixture of distributions. Let
Our main theorems will show that, under certain conditions, is very close to , to , and to . Similar relationships hold for the digraph models.
5 The main theorems
Note that (4) implies x(1-x)=\Omega\bigl{(}(\log n)^{-1}\bigr{)}.
For , a vector will be called -regular if
uniformly for . We say that is -regular if and are both -regular.
Finally, define . If , the common value of and will be denoted by . Note that is the value in $({\textit{{s}}},{\textit{{t}}})K_{m,n}\lambda\in[0,1-1/n]$.
We now state the theorems that are the main contribution of this paper. Their proofs will be given in Section 4, after some preliminary lemmas are proved in Section 3.
Let constants satisfy . Then there is a constant such that the following holds. Let and be probability spaces on in one of the following cases.
is -acceptable and ,
, is -acceptable and ,
is -acceptable and ,
, is -acceptable and ,
Let be an event. Then, under the conditions of Theorem 1,
In particular, and are contiguous; i.e., if and only if , and similarly for and .
Let constants satisfy . Then there is a constant such that the following holds whenever is -acceptable and t is -regular. Let and be probability spaces on in one of the following cases.
,
and .
A weak corollary of these theorems is that each of the distribution pairs , , , , and have total variation distance under the stated conditions.
The proofs of the theorems will be presented in Sections 3 and 4. Meanwhile, we will give an example that illustrates how the theorems can be applied.
Some useful lemmas and an example
We first record a few elementary properties.
If and , then
uniformly over .
In , both and have the distribution . Therefore
For the last step we use that the central part of the sum is approximately normal and sum it with the Euler-Maclaurin formula, while the two tails of the sum are negligible in comparison. The first claim now follows from the formulas for and . The second claim is proved in the same manner. ∎
is a normal density with mean and variance , so we just need to apply standard normal tail bounds to the definition of . ∎
The next lemma demonstrates how statistics of variables in can be converted into statistics in . Note that can be the indicator variable of an event, so the lemma applies to probabilities as well.
Let be a random variable on . Then
We now provide an example of how Theorem 1(b) can be applied to random digraphs. Since this is only an illustration, we will not attempt to treat all values of the parameters or to obtain the best possible error terms.
Let be a random loop-free digraph on vertices and edge probability . For convenience we will assume that is even, though treatment of the odd case would be much the same. As usual, are the out-degrees of the vertices, and are the in-degrees. Let be random variables which count the vertices with out-degree at most , and the vertices with in-degree at most , respectively. It is easy to see that each of and has a distribution exactly , but that and are not independent. Our aim will be to find their asymptotic joint distribution.
We will first calculate some properties of binomial distributions truncated at the centre. Application of model requires us to consider probabilities close to .
The following hold when is sufficiently small. Let be even and let where . For define
and . Then
Now define two random variables, by truncating to , and by truncating to . Then
Define . From we have for that
Suppose is even and are integers with for sufficiently small . Then
Theorem 1(b) tells us to calculate the probability in , for which we need the probability in when . For integers , define events
Recall that is conditioned on event so, applying Bayes’ rule twice,
We have already computed in (5); for it is
Now consider . Under this conditioning, symmetry implies that has the same distribution as the sum of copies of and copies of , all of these being independent. A similar fact holds for , which is in addition independent of since we are operating in . Also recall that the binomial distribution and therefore its truncations and their convolutions are log-concave, so we know from that , in conditioned on , satisfies a local central-limit theorem. Using Lemma 7, we calculate
Finally, consider . Since the events are independent in , and are independent Binomial variables . Using (6) and the normal approximation for the binomial distribution, we have
Applying this to (9) together with (10) and (11), we find that
Now we apply Lemma 6 to pass the result to . Multiplying by and integrating, we obtain the formula in the theorem, which holds for on account of Theorem 1(b). ∎
A corollary of the theorem is that and have asymptotically independent normal distributions, apart from necessarily having the same parity.
Under the conditions of the theorem, let be integers of the same parity such that . Then
More complex information could also be obtained, such as the distributions of all the order statistics of the degrees, but the calculations would be considerably more intricate. See for similar calculations for ordinary graphs.
Properties of likely degree sequences
Another consequence of Theorem 10 is the following.
We start by reminding the reader of a classical algorithm called “reservoir sampling”, attributed by Knuth to Alan G. Waterman [24, p. 144]. Let be independent random variables, where has the discrete uniform distribution on . Now suppose . Execute the following algorithm:
Define to be the value of when the algorithm finishes. The raison d’être of the algorithm, which is easy to check, is that has distribution ; i.e., it is uniform. It is also easy to check that the maximum change to resulting from a change in a single is that one element is replaced by another.
Therefore, we can apply Theorem 10 if we consider as a function of all the independent variables . If , we can represent by its complement; this justifies the term in the theorem statement. ∎
We next apply these concentration inequalities to show that certain events are very likely in our probability spaces.
The following are true for sufficiently small .
Suppose that and are -acceptable. Then
for being any of , , , , , or . The same is true for when is any of , , , , , or .
If is -regular, and is -acceptable, then
for being or . The same is true for when is either of or .
By symmetry, we need only show that S is almost always -regular.
In the case that is or , each has the binomial distribution , and has the distribution . Therefore, by Corollary 11,
The cases that is , , or follow, since these are the same as slices of or of size , using . Also, the distribution of S in is the same as in for , so that case follows too.
For , note that each is the sum of independent variables , where is a Bernoulli random variable with mean . The theorem thus follows using the same argument as we used for .
Finally consider . Taking to be the indicator of the event that S is not -regular, Lemmas 5–6 give
For the digraph models, the proofs are essentially the same. ∎
The following concentration results will form a key part of the proof of Theorem 1.
The following are true for sufficiently small .
Suppose that and are -acceptable. Then
when is or . When , the same bounds hold when is or .
If is -regular, and is -acceptable, then (13) holds when is , and when and is .
If , and are -acceptable, then
when is or .
If , is -acceptable and is -regular, then (15) holds when and is .
Write . For and , let be the indicator for an edge from to . Define . Then we have
Now define . If S is -regular and is changed by 1 for some , which changes by , then changes by for and by for . Consequently, changes by . Applying Theorem 10, we find that
for . It also holds for , using Theorem 12 in the same way.
We also have that is fixed at the value in and that
by (12). From these bounds, inequality (13) follows for and , and (14) follows for by symmetry. By choosing and noting that is a slice of size of , the theorem is proved for too.
We now prove part (d); take , with t being -regular and being -acceptable. We have
In the notation of Theorem 12 set and for each . Then in the probability space X, is the set of indices of vertices incident with in . Note and two sets being minimally different in the -th component corresponds to two graphs in which one of the edges incident with vertex is incident with different vertices in . This means, as t is -regular, for each and we can apply Theorem 12 to conclude that (d) holds.
Proofs of the main theorems
In this section we will give the proofs of the theorems and corollary stated in Section 1.5. The bases for our analysis are the following enumerative results of Canfield, Greenhill and McKay . Also see Barvinok and Hartigan for an overlapping result.
Let be constants such that . Then there is a constant such that the following is true for any fixed with . If is -regular, then
for , where the last step follows by Stirling’s formula and, as always, we are assuming that is sufficiently small.
We wish to show that (18) closely matches the probability in . Define . By the definition of , we have
We will divide the integral into three parts. Define . By Lemma 4 and (17), for and , we have
which matches (18) when the value of given by Lemma 4 is substituted. This completes the proof of the first claim of Theorem 1(a). The next two claims follow on summing the first claim over all . For the variance, we can apply the formula for the expectation to argue
For the third line we have used the obvious fact that the minimum in the first line occurs somewhere in the interval .
which matches up to the error term. Similarly for Theorem 1(d).
Theorem 3 follows from a similar argument, on noting that the -regularity of t implies
Finally, we prove Corollary 2 for , which is representative of the four cases. In view of Theorem 1, it will suffice to prove that
if . Define
Now note that, by (20), for and we have
Since , we have proved that
which gives (21) when the value of is substituted. To prove the statement for the case , redefine and by replacing each instance of with . and then proceed in the same fashion (although in this case because of the direction of the inequality it is enough to note that the tails of the integral in (22) are positive; we do not need to show an upper bound as in the above proof for ).
Concluding remarks
A theorem similar to Theorem 15 holds also in the sparse domain. This was shown by Greenhill, McKay and Wang in the case that (\max_{i}s_{i})(\max_{j}t_{j})=o\bigl{(}(\sum_{i}s_{i})^{2/3}\bigr{)} . That theorem can be used to develop a parallel theory of degree sequences in that domain, though some of the methods used in this paper must be replaced. However the lack of a precise enumeration in the gap between the sparse domain and the dense domain of Theorem 15 currently thwarts a theory which spans both the sparse and dense domains.