Asymptotic estimates for the number of contingency tables, integer flows, and volumes of transportation polytopes

Alexander Barvinok

Introduction and main results

Let m>1m>1 and n>1n>1 be integers and let R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right) and C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right) be positive integer vectors such that

We are interested in the number #(R,C)\#(R,C) of m×nm\times n non-negative integer matrices, also known as contingency tables, with row sums RR and column sums CC, called margins. Computing or estimating numbers #(R,C)\#(R,C) has attracted a lot of attention, because of the relevance of these numbers in statistics, see [Goo76], [DE85], combinatorics, representation theory, and elsewhere, see [DG85], [DG04]. Of interest are asymptotic formulas, see [BBK72], [Ben74] and most recent [CM07a], [GM07], algorithms with rigorous estimates of the performance guarantees, see [DKM97], [Mor02], [CD03], [BLV04], and heuristic approaches which may lack formal justification but tend to work well in practice [Goo76], [DE85], [C+05].

Let R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right) and C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right) be positive integer vectors such that r1+…+rm=c1+…+cn=Nr_{1}+\ldots+r_{m}=c_{1}+\ldots+c_{n}=N. Let us define a function

on the open cube 0<xi,yj<10<x_{i},y_{j}<1 and for the number #(R,C)\#(R,C) of non-negative integer m×nm\times n matrices with row sums RR and column sums CC we have

where γ>0\gamma>0 is an absolute constant.

More precisely, the lower bound we prove is

provided m+n≥10m+n\geq 10. Recall that from Stirling’s formula

and hence the product in front of ρ(R,C)\rho(R,C) indeed exceeds N−γ(m+n)N^{-\gamma(m+n)} for some absolute constant γ>0\gamma>0.

We note that the substitution xi=e−tix_{i}=e^{-t_{i}} and yj=e−sjy_{j}=e^{-s_{j}} transforms the problem of computing ρ\rho into the problem of minimizing the convex function

on the positive orthant si,tj>0s_{i},t_{j}>0, so that methods of convex optimization can be applied to compute ρ\rho in time polynomial in m+nm+n and ln⁡N\ln N, see [NN94].

Theorem 1.1 estimates the number #(R,C)\#(R,C) of contingency tables within an NO(m+n)N^{O(m+n)} factor. This estimate provides, asymptotically, the main term of log⁡#(R,C)\log\#(R,C) for all but very sparse cases, where margins rir_{i} and cjc_{j} are small compared to the sizes mm and nn of the matrix. For example, if the margins rir_{i} and cjc_{j} are at least linear in mm and nn then #(R,C)\#(R,C) is at least as big as γmn\gamma^{mn} for some constant γ>1\gamma>1. By now, the sparse case of small rir_{i} and cjc_{j} is well understood, thanks especially to the recent paper [GM07]. The case of moderate to high margins seems to be the most difficult. To the author’s knowledge, the estimate of Theorem 1.1 is the only rigorously proven effective estimate of #(R,C)\#(R,C) for generic RR and CC (if all rir_{i}’s are equal and all cjc_{j}’s are equal, recent paper [CM07a] provides a precise asymptotic formula for the number of tables). Theorem 1.1 allows us to find faults with the very intuitive “independence heuristic” for counting contingency tables and points out at some strange “attraction” phenomena in the space of matrices. Quite counter-intuitively, we conclude that in the uniform probability space of the m×nm\times n non-negative integer matrices with the total sum of entries equal to NN, the event consisting of the matrices with row sums RR and the event consisting of the matrices with column sums CC attract exponentially in mnmn provided the vectors RR and CC are sufficiently far from constant vectors, see Section 2 for the precise statements and details.

Let R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right) and C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right) be positive integer vectors such that r1+…+rm=c1+…+cn=Nr_{1}+\ldots+r_{m}=c_{1}+\ldots+c_{n}=N and let \CalP=\CalP(R,C)\Cal{P}=\Cal{P}(R,C) be the polytope of non-negative m×nm\times n matrices with row sums r1,…,rmr_{1},\ldots,r_{m} and column sums c1,…,cnc_{1},\ldots,c_{n}.

be the maximum value of the product of entries of a matrix from \CalP\Cal{P}. Then for the volume of \CalP\Cal{P} we have

where γ>0\gamma>0 is an absolute constant.

follow. When the margins are scaled, (R,C)⟼(tR,tC)(R,C)\longmapsto(tR,tC) for t>0t>0, the volume of \CalP\Cal{P} and both the upper and the lower bounds get multiplied by tdim⁡\CalPt^{\dim\Cal{P}}.

Computing β\beta reduces to finding the maximum of the concave function

on the transportation polytope \CalP\Cal{P} and hence can be done efficiently (in time polynomial in m+nm+n and ln⁡N\ln N) by existing methods [NN94].

Computing or estimating volumes of transportation polytopes has attracted considerable attention as a testing ground for methods of convex geometry [Sch92], combinatorics [Pak00], analysis and algebra [BLV04], [BP03], [DLY03]. In a recent breakthrough [CM07b], Canfield and McKay obtained a precise asymptotic expression for the volume of the Birkhoff polytope (when ri=cj=1r_{i}=c_{j}=1 for all ii and jj) and in the more general case of all the row sums being equal and all the column sums being equal. If R=C=(1,…,1)R=C=\left(1,\ldots,1\right), the formula of [CM07b] gives

