conv_funct {ElliptCopulas} | R Documentation |
Conversion Functions for Elliptical Distributions
Description
An elliptical random vector X of density
can always be written as
for some positive random variable
and a random vector
on the
-dimensional sphere.
Furthermore, there is a one-to-one mapping between g_d
and its one-dimensional marginal g_1.
Usage
Convert_gd_To_g1(grid, g_d, d)
Convert_g1_To_Fg1(grid, g_1)
Convert_g1_To_Qg1(grid, g_1)
Convert_g1_To_f1(grid, g_1)
Convert_gd_To_fR2(grid, g_d, d)
Arguments
grid |
the grid on which the values of the functions in parameter are given. |
g_d |
the |
d |
the dimension of the random vector. |
g_1 |
the |
Value
One of the following
g_1 the
-dimensional density generator.
Fg1 the
-dimensional marginal cumulative distribution function.
Qg1 the
-dimensional marginal quantile function (approximatly equal to the inverse function of Fg1).
f1 the density of a
-dimensional margin if
and
is the identity matrix.
fR2 the density function of
.
See Also
DensityGenerator.normalize
to compute the normalized version of a given -dimensional generator.
Examples
grid = seq(0,100,by = 0.01)
g_d = DensityGenerator.normalize(grid = grid, grid_g = 1/(1+grid^3), d = 3)
g_1 = Convert_gd_To_g1(grid = grid, g_d = g_d, d = 3)
Fg_1 = Convert_g1_To_Fg1(grid = grid, g_1 = g_1)
Qg_1 = Convert_g1_To_Qg1(grid = grid, g_1 = g_1)
f1 = Convert_g1_To_f1(grid = grid, g_1 = g_1)
fR2 = Convert_gd_To_fR2(grid = grid, g_d = g_d, d = 3)
plot(grid, g_d, type = "l", xlim = c(0,10))
plot(grid, g_1, type = "l", xlim = c(0,10))
plot(Fg_1, xlim = c(-3,3))
plot(Qg_1, xlim = c(0.01,0.99))
plot(f1, xlim = c(-3,3))
plot(fR2, xlim = c(0,3))