8

Given the $3 \times 3$ matrix

$$A = \begin{pmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \\ \end{pmatrix}$$

where every $a_{ij} \in {\Bbb R}$ is randomly selected from the interval $\left[3-3i-j,3i+j-3\right]$. What is the probability that $|A|\in[-9,9]$?


I have no idea on how to solve this problem in a purely mathematical way without any software. I used Microsoft Excel just to get a rough estimate. In columns A, B, and C, I created random $3 \times 3$ matrices with the specified criterion. In column D, I evaluated the determinant. Then, using Excel functions (COUNT, COUNTIF, SUM,...). I generated $2\cdot 10^5$ such matrices and the required probability turned out to be $\displaystyle \color{red}{\approx}\frac{35}{99}$. How can we evaluate this probability without any software?


Correction after seeing @JimB answer:

I used a slightly different way for the formulae in EXCEL, that is:

(-1)^RANDBETWEEN(0,1)*(RANDBETWEEN(0,0)+RAND()) in A2

(-1)^RANDBETWEEN(0,1)*(RANDBETWEEN(0,1)+RAND()) in B2

(-1)^RANDBETWEEN(0,1)*(RANDBETWEEN(0,2)+RAND()) in C2

and so on until

(-1)^RANDBETWEEN(0,1)*(RANDBETWEEN(0,8)+RAND()) in I2

With J2 being the determinant:

A2*(E2*I2-F2*H2)-B2*(D2*I2-F2*G2)+C2*(D2*H2-E2*G2)

With COUNTIF function for the criterion:

COUNTIFS(J2:J1000001,">-9",J2:J1000001,"<9")

I got $\approx 0.273902$.


I am looking for a purely mathematical way. Is there any?


Your help would be appreciated.

Hussain-Alqatari
  • 5,738
  • 3
  • 16
  • 44

1 Answers1

1

This is just an extended comment that responds to your request for me to justify my suggestion that the answer is closer to 0.274648. I show that is roughly the answer using Excel, R, and Mathematica.

Excel

Excel approach

The 0.2797 is what I get with 10,000 simulations. Cell J3 is

 =-C3*E3*G3+B3*F3*G3+C3*D3*H3-A3*F3*H3-B3*D3*I3+A3*E3*I3Cell K3 is 

Cell K3 is

 =(COUNTIF(J3:J10002,">=-9")-COUNTIF(J3:J10002,">9"))/10000

R

set.seed(12345)
a11 <- -1 +  2*runif(10000)
a12 <- -2 +  4*runif(10000)
a13 <- -3 +  6*runif(10000)
a21 <- -4 +  8*runif(10000)
a22 <- -5 + 10*runif(10000)
a23 <- -6 + 12*runif(10000)
a31 <- -7 + 14*runif(10000)
a32 <- -8 + 16*runif(10000)
a33 <- -9 + 18*runif(10000)

d <- -a13a22a31 + a12a23a31 + a13a21a32 - a11a23a32 - a12a21a33 + a11a22a33

length(d[d >= -9 & d <= 9])/10000

0.2743

Mathematica

A = Table[a[i, j], {i, 1, 3}, {j, 1, 3}];
uniform = Flatten[Table[a[i, j] \[Distributed] 
    UniformDistribution[{3 - 3  i - j, 3  i + j - 3}], {i, 1, 3}, {j, 1, 3}], 1]
dist = TransformedDistribution[Det[A], uniform];
SeedRandom[12345];
data = RandomVariate[dist, 1000000];
(*Proportion of observations between-9 and 9*)
Length[Select[data, -9 <= # <= 9 &]]/1000000 // N
(* 0.274421 *)
JimB
  • 2,285
  • You're right that my approx was not good. I used a slightly different way for the formulae in EXCEL, that is:

    (-1)^RANDBETWEEN(0,1)*(RANDBETWEEN(0,0)+RAND()) in A2

    (-1)^RANDBETWEEN(0,1)*(RANDBETWEEN(0,1)+RAND()) in B2

    (-1)^RANDBETWEEN(0,1)*(RANDBETWEEN(0,2)+RAND()) in C2

    and so on until

    (-1)^RANDBETWEEN(0,1)*(RANDBETWEEN(0,8)+RAND()) in I2

    With J2 being the determinant:

    A2(E2I2-F2H2)-B2(D2I2-F2G2)+C2(D2H2-E2*G2)

    With COUNTIF function for the criterion:

    COUNTIFS(J2:J1000001,">-9",J2:J1000001,"<9")

    I got similar to you: 0.273902. Any purely mathematical way?

    – Hussain-Alqatari Feb 10 '25 at 13:10
  • As asked in a comment, going through the process for a 2x2 matrix will result in a "mathematical" solution and get you ready for the resulting complexity of a solution for your 3x3 matrix. – JimB Apr 11 '25 at 18:40