whereas the formula of Theorem 1.2 implies that, ignoring lower-order terms, we have

in that case (since by symmetry the maximum β\beta of the product of coordinates xijx_{ij} is attained at xij=1/nx_{ij}=1/n). Theorem 1.2 seems to be the only rigorously proven estimate of the volume of the transportation polytope available for general margins.

We note that from the purely algorithmic perspective, volumes of polytopes and convex bodies can be computed in randomized polynomial time, see [Bol97] for a survey.

Theorem 1.1 can be extended to counting with weights.

Let us fix a non-negative matrix W=(wij)W=\left(w_{ij}\right), which we call the matrix of weights. We consider the following expression

We prove the following extension of Theorem 1.1.

Let R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right) and C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right) be positive integer vectors such that r1+…+rm=c1+…+cn=Nr_{1}+\ldots+r_{m}=c_{1}+\ldots+c_{n}=N and let W=(wij)W=\left(w_{ij}\right) be an m×nm\times n non-negative matrix of weights. Let us define a function

Then, for the number T(R,C;W)T(R,C;W) of weighted non-negative integer matrices with row sums r1,…,rmr_{1},\ldots,r_{m} and column sums c1,…,cnc_{1},\ldots,c_{n}, we have

where γ>0\gamma>0 is an absolute constant.

More precisely, the lower bound we prove is

As in Theorem 1.1, substituting xi=e−tix_{i}=e^{-t_{i}} for i=1,…,mi=1,\ldots,m and yj=e−sjy_{j}=e^{-s_{j}} for j=1,…,nj=1,\ldots,n we reduce the problem of computing ρ\rho to the problem of finding the infimum of the convex function

Again, the value of ρ\rho can be computed efficiently, both in theory and in practice, by methods of convex optimization, cf. [NN94].

For positive matrices W=(wij)W=\left(w_{ij}\right) the infimum ρ(R,C;W)\rho(R,C;W) in Theorem 1.3 is attained at a particular point and there is a convenient dual description of ρ(R,C;W)\rho(R,C;W).

Let \CalP=\CalP(R,C)\Cal{P}=\Cal{P}(R,C) be the transportation polytope of the m×nm\times n non-negative matrices X=(xij)X=\left(x_{ij}\right) with row sums RR and column sums CC and let us fix an m×nm\times n positive matrix W=(wij)W=\left(w_{ij}\right) of weights, so wij>0w_{ij}>0 for all i,ji,j. For an m×nm\times n non-negative matrix X=(xij)X=\left(x_{ij}\right) let us define

Then g(X;W)g(X;W) is a strictly concave function of XX and attains its maximum on \CalP\Cal{P} at a unique positive matrix Z=Z(R,C;W)Z=Z(R,C;W). One can write Z=(zij)Z=\left(z_{ij}\right) in the form

In particular, if wij=1w_{ij}=1 for all i,ji,j, then

In Section 2, we consider consequences of Theorems 1.1 and 1.2 for the “independence heuristic”. The heuristic was, apparently, first discussed by Good, see [Goo76]. It asserts that if we consider the space of non-negative integer m×nm\times n matrices with the total sum NN of entries as a probability space with the uniform measure then the event consisting of the matrices with the row sums r1,…,rmr_{1},\ldots,r_{m} is “almost independent” from the event consisting of the matrices with the column sums c1,…,cnc_{1},\ldots,c_{n}. We show that if the row sums rir_{i} and the column sums cjc_{j} are sufficiently generic then the independence heuristic tends to underestimate the number of tables as badly as within a factor of γmn\gamma^{mn} for some absolute constant γ>1\gamma>1. We see that in fact (rather counter-intuitively), instead of independence, we have attraction (positive correlation) of the events.

In Section 3, we state a general result (Theorem 3.1), which provides a reasonably accurate estimate for the volume of the section of the standard simplex by a subspace of a small codimension. Theorem 3.1 states that in a sufficiently generic situation the volume of the section is determined by the maximum value of the product of the coordinates of a point in the section. This estimate immediately implies Theorem 1.2 and is one of the two crucial ingredients in the proofs of Theorems 1.1 and 1.3. Theorem 3.1 appears to be new and may be interesting in its own right.

In Section 4, we state some preliminaries from convex geometry needed to prove Theorem 3.1.

In Section 5, we prove Theorems 3.1 and 1.2.

In Section 6, we describe the second main ingredient for the proofs of Theorems 1.1 and 1.3, the integral representation from [Ba07] and [Ba08] for the number #(R,C)\#(R,C) of tables and the number T(R,C;W)T(R,C;W) of weighted tables.

In Section 7, we prove Theorems 1.1 and 1.3 and Lemma 1.4.

In what follows, we use γ\gamma to denote a positive constant.

The independence heuristic and the exponential attraction in the space of matrices

