Computes \(E(X)\) for \(X \sim \mathrm{MHN}(\alpha, \beta, \gamma)\).
Arguments
- alpha
Shape parameter (\(\alpha > 0\)), a single number.
- beta
Rate-type parameter (\(\beta > 0\)), the coefficient of the Gaussian tail \(\exp(-\beta x^2)\); larger values pull mass toward zero. A single number.
- gamma
Tilt parameter (\(\gamma \in R\)), the coefficient of the exponential tilt \(\exp(\gamma x)\). A single number.
Details
By Sun et al. (2023, Lemma 2a) the mean is a ratio of Fox-Wright \(\Psi\) functions, $$E(X) = \frac{\Psi[(\alpha+1)/2,\, z]}{\sqrt{\beta}\, \Psi[\alpha/2,\, z]}, \qquad z = \gamma/\sqrt{\beta}.$$ At \(\gamma = 0\) the ratio is \(\Gamma((\alpha+1)/2) / (\sqrt{\beta}\, \Gamma(\alpha/2))\) (Sun et al. 2023, Lemma 6a). For every \(\alpha > 0\) the mean is at most \((\gamma + \sqrt{\gamma^2 + 8\alpha\beta})/(4\beta)\) (Sun et al. 2023, Lemma 4a and the remark after it).
The ratio is used where it can be evaluated accurately. Where it cannot, mainly under a strong tilt or at a very large \(\alpha\), the mean is instead obtained by numerical integration of the unnormalised density, which needs no \(\Psi\) value.
The function is not vectorised in its parameters: alpha,
beta and gamma must each be a single number. To evaluate
several parameter triples, use mapply, as in the examples.
The numerical methods are described in Appendix A of
vignette("theory", package = "mhn").