Normal

The standard parametrisation of the Normal distribution is given by

\[\mathcal{N}(x ; \mu , \Sigma ),\]

where $\mu$ is the mean vector and $\Sigma$ is the covariance matrix. The exact expression for the probabiltiy density function depends on whether $x$ is vector with real or complex values, both are supported. For real valued vectors the density function is given by

\[\mathcal{N}(x ; \mu , \Sigma ) = |2\pi \Sigma|^{-1/2} \exp \Big( -\frac{1}{2}(x-\mu)^* \Sigma^{-1} (x-\mu) \Big),\]

whereas for complex valued vectors the density function is given by

\[\mathcal{N}(x ; \mu , \Sigma ) = |\pi \Sigma|^{-1} \exp \Big( -(x-\mu)^* \Sigma^{-1} (x-\mu) \Big).\]

Types

MarkovKernels.NormalType
Normal{T,U,V}

Standard mean vector / covariance matrix parametrisation of the normal distribution with element type T.

source

Constructors

MarkovKernels.NormalMethod
Normal(μ::AbstractVector, Σ::CovarianceParameter)

Creates a Normal distribution with mean vector μ and covariance matrix parametrised by Σ.

source
MarkovKernels.NormalMethod
Normal(μ::AbstractVector, Σ::AbstractMatrix)

Creates a Normal distribution with mean vector μ and covariance matrix Σ if Σ is Symmetric / Hermitian. Throws domain error otherwise.

source
MarkovKernels.NormalMethod
Normal{T}(N::Normal{U,V,W})

Computes a Normal distribution of eltype T from the Normal distribution N if T and U are compatible. That is T and U must both be Real or both be Complex.

source

Basics

Statistics.meanMethod
mean(N::AbstractNormal)

Computes the mean vector of the Normal distribution N.

source
Statistics.covMethod
cov(N::AbstractNormal)

Computes the covariance matrix of the Normal distribution N.

source
MarkovKernels.covpMethod
covp(N::AbstractNormal)

Returns the internal representation of the covariance matrix of the Normal distribution N. For computing the actual covariance matrix, use cov.

source
Statistics.varMethod
var(N::AbstractNormal)

Computes the vector of marginal variances of the Normal distribution N.

source
Statistics.stdMethod
std(N::AbstractNormal)

Computes the vector of marginal standard deviations of the Normal distribution N.

source

Probability density function

MarkovKernels.residualMethod
residual(N::AbstractNormal, x::AbstractVector)

Computes the whitened residual associated with the Normal distribution N and observed vector x.

source
MarkovKernels.logpdfMethod
logpdf(N::AbstractNormal,x)

Computes the logarithm of the probability density function of the Normal distribution N evaluated at x.

source

Information theory

MarkovKernels.kldivergenceMethod
kldivergence(N1::AbstractNormal, N2::AbstractNormal)

Computes the Kullback-Leibler divergence between the Normal distributions N1 and N2.

source

Sampling

Base.randMethod
rand(RNG::AbstractRNG, N::AbstractNormal)

Computes a random vector distributed according to the Normal distribution N using the random number generator RNG.

source