The following heuristic approach to counting contingency tables was suggested by Good [Goo76]. Let us consider the space of all m×nm\times n non-negative integer matrices with the total sum of entries NN as a probability space with the uniform measure. Then the probability that a matrix from this space has row sums R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right) is exactly

Similarly, the probability that a matrix has column sums C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right) is exactly

Assuming that the two events are almost independent, one estimates the number #(R,C)\#(R,C) of contingency tables by the independence heuristic I(R,C)I(R,C):

For example, if m=n=4m=n=4, R=(220,215,93,64)R=(220,215,93,64), C=(108,286,71,127)C=(108,286,71,127) with N=592N=592 then

Given margins R=(r1,…,rn)R=\left(r_{1},\ldots,r_{n}\right) and C=(c1,…,cm)C=\left(c_{1},\ldots,c_{m}\right) such that not all row sums rir_{i} are equal and not all column sums cjc_{j} are equal, we will construct a sequence of margins (Rk,Ck)(R_{k},C_{k}), where RkR_{k} is a kmkm-vector and CkC_{k} is a knkn-vector such that the ratio #(Rk,Ck)/I(Rk,Ck)\#(R_{k},C_{k})/I(R_{k},C_{k}) grows as γk2\gamma^{k^{2}} for some γ=γ(R,C)>1\gamma=\gamma(R,C)>1.

(2.2) Cloning margins

Let us choose some margins R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right) and C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right) such that r1+…+rm=c1+…+cn=Nr_{1}+\ldots+r_{m}=c_{1}+\ldots+c_{n}=N. For a positive integer kk, let us consider the new “clone” margins

In other words, we obtain margins (Rk,Ck)(R_{k},C_{k}) if we choose an arbitrary matrix XX with row sums RR and column sums CC, consider the km×knkm\times kn block matrix YkY_{k} consisting of k2k^{2} blocks XX and let RkR_{k} be the row sums of YkY_{k} and let CkC_{k} be the column sums of YkY_{k}. Hence we consider km×knkm\times kn matrices with the total sum of the matrix entries equal to k2Nk^{2}N.

Let us introduce the multivariate entropy function

where p1,…,pdp_{1},\ldots,p_{d} are non-negative numbers such that p1+…+pd=1p_{1}+\ldots+p_{d}=1. Using the standard asymptotic estimate for binomial coefficients (available, for example, via Stirling’s formula)

(2.3) The exponential attraction in the space of matrices

Let us choose margins R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right) and C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right) such that not all row sums rir_{i} are equal and not all column sums cjc_{j} are equal. Our goal is to show that

so the ratio #(Rk,Ck)/I(Rk,Ck)\#(R_{k},C_{k})/I(R_{k},C_{k}) grows as γk2\gamma^{k^{2}} for some γ=γ(R,C)>1\gamma=\gamma(R,C)>1, as we clone margins (R,C)⟼(Rk,Ck)(R,C)\longmapsto(R_{k},C_{k}).

where Y=(yij)Y=\left(y_{ij}\right) is the independence matrix with yij=ricj/Ny_{ij}=r_{i}c_{j}/N for all i,ji,j and

On the other hand, it is easy to check that

Let us consider the m×nm\times n matrix with the (i,j)(i,j)-th entry equal to

(ricj+N)/(N2+Nmn)(r_{i}c_{j}+N)/(N^{2}+Nmn). The ii-th row sum of the matrix is (ri+n)/(N+mn)(r_{i}+n)/(N+mn), the jj-th column sum is (cj+m)/(N+mn)(c_{j}+m)/(N+mn) while the sum of all the entries of the matrix is 1. Using the inequality relating the entropies of two partitions of a probability space with the entropy of the intersection of the partition (see, for example, [Khi57]), we conclude that

Identities (2.3.5) are equivalent to (N−rim)(N−cjn)=0(N-r_{i}m)(N-c_{j}n)=0, which, in turn, equivalent to all row sums being equal ri=N/mr_{i}=N/m or all column sums being equal cj=N/nc_{j}=N/n.

Summarizing (2.2.1), (2.2.2), (2.3.2), and (2.3.3) we conclude that inequality (2.3.1) indeed holds if not all row sums rir_{i} are equal and not all column sums cjc_{j} are equal. Therefore, in the space of km×knkm\times kn matrices with the sum k2Nk^{2}N of all entries the two events

instead of being asymptotically independent, attract exponentially in k2k^{2}, that is,

for some γ=γ(R,C)>1\gamma=\gamma(R,C)>1 and all sufficiently large kk.

Starting with non-constant margins (R,C)(R,C) the cloning procedure (R,C)⟼(Rk,Ck)(R,C)\longmapsto(R_{k},C_{k}) produces margins which stay away from from constant and maintain the density N/mnN/mn separated from 0. Similar analysis shows that the phenomenon of attraction of the events \CalRk\Cal{R}_{k} and \CalCk\Cal{C}_{k} defined by (2.3.6) holds for more general sequences of margins (Rk,Ck)(R_{k},C_{k}) of growing dimensions which stay sufficiently away from uniform and sparse.

Two terms contribute to the difference ln⁡#(R,C)−ln⁡I(R,C)\ln\#(R,C)-\ln I(R,C):

