Properties of Matrix Distributions
The lower-dimensional statistics derived from the random matrices play significant roles in characterizing the matrix ensembles. In various limiting situations, the distributions of these statistics collapse into different universality classes. MatrixPropertyDistribution provides a convenient access to sample and compute the numerical approximation of these derived properties.
Sample the largest two eigenvalues from a Gaussian unitary ensemble.
dist = MatrixPropertyDistribution[With[{spectrum = Eigenvalues[x]},
{Max[spectrum], RankedMax[spectrum, 2]}],
x \[Distributed] GaussianUnitaryMatrixDistribution[50]];
RandomVariate[dist]
Visualize the joint distribution of the largest two eigenvalues based on the sampled result.
sample = RandomVariate[dist, 10^4];
Sample the determinant of matrices from a Gaussian orthogonal ensemble and compare the empirical distribution with the closed-form expression.
dist = MatrixPropertyDistribution[Det[x],
x \[Distributed] GaussianOrthogonalMatrixDistribution[2]];
dets = RandomVariate[dist, 10^6];
Approximate the mean of the determinant via Monte Carlo sampling and compare it with the actual value.
{N@Mean[dist], Integrate[x detpdf[x], {x, -Infinity, Infinity}]}