W = iwishrnd(Tau,nu)
generates a matrix of random numbers drawn from an inverse Wishart distribution with the
covariance parameter Tau and nu degrees of freedom.
The inverse of W has the Wishart distribution with the covariance matrix
Sigma = inv(Tau) and nu degrees of freedom.
[W,DInvOut] = iwishrnd(Tau,nu)
also returns the transpose of the inverse of the Cholesky factor of
Tau.
W = iwishrnd(Tau,nu,DInv)
specifies the transpose of the inverse of the Cholesky factor of Tau,
such that DInv'*DInv = inv(Tau), where inv is the MATLAB® inverse function.
Generate a matrix of random numbers from a Wishart distribution with the covariance parameter Tau = inv(Sigma) and four degrees of freedom. Compute and return DInvOut, which is the transpose of the inverse of the Cholesky factor of Tau.
Use DInvOut to generate another matrix of random numbers from an inverse Wishart distribution that has the same covariance parameter and degrees of freedom.
Covariance parameter, specified as a d-by-d
symmetric, positive definite matrix, where d is the dimension of the
inverse Wishart distribution. The inverse of W has the Wishart
distribution with the covariance matrix Sigma = inv(Tau) and
nu degrees of freedom.
Data Types: single | double
Degrees of freedom, specified as a positive scalar.
Data Types: single | double
Transpose of the inverse of the Cholesky factor of Tau,
specified as a lower-triangular numeric matrix with the same dimensions as
Tau. When you specify this argument, the software uses the value
of DInv instead of computing it directly from
Tau according to the expression DInv'*DInv =
inv(Tau).
Inverse Wishart random numbers, returned as an array of scalar values with the same
dimensions as Tau. The expected value of W is
equal to Tau/(nu – d – 1), where d is the
dimension of Tau.
Transpose of the inverse of the Cholesky factor of Tau,
returned as an array of scalar values with the same dimensions as
Tau. DInv is defined by DInv'*DInv
= inv(Tau), where inv is the MATLAB inverse function.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.