first, the difference g(Z)−g(Y)g(Z)-g(Y), where ZZ is the matrix of Lemma 1.4 at which the maximum of the function g(X)=∑ij(xij+1)ln⁡(xij+1)−xijln⁡xijg(X)=\sum_{ij}(x_{ij}+1)\ln(x_{ij}+1)-x_{ij}\ln x_{ij} on the transportation polytope \CalP(R,C)\Cal{P}(R,C) is attained and Y=(yij)Y=\left(y_{ij}\right) is the independence matrix yij=ricj/Ny_{ij}=r_{i}c_{j}/N, cf. (2.3.2);

and second, the difference (multiplied by (N+mn)(N+mn)) between the entropies on the right hand side of (2.3.4) and the left hand side of (2.3.4).

As long as either of these differences remains large enough to overcome the error term of O\bigl{(}(m+n)\ln N\bigr{)} coming from Theorem 1.1, we have the asymptotic positive correlation of sequences of events \CalRk\Cal{R}_{k} and \CalCk\Cal{C}_{k} in (2.3.6).

On the other hand, the independence estimate I(R,C)I(R,C) produces a reasonable approximation to #(R,C)\#(R,C) in the cases of sparse tables (cf. [GM07]) and tables with constant margins (cf. [CM07a]). One can show that if all row sums are equal or if all column sums are equal then indeed

where (Rk,Ck)(R_{k},C_{k}) are cloned margins (R,C)(R,C). Indeed, if all rir_{i} are equal then the symmetry argument shows that the matrix Z=(zij)Z=\left(z_{ij}\right) in Lemma 1.4 satisfies zij=cj/mz_{ij}=c_{j}/m for all ii and jj, and, similarly, if all cjc_{j} are equal then we have zij=ri/nz_{ij}=r_{i}/n for all i,ji,j. In either case we have Z=YZ=Y in (2.3.2) and, as we have already discussed, equations (2.3.5) hold as well.

The volume of a section of a simplex

and let Δ⊂\CalA\Delta\subset\Cal{A} be the standard (d−1)(d-1)-dimensional open simplex defined by the inequalities

Let L⊂\CalAL\subset\Cal{A} be an affine subspace intersecting Δ\Delta. Suppose that dim⁡L=d−k−1\dim L=d-k-1, so the the codimension of LL in \CalA\Cal{A} is k≥1k\geq 1. Our aim is to estimate the volume of the intersection vol⁡d−k−1(L∩Δ)\operatorname{vol}_{d-k-1}(L\cap\Delta) within a reasonable accuracy when the codimension kk of LL is small. It turns out that the volume is controlled by one particular quantity, namely the maximum value of the product of the coordinates of a point x∈Δ∩Lx\in\Delta\cap L.

Let L⊂\CalAL\subset\Cal{A} be an affine subspace intersecting Δ\Delta and such that dim⁡L=d−k−1\dim L=d-k-1 where k≥1k\geq 1. Suppose that the maximum of the function

on Δ∩L\Delta\cap L is attained at a=(α1,…,αd)a=\left(\alpha_{1},\ldots,\alpha_{d}\right).

We are interested in the situation of k∼dk\sim\sqrt{d}, so ignoring lower-order terms in the logarithmic order, we get

provided the maximum value of the product of the coordinates of a point x∈Δ∩Lx\in\Delta\cap L is attained at a=(α1,…,αd)a=\left(\alpha_{1},\ldots,\alpha_{d}\right) and all αi\alpha_{i} are not too small.

We deduce Theorem 3.1 from the following result.

Let H⊂\CalAH\subset\Cal{A} be an affine hyperplane in \CalA\Cal{A} intersecting Δ\Delta. If HH does not pass through the center cc of Δ\Delta, let H−⊂\CalAH^{-}\subset\Cal{A} be the open halfspace bounded by HH that does not contain cc and if HH passes through cc let H−⊂\CalAH^{-}\subset\Cal{A} be either of the open halfspaces bounded by HH.

attains its maximum on Δ∩H\Delta\cap H at a point a=(α1,…,αd)a=\left(\alpha_{1},\ldots,\alpha_{d}\right).

Then, for some absolute constant γ>0\gamma>0 we have

We can choose γ=1/2e3≈0.025\gamma=1/2e^{3}\approx 0.025.

Preliminaries from convex geometry

Let H⊂\CalAH\subset\Cal{A} be an affine hyperplane in \CalA\Cal{A} passing through the center cc of Δ\Delta.

Part (1) is a particular case of a more general result of Grünbaum [Grü60] on hyperplane sections through the centroid of a convex body. In fact, in dimension dd one can choose

As K. Ball and M. Fradelizi explained to the author, a stronger estimate than that of Part (2) can be obtained by combining techniques of [Bal88] and [Frad97]. Nevertheless, we present a proof of Part (2) below since the same approach is used later in the proof of Theorem 3.1.

To prove Part (2), let H⊥⊂\CalAH^{\bot}\subset\Cal{A} be a line orthogonal to HH. Let us consider the orthogonal projection pr:\CalA⟶H⊥pr:\Cal{A}\longrightarrow H^{\bot} and let Q=pr(Δ)Q=pr(\Delta) be the image of the simplex. Since Δ\Delta is contained in a ball of radius 1, QQ is an interval of length at most 2.

