Description Usage Arguments Details Examples
Function to approximate the Cumulative Distribution Function (CDF) of the aggregate claim size distribution.
1 | MomentsApprox(m,moments,type,n)
|
m |
probability to approximate: P(S>m) |
moments |
vector of raw moments of the aggregate distribution S. Besides the "Normal" approximation, all other |
type |
the available approximation methods are c("Normal","Gamma", "NormalPower", "NormalToGamma","GramCharlier", "Bowers") |
n |
approximation order, only needed for GramCharlier and Bowers c(3,4,5). |
approximations |
require at least the first 3 raw moments of S. "GramCharlier" and "Bowers" require as many raw moments as their chosen approximation order. |
The function takes as input the first raw moments of the aggregate claim size distribution S and returns the desired approximation to P(S>m) based on moments. The available approximations are c("Normal","Gamma", "NormalPower", "NormalToGamma","GramCharlier", "Bowers"). For GramCharlier and Bowers, the approximations are available up to the 5th order (n=c(3,4,5))
1 2 | MomentsApprox(900,moments=AggregateRawMoments(Moments("Poisson",30,"raw"),Moments("Gamma",c(40,2),"raw")), "Bowers",n=3)
MomentsApprox(900,moments=AggregateRawMoments(Moments("Poisson",30,"raw"),Moments("Gamma",c(40,2),"raw")), "NormalToGamma")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.