[Yuima-commits] r434 - pkg/yuima/man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu May 19 08:36:39 CEST 2016
Author: hirokimasuda
Date: 2016-05-19 08:36:39 +0200 (Thu, 19 May 2016)
New Revision: 434
Modified:
pkg/yuima/man/rng.Rd
Log:
ref.s added
Modified: pkg/yuima/man/rng.Rd
===================================================================
--- pkg/yuima/man/rng.Rd 2016-05-19 06:36:06 UTC (rev 433)
+++ pkg/yuima/man/rng.Rd 2016-05-19 06:36:39 UTC (rev 434)
@@ -6,8 +6,8 @@
\alias{dNIG}
\alias{rbgamma}
\alias{dbgamma}
-\alias{rngamma}
-\alias{dngamma}
+\alias{rvgamma}
+\alias{dvgamma}
\alias{rstable}
\title{Random numbers and densities}
@@ -19,13 +19,17 @@
dNIG(x,alpha,beta,delta,mu,Lambda)
rbgamma(x,delta.plus,gamma.plus,delta.minus,gamma.minus)
dbgamma(x,delta.plus,gamma.plus,delta.minus,gamma.minus)
-rngamma(x,lambda,alpha,beta,mu,Lambda)
-dngamma(x,lambda,alpha,beta,mu,Lambda)
+rvgamma(x,lambda,alpha,beta,mu,Lambda)
+dvgamma(x,lambda,alpha,beta,mu,Lambda)
rstable(x,alpha,beta,sigma,gamma)
%dstable(x,alpha,beta,sigma,gamma)
+%rpts(x,alpha,a,b)
+%nts(x,alpha,a,b,beta,mu,Lambda)
}
\arguments{
\item{x}{Number of R.Ns to be geneated.}
+ \item{a}{parameter}
+ \item{b}{parameter}
\item{delta}{parameter}
\item{gamma}{parameter}
\item{mu}{parameter}
@@ -42,7 +46,7 @@
% \item{IG (inverse Gaussian)}{delta and gamma are positive valued parameter.}
% \item{NIG (normal inverse Gaussian)}{alpha and delta are nonnegative number, beta and mu are vector and Lambda is matrix.}
% \item{bgamma (bilateral gamma)}{All of parameters are positive number.}
- % \item{ngamma (normal gamma)}{lamdba and alpha are positive number, beta and mu are vector and Lambda is matrix.}
+ % \item{vgamma (variance gamma)}{lamdba and alpha are positive number, beta and mu are vector and Lambda is matrix.}
% \item{stable}{Stable index 0<alpha<=2; Skewness -1<=beta<=1; Scale sigma>0; Location gamma being a real number.}
}
@@ -51,14 +55,18 @@
\code{IG} (inverse Gaussian): Delta and gamma are positive (the case of gamma=0 corresponds to the positive half stable, provided by the "rstable").
\code{NIG} (normal inverse Gaussian): It is defined by the normal mean-variance mixuture of inverse Gaussian distribution. The parameters alpha, beta, delta and mu express the heaviness of tails, degree of asymmetry, scale and location, respectively. They satisfy the following conditions:
-Lambda is positive definite with det(Lambda)=1; delta>0; alpha>0 with alpha^2-beta^T Lambda beta >0.
+Lambda is symmetric and positive definite with det(Lambda)=1; delta>0; alpha>0 with alpha^2-beta^T Lambda beta >0.
\code{bgamma} (bilateral gamma): Bilateral gamma distribution is defined by the difference of independent gamma distributions Gamma(delta.plus,gamma.plus) and Gamma(delta.minus,gamma.minus).
-\code{ngamma} (normal gamma): Normal gamma distribution is defined by the normal mean-variance mixture of gamma distribution. The parameters satisfy the following conditions:
-Lambda is positive definite with det(Lambda)=1; lambda>0; alpha>0 with alpha^2-beta^T Lambda beta >0. Especially in the case of beta=0 it is variance gamma distribution.
+\code{vgamma} (variance gamma): Variance gamma distribution is defined by the normal mean-variance mixture of gamma distribution. The parameters satisfy the following conditions:
+Lambda is symmetric and positive definite with det(Lambda)=1; lambda>0; alpha>0 with alpha^2-beta^T Lambda beta >0. Especially in the case of beta=0 it is variance gamma distribution.
\code{stable} (stable): Parameters alpha, beta, sigma and gamma express stability, degree of skewness, scale and location, respectively. They satisfy the following condition: 0<alpha<=2; -1<=beta<=1; scale>0; gamma is a real number.
+
+%\code{pts}(positive tempered stable): Positive tempered stable distribution is defined by the tilting of positive stable distribution. The parameters alpha, a and b express stability, scale and degree of tilting, respectively. They satisfy the following condition: 0<alpha<1; a>0; b>0.
+
+%\code{nts}(normal tempered stable): Normal tempered stable distribution is defined by the normal mean-variance mixture of positive tempered stable distribution. The parameters alpha, a, b, beta, mu and Lambda express stability, scale, degree of tilting, degree of asymemtry, location and degree of mixture, respectively. They satisfy the following condition: Lambda is symmetric and positive definite with det(Lambda)=1; 0<alpha<1; a>0; b>0.
}
\value{
@@ -71,18 +79,51 @@
Some density-plot functions ar estill missing: as for the non-Gaussian stable densities, one can use, e.g., stabledist package.
}
+\references{
+## rstable
+Chambers, John M., Colin L. Mallows, and B. W. Stuck. (1976) A method for simulating stable random variables, Journal of the american statistical association, 71(354), 340-344.
+
+Weron, Rafał. (1996) On the Chambers-Mallows-Stuck method for simulating skewed stable random variables, Statistics & probability letters, 28.2, 165-171.
+
+Weron, Rafał. (2010) Correction to:" On the Chambers–Mallows–Stuck Method for Simulating Skewed Stable Random Variables", No. 20761, University Library of Munich, Germany.
+
+## rbgamma, dbgamma
+Küchler, U., & Tappe, S. (2008). Bilateral Gamma distributions and processes in financial mathematics. Stochastic Processes and their Applications, 118(2), 261-283.
+
+Küchler, U., & Tappe, S. (2008). On the shapes of bilateral Gamma densities. Statistics & Probability Letters, 78(15), 2478-2484.
+
+## rIG, dIG
+Chhikara, R. (1988). The Inverse Gaussian Distribution: Theory: Methodology, and Applications (Vol. 95). CRC Press.
+
+Michael, J. R., Schucany, W. R., & Haas, R. W. (1976). Generating random variates using transformations with multiple roots. The American Statistician, 30(2), 88-90.
+
+## rNIG, dNIG, rvgamma, dvgamma (the elements of GH distribution)
+Barndorff-Nielsen, O. E. (1997). Processes of normal inverse Gaussian type. Finance and stochastics, 2(1), 41-68.
+
+Eberlein, E. (2001). Application of generalized hyperbolic Lévy motions to finance. In Lévy processes (pp. 319-336). Birkhäuser Boston.
+
+Madan, D. B., Carr, P. P., & Chang, E. C. (1998). The variance gamma process and option pricing. European finance review, 2(1), 79-105.
+
+%## rpts
+%Kawai, R., & Masuda, H. (2011). On simulation of tempered stable random variates. Journal of Computational and Applied Mathematics, 235(8), 2873-2887.
+
+%## rnts
+%Barndorff-Nielsen, O. E., & Shephard, N. (2001). Normal modified stable processes. Aarhus: MaPhySto, Department of Mathematical Sciences, University of Aarhus.
+
+}
+
\examples{
set.seed(123)
# Ex 1. (One-dimensional standard Cauchy distribution)
# The value of parameters is alpha=1,beta=0,sigma=1,gamma=0.
-# Choose the value of x.
+# Choose the values of x.
x<-10 # the number of r.n
rstable(x,1,0,1,0)
# Ex 2. (One-dimensional Levy distribution)
-# Choose the value of sigma, gamma, x.
+# Choose the values of sigma, gamma, x.
# alpha = 0.5, beta=1
x<-10 # the number of r.n
beta <- 1
@@ -92,18 +133,24 @@
# Ex 3. (Symmetric bilateral gamma)
# delta=delta.plus=delta.minus, gamma=gamma.plus=gamma.minus.
-# Choose the value of delta and gamma and x.
+# Choose the values of delta and gamma and x.
x<-10 # the number of r.n
rbgamma(x,1,1,1,1)
-# Ex 4. (One-dimensional normal inverse Gaussian distribution)
+# Ex 4. ((Possibly skewed) variance gamma)
+# lambda, alpha, beta, mu
+# Choose the values of lambda, alpha, beta, mu and x.
+x<-10 # the number of r.n
+rvgamma(x,2,1,-0.5,0)
+
+# Ex 5. (One-dimensional normal inverse Gaussian distribution)
# Lambda=1.
-# Choose the value of parameters and x.
+# Choose the parameters values and x.
x<-10 # the number of r.n
rNIG(x,1,1,1,1)
-# Ex 5. (Multi-dimensional normal inverse Gaussian distribution)
-# Choose the value of parameters and x.
+# Ex 6. (Multi-dimensional normal inverse Gaussian distribution)
+# Choose the parameter values and x.
beta<-c(.5,.5)
mu<-c(0,0)
Lambda<-matrix(c(1,0,0,1),2,2)
More information about the Yuima-commits
mailing list