Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

trTest

Test for truncated Pareto-type tails


Description

Test between non-truncated Pareto-type tails (light truncation) and truncated Pareto-type tails (rough truncation).

Usage

trTest(data, alpha = 0.05, plot = TRUE, main = "Test for truncation", ...)

Arguments

data

Vector of n observations.

alpha

The used significance level, default is 0.05.

plot

Logical indicating if the P-values should be plotted as a function of k, default is FALSE.

main

Title for the plot, default is "Test for truncation".

...

Additional arguments for the plot function, see plot for more details.

Details

We want to test H_0: X has non-truncated Pareto tails vs. H_1: X has truncated Pareto tails. Let

E_{k,n}(γ) = 1/k ∑_{j=1}^k (X_{n-k,n}/X_{n-j+1,n})^{1/γ},

with X_{i,n} the i-th order statistic. The test statistic is then

T_{k,n}=√{12k} (E_{k,n}(H_{k,n})-1/2) / (1-E_{k,n}(H_{k,n}))

which is asymptotically standard normally distributed. We reject H_0 on level α if

T_{k,n}<-z_{α}

where z_{α} is the 100(1-α)\% quantile of a standard normal distribution. The corresponding P-value is thus given by

Φ(T_{k,n})

with Φ the CDF of a standard normal distribution.

See Beirlant et al. (2016) or Section 4.2.3 of Albrecher et al. (2017) for more details.

Value

A list with following components:

k

Vector of the values of the tail parameter k.

testVal

Corresponding test values.

critVal

Critical value used for the test, i.e. qnorm(1-alpha/2).

Pval

Corresponding P-values.

Reject

Logical vector indicating if the null hypothesis is rejected for a certain value of k.

Author(s)

Tom Reynkens.

References

Albrecher, H., Beirlant, J. and Teugels, J. (2017). Reinsurance: Actuarial and Statistical Aspects, Wiley, Chichester.

Beirlant, J., Fraga Alves, M.I. and Gomes, M.I. (2016). "Tail fitting for Truncated and Non-truncated Pareto-type Distributions." Extremes, 19, 429–462.

See Also

Examples

# Sample from truncated Pareto distribution.
# truncated at 95% quantile
shape <- 2
X <- rtpareto(n=1000, shape=shape, endpoint=qpareto(0.95, shape=shape))

# Test for truncation
trTest(X)


# Sample from truncated Pareto distribution.
# truncated at 99% quantile
shape <- 2
X <- rtpareto(n=1000, shape=shape, endpoint=qpareto(0.99, shape=shape))

# Test for truncation
trTest(X)

ReIns

Functions from "Reinsurance: Actuarial and Statistical Aspects"

v1.0.10
GPL (>= 2)
Authors
Tom Reynkens [aut, cre] (<https://orcid.org/0000-0002-5516-5107>), Roel Verbelen [aut] (R code for Mixed Erlang distribution, <https://orcid.org/0000-0002-2347-9240>), Anastasios Bardoutsos [ctb] (Original R code for cEPD estimator), Dries Cornilly [ctb] (Original R code for EVT estimators for truncated data), Yuri Goegebeur [ctb] (Original S-Plus code for basic EVT estimators), Klaus Herrmann [ctb] (Original R code for GPD estimator)
Initial release
2020-05-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.