fMoment function

Moment Bound.

Moment Bound.

Function to bound the total losses via the Moment inequality.

fMoment(ELT, s, t = 1, theta = 0, cap = Inf, verbose = FALSE)

Arguments

  • ELT: Data frame containing two numeric columns. The column Loss contains the expected losses from each single occurrence of event. The column Rate contains the arrival rates of a single occurrence of event.
  • s: Scalar or numeric vector containing the total losses of interest.
  • t: Scalar representing the time period of interest. The default value is t = 1.
  • theta: Scalar containing information about the variance of the Gamma distribution: sd[X]=xsd[X] = x * theta. The default value is theta = 0: the loss associated to an event is considered as a constant.
  • cap: Scalar representing the financial cap on losses for a single event, i.e. the maximum possible loss caused by a single event. The default value is cap = Inf.
  • verbose: Logical. If TRUE attaches the minimising index. The default is verbose = FALSE.

Returns

A numeric matrix, containing the pre-specified losses s in the first column and the upper bound for the exceedance probabilities in the second column.

Details

Moment inequality states:

Pr(Ss)mink=1,2E(Sk)skPr(Ss)mink=1,2E(Sk)/sk \Pr(S \geq s) \leq \min_{k = 1, 2 \dots} \frac{E(S^k)}{s^k}Pr(S \ge s) \le min_{k = 1, 2 \dots} E(S^k)/s^k

where E(Sk)E(S^k) is the kk-th moment of the total loss SS distribution.

Examples

data(UShurricane) # Compress the table to millions of dollars USh.m <- compressELT(ELT(UShurricane), digits = -6) EPC.Moment <- fMoment(USh.m, s = 1:40) EPC.Moment plot(EPC.Moment, type = "l", ylim = c(0, 1)) # Assuming the losses follow a Gamma with E[X] = x, and Var[X] = 2 * x EPC.Moment.Gamma <- fMoment(USh.m, s = 1:40, theta = 2, cap = 5) EPC.Moment.Gamma plot(EPC.Moment.Gamma, type = "l", ylim = c(0, 1)) # Compare the two results: plot(EPC.Moment, type = "l", main = "Exceedance Probability Curve", ylim = c(0, 1)) lines(EPC.Moment.Gamma, col = 2, lty = 2) legend("topright", c("Dirac Delta", expression(paste("Gamma(", alpha[i] == 1 / theta^2, ", ", beta[i] ==1 / (x[i] * theta^2), ")", " cap =", 5))), lwd = 2, lty = 1:2, col = 1:2)