be the volume of the inverse image of yy. By the Brunn-Minkowski inequality, the function ν\nu is log-concave, see [Bal88], [Bal97].

Our goal is to bound ν(y0)\nu(y_{0}) from below. The point y0y_{0} splits the interval QQ into two subintervals, Q+=pr(Δ∩H+)Q^{+}=pr(\Delta\cap H^{+}) and Q−=pr(Δ∩H−)Q^{-}=pr(\Delta\cap H^{-}) of length at most 2 each.

Using Part (1) we conclude that there exist y+∈Q+y^{+}\in Q^{+} and y−∈Q−y^{-}\in Q^{-} such that

Since y0y_{0} is a convex combination of y+y^{+} and y−y^{-}, by the log-concavity of ν\nu we must have

Let us choose a point a=(α1,…,αd)a=\left(\alpha_{1},\ldots,\alpha_{d}\right) in Δ\Delta, and let us consider the projective transformation Ta:Δ⟶ΔT_{a}:\Delta\longrightarrow\Delta

The inverse transformation is TbT_{b} for b=(α1−1,…,αd−1)b=\left(\alpha_{1}^{-1},\ldots,\alpha_{d}^{-1}\right). Clearly,

where cc is the center of Δ\Delta. For x∈Δx\in\Delta, the derivative DTa(x)DT_{a}(x) is a linear transformation

Our immediate goal is to compute the Jacobian ∣DTa(x)∣|DT_{a}(x)| at x∈Δx\in\Delta.

Let us choose a point a=(α1,…,αd)a=\left(\alpha_{1},\ldots,\alpha_{d}\right) in the simplex Δ\Delta and let us consider the projective transformation

for x=(x1,…,xd)x=(x_{1},\ldots,x_{d}) and y=(y1,…,yd)y=(y_{1},\ldots,y_{d}).

Let DTa(x):\CalH⟶\CalHDT_{a}(x):\Cal{H}\longrightarrow\Cal{H} be the derivative of TaT_{a} at x∈Δx\in\Delta and ∣DTa(x)∣|DT_{a}(x)| the corresponding value of the Jacobian. Then

while the (i,j)(i,j)-th entry for i≠ji\neq j is

let BB be the diagonal matrix with the diagonal entries α1,…,αd\alpha_{1},\ldots,\alpha_{d}, and let CC be the matrix with the (i,j)(i,j)th entry equal to αiαjxi\alpha_{i}\alpha_{j}x_{i} for all 1≤i,j≤d1\leq i,j\leq d. Then we can write

Let BiB_{i} and CiC_{i} be the (d−1)×(d−1)(d-1)\times(d-1) matrices obtained from BB and CC respectively by crossing out the iith row and column.

where II is the (d−1)×(d−1)(d-1)\times(d-1) identity matrix. Now Bi−1CiB_{i}^{-1}C_{i} is a matrix of rank 1 with the non-zero eigenvalue equal to the trace of Bi−1CiB_{i}^{-1}C_{i}, which is

Therefore, the sum of the dd of (d−1)×(d−1)(d-1)\times(d-1) principle minors of B−βCB-\beta C is

and the sum of the (d−1)×(d−1)(d-1)\times(d-1) principle minors of DTa(x)=β(B−βC)DT_{a}(x)=\beta(B-\beta C) is

Next, we will need a technical estimate, which shows that if the volume of the section of the simplex by an affine subspace of a small codimension is sufficiently large and if the subspace cuts sufficiently deep into the simplex then a neighborhood of the section in the simplex has a sufficiently large volume.

Let L⊂\CalAL\subset\Cal{A} be an affine subspace, dim⁡L=d−k−1\dim L=d-k-1. Suppose that there is a point a∈L∩Δa\in L\cap\Delta, a=(α1,…,αd)a=\left(\alpha_{1},\ldots,\alpha_{d}\right) such that

and let us define a neighborhood QQ of Δ∩L\Delta\cap L by

Then, for any affine hyperplane H⊂\CalAH\subset\Cal{A} passing through LL we have

where H+H^{+} and H−H^{-} are the halfspaces bounded by HH and γ>0\gamma>0 is an absolute constant. One can choose γ=1/2e≈0.18\gamma=1/2e\approx 0.18.

Since Q0Q_{0} is the contraction of Δ∩L\Delta\cap L we have

Moreover, for any x∈Q0x\in Q_{0}, x=(x1,…,xd)x=\left(x_{1},\ldots,x_{d}\right), we have

For every point x∈Q0x\in Q_{0} let us consider the cube

Then (Ix∩\CalA)⊂Δ\left(I_{x}\cap\Cal{A}\right)\subset\Delta. The intersection of IxI_{x} with the kk-dimensional affine subspace Lx⊥⊂\CalAL^{\bot}_{x}\subset\Cal{A} orthogonal to LL and passing through xx is centrally symmetric with respect to xx and, by Vaaler’s Theorem [Vaa79], satisfies

Proofs of Theorems 1.2, 3.1, and 3.2

