Learn R Programming

Distributacalcul (version 0.2.2)

E_gamma: Expected value of the Gamma distribution

Description

Expected value of the Gamma distribution with shape parameter \(\alpha\) and rate parameter \(\beta\).

Usage

E_gamma(shape, rate = 1/scale, scale = 1/rate)

Arguments

shape

shape parameter \(\alpha\), must be positive integer.

rate

\(\beta\) is the rate parameter, must be positive.

scale

alternative parameterization to rate parameter, scale = 1 / rate.

Value

Function :

Invalid parameter values will return an error detailing which parameter is problematic.

Details

The Gamma distribution with shape parameter \(\alpha\) and rate parameter \(\beta\) has density: $$f\left(x\right) = \frac{\beta^{\alpha}}{\Gamma(\alpha)} x^{\alpha - 1}% \textrm{e}^{-\beta x}$$ for \(x \in \mathcal{R}^+\), \(\beta, \alpha > 0\).

See Also

Other Gamma Distribution: Elim_gamma(), Etronq_gamma(), MGF_gamma(), Mexcess_gamma(), SL_gamma(), TVaR_gamma(), V_gamma(), VaR_gamma(), kthmoment_gamma()

Examples

Run this code
# NOT RUN {
# With scale parameter
E_gamma(shape = 3, scale = 4)

# With rate parameter
E_gamma(shape = 3, rate = 0.25)

# }

Run the code above in your browser using DataLab