mom2cum | R Documentation |
Given an array of moments of a multivariate distribution, the corresponding cumulants up to the 4th order and other connected quantities are computed, notably the Mardia's measures of multivariate skewness and kurtosis
mom2cum(mom)
mom |
an array whose entries are assumed to represent moments of a multivariate distribution; see ‘Details’ for an extended description. |
The structure of the input array mom
is of type M/M[1]
where M
represents the output from function recintab
.
For a d
-dimensional random variable, mom
is a k
-fold
d
-dimensional array, where k
is the highest order of moments
being considered;
see the documentation of recintab
for a more detailed description.
However, it is not necessary that mom
originates from recintab
;
the moments can refer to any distribution, as long as mom
has the
appropriate structure and content.
Also, it is not necessary that all entries of mom
are there;
values not required for the processing can be left as NA
.
For computing cumulants of order k
, say, we only need cross moments
whose exponents add up to k
or less.
Conversion from moments to cumulants is performed by using formulae (2.7) of McCullagh (1987). See also ρ_{23}^2 in his (2.15) and ρ_4 in (2.16) for computing the Mardia's (1970, 1974) measures of multivariate skewness and kurtosis.
In some cases,
the function may report inconsistencies detected in the argument mom
.
A typical origin of this situation is in numerical inaccuracies of the
returned value of recintab
,
as explained in more detail in its documentation.
When detected, cases of these sort are flagged in the returned $message
string, and a warning message is issued.
The absence of such string does not represent a guarantee of perfect input.
In the multivariate case, a list with the following elements, provided moments of the required order are available, up to the maximal order 4.
cum1 |
the |
order2 |
a list with the following components:
|
order3 |
a list with the following components:
|
order4 |
a list with the following components:
|
message |
possibly, a character string indicating that some inconsistency
has been detected in the argument |
In the univariate case a list with elements:
cum |
a vector of cumulants, |
centr.mom |
a vector of central moments, |
std.cum |
a vector with the third and the fourth standardized cumulants (when enough moments are available), representing common measures of skewness and kurtosis. |
message |
possibly, a character string indicating that some inconsistency
has been detected in the argument |
In the case of a multivariate truncated normal distribution,
a user does not need to call this function; mom.mtruncnorm
provides a more convenient interface for the same computations.
The present function needs to be called only if the array mom
represents the moments of some other distribution.
Adelchi Azzalini
Mardia, K. V. (1970). Measures of multivariate skewness and kurtosis with applications Biometrika, 57, 519-530.
Mardia, K. V. (1974). Applications of some measures of multivariate skewness and kurtosis in testing normality and robustness studies. Sankhya ser.B, 36, 115-128.
McCullagh, Peter (1987). Tensor Methods in Statistics. Chapman & Hall, London.
recintab
mu <- c(1, -0.5) Sigma <- toeplitz(1/(1:2)) low <- c(-Inf, -3) hi <- c(1.5, Inf) mom <- recintab(c(3,3), low, hi, mu, Sigma) cum <- mom2cum(mom) print(cum$order3$gamma1.marginal) print(cum$order3$gamma1.Mardia)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.