Docsity

Произведения матриц: вероятность превышения трассировки циклического над обычным, Конспекты лекций из Алгебра

Toggle sidebar
bg1
ELA
TRACES OF MATRIX PRODUCTS∗
JOHN GREENE†
Abstract. Given two noncommuting matrices, Aand B, it is well known that AB and BA have
the same trace. This extends to cyclic permutations of products of A’s and B’s. It is shown here
that for 2 ×2 matrices Aand B, whose elements are independent random variables with standard
normal distributions, the probability that T r(ABAB)> T r(A2B2) is exactly 1
√2.
Key words. Random matrix, Trace.
AMS subject classifications. 15A15, 15A42.
1. Introduction and main results. Given two square matrices Aand B, it
follows from [8, 10] that
det(AB) = det(A) det(B), T r(AB) = T r (BA),(1.1)
where T r(A) is the trace of the matrix. Consequently, for any product A1A2···An
and any permutation σ,
det(A1A2···An) = det(Aσ(1)Aσ(2) ···Aσ(n)).
By the second formula in (1.1), a similar formula holds for the trace, but only for
cyclic permutations [10, p. 110]:
T r(A1A2···An) = T r(AnA1A2···An−1).(1.2)
Given a matrix written as the product of a collection of matrices, define the necklace
of that matrix to be the set of all products of cyclic permutations of the collec-
tion. Thus, the necklace of ABC is {ABC, C AB, BC A}, the necklace of ABAB is
{ABAB , BABA}, and the necklace of A2B2is {A2B2, BA2B , B2A2, AB2A}. By
(1.2), all products in a necklace have the same trace.
Given a product A1A2···An, define its reversal to be AnAn−1···A1and denote
this
(A1A2···An)R=AnAn−1···A1.(1.3)
∗Received by the editors on June 10, 2013. Accepted for publication on September 20, 2014.
Handling Editor: Tin-Yau Tam.
†Department of Mathematics and Statistics, University of Minnesota Duluth
716
Electronic Journal of Linear Algebra ISSN 1081-3810
A publication of the International Linear Algebra Society
Volume 27, pp. 716-734, October 2014
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Сопутствующие документы


Частичный предварительный просмотр текста

Скачай Произведения матриц: вероятность превышения трассировки циклического над обычным и еще Конспекты лекций в формате PDF Алгебра только на Docsity!

ELA

TRACES OF MATRIX PRODUCTS∗

JOHN GREENE†

Abstract. Given two noncommuting matrices, A and B, it is well known that AB and BA have the same trace. This extends to cyclic permutations of products of A’s and B’s. It is shown here that for 2 × 2 matrices A and B, whose elements are independent random variables with standard normal distributions, the probability that T r(ABAB) > T r(A^2 B^2 ) is exactly √^12.

Key words. Random matrix, Trace.

AMS subject classifications. 15A15, 15A42.

  1. Introduction and main results. Given two square matrices A and B, it follows from [8, 10] that

det(AB) = det(A) det(B), T r(AB) = T r(BA), (1.1)

where T r(A) is the trace of the matrix. Consequently, for any product A 1 A 2 · · · An and any permutation σ,

det(A 1 A 2 · · · An) = det(Aσ(1)Aσ(2) · · · Aσ(n)).

By the second formula in (1.1), a similar formula holds for the trace, but only for cyclic permutations [10, p. 110]:

T r(A 1 A 2 · · · An) = T r(AnA 1 A 2 · · · An− 1 ). (1.2)

Given a matrix written as the product of a collection of matrices, define the necklace of that matrix to be the set of all products of cyclic permutations of the collec- tion. Thus, the necklace of ABC is {ABC, CAB, BCA}, the necklace of ABAB is {ABAB, BABA}, and the necklace of A^2 B^2 is {A^2 B^2 , BA^2 B, B^2 A^2 , AB^2 A}. By (1.2), all products in a necklace have the same trace.

Given a product A 1 A 2 · · · An, define its reversal to be AnAn− 1 · · · A 1 and denote this

(A 1 A 2 · · · An)R^ = AnAn− 1 · · · A 1. (1.3) ∗Received by the editors on June 10, 2013. Accepted for publication on September 20, 2014. Handling Editor: Tin-Yau Tam. †Department of Mathematics and Statistics, University of Minnesota Duluth ([email protected]). 716

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

