Inverse transformation for skewed Lambert W RVs
Inverse transformation for skewed Lambert W RVs and its derivative.
W_gamma(z, gamma = 0, branch = 0) deriv_W_gamma(z, gamma = 0, branch = 0)
z
: a numeric vector of real values; note that W(Inf, branch = 0) = Inf
.gamma
: skewness parameter; by default gamma = 0
, which implies W_gamma(z) = z
.branch
: either 0
or -1
for the principal or non-principal branch solution.numeric; if is a vector, so is the output.
A skewed Lambert W F RV (for simplicity assume zero mean, unit variance input) is defined by the transformation (see H_gamma
)
where is a zero-mean and/or unit-variance version of the distribution .
The inverse transformation is , where is the Lambert W function.
W_gamma(z, gamma, branch = 0)
(and W_gamma(z, gamma, branch = -1)
) implement this inverse.
If , then and the inverse also equals the identity.
If , the inverse transformation can be computed by
Same holds for W_gamma(z, gamma, branch = -1)
.
The derivative of with respect to simplifies to
deriv_W_gamma
implements this derivative (for both branches).
H_gamma