If c∈Hc\in H the result follows by Lemma 4.1. Hence we assume that c∉Hc\notin H.

The hyperplane HH is orthogonal to the gradient of f(x)f(x) at x=ax=a and passes through aa, from which it follows that HH can be defined in \CalA\Cal{A} by the equation

while the halfspace H−H^{-} is defined by the inequality

Let us consider the projective transformation Ta:Δ⟶ΔT_{a}:\Delta\longrightarrow\Delta defined by the formula of Lemma 4.2. Hence Ta(c)=aT_{a}(c)=a. Moreover, the inverse image Ta−1(H)T^{-1}_{a}(H) is the hyperplane H0H_{0} defined in \CalA\Cal{A} by the equation

and the inverse image Ta−1(Δ∩H−)T^{-1}_{a}\left(\Delta\cap H^{-}\right) is the intersection Δ∩H0−\Delta\cap H_{0}^{-}, where H0−H_{0}^{-} is the halfspace defined by the inequality

Let us prove the lower bound. By Part (2) of Lemma 4.1,

We recall that H0H_{0} passes through the center of the simplex and apply Lemma 4.3 with ϵ=1\epsilon=1. Namely, we define

(5.2) Proof of Theorem 3.1

The proof of Part (1) is similar to that of Part (2) of Lemma 4.1. Let L⊥⊂\CalAL^{\bot}\subset\Cal{A} be a kk-dimensional subspace orthogonal to LL in \CalA\Cal{A} and let

be the orthogonal projection. Let Q⊂L⊥Q\subset L^{\bot}, Q=pr(Δ)Q=pr(\Delta), be the image of the simplex. Clearly, QQ lies in a ball of radius 11, so

be the volume of the inverse image of yy. By the Brunn-Minkowski inequality, the function ν\nu is log-concave, so for every α>0\alpha>0 the set

is convex. Moreover, for all Borel sets Y⊂QY\subset Q we have

We conclude that there exist points y+∈H+y^{+}\in H^{+} and y−∈H−y^{-}\in H^{-} such that

In other words, for any affine hyperplane H⊂L⊥H\subset L^{\bot} through y0y_{0} on either side of the hyperplane there are points y+,y−y^{+},y^{-} for which inequality (5.2.1) holds. Hence y0y_{0} lies in the convex hull of points yy for which the inequality holds. The proof of Part (1) follows by the log-concavity of ν\nu.

Let us prove Part (2). Since aa is the maximum point of the strictly concave function

on Δ∩L\Delta\cap L, the gradient of ff at aa is orthogonal to LL. Hence LL is orthogonal to the vector

If a≠ca\neq c, let H⊂\CalAH\subset\Cal{A} be the affine hyperplane defined by the equation

and if a=ca=c let HH be any affine hyperplane containing LL. In either case L⊂HL\subset H and the maximum values of ff on Δ∩H\Delta\cap H and on Δ∩L\Delta\cap L coincide and are equal to f(a)f(a). Therefore, by Theorem 3.2, we have

for some open halfspace H−H^{-} bounded by HH.

(5.3) Proof of Theorem 1.2

Let us consider the contracted polytope N−1\CalPN^{-1}\Cal{P} defined by the equations

Then N−1\CalPN^{-1}\Cal{P} can be represented as an intersection of the standard simplex in the space of m×nm\times n matrices and an affine subspace of dimension (m−1)(n−1)(m-1)(n-1). We are going to use Theorem 3.1. Let A=(αij)A=\left(\alpha_{ij}\right), A∈N−1\CalPA\in N^{-1}\Cal{P}, be the point maximizing the product of the coordinates. Writing the optimality condition for

and some λ1,…λm\lambda_{1},\ldots\lambda_{m} and μ1,…,μn\mu_{1},\ldots,\mu_{n}. Since λi+μj>0\lambda_{i}+\mu_{j}>0 for all i,ji,j, we may assume that λi,μj>0\lambda_{i},\mu_{j}>0 for all i,ji,j. If λi>nN/ri\lambda_{i}>nN/r_{i} for some ii then αij<ri/nN\alpha_{ij}<r_{i}/nN for all jj, which is a contradiction. If μj>mN/cj\mu_{j}>mN/c_{j} for some jj then αij<cj/mN\alpha_{ij}<c_{j}/mN for all ii which is a contradiction. Hence λi≤nN/ri\lambda_{i}\leq nN/r_{i} for i=1,…,mi=1,\ldots,m and μj≤mN/cj\mu_{j}\leq mN/c_{j} for j=1,…,nj=1,\ldots,n, from which

The proof now follows by Theorem 3.1 with d=mnd=mn, k=m+n−2k=m+n-2, and

An integral representation for the number of contingency tables

In this section, we recall bounds for #(R,C)\#(R,C) obtained in [Ba07] and [Ba08].

Our estimates for the number #(R,C)\#(R,C) of contingency tables essentially use the theory of matrix scaling, see [Si64], [MO68], [RS89]. Let us fix non-negative vectors R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right), C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right), such that

Then for every m×nm\times n positive matrix X=(xij)X=\left(x_{ij}\right) there exist a positive m×nm\times n matrix L=(lij)L=\left(l_{ij}\right) and positive numbers λ1,…,λm\lambda_{1},\ldots,\lambda_{m} and μ1,…,μn\mu_{1},\ldots,\mu_{n} such that

