MultivariateT

class telescopic.kernels.MultivariateT(mean, cov, df=5)

Multivariate Student-\(t\) proposal with location mean, scale cov, df.

Draws use only normals: \(x = \mu + Cz/\sqrt{w/\nu}\) with \(w\) the sum of \(\nu\) squared normals, so df is a positive integer. df=None gives the Gaussian \(\mathcal N(\mu, \Sigma)\).

Parameters:
meanarray_like, shape (d,)

The location \(\mu\).

covarray_like, shape (d, d)

Scale matrix; the covariance is cov * df / (df - 2) for df > 2.

dfint or None

The degrees of freedom \(\nu\), a positive integer, or None.

log_density(x)

Normalized log-density at the rows of x.

Parameters:
xndarray, shape (n, d)

The points.

Returns:
ndarray, shape (n,)
sample(draws)

One draw per row of draws; uses d + df normals per row.

Parameters:
drawsDraws

The random numbers of n chains.

Returns:
ndarray, shape (n, d)