The HPCDM Procedure

Analyzing the Effect of Parameter Uncertainty on the Compound Distribution

Continuing with the previous example, note that you have fitted the frequency and severity models by using the historical data. Even if you choose the best-fitting models, the true underlying models are not known exactly. This fact is reflected in the uncertainty that is associated with the parameters of your models. Any compound distribution estimate that is computed by using these uncertain parameter estimates is inherently uncertain. You can request that PROC HPCDM conduct parameter perturbation analysis, which assesses the effect of the parameter uncertainty on the estimates of the compound distribution by simulating multiple samples, each with parameters that are randomly perturbed from their mean estimates.

The following PROC HPCDM step adds the NPERTURBEDSAMPLES= option to the PROC HPCDM statement to request that perturbation analysis be conducted and the PRINT=PERTURBSUMMARY option to request that a summary of the perturbation analysis be displayed:

/* Conduct parameter perturbation analysis of
   the Poisson-gamma compound distribution model */
proc hpcdm countstore=countStorePoisson severityest=sevest
           seed=13579 nreplicates=10000 nperturbedsamples=30
           print(only)=(perturbsummary) plots=none;
   severitymodel gamma;
   output out=aggregateLossSample samplevar=aggloss;
   outsum out=aggregateLossSummary mean stddev skewness kurtosis
          p01 p05 p95 p995=var pctlpts=90 97.5;
run;

The Work.AggregateLossSummary data set contains the specified summary statistics and percentiles for all 30 perturbed samples. You can identify a perturbed sample by the value of the _DRAWID_ variable. The first few observations of the Work.AggregateLossSummary data set are shown in Figure 3. For the first observation, the value of the _DRAWID_ variable is 0, which represents an unperturbed sample—that is, the aggregate sample that is simulated without perturbing the parameters from their means.

Figure 3: Summary Statistics and Percentiles of the Perturbed Samples

_SEVERITYMODEL__COUNTMODEL__DRAWID__SAMPLEVAR_NMEANSTDDEVSKEWNESSKURTOSISP01P05P90P95P97_5var
GammaPoisson0aggloss100004076.783442.571.145541.75272008743.8510740.0312453.2616406.81
GammaPoisson1aggloss100004155.343430.451.129291.85707008783.9310569.4412448.8416390.42
GammaPoisson2aggloss100004024.203407.801.160061.84717008599.7810441.0912242.8316219.61
GammaPoisson3aggloss100004241.483565.671.113731.48627009133.0011107.3912974.4816946.76
GammaPoisson4aggloss100004161.653544.711.174001.79535008943.1210800.9512780.9217142.43
GammaPoisson5aggloss100003892.263273.011.081801.45528008334.0110180.9311742.1215147.64
GammaPoisson6aggloss100004474.953704.711.077041.41288009606.4911489.2413304.5517662.93
GammaPoisson7aggloss100004216.143476.551.115001.58827008890.2010732.5912600.3016581.44
GammaPoisson8aggloss100004049.963413.211.140441.61876008671.0210546.6212323.8316333.81
GammaPoisson9aggloss100003950.083350.041.096931.35455008561.2710322.3011986.4315829.09
GammaPoisson10aggloss100004286.653668.011.167661.75264009328.4311299.1013240.1317417.01


The PRINT=PERTURBSUMMARY option in the preceding PROC HPCDM step produces the "Sample Perturbation Analysis" and "Sample Percentile Perturbation Analysis" tables that are shown in Figure 4. The tables show that you can expect a mean aggregate loss of about 4,098.5 and the standard error of the mean is 172.1. If you want to use the VaR estimate to determine the amount of reserves that you need to maintain to cover the worst-case loss, then you should consider not only the mean estimate of the 99.5th percentile, which is about 16,448.2, but also the standard error of 708.9 to account for the effect of uncertainty in your frequency and severity parameter estimates.

Figure 4: Summary of Perturbation Analysis of the Poisson-Gamma Compound Distribution

The HPCDM Procedure
Severity Model: Gamma
Count Model: Poisson

Sample Perturbation Analysis
StatisticEstimateStandard
Error
Mean4098.5172.08823
Standard Deviation3470.4136.68712
Variance12062522947666.8
Skewness1.138170.04237
Kurtosis1.654860.21853
Number of Perturbed Samples = 30
Size of Each Sample = 10000

Sample Percentile Perturbation Analysis
PercentileEstimateStandard
Error
100
500
251425.490.99084
503421.7155.81011
756003.1244.90738
908818.2362.42625
9510732.8422.41895
97.512540.3504.12071
9914839.4680.49452
99.516448.2708.87293
Number of Perturbed Samples = 30
Size of Each Sample = 10000


Last updated: December 20, 2021