Usage: |
P = INSruinMC(u, T, lambda, theta, distrib, dparameters, N, niter)
|
Input: |
| u | scalar or n x 1 vector, initial capital for risk process
|
| T | scalar or p x 1 vector, time horizon for risk process
|
| lambda | scalar, intensity of loss arrivals driven by Poisson process
|
| theta | scalar, security loading in insurance collective risk model
|
| distrib | string, name of distribution of claims, either:
exponential, gamma, mixofexps, Weibull, lognormal, Pareto or Burr.
|
| dparameters | list, composed of scalars, (parameters of the following distributions: exponential, gamma, Weibull, lognormal, loggamma, Pareto, Burr or truncPareto)
or of n x 1 vectors (parameters of "mixofexps" distribution, the first vector are parameters for the exponential distributions and the second one are the weights of mixing).
|
| N | scalar, number of simulated trajectories from risk process
|
| niter | scalar, number of iterations of the procedure to be repeated
|
Output: |
| P | scalar (if both T and u are scalars), p x 1 vector (if only T is a scalar),
n x 1 vector (if only u is a scalar) or p x n matrix (else),
ruin probability in finite time horizon T. |