Learn R Programming

Distributacalcul (version 0.2.2)

VaR_erlang: Value-at-Risk of the Erlang distribution

Description

Value-at-Risk of the Erlang distribution with shape parameter \(n\) and rate parameter \(\beta\).

Usage

VaR_erlang(kap, shape, rate = 1/scale, scale = 1/rate)

Arguments

kap

probability.

shape

shape parameter \(n\), 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 Erlang distribution with shape parameter \(n\) and rate parameter \(\beta\) has density: $$f\left(x\right) = \frac{\beta^{n}}{\Gamma(n)} x^{n - 1}% \mathrm{e}^{-\beta x}$$ for \(x \in \mathcal{R}^+\), \(\beta > 0\), \(n \in \mathcal{N}^+\)

See Also

Other Erlang Distribution: E_erlang(), Elim_erlang(), Etronq_erlang(), MGF_erlang(), Mexcess_erlang(), SL_erlang(), TVaR_erlang(), V_erlang(), derlang(), kthmoment_erlang(), perlang()

Examples

Run this code
# NOT RUN {
# With scale parameter
VaR_erlang(kap = .2, shape = 3, scale = 4)

# With rate parameter
VaR_erlang(kap = .2, shape = 3, rate = 0.25)

# }

Run the code above in your browser using DataLab