Traces of Matrix Products 717

Under the hypotheses in Theorem 1.1 below, a product and its reversal have the same trace. Since ABAB and A^2 B^2 belong to different necklaces, and neither is the reversal of the other, one may ask about the relative sizes of their traces. The relative sizes depend on A and B, but surprisingly, there is a sense in which ABAB usually has the larger trace. We make this rigorous in Theorem 1.3 and Theorem 1.4, the main results in this paper. These theorems make use of the following two results.

Theorem 1.1. Fix two 2 × 2 matrices A and B. If

M = M 1 M 2 · · · Mn,

where each Mi is A or B, then M has the same trace as its reversal:

T r(M ) = T r(M R).

For example,

T r(AABBAB) = T r(BABBAA),

even though the two matrices are not in the same necklace.

Theorem 1.2. If A and B are 2 × 2 matrices and M is a product of A’s and B’s, then

M − M R^ = c(AB − BA),

where c is a scalar.

The hypotheses in Theorem 1.1 are necessary: If A =

[

]

, B =

[

]

C =

[

]

, then T r(ABC) = 2, T r((ABC)R) = 1. If

A =

 , B =

then

T r(AABBAB) = 149, T r((AABBAB)R) = 148.

Thus, Theorem 1.1 only applies to 2 × 2 matrices, and only to products with two types of matrices.

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

Traces of Matrix Products 719

Given M = M 1 M 2 · · · Mn where each Mi is A or B, we may use (2.1) in any product with Mi = Mi+1 for some i, resulting in two products of shorter length. One may invoke induction to handle this case since the reversal will be well behaved with respect to (2.1). If Mi 6 = Mi+1 for all i, then the A’s and B’s must alternate in M. If n is odd, then M = M R^ , so M and M R^ have the same trace. If n is even, then M R is in the same necklace as M , and again they have the same trace. This completes the proof.

Proof of Theorem 1.2. This proof is also in [9]. As in Theorem 1.1, we let M = M 1 M 2 · · · Mn where each Mi is A or B, and proceed by induction on n. When n = 1, M − M R^ = 0. When n = 2, there are four cases, with the important one being M = AB, for which M − M R^ = AB − BA. Assuming the result for products of fewer than n matrices, we again consider the case where Mi = Mi+1 for some i. Letting a = T r(Mi) and b = − det(Mi),

M − M R^ = a[(M 1 · · · Mi− 1 MiMi+2 · · · Mn) − (M 1 · · · Mi− 1 MiMi+2 · · · Mn)R]

  • b[(M 1 · · · Mi− 1 Mi+2 · · · Mn) − (M 1 · · · Mi− 1 Mi+2 · · · Mn)R].

Invoking the inductive hypothesis,

M − M R^ = ac 1 (AB − BA) + bc 2 (AB − BA) = (ac 1 + bc 2 )(AB − BA)

for some constants c 1 and c 2. If there is no i for which Mi = Mi+1, then the A’s and B’s alternate in M. As before, if n is odd, M = M R^ , so M − M R^ = 0(AB − BA). Finally, if n is even, then without loss of generality, let M = (AB)k^ for some integer k. Writing (AB)^2 = x(AB) + yI in (2.1), we have

M = x(AB)k−^1 + y(AB)k−^2 ,

so

M − M R^ = x[(AB)k−^1 − (BA)k−^1 ] + y[(AB)k−^2 − (BA)k−^2 ] = c(AB − BA)

for suitable c. This completes the proof of Theorem 1.2.

  1. A proof of Theorem 1.4. The scalar c in Theorem 1.2 is a polynomial in the entries of A and B. We begin by mentioning that for the specific pair of matrices A and B in the lemma below, this polynomial is always nonzero unless M is a symbolic palindrome.

Lemma 3.1. If A =

, B =

and M is a product of A’s and B’s,

then M 6 = M R^ unless M is a symbolic palindrome.

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

720 J. Greene

