Abstract
Given the omnipresence of the assumption of elliptical symmetry, it is essential to be able to test whether that assumption actually holds true or not for the data at hand. This package provides several statistical tests for elliptical symmetry that are described in Babic et al. (2021) doi:10.48550/arXiv.2011.12560.
Introduction
The assumption of normality is a cornerstone of classical statistics. However, in multivariate analysis, researchers often broaden this to the "elliptical symmetry" assumption. This family of distributions includes the Multivariate Normal distribution but also encompasses heavy-tailed alternatives like the Multivariate $t$-distribution. Blindly assuming elliptical symmetry can lead to biased models and incorrect inferences if the underlying data structure is skewed or otherwise non-elliptical.
The R package ellipticalsymmetry provides a specialized toolkit to formally test this assumption. Based on the work of Babic et al. (2021), the package implements a variety of statistical tests—ranging from classical chi-square approaches to modern, optimal tests based on spherical harmonics—to ensure data fits the intended model.
Methodology
In multivariate statistics, many popular techniques, such as Principal Component Analysis (PCA), certain types of Discriminant Analysis, and portfolio optimization, rely on the data being elliptically symmetric. An elliptical distribution is defined as one where the constant-density contours are ellipsoids.
The package implements six distinct testing methodologies, each addressing different statistical trade-offs:
HufferPark: A Pearson chi-square type test that divides the data space into spherical shells and sectors (orthants, permutations, or angles). It often utilizes bootstrap replicates to determine $p$-values when the data is not close to normal.KoltchinskiiSakhanenko: An omnibus bootstrap test based on spherical harmonics. It is affine-invariant (the result is independent of data rotation or scaling) and consistent against any fixed alternative.MPQ: Based on the work of Manzotti, Pérez, and Quiroz, this test uses averages of spherical harmonics over scale residuals. It requires the data to have finite moments of order 4.PseudoGaussian: Derived from Le Cam’s theory of statistical experiments, this test is specifically efficient against Fechner-type asymmetry. Like MPQ, it requires finite 4th moments.Schott: A Wald-type test that compares sample fourth moments against the theoretical moments expected under ellipticity. While computationally simple, it is restrictive, requiring the existence of 8th-order moments.SkewOptimal: The package's flagship test. It is optimal against generalized skew-elliptical alternatives and is highly robust, requiring only finite 2nd-order moments.
Implementation and Key Results
The package provides a unified interface for these tests, returning a standard htest object in R. This object contains the test statistic, the $p$-value, and a description of the method used. This standardization allows for easy integration into existing data science workflows.
A critical insight for users is the "moment trade-off." While the Schott test is easy to implement, its requirement for 8th-order moments makes it unsuitable for heavy-tailed data common in finance. In contrast, the SkewOptimal function stands out as a flexible tool that only requires 2nd-order moments. It allows users to specify the "radial density" (e.g., $t$, logistic, or power-exponential), tailoring the test to the expected tail-behavior of the data to increase statistical power.
Discussion and Limitations
While ellipticalsymmetry offers a robust suite of tools, users should be aware of certain constraints:
- Computational Cost: Tests involving bootstrapping, such as
HufferParkorKoltchinskiiSakhanenko, can be computationally intensive for large datasets. To mitigate this, the package includes annJobsargument to support parallel processing. - Moment Constraints: Users must select a test appropriate for their data's tail behavior. Applying a test like
Schottto data without 8th moments will yield invalid results. - High Dimensionality: The performance and power of these tests in very high-dimensional settings (where the number of variables $p$ is large relative to the sample size $n$) remain an area for careful consideration by the practitioner.
In summary, the ellipticalsymmetry package provides a comprehensive and necessary framework for validating a core prerequisite of multivariate statistical methods, ensuring more reliable and accurate data modeling.
Summary updated