Moreover, given XX, the matrix LL is unique while the numbers λi\lambda_{i} and μj\mu_{j} are unique up to a re-scaling:

(6.2) Function ϕitalic-ϕ\phi

where λi\lambda_{i} and μj\mu_{j} are numbers such that equations (6.1.1) hold, on positive m×nm\times n matrices XX. It turns out that ϕ\phi is continuous (it is also log-concave but we don’t use that), positive homogeneous of degree NN,

for α>0\alpha>0 and positive matrix XX, and monotone

provided XX and YY are positive matrices satisfying xij≥yijx_{ij}\geq y_{ij} for all i,ji,j, see, for example, [Ba07] and [Ba08].

Alternatively, ϕ(X)\phi(X) can be defined by

where the minimum is taken over all positive mm-vectors a=(α1,…,αm)a=\left(\alpha_{1},\ldots,\alpha_{m}\right) and positive nn-vectors b=(β1,…,βn)b=\left(\beta_{1},\ldots,\beta_{n}\right) satisfying

(6.3) The bounds

and let Δ⊂\CalA\Delta\subset\Cal{A} be the standard open simplex defined by the inequalities

Therefore, we have an approximation within up to an Nγ(m+n)N^{\gamma(m+n)} factor for some absolute constant γ>0\gamma>0:

In fact, we will be using only a lower bound in (6.3.1).

For completeness, let us sketch the main ingredients of the proof of (6.3.1).

Recall that the permanent of an N×NN\times N matrix A=(aij)A=\left(a_{ij}\right) is defined by the formula

where the sum is taken over all N!N! permutations σ\sigma from the symmetric group SNS_{N}. For an m×nm\times n matrix X=(xij)X=\left(x_{ij}\right) let us define the N×NN\times N block matrix A(X)A(X) that has mnmn blocks of sizes ri×cjr_{i}\times c_{j} for i=1,…,mi=1,\ldots,m and j=1,…,nj=1,\ldots,n with the (i,j)(i,j)-th block filled by the copies of xijx_{ij}. A combinatorial computation produces the following expansion

where the sum is taken over all m×nm\times n non-negative integer matrices D=(dij)D=\left(d_{ij}\right) with row sums RR and column sums CC. From this expansion we obtain the formula

cf. Lemma 4.1 of [Ba08]. Given a matrix X∈ΔX\in\Delta, let λ1,…,λm\lambda_{1},\ldots,\lambda_{m} and μ1,…,μn\mu_{1},\ldots,\mu_{n} be its scaling factors so that (6.1.1) holds. Let B(X)B(X) be the matrix obtained by dividing the entries in the (i,j)(i,j)-th block of A(X)A(X) by λiriμjcj\lambda_{i}r_{i}\mu_{j}c_{j}, so the entries in the (i,j)(i,j)-th block of B(X)B(X) are equal to lij/ricjl_{ij}/r_{i}c_{j}. Hence

cf. Section 3.1 of [Ba08]. Now we notice that B(X)B(X) is a doubly stochastic matrix, that is, a non-negative matrix with row and column sums equal to 1. The classical estimate for permanents of doubly stochastic matrices conjectured by van der Waerden and proved by Falikman and Egorychev (see [Fa81], [Eg81], and Chapter 12 of [LW01]) asserts that

and hence the lower bound in (6.3.1) follows. The upper bound in (6.3.1) follows from the inequality for permanents conjectured by Minc and proven by Bregman, (see [Br73] and Chapter 11 of [LW01]), which results in

since the entries in the (i,j)(i,j)-th block of B(X)B(X) do not exceed min⁡{1/ri, 1/cj}\min\{1/r_{i},\ 1/c_{j}\}, see Section 5 of [Ba08] for details.

(6.4) Slicing the simplex

The crucial observation which makes the integral

amenable to analysis is that the simplex Δ\Delta can be sliced by affine subspaces of codimension m+n−1m+n-1 into sections on which function ϕ\phi remains constant.

(6.5) Modification for weighted tables

Similar identities an inequalities hold for weighted tables. For a positive matrix W=(wij)W=\left(w_{ij}\right) of weights, we define the function

and ϕR,C\phi_{R,C} is the unweighted function defined in Section 6.2. Then

see [Ba07], [Ba08], and the proof sketch in Section 6.3.

Proofs of Theorems 1.1 and 1.3 and Lemma 1.4

It is straightforward to check that the function

is strictly concave for x>0x>0. Therefore, the maximum of g(X;W)g(X;W) on \CalP(R,C)\Cal{P}(R,C) is attained at a single point Z=(zij)Z=\left(z_{ij}\right). Let us show that necessarily zij>0z_{ij}>0 for all i,ji,j.

the derivative of g(x;w)g(x;w) at x>0x>0 is finite and the right derivative at x=0x=0 is +∞+\infty. Let Y∈\CalP(R,C)Y\in\Cal{P}(R,C) be a matrix with positive entries, for example, Y=(yij)Y=\left(y_{ij}\right) where yij=ricj/Ny_{ij}=r_{i}c_{j}/N. If zij=0z_{ij}=0 for some i,ji,j then