Proof. Certainly, if M is a symbolic palindrome then M = M R^ for any choice of A and B, so we may assume that M is not a symbolic palindrome. We make the following reduction: If M = M 1 M 2 · · · Mn is not a symbolic palindrome, then there is a smallest index k with Mk 6 = Mn−k+1. Letting C = M 1 · · · Mk− 1 (or C = I if k = 1), it follows that M = CN CR^ and M − M R^ = C(N − N R)CR, where N is a product of A’s and B’s with first matrix different from the last. Since A and B are invertible, M 6 = M R^ if N 6 = N R. Thus, without loss of generality, we may assume that M 1 6 = Mn. In fact, we may assume M 1 = A and Mn = B. Thus, we may let M = Ax^1 By^1 · · · Axm^ Bym^ where each exponent is a positive integer. We will show that for products of this type, c is a positive integer, with a proof by induction on m.

We need the following fact: With A and B as in the hypotheses, if M =

a b c d

then M R^ =

d b c a

, a fact easily proved by induction. Thus, we have M − M R^ =

(a − d)

. For M of the form Ax^1 By^1 · · · Axm^ Bym^ we must show that a > d.

We show that a > max(b, c) and d ≤ min(b, c). In the case where m = 1, M =

Ax^1 By^1 =

x 1 y 1 + 1 x 1 y 1 1

. If true for m − 1 then for some p, q, r, s, M =

a b c d

p q r s

xmym + 1 xm ym 1

pxmym + qym + p pxm + q rxmym + sym + r rxm + s

. By inductive hypoth-

esis, p > r, q ≥ s. Since xm and ym are positive integers, it follows that a > max(b, c) and d ≤ min(b, c), completing the induction.

As a corollary we have the following.

Lemma 3.2. If M is not a symbolic palindrome, then the scalar c in Theorem 1.2 is nonzero with probability 1.

Proof. By Lemma 3.1, c is not identically 0 so suppose that deg(c) = n, as a polynomial in the entries of A and B. By Theorem 1.2 of [2], given any finite sets S 1 , S 2 ,... , S 8 , each of size n+1 there is a point in the 8-fold product S 1 ×S 2 ×· · ·×S 8 for which c is nonzero. This precludes the possibility that c could be zero on any set of positive measure.

There is a link between traces and determinants for products of 2 × 2 matrices.

Lemma 3.3. Let A and B be 2 × 2 matrices and let M = M 1 M 2 · · · Mn, where each Mi is A or B. Then,

T r(M 2 ) − T r(M M R) = − det(M − M R).

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

722 J. Greene

Proof. We need only prove the result for A since interchanging A and B gives det(BA − AB) = det(AB − BA). If A has complex eigenvalues a + bi, a − bi, then there is a real matrix P so that

P −^1 AP =

[

a b −b a

]

This is a special case of an exercise in [3, p. 106, Exercise 40]. It follows from the fact that if u is a nonzero eigenvector for a + bi, then u is an eigenvector for a − bi, and the matrix whose columns are Re(u) and Im(u) will work for P.

Letting A′^ =

[

a b −b a

]

and B′^ = P −^1 BP =

[

w x y z

]

, we have

det(AB − BA) = det(A′B′^ − B′A′).

By direct calculation,

det(A′B′^ − B′A′) = det

[

b(x + y) b(z − w) b(z − w) −b(x + y)

]

= −b^2 ((x + y)^2 + (z − w)^2 ) ≤ 0.

By Corollary 3.4, the result follows.

Next, we calculate how often a real matrix has real or complex eigenvalues.

Lemma 3.7. If A =

[

w x y z

]

has its entries selected independently from the

uniform distribution on [− 1 , 1], then the probability that A has real eigenvalues is 49

Proof. The characteristic polynomial of A is: λ^2 − (w + z)λ + wz − xy. This polynomial has real zeros if and only if its discriminant, (w−z)^2 − 4 xy, is nonnegative. Thus, the probability we seek is

the volume of that portion of the hypercube with (w − z)^2 + 4xy ≥ 0

By symmetry, we may replace z with −z and y with −y. We seek the volume of the region (w + z)^2 ≥ 4 xy, − 1 ≤ w, x, y, z ≤ 1. If xy ≤ 0, the inequality is trivially satisfied. This contributes 8 to the volume. Again, by symmetry, we seek twice the

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

