Confidence Intervals for Wishart Random Matrices
In this post we briefly describe Wishart-distributed random matrices and a result from (Chiani, 2017), which provides an algorithm for calculating the probability that a standard Wishart-distributed matrix's eigenvalues lie within a given interval. The functions described in this post are implemented in Python here, including Algorithm 1 from (Chiani, 2017). We also talk about quantile functions and non-standard Wishart-distributed matrices.
The Wishart distribution
Suppose we have the random matrix
where and each is independently drawn from a zero-mean multivariate normal distribution
with positive definite covariance matrix . Then is Wishart-distributed, and we write
where is called the degrees of freedom. We refer to the special case as the standard Wishart distribution, where is the identity matrix.
The Wishart distribution arises as the conjugate prior to the inverse covariance matrix of a multivariate normal distribution in Bayesian statistics, among other places.
One property of the Wishart distribution that we will make use of later is that if and is a constant, full-rank matrix, then
Confidence bounds on the eigenvalues of standard Wishart matrices
Suppose we want to compute the probability that the eigenvalues of some standard Wishart-distributed matrix
are contained in a given interval , with . We denote this probability as
where and are the minimum and maximum eigenvalues of , respectively. The probability is equivalent to
(see Appendix A.5.2 of (Boyd & Vandenberghe, 2004)), where the notation means that is positive semidefinite.
Algorithm 1 of (Chiani, 2017) tells us how to compute the function such that
and I've implemented this algorithm in Python here. This immediately gives us the cumulative density functions (CDFs) of the minimum and maximum eigenvalues of :
where and are the CDFs for the minimum and maximum eigenvalues, respectively.
Quantile functions
We now have a method for computing the CDFs of the eigenvalues, but we do not have the inverse CDFs (i.e., the quantile functions), which compute the bounds required to achieve a given probability. For example, suppose we want to find the value such that with a given probability . One way to do this is by solving the optimization problem
which is also implemented here, using one of scipy's built-in solvers.
Non-standard Wishart matrices
We can extend the results above to the non-standard Wishart-distributed matrix
In particular, generalizing we get
To see this, let be the Cholesky decomposition of , such that . Since is positive definite, is full-rank and invertible. Then from we know that , which means that . Finally, since if and only if (this follows from Observation 7.1.8 of (Horn & Johnson, 2013)), we obtain .
Notice that is no longer expressed in terms of eigenvalues of , but only expresses the probability that is bounded by two matrices. This could be useful for formulating chance constraints on a positive definite matrix in convex optimization.
Thanks to Abhishek Goudar for reading a draft of this.
References
- Boyd, Stephen and Lieven Vandenberghe (2004). Convex Optimization. Cambridge University Press. (Freely available here.)
- Chiani, M. (2017). "On the Probability That All Eigenvalues of Gaussian, Wishart, and Double Wishart Random Matrices Lie Within an Interval," in IEEE Transactions on Information Theory, vol. 63, no. 7, pp. 4521–4531, July 2017, doi: 10.1109/TIT.2017.2694846, arxiv: 1502.04189.
- Horn, Roger A. and Charles R. Johnson (2013). Matrix Analysis. Cambridge University Press.