for some sufficiently small ϵ>0\epsilon>0, which is a contradiction.

Thus zij>0z_{ij}>0 for all i,ji,j and hence ZZ lies in the relative interior of \CalP(R,C)\Cal{P}(R,C). Therefore the gradient of g(X;W)g(X;W) at X=ZX=Z is orthogonal to the affine span of \CalP(R,C)\Cal{P}(R,C), that is,

and some λ1,…,λm\lambda_{1},\ldots,\lambda_{m}, μ1,…,μn\mu_{1},\ldots,\mu_{n}.

is attained in the region x1,…,xm>0x_{1},\ldots,x_{m}>0, y1,…,yn>0y_{1},\ldots,y_{n}>0, and wijxiyj<1w_{ij}x_{i}y_{j}<1 for all i,ji,j.

Using (7.1.1) and (7.1.2), we conclude that

We start with a technical lemma, which is a straightforward modification of Lemma 4.3.

Let L⊂\CalAL\subset\Cal{A} be an affine subspace, dim⁡L=d−k−1\dim L=d-k-1 for k≥1k\geq 1. Suppose that there is a point A=(αij)A=\left(\alpha_{ij}\right), A∈Δ∩LA\in\Delta\cap L, such that

Suppose further that the value of the function ϕ=ϕR,C;W\phi=\phi_{R,C;W} on Δ∩L\Delta\cap L is constant and equal to τ\tau. Then

for some absolute constant γ>0\gamma>0 (one can choose γ=e−2≈0.14\gamma=e^{-2}\approx 0.14).

and for any X∈Q0X\in Q_{0}, X=(xij)X=\left(x_{ij}\right), we have

We note that for every X∈QX\in Q there is a Y∈Δ∩LY\in\Delta\cap L such that

Since ϕ\phi is monotone and homogeneous of degree NN (see Section 6.2) , we have

(7.3) Proof of Theorem 1.1

The upper bound follows immediately from the standard generating function expression:

and the some is taken over all pairs of positive integer mm-vectors R=(r1,…,rm)R=\left(r_{1},\ldots,r_{m}\right) and nn-vectors C=(c1,…,cn)C=\left(c_{1},\ldots,c_{n}\right) such that r1+…+rm=c1+…+cnr_{1}+\ldots+r_{m}=c_{1}+\ldots+c_{n}.

Let us prove the lower bound. By Lemma 1.4 the minimum of

on the open cube 0<xi,yj<10<x_{i},y_{j}<1 for all i,ji,j is attained at a certain point

Equations (7.3.1) can also be obtained by setting the gradient of ln⁡F\ln F to 0.

Hence dim⁡L=(m−1)(n−1)\dim L=(m-1)(n-1) and A∈LA\in L by (7.3.1).

By (6.4.2), the density ϕ=ϕR,C\phi=\phi_{R,C} is constant on LL and equal to

By Part (1) of Theorem 3.1, the volume of the section Δ∩L\Delta\cap L within a factor of (N+mn)O(m+n)(N+mn)^{O(m+n)} is at least

More precisely, for k=d−1−dim⁡(Δ∩L)k=d-1-\dim(\Delta\cap L) we have k=m+n−1k=m+n-1 or k=m+n−2k=m+n-2 and

Choosing ϵ=1/(N+mn)\epsilon=1/(N+mn) in Lemma 7.2, we estimate the integral

within a factor of NO(m+n)N^{O(m+n)} from below by

provided m+n≥10m+n\geq 10. Hence by (6.3.2) the number #(R,C)\#(R,C) is estimated from below within a factor of (N+mn)O(m+n)(N+mn)^{O(m+n)} by

where “≈\approx” stands for an approximation within a NO(m+n)N^{O(m+n)} factor.

The proof of Theorem 1.3 is a straightforward modification of the proof of Theorem 1.1.

(7.4) Proof of Theorem 1.3

The upper bound follows from the generating function expression

Let us prove the lower bound. Since T(R,C;W)T(R,C;W) is a polynomial in WW, without loss of generality we assume that WW is a strictly positive matrix. Let

In the space of matrices, let us consider the standard simplex Δ\Delta and the matrix A=(αij)A=\left(\alpha_{ij}\right)

As in the proof of Theorem 1.1, we check from (7.4.1) that indeed A∈ΔA\in\Delta. Let

Then A∈LA\in L, the value of ϕR,C;W\phi_{R,C;W} on Δ∩L\Delta\cap L is constant and equal to

see (6.5.2)-(6.5.3). Next, we use the lower bound in (6.5.1) and the proof proceeds as for Theorem 1.1. ∎

Acknowledgments

This work grew out of a joint project with Alex Samorodnitsky, and at an earlier stage also with Alexander Yong, on constructing computationally efficient algorithms for enumeration of contingency tables, see [BSY07]. I am grateful to Keith Ball and Matthieu Fradelizi for teaching me methods to estimate volumes of sections of convex bodies. I benefitted from conversations with Alex Samorodnitsky, Imre Bárány, and Roy Meshulam.