Traces of Matrix Products 723

volume of the region where x > 0 and y > 0. Thus, our probability is

1 16

− 1

− 1

0

∫ (^) min(1,(w+z) (^2) /(4y))

0

dx dy dw dz

− 1

− 1

(w+z)^2 / 4

(w + z)^2 4 y

dy dw dz + 2

− 1

− 1

∫ (^) (w+z)^2 / 4

0

dy dw dz

2 −^

− 1

− 1

(w + z)^2 4 ln

(w + z)^2 4 dw dz^ +

− 1

− 1

(w + z)^2 4 dw dz

=

as desired.

The corresponding result where the entries of A are normal rather than uniform was less helpful. We state the result for completeness

Lemma 3.8. If A =

[

w x y z

]

has independent normally distributed elements of

mean 0 and variance 1, then the probability that A has real eigenvalues is √^12.

Proof. This is the simplest case in [4, 5], where the authors calculate the proba- bility that a random n × n matrix has real eigenvalues. We give the following sketch as well. In what follows, and in Section 4, let

χ(a) =

1 , if a ≥ 0, 0 , if a < 0.

The probability we seek is given by the integral

1 (2π)^2

−∞

−∞

−∞

−∞

e−^12 (x

(^2) +w (^2) +y (^2) +z (^2) ) χ((w − z)^2 + 4xy) dx dy dx dz.

Replacing (x, y, w, z) with √^12 (x + y, x − y, w + z, w − z), this becomes

1 (2π)^2

−∞

−∞

−∞

−∞

e−^12 (x

(^2) +w (^2) +y (^2) +z (^2) ) χ(w^2 + x^2 − y^2 ) dx dy dx dz

(2π)^3 /^2

−∞

−∞

−∞

e−^12 (x

(^2) +w (^2) +y (^2) ) χ(w^2 + x^2 − y^2 ) dx dy dx.

Changing to spherical coordinates, our integral transforms to

1 (2π)^3 /^2

∫ (^2) π

0

∫ (^3) π/ 4

π/ 4

0

e−^

(^12) ρ 2 ρ^2 sin φ dρ dφ dθ =

(2π)^3 /^2

2 π 2

(2π)

as desired.

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

Traces of Matrix Products 725

the upper left 4 × 4 block having determinant 2(y + z) and lower right 4 × 4 block having determinant 1. Thus, the change of variables factor is 2|y + z|. With this change of coordinates, we have

a^2 + b^2 + c^2 + d^2 = 2x^2 + y^2 + z^2

and

e^2 + f 2 + g^2 + h^2 = e′^2 + f ′^2 + g′^2 + h′^2.

If, by abuse of notation, we let B′^ =

[

e f g h

]

, then S simplifies to (yg − f z) −

2 yz(e − h)^2. Using the function χ defined in formula (3.6), our probability, p, is

p =

(2π)^4

−∞

−∞

−∞

−∞

−∞

−∞

−∞

−∞

e−^

(^12) (a (^2) +b (^2) +c (^2) +d (^2) +e (^2) +f 2 +g (^2) +h (^2) )

× χ((bg − df )^2 + (bg + cf )(a − d)(e − h) − bc(e − h)^2 − f g(a − d)^2 ) dA dB

=

(2π)^4

∫ (^) π/ 2

0

−∞

−∞

−∞

−∞

−∞

−∞

−∞

e−^

(^12) (2x^2 +y^2 +z^2 +e^2 +f 2 +g^2 +h^2 )

× χ((yg − f z)^2 − yz(e − h)^2 ) 2|y + z| dA′^ dB′.

Replacing (e, h) by √^12 (e + h, e − h), we may integrate out (x, e, θ) to obtain

√ 2 16 π^2

−∞

−∞

−∞

−∞

−∞

e−^

(^12) (y (^2) +z (^2) +f 2 +g (^2) +h (^2) )

× χ((yg − f z)^2 − 2 yzh^2 ) |y + z| dy dz df dg dh.

Using two polar coordinate changes: y = r cos α, z = r sin α, f = ρ cos β, g = ρ sin β,

the expression S in (4.1) simplifies:

