Matrix-variate Distributions

Matrix-variate Distributions

Matrix-variate distributions are the distributions whose variate forms are Matrixvariate (i.e each sample is a matrix). Abstract types for matrix-variate distributions:

Common Interface

Both distributions implement the same set of methods:

Base.sizeMethod.
size(d::MatrixDistribution)

Return the size of each sample from distribution d.

source
Base.lengthMethod.
length(d::MatrixDistribution)

The length (i.e number of elements) of each sample from the distribution d.

source
Base.meanMethod.
mean(d::MatrixDistribution)

Return the mean matrix of d.

source
Distributions.pdfMethod.
pdf(d::MatrixDistribution, x::AbstractArray)

Compute the probability density at the input matrix x.

source
logpdf(d::MatrixDistribution, AbstractMatrix)

Compute the logarithm of the probability density at the input matrix x.

source
Base.Random.randMethod.
rand(d::MatrixDistribution, n)

Draw a sample matrix from the distribution d.

source

Distributions

Wishart(nu, S)

The Wishart distribution is a multidimensional generalization of the Chi-square distribution, which is characterized by a degree of freedom ν, and a base matrix S.

source
InverseWishart(nu, P)

The [Inverse Wishart distribution](http://en.wikipedia.org/wiki/Inverse-Wishart_distribution is usually used a the conjugate prior for the covariance matrix of a multivariate normal distribution, which is characterized by a degree of freedom ν, and a base matrix Φ.

source

Internal Methods (for creating your own matrix-variate distributions)

_logpdf(d::MatrixDistribution, x::AbstractArray)

Evaluate logarithm of pdf value for a given sample x. This function need not perform dimension checking.

source