saddlepoint {EQL} | R Documentation |
Saddlepoint Approximation
Description
Computes the (normalized) saddlepoint approximation of the mean of
i.i.d. random variables.
Usage
saddlepoint(x, n, cumulants, correct = TRUE, normalize = FALSE)
Arguments
x |
a numeric vector or array with the values at which the approximation should be evaluated. |
n |
a positive integer giving the number of i.i.d. random variables in the sum. |
cumulants |
a |
correct |
logical. If |
normalize |
logical. If |
Details
The saddlepoint approximation (SA) for the density of the
mean of i.i.d. random variables
with
is given
by:
where is an appropriatly chosen correction term, which is
based on higher cumulants. The function
denotes the cumulant
generating function and
denotes the saddlepoint
which is the solution of the saddlepoint function:
For the renormalized version of the SA one chooses
such that
integrates to one, otherwise it includes the
3rd and the 4th standardized cumulant.
The saddlepoint approximation is an improved version of the Edgeworth
approximation and makes use of ‘exponential tilted’
densities. The weakness of the Edgeworth method lies in the
approximation in the tails of the density. Thus, the saddlepoint
approximation embed the original density in the “conjugate
exponential family” with parameter . The mean of
the embeded density depends on
which allows for
evaluating the Edgeworth approximation at the mean, where it is known
to give reasonable results.
Value
saddlepoint
returns an object of class approximation
. See
function approximation
for further details.
Author(s)
Thorn Thaler
References
Reid, N. (1991). Approximations and Asymptotics. Statistical Theory and Modelling, London: Chapman and Hall.
See Also
approximation
, cumulants
, edgeworth
Examples
# Saddlepoint approximation for the density of the mean of n Gamma
# variables with shape=1 and scale=1
n <- 10
shape <- scale <- 1
x <- seq(0, 3, length=1000)
sp <- saddlepoint(x, n, gammaCumulants(shape, scale))
plot(sp, lwd=2)
# Mean of n Gamma(1,1) variables is n*Gamma(n,1) distributed
lines(x, n*dgamma(n*x, shape=n*shape, scale=scale), col=2)