S = (rρ cos α sin β − rρ sin α cos β)^2 − 2 r^2 h^2 cos α sin α = r^2 (ρ^2 sin^2 (β − α) − h^2 sin 2 α).

The factor r^2 will not affect the sign of S so

p =

16 π^2

∫ (^2) π

0

∫ (^2) π

0

0

0

−∞

e−^

(^12) (r (^2) +ρ (^2) +h (^2) )

× χ(ρ^2 sin^2 (β − α) − h^2 sin 2 α) r^2 ρ| sin α + cos α| dh dρ dr dβ dα

=

16 π^3 /^2

∫ (^2) π

0

∫ (^2) π

0

0

−∞

e−^

(^12) (ρ (^2) +h (^2) )

× χ(ρ^2 sin^2 (β − α) − h^2 sin 2 α) ρ| sin α + cos α| dh dρ dβ dα.

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

726 J. Greene

If sin 2α ≤ 0, then χ(S) = 1. This occurs for π 2 < α < π, and 32 π < α < 2 π. These two intervals each contribute the same amount:

1 16 π^3 /^2

∫ (^) π

π/ 2

∫ (^2) π

0

0

−∞

e−^

(^12) (ρ (^2) +h (^2) ) ρ| sin α + cos α| dh dρ dβ dα

16 π^3 /^2

2 π(1)(2π)

∫ (^) π

π/ 2

| sin α + cos α| dα

2 − 1) =^2 −

The total contribution from the region with sin 2α < 0 is twice this, giving

p = 2

8 π^3 /^2

∫ (^) π/ 2

0

∫ (^2) π

0

0

−∞

e−^

(^12) (ρ^2 +h^2 )

× χ(ρ^2 sin^2 (β − α) − h^2 sin 2α) ρ(sin α + cos α) dh dρ dβ dα

= 1 − √^1 2

4 π^3 /^2

∫ (^) π/ 2

0

∫ (^2) π

0

0

0

e−^12 (ρ

(^2) +h (^2) )

× χ(ρ^2 sin^2 (β − α) − h^2 sin 2α) ρ(sin α + cos α) dh dρ dβ dα.

Now by periodicity, sin^2 (β − α) may be replaced by sin^2 β. If we replace h by ρh, this integral transforms:

p = 1 − √^1 2

4 π^3 /^2

∫ (^) π/ 2

0

∫ (^2) π

0

0

0

e−^

(^12) ρ (^2) (1+h (^2) )

× χ(sin^2 β − h^2 sin 2α) ρ^2 (sin α + cos α) dh dρ dβ dα.

Changing ρ to (^) (1+hρ (^2) ) 1 / 2 , we have

p = 1 −

4 π^3 /^2

∫ (^) π/ 2

0

∫ (^2) π

0

0

0

e−^

(^12) ρ 2

× χ(sin^2 β − h^2 sin 2α) 1 (1 + h^2 )^3 /^2

ρ^2 (sin α + cos α) dh dρ dβ dα

8 π

∫ (^) π/ 2

0

∫ (^2) π

0

0

χ(sin^2 β − h^2 sin 2α)

× 1 (1 + h^2 )^3 /^2

(sin α + cos α) dh dβ dα.

The condition sin^2 β − h^2 sin 2α > 0 is equivalent to h < u, where u = √|^ sinsin 2^ βα|.

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

728 J. Greene

construct 1,000,000 matrices A and B, with entries selected uniformly at random from the interval [− 1 , 1]. Matrices were categorized by whether they had real or complex eigenvalues, and whether the trace of ABAB was larger than the trace of A^2 B^2. In Table 5.1, an r in the first column means that a matrix has real eigenvalues, a c signifies complex eigenvalues.

A B Tr(ABAB) is larger frequency r r no 279, r r yes 183, r c no 0 r c yes 217, c r no 0 c r yes 217, c c no 0 c c yes 101, Table 5.

It was this table that inspired Lemma 3.6. As one can see from the table, ABAB had the larger trace in 720,660 cases. The cases where either A or B had complex eigenvalues accounted for 536,959 of these cases, in good agreement with the estimate .537. What the author can not account for is the likelihood that ABAB has the larger trace when both A and B have real eigenvalues.

