Title: | Multivariate Lomax (Pareto Type II) and Its Related Distributions |
---|---|
Description: | Implements calculation of probability density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for the following multivariate distributions: Lomax (Pareto Type II), generalized Lomax, Mardia’s Pareto of Type I, Logistic, Burr, Cook-Johnson’s uniform, F and Inverted Beta. See Tapan Nayak (1987) <doi:10.2307/3214068>. |
Authors: | Zhixin Lun [aut, cre] , Ravindra Khattree [aut] |
Maintainer: | Zhixin Lun <[email protected]> |
License: | GPL-3 |
Version: | 1.0.2 |
Built: | 2024-11-20 06:23:29 UTC |
Source: | CRAN |
Calculation of density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for multivariate Burr distribution with a scalar parameter parm1
and vectors of parameters parm2
and parm3
.
dmvburr(x, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), log = FALSE) pmvburr(q, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k)) qmvburr( p, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), interval = c(0, 1e+08) ) rmvburr(n, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k)) smvburr(q, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k))
dmvburr(x, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), log = FALSE) pmvburr(q, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k)) qmvburr( p, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), interval = c(0, 1e+08) ) rmvburr(n, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k)) smvburr(q, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k))
x |
vector or matrix of quantiles. If |
parm1 |
a scalar parameter, see parameter |
parm2 |
a vector of parameters, see parameters |
parm3 |
a vector of parameters, see parameters |
log |
logical; if TRUE, probability densities |
q |
a vector of quantiles. |
p |
a scalar value corresponding to probability. |
interval |
a vector containing the end-points of the interval to be searched. Default value is set as |
n |
number of observations. |
k |
dimension of data or number of variates. |
Multivariate Burr distribution (Johnson and Kotz, 1972) is a joint distribution of positive random variables . Its probability density is given as
where .
Cumulative distribution function is obtained by the following formula related to survival function
(Joe, 1997)
where the survival function is given by
Equicoordinate quantile is obtained by solving the following equation for through the built-in one dimension root finding function
uniroot
:
where is the given cumulative probability.
Random numbers from multivariate Burr distribution can be generated through transformation of multivariate Lomax random variables
by letting
; see Nayak (1987).
dmvburr
gives the numerical values of the probability density.
pmvburr
gives the cumulative probability.
qmvburr
gives the equicoordinate quantile.
rmvburr
generates random numbers.
smvburr
gives the value of survival function.
Joe, H. (1997). Multivariate Models and Dependence Concepts. London: Chapman & Hall.
Johnson, N. L. and Kotz, S. (1972). Distribution in Statistics: Continuous Multivariate Distributions. New York: John Wiley & Sons, INC.
Nayak, T. K. (1987). Multivariate Lomax Distribution: Properties and Usefulness in Reliability Theory. Journal of Applied Probability, Vol. 24, No. 1, 170-177.
uniroot
for one dimensional root (zero) finding.
# Calculations for the multivariate Burr with parameters: # a = 3, d1 = 1, d2 = 3, d3 = 5, c1 = 2, c2 = 4, c3 = 6 # Vector of quantiles: c(3, 2, 1) dmvburr(x = c(3, 2, 1), parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) # Density pmvburr(q = c(3, 2, 1), parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvburr(p = 0.5, parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) # Random numbers generation with sample size 100 rmvburr(n = 100, parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) smvburr(q = c(3, 2, 1), parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) # Survival function
# Calculations for the multivariate Burr with parameters: # a = 3, d1 = 1, d2 = 3, d3 = 5, c1 = 2, c2 = 4, c3 = 6 # Vector of quantiles: c(3, 2, 1) dmvburr(x = c(3, 2, 1), parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) # Density pmvburr(q = c(3, 2, 1), parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvburr(p = 0.5, parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) # Random numbers generation with sample size 100 rmvburr(n = 100, parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) smvburr(q = c(3, 2, 1), parm1 = 3, parm2 = c(1, 3, 5), parm3 = c(2, 4, 6)) # Survival function
Calculation of density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for multivariate distribution with degrees of freedom
df
.
dmvf(x, df = rep(1, k + 1), log = FALSE) pmvf(q, df = rep(1, k + 1), algorithm = c("numerical", "MC"), nsim = 1e+07) qmvf( p, df = rep(1, k + 1), interval = c(1e-08, 1e+08), algorithm = c("numerical", "MC"), nsim = 1e+06 ) rmvf(n, df = rep(1, k + 1)) smvf(q, df = rep(1, k + 1), algorithm = c("numerical", "MC"), nsim = 1e+07)
dmvf(x, df = rep(1, k + 1), log = FALSE) pmvf(q, df = rep(1, k + 1), algorithm = c("numerical", "MC"), nsim = 1e+07) qmvf( p, df = rep(1, k + 1), interval = c(1e-08, 1e+08), algorithm = c("numerical", "MC"), nsim = 1e+06 ) rmvf(n, df = rep(1, k + 1)) smvf(q, df = rep(1, k + 1), algorithm = c("numerical", "MC"), nsim = 1e+07)
x |
vector or matrix of quantiles. If |
df |
a vector of |
log |
logical; if TRUE, probability densities |
q |
a vector of quantiles. |
algorithm |
method to be used for calculating cumulative probability. Two options are provided as (i) |
nsim |
number of simulations used in algorithm |
p |
a scalar value corresponding to probability. |
interval |
a vector containing the end-points of the interval to be searched. Default value is set as |
n |
number of observations. |
k |
dimension of data or number of variates. |
Multivariate distribution (Johnson and Kotz, 1972) is a joint probability distribution of positive random variables and its probability density is given as
where . The degrees of freedom are
.
Cumulative distribution function is obtained by multiple integral
This multiple integral is calculated by either adaptive multivariate integration using hcubature
in package cubature (Narasimhan et al., 2018) or via Monte Carlo method.
Equicoordinate quantile is obtained by solving the following equation for through the built-in one dimension root finding function
uniroot
:
where is the given cumulative probability.
The survival function is obtained either by the following formula related to cumulative distribution function
(Joe, 1997)
or via Monte Carlo method.
Random numbers from multivariate F distribution can be generated through parameter substitutions in simulation of generalized multivariate Lomax distribution by letting
; see Nayak (1987).
dmvf
gives the numerical values of the probability density.
pmvf
gives a list of two items:
value
cumulative probability
error
the estimated relative error by algorithm = "numerical"
or the estimated standard error by algorithm = "MC"
qmvf
gives the equicoordinate quantile. NaN
is returned for no solution found in the given interval. The result is seed dependent if Monte Carlo algorithm is chosen (algorithm = "MC"
).
rmvf
generates random numbers.
smvf
gives a list of two items:
value
the value of survial function
error
the estimated relative error by algorithm = "numerical"
or the estimated standard error by algorithm = "MC"
Joe, H. (1997). Multivariate Models and Dependence Concepts. London: Chapman & Hall.
Johnson, N. L. and Kotz, S. (1972). Distribution in Statistics: Continuous Multivariate Distributions. New York: John Wiley & Sons, INC.
Narasimhan, B., Koller, M., Johnson, S. G., Hahn, T., Bouvier, A., Kiêu, K. and Gaure, S. (2018). cubature: Adaptive Multivariate Integration over Hypercubes. R package version 2.0.3.
Nayak, T. K. (1987). Multivariate Lomax Distribution: Properties and Usefulness in Reliability Theory. Journal of Applied Probability, Vol. 24, No. 1, 170-177.
uniroot
for one dimensional root (zero) finding.
# Calculations for the multivariate F with degrees of freedom: # df = c(2, 4, 6) # Vector of quantiles: c(1, 2) dmvf(x = c(1, 2), df = c(2, 4, 6)) # Density # Cumulative Probability using adaptive multivariate integral pmvf(q = c(1, 2), df = c(2, 4, 6), algorithm = "numerical") # Cumulative Probability using Monte Carlo method pmvf(q = c(1, 2), df = c(2, 4, 6), algorithm = "MC") # Equicoordinate quantile of cumulative probability 0.5 qmvf(p = 0.5, df = c(2, 4, 6)) # Random numbers generation with sample size 100 rmvf(n = 100, df = c(2, 4, 6)) smvf(q = c(1, 2), df = c(2, 4, 6)) # Survival function
# Calculations for the multivariate F with degrees of freedom: # df = c(2, 4, 6) # Vector of quantiles: c(1, 2) dmvf(x = c(1, 2), df = c(2, 4, 6)) # Density # Cumulative Probability using adaptive multivariate integral pmvf(q = c(1, 2), df = c(2, 4, 6), algorithm = "numerical") # Cumulative Probability using Monte Carlo method pmvf(q = c(1, 2), df = c(2, 4, 6), algorithm = "MC") # Equicoordinate quantile of cumulative probability 0.5 qmvf(p = 0.5, df = c(2, 4, 6)) # Random numbers generation with sample size 100 rmvf(n = 100, df = c(2, 4, 6)) smvf(q = c(1, 2), df = c(2, 4, 6)) # Survival function
Calculation of density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for generalized multivariate Lomax distribution with a scalar parameter parm1
and vectors of parameters parm2
and parm3
.
dmvglomax(x, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), log = FALSE) pmvglomax( q, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), algorithm = c("numerical", "MC"), nsim = 1e+07 ) qmvglomax( p, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), interval = c(1e-08, 1e+08), algorithm = c("numerical", "MC"), nsim = 1e+06 ) rmvglomax(n, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k)) smvglomax( q, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), algorithm = c("numerical", "MC"), nsim = 1e+07 )
dmvglomax(x, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), log = FALSE) pmvglomax( q, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), algorithm = c("numerical", "MC"), nsim = 1e+07 ) qmvglomax( p, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), interval = c(1e-08, 1e+08), algorithm = c("numerical", "MC"), nsim = 1e+06 ) rmvglomax(n, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k)) smvglomax( q, parm1 = 1, parm2 = rep(1, k), parm3 = rep(1, k), algorithm = c("numerical", "MC"), nsim = 1e+07 )
x |
vector or matrix of quantiles. If |
parm1 |
a scalar parameter, see parameter |
parm2 |
a vector of parameters, see parameters |
parm3 |
a vector of parameters, see parameters |
log |
logical; if TRUE, probability densities |
q |
a vector of quantiles. |
algorithm |
method to be used for calculating cumulative probability. Two options are provided as (i) |
nsim |
number of simulations used in algorithm |
p |
a scalar value corresponding to probability. |
interval |
a vector containing the end-points of the interval to be searched. Default value is set as |
n |
number of observations. |
k |
dimension of data or number of variates. |
Generalized multivariate Lomax (Pareto type II) distribution was introduced by Nayak (1987) as a joint probability distribution of several skewed nonnegative random variables . Its probability density function is given by
where .
Cumulative distribution function is obtained by multiple integral
This multiple integral is calculated by either adaptive multivariate integration using hcubature
in package cubature (Narasimhan et al., 2018) or via Monte Carlo method.
Equicoordinate quantile is obtained by solving the following equation for through the built-in one dimension root finding function
uniroot
:
where is the given cumulative probability.
The survival function is obtained either by the following formula related to cumulative distribution function
(Joe, 1997)
or via Monte Carlo method.
Random numbers from generalized multivariate Lomax distribution can be generated by simulating independent gamma random variables having a common parameter following gamma distribution with shape parameter
and scale parameter
; see Nayak (1987).
dmvglomax
gives the numerical values of the probability density.
pmvglomax
gives a list of two items:
value
cumulative probability
error
the estimated relative error by algorithm = "numerical"
or the estimated standard error by algorithm = "MC"
qmvglomax
gives the equicoordinate quantile. NaN
is returned for no solution found in the given interval. The result is seed dependent if Monte Carlo algorithm is chosen (algorithm = "MC"
).
rmvglomax
generates random numbers.
smvglomax
gives a list of two items:
value
the value of survial function
error
the estimated relative error by algorithm = "numerical"
or the estimated standard error by algorithm = "MC"
Joe, H. (1997). Multivariate Models and Dependence Concepts. London: Chapman & Hall.
Narasimhan, B., Koller, M., Johnson, S. G., Hahn, T., Bouvier, A., Kiêu, K. and Gaure, S. (2018). cubature: Adaptive Multivariate Integration over Hypercubes. R package version 2.0.3.
Nayak, T. K. (1987). Multivariate Lomax Distribution: Properties and Usefulness in Reliability Theory. Journal of Applied Probability, Vol. 24, No. 1, 170-177.
uniroot
for one dimensional root (zero) finding.
# Calculations for the generalized multivariate Lomax with parameters: # a = 5, theta1 = 1, theta2 = 2, l1 = 4, l2 = 5 # Vector of quantiles: c(5, 6) dmvglomax(x = c(5, 6), parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) # Density # Cumulative Probability using adaptive multivariate integral pmvglomax(q = c(5, 6), parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) # Cumulative Probability using Monte Carlo method pmvglomax(q = c(5, 6), parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5), algorithm = "MC") # Equicoordinate quantile of cumulative probability 0.5 qmvglomax(p = 0.5, parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) # Random numbers generation with sample size 100 rmvglomax(n = 100, parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) smvglomax(q = c(5, 6), parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) # Survival function
# Calculations for the generalized multivariate Lomax with parameters: # a = 5, theta1 = 1, theta2 = 2, l1 = 4, l2 = 5 # Vector of quantiles: c(5, 6) dmvglomax(x = c(5, 6), parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) # Density # Cumulative Probability using adaptive multivariate integral pmvglomax(q = c(5, 6), parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) # Cumulative Probability using Monte Carlo method pmvglomax(q = c(5, 6), parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5), algorithm = "MC") # Equicoordinate quantile of cumulative probability 0.5 qmvglomax(p = 0.5, parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) # Random numbers generation with sample size 100 rmvglomax(n = 100, parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) smvglomax(q = c(5, 6), parm1 = 5, parm2 = c(1, 2), parm3 = c(4, 5)) # Survival function
Calculation of density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for multivariate inverted beta distribution with a scalar parameter parm1
and a vector of parameters parm2
.
dmvinvbeta(x, parm1 = 1, parm2 = rep(1, k), log = FALSE) pmvinvbeta( q, parm1 = 1, parm2 = rep(1, k), algorithm = c("numerical", "MC"), nsim = 1e+07 ) qmvinvbeta( p, parm1 = 1, parm2 = rep(1, k), interval = c(1e-08, 1e+08), algorithm = c("numerical", "MC"), nsim = 1e+06 ) rmvinvbeta(n, parm1 = 1, parm2 = rep(1, k)) smvinvbeta( q, parm1 = 1, parm2 = rep(1, k), algorithm = c("numerical", "MC"), nsim = 1e+07 )
dmvinvbeta(x, parm1 = 1, parm2 = rep(1, k), log = FALSE) pmvinvbeta( q, parm1 = 1, parm2 = rep(1, k), algorithm = c("numerical", "MC"), nsim = 1e+07 ) qmvinvbeta( p, parm1 = 1, parm2 = rep(1, k), interval = c(1e-08, 1e+08), algorithm = c("numerical", "MC"), nsim = 1e+06 ) rmvinvbeta(n, parm1 = 1, parm2 = rep(1, k)) smvinvbeta( q, parm1 = 1, parm2 = rep(1, k), algorithm = c("numerical", "MC"), nsim = 1e+07 )
x |
vector or matrix of quantiles. If |
parm1 |
a scalar parameter, see parameter |
parm2 |
a vector of parameters, see parameter |
log |
logical; if TRUE, probability densities |
q |
a vector of quantiles. |
algorithm |
method to be used for calculating cumulative probability. Two options are provided as (i) |
nsim |
number of simulations used in algorithm |
p |
a scalar value corresponding to probability. |
interval |
a vector containing the end-points of the interval to be searched. Default value is set as |
n |
number of observations. |
k |
dimension of data or number of variates. |
Multivariate inverted beta distribution is an alternative expression of multivariate F distribution and is a special case of multivariate Lomax distribution (Balakrishnan and Lai, 2009). Its probability density is given as
where .
Cumulative distribution function is obtained by multiple integral
This multiple integral is calculated by either adaptive multivariate integration using hcubature
in package cubature (Narasimhan et al., 2018) or via Monte Carlo method.
Equicoordinate quantile is obtained by solving the following equation for through the built-in one dimension root finding function
uniroot
:
where is the given cumulative probability.
The survival function is obtained either by the following formula related to cumulative distribution function
(Joe, 1997)
or via Monte Carlo method.
Random numbers from multivariate inverted beta distribution can be generated through parameter substitutions in simulation of generalized multivariate Lomax distribution by letting
.
dmvinvbeta
gives the numerical values of the probability density.
pmvinvbeta
gives a list of two items:
value
cumulative probability
error
the estimated relative error by algorithm = "numerical"
or the estimated standard error by algorithm = "MC"
qmvinvbeta
gives the equicoordinate quantile. NaN
is returned for no solution found in the given interval. The result is seed dependent if Monte Carlo algorithm is chosen (algorithm = "MC"
).
rmvinvbeta
generates random numbers.
smvinvbeta
gives a list of two items:
value
the value of survial function
error
the estimated relative error by algorithm = "numerical"
or the estimated standard error by algorithm = "MC"
Balakrishnan, N. and Lai, C. (2009). Continuous Bivariate Distributions. 2nd Edition. New York: Springer.
Joe, H. (1997). Multivariate Models and Dependence Concepts. London: Chapman & Hall.
Narasimhan, B., Koller, M., Johnson, S. G., Hahn, T., Bouvier, A., Kiêu, K. and Gaure, S. (2018). cubature: Adaptive Multivariate Integration over Hypercubes. R package version 2.0.3.
Nayak, T. K. (1987). Multivariate Lomax Distribution: Properties and Usefulness in Reliability Theory. Journal of Applied Probability, Vol. 24, No. 1, 170-177.
uniroot
for one dimensional root (zero) finding.
# Calculations for the multivariate inverted beta with parameters: # a = 7, l1 = 1, l2 = 3 # Vector of quantiles: c(2, 4) dmvinvbeta(x = c(2, 4), parm1 = 7, parm2 = c(1, 3)) # Density # Cumulative Probability using adaptive multivariate integral pmvinvbeta(q = c(2, 4), parm1 = 7, parm2 = c(1, 3)) # Cumulative Probability using Monte Carlo method pmvinvbeta(q = c(2, 4), parm1 = 7, parm2 = c(1, 3), algorithm = "MC") # Equicoordinate quantile of cumulative probability 0.5 qmvinvbeta(p = 0.5, parm1 = 7, parm2 = c(1, 3)) # Random numbers generation with sample size 100 rmvinvbeta(n = 100, parm1 = 7, parm2 = c(1, 3)) smvinvbeta(q = c(2, 4), parm1 = 7, parm2 = c(1, 3)) # Survival function
# Calculations for the multivariate inverted beta with parameters: # a = 7, l1 = 1, l2 = 3 # Vector of quantiles: c(2, 4) dmvinvbeta(x = c(2, 4), parm1 = 7, parm2 = c(1, 3)) # Density # Cumulative Probability using adaptive multivariate integral pmvinvbeta(q = c(2, 4), parm1 = 7, parm2 = c(1, 3)) # Cumulative Probability using Monte Carlo method pmvinvbeta(q = c(2, 4), parm1 = 7, parm2 = c(1, 3), algorithm = "MC") # Equicoordinate quantile of cumulative probability 0.5 qmvinvbeta(p = 0.5, parm1 = 7, parm2 = c(1, 3)) # Random numbers generation with sample size 100 rmvinvbeta(n = 100, parm1 = 7, parm2 = c(1, 3)) smvinvbeta(q = c(2, 4), parm1 = 7, parm2 = c(1, 3)) # Survival function
Calculation of density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for multivariate logistic distribution with vector parameter parm1
and vector parameter parm2
.
dmvlogis(x, parm1 = rep(1, k), parm2 = rep(1, k), log = FALSE) pmvlogis(q, parm1 = rep(1, k), parm2 = rep(1, k)) qmvlogis(p, parm1 = rep(1, k), parm2 = rep(1, k), interval = c(0, 1e+08)) rmvlogis(n, parm1 = rep(1, k), parm2 = rep(1, k)) smvlogis(q, parm1 = rep(1, k), parm2 = rep(1, k))
dmvlogis(x, parm1 = rep(1, k), parm2 = rep(1, k), log = FALSE) pmvlogis(q, parm1 = rep(1, k), parm2 = rep(1, k)) qmvlogis(p, parm1 = rep(1, k), parm2 = rep(1, k), interval = c(0, 1e+08)) rmvlogis(n, parm1 = rep(1, k), parm2 = rep(1, k)) smvlogis(q, parm1 = rep(1, k), parm2 = rep(1, k))
x |
vector or matrix of quantiles. If |
parm1 |
a vector of location parameters, see parameter |
parm2 |
a vector of scale parameters, see parameters |
log |
logical; if TRUE, probability densities |
q |
a vector of quantiles. |
p |
a scalar value corresponding to probability. |
interval |
a vector containing the end-points of the interval to be searched. Default value is set as |
n |
number of observations. |
k |
dimension of data or number of variates. |
Bivariate logistic distribution was introduced by Gumbel (1961) and its multivariate generalization was given by Malik and Abraham (1973) as
where .
Cumulative distribution function is given as
Equicoordinate quantile is obtained by solving the following equation for through the built-in one dimension root finding function
uniroot
:
where is the given cumulative probability.
The survival function is obtained by the following formula related to cumulative distribution function
(Joe, 1997)
Random numbers from multivariate logistic distribution can be generated through transformation of multivariate Lomax random variables
by letting
; see Nayak (1987).
dmvlogis
gives the numerical values of the probability density.
pmvlogis
gives the cumulative probability.
qmvlogis
gives the equicoordinate quantile.
rmvlogis
generates random numbers.
smvlogis
gives the value of survival function
Gumbel, E.J. (1961). Bivariate logistic distribution. J. Am. Stat. Assoc., 56, 335-349.
Joe, H. (1997). Multivariate Models and Dependence Concepts. London: Chapman & Hall.
Malik, H. J. and Abraham, B. (1973). Multivariate logistic distributions. Ann. Statist. 3, 588-590.
Nayak, T. K. (1987). Multivariate Lomax Distribution: Properties and Usefulness in Reliability Theory. Journal of Applied Probability, Vol. 24, No. 1, 170-177.
uniroot
for one dimensional root (zero) finding.
# Calculations for the multivariate logistic distribution with parameters: # mu1 = 0.5, mu2 = 1, mu3 = 2, sigma1 = 1, sigma2 = 2 and sigma3 = 3 # Vector of quantiles: c(3, 2, 1) dmvlogis(x = c(3, 2, 1), parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) # Density pmvlogis(q = c(3, 2, 1), parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvlogis(p = 0.5, parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) # Random numbers generation with sample size 100 rmvlogis(n = 100, parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) smvlogis(q = c(3, 2, 1), parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) # Survival function
# Calculations for the multivariate logistic distribution with parameters: # mu1 = 0.5, mu2 = 1, mu3 = 2, sigma1 = 1, sigma2 = 2 and sigma3 = 3 # Vector of quantiles: c(3, 2, 1) dmvlogis(x = c(3, 2, 1), parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) # Density pmvlogis(q = c(3, 2, 1), parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvlogis(p = 0.5, parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) # Random numbers generation with sample size 100 rmvlogis(n = 100, parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) smvlogis(q = c(3, 2, 1), parm1 = c(0.5, 1, 2), parm2 = c(1, 2, 3)) # Survival function
Calculation of density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for multivariate Lomax (Pareto Type II) distribution with a scalar parameter parm1
and vector parameter parm2
.
dmvlomax(x, parm1 = 1, parm2 = rep(1, k), log = FALSE) pmvlomax(q, parm1 = 1, parm2 = rep(1, k)) qmvlomax(p, parm1 = 1, parm2 = rep(1, k), interval = c(0, 1e+08)) rmvlomax(n, parm1 = 1, parm2 = rep(1, k)) smvlomax(q, parm1 = 1, parm2 = rep(1, k))
dmvlomax(x, parm1 = 1, parm2 = rep(1, k), log = FALSE) pmvlomax(q, parm1 = 1, parm2 = rep(1, k)) qmvlomax(p, parm1 = 1, parm2 = rep(1, k), interval = c(0, 1e+08)) rmvlomax(n, parm1 = 1, parm2 = rep(1, k)) smvlomax(q, parm1 = 1, parm2 = rep(1, k))
x |
vector or matrix of quantiles. If |
parm1 |
a scalar parameter, see parameter |
parm2 |
a vector of parameters, see parameters |
log |
logical; if TRUE, probability densities |
q |
a vector of quantiles. |
p |
a scalar value corresponding to probability. |
interval |
a vector containing the end-points of the interval to be searched. Default value is set as |
n |
number of observations. |
k |
dimension of data or number of variates. |
Multivariate Lomax (Pareto type II) distribution was introduced by Nayak (1987) as a joint probability distribution of several skewed positive random variables . Its probability density function is given by
where .
Cumulative distribution function is obtained by the following formula related to survival function
(Joe, 1997)
where the survival function is given by
Equicoordinate quantile is obtained by solving the following equation for through the built-in one dimension root finding function
uniroot
:
where is the given cumulative probability.
Random numbers from multivariate Lomax distribution can be generated by simulating independent exponential random variables having a common environment parameter following gamma distribution with shape parameter
and scale parameter
; see Nayak (1987).
dmvlomax
gives the numerical values of the probability density.
pmvlomax
gives the cumulative probability.
qmvlomax
gives the equicoordinate quantile.
rmvlomax
generates random numbers.
smvlomax
gives the value of survival function.
Joe, H. (1997). Multivariate Models and Dependence Concepts. London: Chapman & Hall.
Nayak, T. K. (1987). Multivariate Lomax Distribution: Properties and Usefulness in Reliability Theory. Journal of Applied Probability, Vol. 24, No. 1, 170-177.
uniroot
for one dimensional root (zero) finding.
# Calculations for the multivariate Lomax with parameters: # a = 5, theta1 = 1, theta2 = 2 and theta3 = 3. # Vector of quantiles: c(3, 2, 1) dmvlomax(x = c(3, 2, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Density pmvlomax(q = c(3, 2, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvlomax(p = 0.5, parm1 = 5, parm2 = c(1, 2, 3)) # Random numbers generation with sample size 100 rmvlomax(n = 100, parm1 = 5, parm2 = c(1, 2, 3)) smvlomax(q = c(3, 2, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Survival function
# Calculations for the multivariate Lomax with parameters: # a = 5, theta1 = 1, theta2 = 2 and theta3 = 3. # Vector of quantiles: c(3, 2, 1) dmvlomax(x = c(3, 2, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Density pmvlomax(q = c(3, 2, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvlomax(p = 0.5, parm1 = 5, parm2 = c(1, 2, 3)) # Random numbers generation with sample size 100 rmvlomax(n = 100, parm1 = 5, parm2 = c(1, 2, 3)) smvlomax(q = c(3, 2, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Survival function
Calculation of density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for Mardia's multivariate Pareto Type I distribution with a scalar parameter parm1
and a vector of parameters parm2
.
dmvmpareto1(x, parm1 = 1, parm2 = rep(1, k), log = FALSE) pmvmpareto1(q, parm1 = 1, parm2 = rep(1, k)) qmvmpareto1( p, parm1 = 1, parm2 = rep(1, k), interval = c(max(1/parm2) + 1e-08, 1e+08) ) rmvmpareto1(n, parm1 = 1, parm2 = rep(1, k)) smvmpareto1(q, parm1 = 1, parm2 = rep(1, k))
dmvmpareto1(x, parm1 = 1, parm2 = rep(1, k), log = FALSE) pmvmpareto1(q, parm1 = 1, parm2 = rep(1, k)) qmvmpareto1( p, parm1 = 1, parm2 = rep(1, k), interval = c(max(1/parm2) + 1e-08, 1e+08) ) rmvmpareto1(n, parm1 = 1, parm2 = rep(1, k)) smvmpareto1(q, parm1 = 1, parm2 = rep(1, k))
x |
vector or matrix of quantiles. If |
parm1 |
a scalar parameter, see parameter |
parm2 |
a vector of parameters, see parameters |
log |
logical; if TRUE, probability densities |
q |
a vector of quantiles. |
p |
a scalar value corresponding to probability. |
interval |
a vector containing the end-points of the interval to be searched. Default value is set as |
n |
number of observations. |
k |
dimension of data or number of variates. |
Multivariate Pareto type I distribution was introduced by Mardia (1962) as a joint probability distribution of several nonnegative random variables . Its probability density function is given by
where .
Cumulative distribution function is obtained by the following formula related to survival function
(Joe, 1997)
where the survival function is given by
Equicoordinate quantile is obtained by solving the following equation for through the built-in one dimension root finding function
uniroot
:
where is the given cumulative probability.
Random numbers from Mardia's multivariate Pareto type I distribution can be generated through linear transformation of multivariate Lomax random variables
by letting
; see Nayak (1987).
dmvmpareto1
gives the numerical values of the probability density.
pmvmpareto1
gives the cumulative probability.
qmvmpareto1
gives the equicoordinate quantile.
rmvmpareto1
generates random numbers.
smvmpareto1
gives the value of survival function.
Joe, H. (1997). Multivariate Models and Dependence Concepts. London: Chapman & Hall.
Mardia, K. V. (1962). Multivariate Pareto distributions. Ann. Math. Statist. 33, 1008-1015.
Nayak, T. K. (1987). Multivariate Lomax Distribution: Properties and Usefulness in Reliability Theory. Journal of Applied Probability, Vol. 24, No. 1, 170-177.
uniroot
for one dimensional root (zero) finding.
# Calculations for the Mardia's multivariate Pareto Type I with parameters: # a = 5, theta1 = 1, theta2 = 2, theta3 = 3 # Vector of quantiles: c(2, 1, 1) dmvmpareto1(x = c(2, 1, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Density pmvmpareto1(q = c(2, 1, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvmpareto1(p = 0.5, parm1 = 5, parm2 = c(1, 2, 3)) # Random numbers generation with sample size 100 rmvmpareto1(n = 100, parm1 = 5, parm2 = c(1, 2, 3)) smvmpareto1(q = c(2, 1, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Survival function
# Calculations for the Mardia's multivariate Pareto Type I with parameters: # a = 5, theta1 = 1, theta2 = 2, theta3 = 3 # Vector of quantiles: c(2, 1, 1) dmvmpareto1(x = c(2, 1, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Density pmvmpareto1(q = c(2, 1, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvmpareto1(p = 0.5, parm1 = 5, parm2 = c(1, 2, 3)) # Random numbers generation with sample size 100 rmvmpareto1(n = 100, parm1 = 5, parm2 = c(1, 2, 3)) smvmpareto1(q = c(2, 1, 1), parm1 = 5, parm2 = c(1, 2, 3)) # Survival function
Calculation of density function, cumulative distribution function, equicoordinate quantile function and survival function, and random numbers generation for Cook-Johnson’s multivariate uniform distribution with a scalar parameter parm
.
dmvunif(x, parm = 1, log = FALSE) pmvunif(q, parm = 1) qmvunif(p, parm = 1, dim = k, interval = c(0, 1)) rmvunif(n, parm = 1, dim = 1) smvunif(q, parm = 1)
dmvunif(x, parm = 1, log = FALSE) pmvunif(q, parm = 1) qmvunif(p, parm = 1, dim = k, interval = c(0, 1)) rmvunif(n, parm = 1, dim = 1) smvunif(q, parm = 1)
x |
vector or matrix of quantiles. If |
parm |
a scalar parameter, see parameter |
log |
logical; if TRUE, probability densities |
q |
a vector of quantiles. |
p |
a scalar value corresponding to probability. |
dim |
dimension of data or number of variates (k). |
interval |
a vector containing the end-points of the interval to be searched. Default value is set as |
n |
number of observations. |
Multivariate uniform distribution of Cook and Johnson (1981) is a joint distribution of uniform variables over and its probability density is given as
where . In fact, Cook-Johnson's uniform distribution is also called Clayton copula (Nelsen, 2006).
Cumulative distribution function is given as
Equicoordinate quantile is obtained by solving the following equation for through the built-in one dimension root finding function
uniroot
:
where is the given cumulative probability.
The survival function is obtained by the following formula related to cumulative distribution function
(Joe, 1997)
Random numbers from Cook-Johnson’s multivariate uniform distribution can be generated through transformation of multivariate Lomax random variables
by letting
; see Nayak (1987).
dmvunif
gives the numerical values of the probability density.
pmvunif
gives the cumulative probability.
qmvunif
gives the equicoordinate quantile.
rmvunif
generates random numbers.
smvunif
gives the value of survival function.
Cook, R. E. and Johnson, M. E. (1981). A family of distributions for modeling non-elliptically symmetric multivariate data. J.R. Statist. Soc. B 43, No. 2, 210-218.
Joe, H. (1997). Multivariate Models and Dependence Concepts. London: Chapman & Hall.
Nayak, T. K. (1987). Multivariate Lomax Distribution: Properties and Usefulness in Reliability Theory. Journal of Applied Probability, Vol. 24, No. 1, 170-177.
Nelsen, R. B. (2006). An Introduction to Copulas, Second Edition. New York: Springer.
uniroot
for one dimensional root (zero) finding.
# Calculations for the Cook-Johnson's multivariate uniform distribution with parameters: # a = 2, dim = 3 # Vector of quantiles: c(0.8, 0.5, 0.2) dmvunif(x = c(0.8, 0.5, 0.2), parm = 2) # Density pmvunif(q = c(0.8, 0.5, 0.2), parm = 2) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvunif(p = 0.5, parm = 2, dim = 3) # Random numbers generation with sample size 100 rmvunif(n = 100, parm = 2, dim = 3) smvunif(q = c(0.8, 0.5, 0.2), parm = 3) # Survival function
# Calculations for the Cook-Johnson's multivariate uniform distribution with parameters: # a = 2, dim = 3 # Vector of quantiles: c(0.8, 0.5, 0.2) dmvunif(x = c(0.8, 0.5, 0.2), parm = 2) # Density pmvunif(q = c(0.8, 0.5, 0.2), parm = 2) # Cumulative Probability # Equicoordinate quantile of cumulative probability 0.5 qmvunif(p = 0.5, parm = 2, dim = 3) # Random numbers generation with sample size 100 rmvunif(n = 100, parm = 2, dim = 3) smvunif(q = c(0.8, 0.5, 0.2), parm = 3) # Survival function