public class MultivariateTDistribution extends Object implements MultivariateProbabilityDistribution
dmvt
from the package mvtnorm
.Constructor and Description |
---|
MultivariateTDistribution(int dim,
int v)
Constructs an instance of the standard t distribution, mean 0, variance 1.
|
MultivariateTDistribution(int v,
Vector mu,
Matrix Sigma)
Constructs an instance with the given mean and scale matrix.
|
Modifier and Type | Method and Description |
---|---|
double |
cdf(Vector x)
Gets the cumulative probability F(x) = Pr(X ≤ x).
|
Matrix |
covariance()
Gets the covariance matrix of this distribution.
|
double |
density(Vector x)
The density function, which, if exists, is the derivative of F.
|
double |
entropy()
Gets the entropy of this distribution.
|
Vector |
mean()
Gets the mean of this distribution.
|
Vector |
mode()
Gets the mode of this distribution.
|
double |
moment(Vector t)
The moment generating function is the expected value of etX.
|
public MultivariateTDistribution(int v, Vector mu, Matrix Sigma)
v
- the degree of freedommu
- the mean, a px1 vector, where p is the dimensionSigma
- the scale or dispersion matrix, a positive definite, real, pxp matrix;
this is not the covariance matrixpublic MultivariateTDistribution(int dim, int v)
dim
- the dimensionality of the distributionv
- the degree of freedom; v > 2public double cdf(Vector x)
MultivariateProbabilityDistribution
cdf
in interface MultivariateProbabilityDistribution
x
- xpublic double density(Vector x)
MultivariateProbabilityDistribution
f(x) = dF(X) / dxThis may not always exist. For the discrete cases, this is the probability mass function. It gives the probability that a discrete random variable is exactly equal to some value.
density
in interface MultivariateProbabilityDistribution
x
- xpublic Vector mean()
MultivariateProbabilityDistribution
mean
in interface MultivariateProbabilityDistribution
public Vector mode()
MultivariateProbabilityDistribution
mode
in interface MultivariateProbabilityDistribution
public Matrix covariance()
MultivariateProbabilityDistribution
covariance
in interface MultivariateProbabilityDistribution
public double entropy()
MultivariateProbabilityDistribution
entropy
in interface MultivariateProbabilityDistribution
public double moment(Vector t)
MultivariateProbabilityDistribution
E(etX)This may not always exist.
moment
in interface MultivariateProbabilityDistribution
t
- tCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.