One may ask what changes in Table 5.1 when entries are selected from a normal distribution rather than a uniform distribution. The results from this calculation are presented in Table 5.2. Calculations for this and subsequent tables were performed in MapleTM.

A B Tr(ABAB) is larger frequency r r no 292, r r yes 207, r c no 0 r c yes 207, c r no 0 c r yes 206, c c no 0 c c yes 85, Table 5.

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

Traces of Matrix Products 729

Again, the results in this table are consistent with theory: The sum of the yes’s is 707,456 in good agreement with √^12. It was this calculation that led to Theorem 1.3.

Also, A and B should both have real eigenvalues with probability 12 ; the probability

that both A and B have complex eigenvalues should be

1 − √^12

≈ .0858, and the

probability that A and B both have real eigenvalues with T r(ABAB) > T r(A^2 B^2 ) should be √^12 − 12 ≈ .2071. These compare with 500,141, 85,747, and 207,597, respec- tively.

Theorems 1.3 and 1.4 apply to matrices with an even number of A’s and an even number of B’s, and even here, to a subset of possible pairings of necklaces. With regard to the first comment, given two necklaces represented by M 1 and M 2 where the number of A’s or the number of B’s is odd, T r(M 1 ) > T r(M 2 ) with probability 1 2.^ The reason for this is the involution^ A^7 → −A,^ which reverses the inequality when there are on odd number of A’s. Thus, if we have three A’s and two B’s, there are two necklaces represented by A^3 B^2 and A^2 BAB, and each is equally likely to be larger than the other.

As the number of A’s and B’s grows, so does the number of necklaces. If, for example, there are two A’s and four B’s, then there are three necklaces represented by A^2 B^4 , ABAB^3 and AB^2 AB^2. Here, Theorems 1.3 and 1.4 only apply to the comparison of the first and last. That is, T r(AB^2 AB^2 ) > T r(A^2 B^4 ) with probability √^1 2 when entries are selected from the normal distribution via Theorem 1.3 with M = AB^2.

Trace combination Number of cases T r(AB^2 AB^2 ) > T r(A^2 B^4 ) 642, T r(AB^2 AB^2 ) > T r(ABAB^3 ) 706, T r(ABAB^3 ) > T r(A^2 B^4 ) 582, Table 5.

Estimates for the relative probabilities of the other necklace comparisons can be made by again picking 1, 000 , 000 pairs A and B at random. Using the normal distri- bution the results are given in Table 5.3. The author does not know the probabilities for the other trace pairings, though their values are 8-dimensional integrals similar to the one used in the proof of Theorem 1.3.

If one wished for the probabilities for the six orderings of the traces, then with M 1 = AB^2 AB^2 , M 2 = ABAB^3 and M 3 = A^2 B^4 , and 1, 000 , 000 simulations the author obtained Table 5.4.

In this table, the author has no explanation for the frequencies except for the 0

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

Traces of Matrix Products 731

One might also ask what happens with larger matrices. The following table contains 1, 000 , 000 trials each, asking when ABAB had a larger trace than A^2 B^2 , where A and B are n × n matrices for various values of n. As one might guess, for larger matrices, the type of distribution appears to matter less. The results show that in general, ABAB appears to have the larger trace about 70% of the time, with the probability appearing to slowly rise for n ≥ 5.

n normal variables uniform variables 2 707,456 720, 3 703,004 703, 4 701,885 700, 5 702,375 700, 10 706,124 704, 20 709,715 710, 50 714,473 714, 100 716,805 717, Table 5.

Since, for 2 × 2 matrices A and B, T r(ABAB) − T r(A^2 B^2 ) = − det(AB − BA), and T r(AB − BA) = 0, one might ask if there is a relationship to matrices of trace 0. For 2 × 2 matrices, T r(N ) = 0 if and only if N = AB − BA for some matrices A and B [8, p. 21]. However, the connection between N and A and B is not one-to-one. If

N =

[

a b c −a

]

, then det(N ) = −a^2 − bc is negative whenever bc is positive, which is

to say, over half the time. In fact, one may calculate the probability that det(N ) < 0.

Theorem 5.1. Let N =

[

a b c −a

]

(a) If the entries of N are selected independently from the uniform distribution on [− 1 , 1], then det(N ) < 0 with probability 79.

