Stein's method and the rank distribution of random matrices over finite fields
Jason Fulman, Larry Goldstein
Introduction
For readability and notational agreement with the examples that follow, we suppress in the definition of these distributions. Throughout, we also adopt the convention that an empty product takes the value 1. One of our main results, Theorem 1.1, provides sharp upper and lower bounds on the total variation distance between , the distribution of in (1) and its limit in (3), denoted . Recall that the total variation distance between two probability distributions on a finite set is given by
The upper bound in Theorem 1.1 appears quite difficult to compute directly by substituting the expressions for the point probabilities given in (1) and (3) into the defining expressions for the total variation distance in (4). In particular, even when , the are not monotonic in . On the other hand, use of Stein’s method Stn , CGS makes for a quite tractable computation. In Sections 4–7, we also apply our methods to ensembles of random matrices with symmetry constraints, in particular, to symmetric, symmetric with zero diagonal, skew symmetric, skew centrosymmetric and Hermitian matrices.
Next, we give five pointers to the large literature on the rank distribution of random matrices over finite fields, demonstrating that the subject is of interest. First, one of the earliest systematic studies of ranks of random matrices from the finite classical groups is due to Rudvalis and Shinoda RS , Sh . They determine the rank distribution of random matrices from finite classical groups, and relate distributions such as of (3) to identities of Euler. Second, ranks of random matrices from finite classical groups appear in works on the “Cohen–Lenstra heuristics” of number theory; see Wa for the finite general linear groups and Mal for the finite symplectic groups. Third, the rank distribution of random matrices over finite fields is useful in coding theory; see BS and Chapter 15 of MS . Fourth, the distribution of ranks of uniformly chosen random matrices over finite fields has been used to test random number generators DGM , and there is interest in the rate of convergence to . Fifth, there is work on ranks of random matrices over finite fields where the matrix entries are independent and identically distributed, but not necessarily uniform. For example, the paper CRR uses a combination of Möbius inversion, finite Fourier transforms and Poisson summation, to find conditions on the distribution of matrix entries under which the probability of a matrix being invertible tends to as . Further results in this direction, including rank distributions of sparse matrices, can be found in BKW , Co1 , Co2 , KK . It would be valuable (but challenging) to extend our methods to these settings.
The organization of this paper is as follows. Section 2 provides some general tools for our application of Stein’s method, and useful bounds on products such as . The development followed here is along the lines of the “comparison of generators” method as in GR and H . Section 3 treats the rank distribution of uniformly chosen matrices over a finite field, proving Theorem 1.1. Section 4 treats the rank distribution of random symmetric matrices over a finite field. Section 5 provides results for the rank distribution of a uniformly chosen symmetric matrix with 0 diagonal; these are called “symplectic” matrices in Chapter 15 of MS , which uses their rank distribution in the context of error correcting codes. The same formulas for the rank distribution of symmetric matrices with zero diagonal also apply to the rank distribution of random skew-symmetric matrices, when is odd. Section 6 treats the rank distribution of random skew centrosymmetric matrices over finite fields, and Section 7 treats the rank distribution of random Hermitian matrices over finite fields. The Appendix gives an algebraic proof, for the special case of square matrices, of the crucial fact (proved probabilistically in Section 3 in general) that if has distribution of (1), then .
In the interest of notational simplicity, in Sections 4–7, the specific rank distributions of the matrices of interest, and their limits, will apply only locally in the section or subsection that contains them, and will there be consistently denoted by and , respectively.
Preliminaries
We begin with a general result for obtaining characterizations of discrete integer distributions. We note that a version of Lemma 2.1 can be obtained by replacing by in Theorem 2.1 of LS , followed by a reversal of the interval , with similar remarks applying to the use of Proposition 2.1 and Corollary 2.1 of GR . However, the following lemma and its short, simple proof contain the precise conditions used throughout this work and keep the paper self-contained.
then a random variable having distribution satisfies
For example, when has the Poisson distribution with parameter , then , and we obtain
Setting and yields the standard characterization of the Poisson distribution bhj ,
Now replacing and in the first and second term, respectively, by
canceling the resulting common factor demonstrates that the solution satisfies
with equality when . Since the bound (13) holds for .
Lemma 2.3 collects some bounds that will be useful. We first state the simple inequality
valid for , and easily shown by induction.
The first claim is Lemma 3.5 of NP , and arguing as there yields the second claim. Thus,
which is positive for . The next inequality now follows by applying the one just shown to obtain
it is easy to see that the second claim of Lemma 2.3 implies the first.
Uniform matrices over finite fields
The following lemma is our first application of the characterizations provided by Lemma 2.1.
If has the distribution then
for all functions for which these expectations exist.
If has the distribution, then
for all functions for which these expectations exist.
An application of Lemma 2.1 with and yields (15). Similarly, from (1) we obtain
An application of Lemma 2.1 with , , noting , yields (16).
Here, we calculate using the characterization (16). An algebraic proof for the case of Lemma 3.2 appears in the Appendix. After reading the first version of this paper, Dennis Stanton has shown us a proof of this special case using the -Chu–Vandermonde summation formula.
If has the distribution on given by (1), then
Applying the characterization (16) with the choice , we obtain
Letting yields the recursion
Since is a probability distribution, , and setting in (18) yields the claim.
In the remainder of this section, we consider the Stein equation (8), with
where we have applied the last part of Lemma 2.3. For , using the first inequality of Lemma 2.3 in the last step gives that
Now consider the case . By (13) and (19), we have
and by neglecting the term in (20) and applying (3) we obtain
where for the third inequality we have applied (14).
As the left-hand side is increasing in , it suffices to prove the claim for . In this case, the claim may be rewritten as
As , the result is a consequence of the two easily verified inequalities
Hence, for , using , we obtain
where the final inequality used that , and that , thus completing the proof of the lemma.
Proof of Theorem 1.1 We first compute the lower bound on the total variation distance by estimating the difference of the two distributions at . In particular, by (4), (1) and (3),
The fourth inequality used Lemma 2.3, and the last that .
For the upper bound, with we obtain
where we have applied (16) in the third equality. Applying Lemmas 3.3 and 3.2 gives that for ,
For , applying Lemmas 3.3 and 3.2 gives that
When , the limit distribution also arises in the study of the dimension of the fixed space of a random element of . More precisely, Rudvalis and Shinoda RS prove that for fixed, as the probability that a random element of has a dimensional fixed space tends to . See F3 for another proof.
Symmetric matrices over finite fields
If has the distribution then
for all functions for which these expectations exist.
If has the distribution then
for all functions for which these expectations exist.
Setting and applying Lemma 2.1 yields the first result.
If and are of the same parity, then for some , and we have
In this case, we set and .
If and are of opposite parity, then for some and we obtain
In this case, we set and .
Writing and combines both cases. Noting that an application of Lemma 2.1 completes the proof.
If has distribution then
Setting in (25) yields
Since , we obtain
In the remainder of this section, we consider the Stein equation (8) for the target distribution with
where we applied the third inequality in Lemma 2.3.
In particular, for all we obtain
and the proof is now completed by using the fact that for all
The upper bound on the first factor used the second assertion of Lemma 2.3. Indeed,
The upper bound on the second factor used that
Proof of Theorem 4.1 For the lower bound, one computes from the formula for in (4), in the case is even, that
Thus, the total variation distance between and is at least
The second inequality used Lemma 2.3, and the final inequality that .
When is odd, we obtain similarly that
and the result easily follows. The last two steps used Lemmas 4.3 and 4.4, respectively.
Symmetric matrices over finite fields with zero diagonal
We begin the proof of Theorem 5.1 by developing characterizations of the two distributions of interest.
If has the distribution, then
for all functions for which these expectations exist.
If has the distribution then
for all functions for which these expectations exist.
Setting and , applying Lemma 2.1 yields the first result.
Similarly, the second claim can be shown using Lemma 2.1 and (27) to yield
upon setting and , noting that .
If has distribution , then
For any integer, letting in (5.2) yields
Setting , this identity yields
Substituting and using that we obtain
In the remainder of this subsection we consider the Stein equation (8) for the target distribution with
where the second inequality used Lemma 2.3.
and the proof is now completed using the fact that for all
The upper bound on the first factor used part 2 of Lemma 2.3. The upper bound on the second factor used that
Proof of Theorem 5.1 From the formula for , one has that
The argument in the proof of Theorem 4.1 now shows that total variation distance between and is at least .
For the upper bound, arguing as in the proof of Theorem 4.1 we obtain
as claimed. Note that Lemma 5.3 was used in the fourth equality, and Lemma 5.4 in the second to last inequality.
2 Case of n𝑛n odd
Our main result is the following theorem.
We again begin by developing characterizing equations for the distributions under study.
If has the distribution, then
for all functions for which these expectations exist.
If has the distribution then
for all functions for which these expectations exist.
Setting and , Lemma 2.1 yields the first claim. Similarly, the second can be shown by applying (30) to yield
and then invoking Lemma 2.1 with and , noting .
If has distribution then
For any integer, letting in (5.6) yields
Setting , this identity yields
Substituting and using that we obtain
In the remainder of this subsection, we consider the Stein equation (8) for the target distribution with
where the second inequality used Lemma 2.3.
and the proof is now completed by using the fact that for all ,
The inequality is obtained by applying part 2 of Lemma 2.3. We also used that
Proof of Theorem 5.5 From the formula (30) for , we obtain
Thus, now applying (29), the total variation distance between and is at least
The second inequality used the fourth claim of Lemma 2.3.
as claimed, where we have applied Lemmas 5.7 and 5.8 in the second to last equality, and inequality, respectively.
Skew centrosymmetric matrices over finite fields
Suppose that is even. Waterhouse W shows that the total number of skew centrosymmetric matrices is , that all such matrices have even rank, and that the proportion of skew centrosymmetric matrices of rank is equal to
Comparing this expression with (1) for the case with replaced by shows that it is sufficient to prove that
are equal to . Hence, the following corollary is immediate from Theorem 1.1.
Now suppose that is odd. Waterhouse W shows that the total number of skew centrosymmetric matrices is , that all such matrices have even rank and that the number of skew centrosymmetric matrices of rank is equal to
is the proportion of skew centrosymmetric matrices of rank . The main result in this section is Theorem 6.2, which provides bounds on the total variation distance between , the distribution given in (34), and , given by
For odd, and , we have that
We begin with the following characterization lemma.
If has the distribution, then
for all functions for which these expectations exist.
If has the distribution, then
for all functions for which these expectations exist.
For the first assertion, one calculates that
Taking and in Lemma 2.1, the first assertion follows.
For the second assertion, one calculates that
Taking and , noting that , the second assertion follows by Lemma 2.1.
Lemma 6.4 calculates the expected value of .
If has distribution , then
Let , and set in (36). Elementary manipulations yield the recurrence
The result now follows by setting and using that .
In the remainder of this section, we consider the Stein equation (8) for the target distribution with
where we have applied (14) in the second inequality, and used that .
where (14) was applied in the fourth inequality.
Proof of Theorem 6.2 From the formula (34) for , one computes that
Thus, using (35), the total variation distance between and is at least
It follows that the total variation distance between and is at least .
For the upper bound, arguing as in Theorem 1.1,
By Lemmas 6.4 and 6.5, this quantity is at most
Hermitian matrices over finite fields
Hence, the proportion of such matrices with rank is given by
In this section we compute total variation bounds between the distribution (37), denoted , and the distribution
which we denote here by .
The distribution (38) also arises as a limiting law in the study of the dimension of the fixed space of a random element of the finite unitary group . More precisely, the paper RS proves that for fixed, the chance that a uniformly chosen random element of has a dimensional fixed space tends to as . See F3 for another proof.
The main theorem of this section is the following result.
The following lemma characterizes the two distributions of interest in this section.
If has the distribution, then
for all functions for which these expectations exist.
If has the distribution, then
for all functions for which these expectations exist.
For the first assertion, one calculates from (38) that
Taking and in Lemma 2.1, the first assertion follows.
For the second assertion, one calculates that
Taking and in Lemma 2.1, and noting , the second assertion follows.
Next, we handle the moment . Unlike all our other moment computations where we obtain equality, here we derive an upper bound.
If has the distribution, then
Setting in (39) implies that
In the remainder of this section, we consider the Stein equation (8) for the target distribution with
By (38), (40) and the third claim of Lemma 2.3,
Thus, , and hence , for all .
using in the final inequality. Now using that and are decreasing for , and that
Now we present the proof of the main result of this section, Theorem 7.1.
Proof of Theorem 7.1 We first compute a lower bound for the case where is odd. From (37), we have
where the fourth inequality used the third claim of Lemma 2.3. Thus, the total variation distance between and is at least .
Now we compute a lower bound for even. From (37),
where the fourth inequality used the third claim of Lemma 2.3. Thus, the total variation distance between and is at least .
For the upper bound, arguing as in the proof of Theorem 4.1,
for . The third inequality used Lemmas 7.3 and 7.4.
The distribution of (37) holds for . Over this range, the bounds of Theorem 7.1 may be slightly improved by applying (7) and (7) to replace 1.8 in Lemma 7.4 by 1.4, and then using this value in (7). One may similarly improve the lower bound by replacing 0.14 by 0.38 in (7), and 0.18 by 0.41 in (7), resulting in
Appendix
The main purpose of this appendix is to give an algebraic proof of Lemma 3.2 in the special case that . The proof assumes familiarity with rational canonical forms of matrices (i.e., the theory of Jordan forms over finite fields), and with cycle index generating functions. Background on these topics can be found in F1 or St , or in the survey F2 .
Proof of Lemma 3.2 when The sought equation is
From the expression for in (1) specialized to the case , it is clear that if one multiplies (48) by where is sufficiently large as a function of , then both sides become polynomials in . Since polynomials in agreeing for infinitely many values of are equal, it is enough to prove the result for infinitely many values of , so we demonstrate it for a prime power.
From the cycle index for (Lemma 1 of St ), it follows that
From the cycle index for (Lemma 1 of St ), it follows that
Summarizing, it follows from (Appendix) and (51) that
The third equality used (51) and the final equality is from Lemma 6 of St and page 19 of A .
Next, we can use group theory to find an alternate expression for
Indeed, by the theory of rational canonical forms, is the number of fixed points of in its action on the underlying dimensional vector space . By Burnside’s lemma (page 95 of VW ), the average number of fixed points of a finite group acting on a finite set is the number of orbits of the action on the set. For acting on , there are two such orbits, consisting of the zero vector and the set of nonzero vectors. Thus,
Comparing the final equations of the previous two paragraphs gives that
Thus, by (49), is multiplied by the coefficient of in
From page 19 of A , the coefficient of in
is equal to . Thus,
where the last equality used that .
We close this section with two remarks about the distribution in (1) (for general ) from the Introduction.
From Be , there is a natural Markov chain on which has as its stationary distribution. This chain has transition probabilities
This Markov chain describes how the rank of a matrix evolves by adding a uniformly chosen rank one matrix at each step.
Following a suggestion of Dennis Stanton, we indicate how Lemma .1 can be used to derive the product formula for in the Introduction. By replacing by , by , and by in (54), we get that the probability that a random matrix has rank is equal to
Plugging into the -binomial theorem (page 78 of Br )
It follows from elementary manipulations that this is equal to
Acknowledgements
The authors thank Dennis Stanton and the referees for helpful comments.