Mean and variance for doubly truncated multivariate distributions
Mean and variance for doubly truncated multivariate distributions
It computes the mean vector and variance-covariance matrix for some doubly truncated skew-elliptical distributions. 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.
Details
Univariate case is also considered, where Sigma will be the variance σ2. Normal case code is an R adaptation of the Matlab available function dtmvnmom.m from Kan & Robotti (2017) and it is used for p<=3. For higher dimensions we use an extension of the algorithm in Vaida (2009).
Returns
It returns a list with three elements: - mean: the mean vector of length p
EYY: the second moment matrix of dimensions pxp
varcov: the variance-covariance matrix of dimensions pxp
References
Galarza, C. E., Lin, T. I., Wang, W. L., & Lachos, V. H. (2021). On moments of folded and truncated multivariate Student-t distributions based on recurrence relations. Metrika, 84(6), 825-850 doi:10.1007/s00184-020-00802-1.
Galarza, C. E., Matos, L. A., Dey, D. K., & Lachos, V. H. (2022a). "On moments of folded and doubly truncated multivariate extended skew-normal distributions." Journal of Computational and Graphical Statistics, 1-11 doi:10.1080/10618600.2021.2000869.
Galarza, C. E., Matos, L. A., Castro, L. M., & Lachos, V. H. (2022b). Moments of the doubly truncated selection elliptical distributions with emphasis on the unified multivariate skew-t distribution. Journal of Multivariate Analysis, 189, 104944 doi:10.1016/j.jmva.2021.104944.