(b) If the entries of N are independent normally distributed elements of mean 0 and variance 1 , then det(N ) < 0 with probability 12 + (^21) π K

2

, where K(k) is the complete elliptic integral of the first kind.

Proof. For (a), the probability we seek is

1 8

− 1

− 1

− 1

χ(a^2 + bc) da db dc.

If we replace b by −b, then we seek the region with a^2 > bc. Certainly this is the

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

732 J. Greene

case if bc < 0, which contributes 12 to the probability. Thus, the probability we seek is

0

0

0

χ(a^2 − bc) da db dc.

Now a^2 > bc if a >

bc, so our probability is

+^1

0

0

√bc^ da db dc

=

0

0

(1 − b^1 /^2 c^1 /^2 ) db dc

=^1

+^1

0

c^1 /^2

dc

as desired.

For part (b), a general reference for the complete elliptic function is [1]. The important value is

K

∫ (^) π/ 2

0

√^1

1 − 14 sin^2 θ

dθ

0

1 + x^2 + x^4

dx,

by the change of variables θ = 2 arctan x. Replacing x by (^1) x converts the interval of integration from [0, 1] to [1, ∞), so

K

0

√^1

1 + x^2 + x^4

dx. (5.1)

We mention that there is a misprint in [6, sec. 3.165 integral 2], which evaluates the given integral as 12 K( 12 ) instead of K( 12 ). The probability we seek is

(2π)^3 /^2

0

0

0

e−^

(^12) (a (^2) +b (^2) +c (^2) ) χ(a^2 − bc) db dc da.

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014

ELA

734 J. Greene

sign of the determinant in this case. Based on Table 5.7, the following are at least plausible, however. Let pn be the probability that det(AB − BA) < 0, where A and B are n × n matrices with independent standard normal entries. Let qn be the probability that det(AB − BA) < 0, where A and B are n × n matrices with entries independent entries selected uniformly on [− 1 , 1].

Conjecture 1. (^) nlim→∞ pn = (^) nlim→∞ qn =

Conjecture 2. If n is even, then pn 6 = 12 and qn 6 = 12.

Conjecture 3. If n ≡ 2 (mod 4), then pn > 12 and qn > 12.

Conjecture 4. If n ≡ 0 (mod 4), then pn < 12 and qn < 12.

It is unclear from Table 5.4 how pn and qn compare to each other in magnitude.

REFERENCES

[1] M. Abramowitz and I.A. Stegun (editors). Elliptic Integrals, Ch. 17 in Handbook of Mathe- matical Functions with Formulas, Graphs, and Mathematical Tables. Dover Publications, New York, 587–607, 1972. [2] N. Alon. Combinatorial nullstellensatz. Combinatorics, Probability and Computing, 8:7–29,

[3] E. Coddington and N. Levinson. Theory of Ordinary Differential Equations. McGraw Hill, New York, 1955. [4] A. Edelman. The probability that a random real gaussian matrix has real eigenvalues, related distributions, and the circular law. J. Multivariate Anal. 60:203–232, 1997. [5] A. Edelman, E. Kostlan, and M.Shub. How many eigenvalues of a random matrix are real? J. Amer. Math. Soc., 7:247–267, 1994. [6] I.S. Gradshteyn and I.M. Ryzhik. Tables of Integrals, Series, and Products, sixth edition. Academic Press, San Diego, 2000. [7] J. Greene and K. Niedzielski. Periodic solutions to some difference equations over the integers. Difference Equations and Their Applications, 16:321–346, 2010. [8] K. Hoffman and R. Kunze. Linear Algebra. Prentice Hall, Englewood Cliffs, 1971. [9] Z. Huang. Traces of Matrix Products. Master Thesis, University of Minnesota Duluth, 2009. [10] C. Meyer. Matrix Analysis and Applied Linear Algebra. SIAM, Philadelphia, 2000. [11] K. Niedzielski. Periodic Solutions to Difference Equations. Master Project, University of Min- nesota Duluth, 2008. [12] B. Noble and J. Daniel. Applied Linear Algebra. Prentice Hall, Englewood, 1988.

A publication of the International Linear Algebra Society Volume 27, pp. 716-734, October 2014