Monte Carlo Mean and variance for doubly truncated multivariate distributions
Monte Carlo Mean and variance for doubly truncated multivariate distributions
It computes the Monte Carlo mean vector and variance-covariance matrix for some doubly truncated skew-elliptical distributions. Monte Carlo simulations are performed via slice Sampling. It supports the p-variate Normal, Skew-normal (SN), Extended Skew-normal (ESN) and Unified Skew-normal (SUN) as well as the Student's-t, Skew-t (ST), Extended Skew-t (EST) and Unified Skew-t (SUT) distribution.
mu: a numeric vector of length p representing the location parameter.
Sigma: a numeric positive definite matrix with dimension pxp representing the scale parameter.
lambda: a numeric matrix of dimension pxq representing the skewness/shape matrix parameter for the SUN and SUT distribution. For the ESN and EST distributions (q=1), lambda is a numeric vector of dimension p (see examples at the end of this help). If all(lambda == 0), the SUN/ESN/SN (SUT/EST/ST) reduces to a normal (t) symmetric distribution.
tau: a numeric vector of length q representing the extension parameter for the SUN and SUT distribution. For the ESN and EST distributions, tau is a positive scalar (q=1). Furthermore, if tau == 0, the ESN (EST) reduces to a SN (ST) distribution.
Gamma: a correlation matrix with dimension qxq. It must be provided only for the SUN and SUT cases. For particular cases SN, ESN, ST and EST, we have that Gamma == 1 (see examples at the end of this help).
nu: It represents the degrees of freedom for the Student's t-distribution being a positive real number.
dist: represents the truncated distribution to be used. The values are normal, SN , ESN and SUN for the doubly truncated Normal, Skew-normal, Extended Skew-normal and Unified-skew normal distributions and, t, ST , EST and SUT for the for the doubly truncated Student-t, Skew-t, Extended Skew-t and Unified skew-t distributions.
n: number of Monte Carlo samples to be generated.
Returns
It returns a list with three elements: - mean: the estimate for the mean vector of length p
EYY: the estimate for the second moment matrix of dimensions pxp
varcov: the estimate for the variance-covariance matrix of dimensions pxp
References
Arellano-Valle, R. B. & Genton, M. G. (2005). On fundamental skew distributions. Journal of Multivariate Analysis, 96, 93-116.
Ho, H. J., Lin, T. I., Chen, H. Y., & Wang, W. L. (2012). Some results on the truncated multivariate t distribution. Journal of Statistical Planning and Inference, 142(1), 25-40.