Description Usage Arguments Details Value Author(s) References See Also Examples
Wald-type hypothesis tes for testing equality of high or extreme expectiles and quantiles
1 2 |
data |
A matrix of (n x d) observations. |
tau |
A real in (0,1) specifying the intermediate level τ_n. See Details. |
tau1 |
A real in (0,1) specifying the extreme level τ'_n. See Details. |
type |
A string specifying the type of test. By default |
level |
A string specifying the level of the expectile. This make sense when |
method |
A string specifying the method used to estimate the expecile. By default |
bias |
A logical value. By default |
k |
An integer specifying the value of the intermediate sequence k_n. See Details. |
alpha |
A real in (0,1) specifying the significance level of the test. |
With a dataset data
of d
-dimensional observations and sample size n, a Wald-type hypothesis testing is performed in order to check whether the is empirical evidence against the null hypothesis. The null hypothesis concerns the equality among the expectiles or quantiles or tail indices of the marginal distributions. The three tests depend on the depends on the estimation of the d
-dimensional tail index γ. Here, γ is estimated using the Hill estimation (see MultiHTailIndex for details).
The data are regarded as d
-dimensional temporal independent observations coming from dependent variables. See Padoan and Stupfler (2020) for details.
The so-called intermediate level tau
or τ_n is a sequence of positive reals such that τ_n -> 1 as n -> ∞. Practically, for each marginal distribution, τ_n in (0,1) is the ratio between N (Numerator) and D (Denominator). Where N is the empirical mean distance of the τ_n-th expectile from the observations smaller than it, and D is the empirical mean distance of τ_n-th expectile from all the observations.
The so-called extreme level tau1
or τ'_n is a sequence of positive reals such that τ'_n -> 1 as n -> ∞.
For each marginal distribution, the value (1-tau'_n) in (0,1) is meant to be a small tail probability such that (1-τ'_n)=1/n or (1-τ'_n) < 1/n. It is also assumed that n(1-τ'_n) -> C as n -> ∞, where C is a positive finite constant. Typically, C in (0,1) so it is expected that there are no observations in a data sample that are greater than the expectile at the extreme level τ_n'.
When type="ExpectRisks"
, the null hypothesis of the hypothesis testing concerns the equality among the expectiles of the marginal distributions. See Section 3.3 of Padoan and Stupfler (2020) for details. When type="QuantRisks"
, the null hypothesis of the hypothesis testing concerns the equality among the quantiles of the marginal distributions. See Section 5 of Padoan and Stupfler (2020) for details. Note that in this case the test is based on the asymptotic distribution of normalized quantile estimator in the logarithmic scale. When type="tails"
, the null hypothesis of the hypothesis testing concerns the equality among the tail indices of the marginal distributions. See Sections 3.2 and 3.3 of Padoan and Stupfler (2020) for details.
When type="ExpectRisks"
, the null hypothesis concerns the equality among the expectiles of the marginal distributions at the intermediate level and this is achieved through level=="inter"
. In this case the test is obtained exploiting the asymptotic distribution of relative expectile appropriately normalised. See Section 2.1, 3.1 and 3.3 of Padoan and Stupfler (2020) for details. Instead, if level=="extreme"
the null hypothesis concerns the equality among the expectiles of the marginal distributions at the extreme level.
When method='LAWS'
, then the τ'_n-th d
-dimensional expectile is estimated using the LAWS based estimator. When method='QB'
, the expectile is instead estimated using the QB esimtator. The definition of both estimators depend on the estimation of the d
-dimensional tail index γ. The d
-dimensional tail index γ is estimated using the d
-dimensional Hill estimator (tailest='Hill'
), see MultiHTailIndex). See Section 2.2 in Padoan and Stupfler (2020) for details.
If bias=TRUE
then d
-dimensional γ is estimated using formula (4.2) of Haan et al. (2016). This is used by the LAWS and QB estimators. Furthermore, the τ'_n–th quantile is estimated using the formula in page 330 of de Haan et al. (2016). This provides a bias corrected version of the Weissman estimator. This is used by the QB estimator.
However, in this case the asymptotic variance is not estimated using the formula in Haan et al. (2016) Theorem 4.2. Instead, for simplicity the asymptotic variance-covariance matrix is estimated by the formulas Section 3.2 of Padoan and Stupfler (2020).
k
or k_n is the value of the so-called intermediate sequence k_n, n=1,2,.... Its represents a sequence of positive integers such that k_n -> ∞ and k_n/n -> 0 as n -> ∞. Practically, for each marginal distribution when tau=NULL
and method='LAWS'
or method='QB'
, then τ_n=1-k_n/n is the intermediate level of the expectile to be stimated. When tailest='Hill'
, for each marginal distributions, then k_n specifies the number of k
+1 larger order statistics used in the definition of the Hill estimator.
A small value α\in (0,1) specifies the significance level of Wald-type hypothesis testing.
A list with elements:
logLikR
: the observed value of log-likelihood ratio statistic test;
critVal
: the quantile (critical level) of a chi-square distribution with d
degrees of freedom and confidence level α.
Simone Padoan, simone.padoan@unibocconi.it, http://mypage.unibocconi.it/simonepadoan/; Gilles Stupfler, gilles.stupfler@ensai.fr, http://ensai.fr/en/equipe/stupfler-gilles/
Padoan A.S. and Stupfler, G. (2020). Joint inference on extreme expectiles for multivariate heavy-tailed distributions. arXiv e-prints arXiv:2007.08944, https://arxiv.org/abs/2007.08944
MultiHTailIndex, predMultiExpectiles, extMultiQuantile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | # Hypothesis testing on the equality extreme expectiles based on a sample of
# d-dimensional observations simulated from a joint distribution with
# a Gumbel copula and equal Frechet marginal distributions.
library(plot3D)
library(copula)
library(evd)
# distributional setting
copula <- "Gumbel"
dist <- "Frechet"
# parameter setting
dep <- 3
dim <- 3
scale <- rep(1, dim)
shape <- rep(3, dim)
par <- list(dep=dep, scale=scale, shape=shape, dim=dim)
# Intermediate level (or sample tail probability 1-tau)
tau <- 0.95
# Extreme level (or tail probability 1-tau1 of unobserved expectile)
tau1 <- 0.9995
# sample size
ndata <- 1000
# Simulates a sample from a multivariate distribution with equal Frechet
# marginals distributions and a Gumbel copula
data <- rmdata(ndata, dist, copula, par)
scatter3D(data[,1], data[,2], data[,3])
# Performs Wald-type hypothesis testing
HypoTesting(data, tau, tau1)
# Hypothesis testing on the equality extreme expectiles based on a sample of
# d-dimensional observations simulated from a joint distribution with
# a Clayton copula and different Frechet marginal distributions.
# distributional setting
copula <- "Clayton"
dist <- "Frechet"
# parameter setting
dim <- 3
dep <- 2
scale <- rep(1, dim)
shape <- c(2.1, 3, 4.5)
par <- list(dep=dep, scale=scale, shape=shape, dim=dim)
# Intermediate level (or sample tail probability 1-tau)
tau <- 0.95
# Extreme level (or tail probability 1-tau1 of unobserved expectile)
tau1 <- 0.9995
# sample size
ndata <- 1000
# Simulates a sample from a multivariate distribution with equal Frechet
# marginals distributions and a Gumbel copula
data <- rmdata(ndata, dist, copula, par)
scatter3D(data[,1], data[,2], data[,3])
# Performs Wald-type hypothesis testing
HypoTesting(data, tau, tau1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.