- Research
- Open Access
- Published:

# pTAS distributions with application to risk management

*Journal of Statistical Distributions and Applications*
**volume 3**, Article number: 11 (2016)

## Abstract

The family of positive tempered *α*-stable (pTAS) or sometimes also tempered one-sided *α*-stable distributions dates back to Tweedie (1984) and Hougaard (1986) who discussed it in the context of frailty distribution in life table methods for heterogenous populations. The pTAS family generalizes the well-known gamma distribution and allows for heavier tails depending on the parameter *α*. Because of this property, pTAS distributions appear to be useful in the context of risk management. Against this background, the contribution of his work is three-fold: Firstly, we summarize the properties of the pTAS family. Secondly, we describe its numerical implementation and illustrate the functions by means of R examples in the Appendix. Thirdly, we empirically demonstrate that this family can be successfully applied in risk management. Concretely, applications to credit and operational risk are given.

## Derivation and properties of the pTAS family

### 1.1 Evolution of the pTAS family

The distribution of a (non-degenerate) random variable *X* is called stable if there exist constants *a*
_{
n
}>0 and *b*
_{
n
} such that, for any *n*>1, if *X*
_{1},*X*
_{2},… are i.i.d. copies of *X* and \(S_{n}\equiv \sum _{i=1}^{n}X_{i}\), then \(S_{n}\overset {d}{=}a_{n}X+b_{n}.\) The distribution is called strictly stable if *b*
_{
n
}=0. The normalizing constants are necessarily of the form *a*
_{
n
}=*n*
^{1/α} for some *α*∈(0,2], where *α* is called the index or characteristic exponent of the distribution. We also say that *X* is *α*-stable if it is stable with index *α* and characteristic function

where *β*∈ [−1,1] (skewness parameter), \(\delta \in \mathbb {R}\) (location parameter) and *γ*>0 (scale parameter), briefly *X*∼*S*
_{
α
}(*β*,*γ*,*δ*). Forthon, the focus is on positive or one-sided *α*-stable (pAS) variables, i.e. *X*>0 a.s. which corresponds to these cases (parameter sets) where 0<*α*<1, *β*=1 and *δ*≥0. In this case and for *δ*=0, the Laplace transform is finite for all *s*>0 and given by (see, e.g. Nolan (2003) or Janson (2011, Theorem 3.12))

The positive or one-sided tempered *α*-stable distribution has its origin in Tweedie (1984) and Hougaard (1986). The process of tempering (also exponential tilting or Esscher transformation, Esscher (1932)) shortens the right-hand tail of the stable distribution so that, in contrast with the stable case, moments of all orders exist. Technically, a new proper density *g* is defined by

The distribution of the corresponding random variable *Y* is called positive tempered *α*-stable (pTAS) distribution. Using (1.1), (1.2), its Laplace transformation derives as

### 1.2 Properties of pTAS distributions and some remarks

Hougaard (1986) proved that all moments exist if *θ*>0. In particular, using (1.3),

where *ν*=*σ*/*μ* denotes the coefficient of variation. Moreover, skewness and kurtosis, defined by the third and fourth standardized moments read as

In the relevant literature, different parameterizations appear, summarized in Table 1, below.

Figure 1 illustrates the possible combinations of skewness and kurtosis that can be modeled via a pTAS distribution (gray shaded area). One can see that the area of possible combinations is bounded by the gamma distribution from below whereas the possible combinations of the Lognormal distribution are covered by the pTAS family. Therefore, we think that the pTAS distribution can serve as a good alternative whenever data are assumed to follow a lognormal distribution in general but some more flexibility regarding the tail behavior is required. For comparison reasons, we also depict the Weibull distribution which is often used in operational risk models (see Section 3.2).

Hougaard (1986) showed that all pTAS densities are unimodal and proved the following scaling-property: \(cX \sim \mathcal {P}(\alpha,c^{\alpha }\delta,\theta /c)\) when \(X\sim \mathcal {P}(\alpha, \delta,\theta)\). Furthermore, the pTAS family is self-decomposable (i.e. if *X* follows a pTAS distribution then for each *λ*∈(0,1) there exists a random variable *Y* independent of *X* such that ()=(*λ*+)) and infinitely divisible (i.e. for all *n*∈*N* exists a sequence of iid random variables \(\left (X_{j}^{1/n}\right)_{j=1}^{n}\) such that \(X\stackrel {d}{=} X_{1}^{1/n}+\ldots + X_{n}^{1/n}\). In this case, the characteristic function reads

where *γ*∈*R*,*σ*≥0 and *ν* denotes the Lévy measure. The triplet (*γ*,*σ*
^{2},*ν*) is called the Lévy triplet. If the Lévy measure *ν*(*d*
*x*) has a density *k*(*x*), then this density is called a Lévy density. Barndorff-Nielson and Shephard (2001) discuss the Lévy-density of the pTAS distribution. After a suitable re-parametrization, one obtains

for 0<*α*<1,*θ*>0,*γ*>0. According to Lemma 4 in Küchler and Tappe (2011) it also holds that

The pTAS density reduces to a simple closed form in three special cases. At first, letting \(\alpha \rightarrow 0\), the gamma distribution with scale \(\alpha _{\Gamma }=\frac {\theta ^{\alpha }\delta }{1-\alpha }\), shape \(\beta _{\Gamma }=\frac {1-\alpha }{\theta }\) is recovered. Secondly, setting *α*=1/2, the inverse Gaussian distribution with \(\lambda _{IG}=\frac {\delta ^{2}\theta ^{2\alpha -1}}{(1-\alpha)}\) arises. Finally, another special case arises when *α*=1/3 where the probability density function (pdf) can be expressed in closed form:

where *K*
_{
λ
}(*x*) denotes the modified Bessel function of the third kind with index *λ*.

The special cases as well as some density functions for further values of *α* are shown in Fig. 2.

The pTAS family can be considered as an alternative to the generalized inverse Gaussian (GIG) family (see Koudou and Ley (2014) for a review of this family) which itself arises from the inverse Gaussian (IG) distribution by exponential tilting. Barndorff-Nielson and Shephard (2001) introduce the four-parameter, so-called modified stable (MS) distributions which nests both GIG family and pTAS family (setting *κ*=0.5 and *ν*=−*κ* in their notation), where *ν* denotes the fourth (additional) parameter.

## Implementation issues

This chapter describes numerical algorithms which can be used for the standard functions (e.g. density and distribution function, random number generation and quantile function) of a pTAS random variable. The algorithms are described independently of a specific programming language. However, we give some examples how to use the pTAS R-package, which contains the described functions, in Appendix 4. The R-package is not yet published but can be obtained from the authors by request.

### 2.1 Density and distribution function

Since the pdf and cumulative distribution function (cdf) of the pTAS family are in general not available in closed form, but only via the Laplace transform, we have to use numerical inversion techniques to calculate values of the density or distribution function. Therefore, we follow a general approach given by Abate et al. (2000), which will be described briefly in this section. For further details please refer to the mentioned literature.

Starting from the Bromwich integral, the value of the pdf *f* at *t*>0 can be recovered from the Laplace transform \(\hat {f}:=\mathcal {L}(f)\) by ^{1}

where \(i=\sqrt {-1}\) and *b* is a real number greater than all singularities of \(\hat {f}\). The second transformation is achieved via a change of variables.

Approximating the integral in (2.1) by the trapezoidal rule with step size *h*>0, we get

This equation gives rise to three kinds of error, a discretization error caused by the step size *h*, a truncation error and a round-off error because of the numerical operations performed by calculating the series.

The discretization error can be reduced by interpreting (2.1) as a Fourier series of a function *g*(*t*):=*e*
^{−bt}
*f*(*t*), whereby the coefficients of the series itself can be expressed via the values of the Laplace transform. The error then can be reduced by increasing the ratio *b*/*h*. The round-off error can be controlled by choosing \(h=\frac {\pi }{lt}\) and \(b=\frac {A}{2lt}\) for some \(l\in \mathbb {N}>0\) and \(A=\frac {2l}{2l+1}m\ln 10\), where in turn *m*>0 should be chosen such that 10^{−m} is close to the machine precision. In order to improve the truncation error, the so called Euler summation technique can be applied, which gives us another parameter \(n\in \mathbb {N}\) determining the number of coefficients being (fully) respected for the summation. Similarly to Abate et al. (2000) we recommend the following default values: *l*=1, *n*=38 and *m*=11.

Finally, the pdf is approximated via

with

Using the definition of the Laplace transform and partial integration it is easy to see that for \(F(t)=\int _{0}^{\infty }f(t)\,\mathrm {d}t\)

Therefore, with just a minor modification, the same method used to approximate the pdf can be used to approximate the cdf of a pTAS distribution.

### 2.2 Quantiles and random numbers

To calculate the quantile for a given level *p*∈(0,1), Ridout (2008) proposed a modified version of Newton’s method to invert the cdf. Because, especially in the upper and lower tail of the distribution, the pdf may be close to zero, which may lead to an iteration step outside a given interval \([t_{\min },t_{\max }]\). In this case, the Newton step is replaced by a bisection method.

Given a tolerance *ε*>0, a maximum number of iterations \(N_{\max }\in \mathbb {N}\) and a closed interval \([t_{\min },t_{\max }]\) such that \(\exists t\in \ [t_{\min },t_{\max }]:\,\left |F(t)-p\right |\leq \epsilon \) the following algorithm can be used to calculate the *p*-quantile of a pTAS distribution:

In order to determine the initial values of the lower and upper bounds, we propose to store some values for *t* and *F*(*t*) on a grid *t*
_{
i=1,…,N
} depending on mean and standard deviation. Using precalculated values for \(t_{\min }\) and \(t_{\max }\) increases performance especially when quantile transformations should be performed very often.

If multiple quantiles should be calculated at the same time for different probabilities *p*
_{
m=1,…,M
}, the probabilities should be sorted in ascending order before the transformation. Assuming that *p*
_{1}≤…≤*p*
_{
M
} we can apply Algorithm 1 on the first element *p*
_{1} and use the resulting value *t*
_{1}=*F*
^{−1}(*p*
_{1}) as starting point (and also as lower bound) for the next element *p*
_{2}.

For random number generation the inverse probability integral transform method can be applied very easily by using Algorithm 2 based on sorted uniform drawings.

### 2.3 Estimating parameters

Given a series of *N* positive observations *x*
_{1},…,*x*
_{
N
} a pTAS distribution can be fitted via various methods. First of all, a numerical maximum likelihood estimation (MLE) can be used. Within the package (see appendix A) we use the *mle()* function of the R-package *stats4*which in turn uses the *optim()* optimizer of R in order to perform a maximum likelihood estimation. In particular, for observations *t*
_{1},…,*t*
_{
N
} the parameters are determined by

whereas for the calculation of the pdf *f*
_{(α,μ,σ)}(*t*) the algorithm described in 2.1 is used. As starting values we use the empirical mean and variance and a value of 0.5 for *α*. In order to ensure that the parameters stay in their specific range, we use the L-BFGS-B method with box constraints. Alternatively, distribution parameters can be estimated based on mean and variance, which determine parameters *μ* and *ν* regarding the \(\mathcal {P}_{P}\) parametrization and either the skewness, the kurtosis or a quantile to estimate parameter *α*. Given a skewness or kurtosis value (besides mean and variance), parameter *α* can be calculated by using Eq. (1.4). Please note, that the minimal skewness for a pTAS distribution equals 2*ν*. Please also note, that if *α* should be estimated based on a given kurtosis value the solution may not be unique (see Eq. 1.4).

A similar problem occurs if *α* should be estimated based on a given quantile *t*
^{∗} for probability *p*
^{∗}. Therefore, we propose to start with a grid *α*
_{
i=1,…,N−1} (e.g. \(\alpha _{i}=\frac {i}{N}\) for *i*=1,…,*N*−1 for some \(n\in \mathbb {N}\)) and calculate quantiles \(t_{i}=F_{\mathcal {P}_{P}(\alpha _{i},\mu,\nu)}^{-1}(p^{*})\) in order to determine the number of possible solutions as well as lower and upper bounds for each of them. Given a lower and upper bound for each possible solution, a standard root finding method (e.g. bisection method) can be applied. In order to choose a proper value of *N*, we recommend to visualize the problem at first with the help of a plot like the one given in Fig. 3, which shows an example containing two possible solutions for *α*. In this case, we fixed the parameters *μ* and *ν* based on mean and variance and want to find a solution for *α* such that \(F_{\mathcal {P}_{P}(\alpha,\mu,\nu)}(14.36)=0.999\). As Fig. 3 shows, we get the two solutions *α*
_{1}=0.5 and *α*
_{2}=0.98.

In cases with no unique solution, the resulting parameters may lead to very different distributions (e.g. with different tails) which, in the context of risk management, can cause different risk figures. Therefore, we recommend to choose the estimation method with respect to the proposed area of application and to compare estimation results between different methods if they are not unique. Otherwise, using inappropriate parameter estimators may lead to an increase of model risk.

## Application to risk management

After showing how the pTAS distribution can be implemented and parameters can be estimated, we provide two extensive risk management applications of the pTAS family.

### 3.1 Credit risk

Our first application deals with the quantification of credit risk. Given a particular credit portfolio of *N* counterparties, financial institutions use credit portfolio models to estimate the distribution of the portfolio loss over a fixed time horizon (usually one year) due to counterparties’ defaults ^{2}. For each counterparty we denote the exposure at default by EAD_{
i
}>0, the loss given default (as fraction of EAD_{
i
}) by LGD_{
i
}∈ [0,1] and the probability of default by PD_{
i
}∈(0,1). The portfolio loss *L* then reads as

where *D*
_{
i
} is a Bernoulli distributed random number with probability PD_{
i
} representing the default (*D*
_{
i
}=1) or the survival of counterparty *i*.

Given these counterparty specific information, a crucial task of a credit portfolio model is to model the changes of PD_{
i
} over the specified time horizon by taking into consideration systematic influences due to country or business dependencies as well as idiosyncratic changes. For our example we use the CreditRisk^{+} model, which is available via the GCPM R-package on CRAN. We give a short introduction on those model parts, which are necessary for this example. For detailed information please refer to Credit Suisse First Boston International (1997) or Gundlach and Lehrbass (2004).

Within the CreditRisk^{+} model the possible change of counterparty *i*’s PD is modeled by the conditional \(\overline {\text {PD}}_{i}\), which is given by

where *w*
_{
i,k
}∈ [0,1] represent the affiliation to one or multiple out of *K* sectors (business-country combinations). In contrast, \(w_{i,0}=1-\sum _{k=1}^{K}w_{i,k}\geq 0\) represent the idiosyncratic component. The variables *S*
_{
k
}>0 (so-called sector variables) represent the economic situation of sector *k*=1,…,*K*. An economic boom is associated with values *S*
_{
k
}<1, which yields to a conditional PD below the unconditional one (i.e. \(\overline {\text {PD}}_{i}<\text {PD}_{i}\)), whereas a recession is expressed by values *S*
_{
k
}>1, which increases counterparties’ PD. Within the original framework of Credit Suisse First Boston International (1997), the sector variables are modeled via a gamma distribution, which insures that (together with some additional assumptions) the portfolio loss distribution can be calculated analytically ^{3}.

As mentioned above, the gamma distribution was chosen for performance issues. From an economic point of view, this assumption may be questionable. Instead of a gamma distribution, one can also use a lognormal distribution, which is more heavy tailed and therefore more conservative compared to a gamma distribution. However, the lognormal distribution also possesses only two parameters. Therefore, using mean and variance ^{4} to parametrize the distribution of *S*
_{
k
} the heaviness of the tail can not be controlled explicitly. If we use a pTAS distribution instead, we can fit the sector distribution to mean and variance of observed PD changes and still have control over the tail via parameter *α*.

For our example, we use portfolio of 5,000 counterparties belonging to ten different sectors. The data used to estimate the sector distributions are monthly PD values over 10 years, which are estimated via a Merton type model (see Merton (1974)) from marked data (i.e. stock prices and liabilities) for over 20,000 corporations and aggregated on sector level. The portfolio as well as the underlying data are explained in more detail in Fischer and Jakob (2015) and Jakob and Fischer (2014). We estimate pTAS distributions for each sector by using MLE and the empirically observed skewness and compare the results on portfolio risk figures with the original setting (i.e. gamma distributions parametrized via mean and variance) and a framework using the lognormal distribution and the Weibull distribution. Because of the relatively small number of observations (10 years of monthly data), we do not use the kurtosis or quantile estimation methods in this example. For the Monte Carlo simulation of the CreditRisk^{+} model the GCPM R-package is used. The dependency between sector variables are modeled via a Student-t copula with 3.8 degrees of freedom, estimated using a maximum likelihood approach^{5}.

Table 2 shows the empirical skewness of each sector as well as the estimated parameter *α* and the skewness of a Gamma, a lognormal and a Weibull distribution parametrized only by mean and variance. As already indicated by Fig. 1, the lognormal distribution possesses a skewness and kurtosis similar to a pTAS distribution with higher values of *α*. By looking at Table 2 we can see, that the observed skewness is often underestimated by the lognormal distribution, which is also confirmed by Fig. 4, where the risk figures of the lognormal framework are slightly below those of the pTAS(skewness) framework. However, this may only be the case if skewness is in a suitable range. By using a pTAS distribution one always has greater flexibility to account for semi-heavy (or not so heavy) tailed distributions compared to a lognormal or a gamma distribution. In addition, Fig. 5 shows the empirical observations of the sector variables *S*
_{
k
} together with the densities of the fitted distributions exemplarily for Sector 4. The Figure shows that a pTAS distribution estimated via a MLE approach fits the data much better compared to all other distributions. The pTAS distribution estimated via a MLE approach also possesses the heaviest tail of all presented competitors, which in turn causes significant higher risk figures as shown by Fig. 4.

The VaR is considerably higher

Figure 4 shows the pdf of the portfolio loss distribution together with vertical lines indicating the Value at Risk (VaR) for level *τ*, which is simply the quantile of the portfolio loss distribution. The VaR is considerably higher if we use a pTAS distribution which considers the skewness or which is estimated via MLE for the sector distribution compared to the standard case of a gamma distribution, which only accounts for mean and variance. Because financial institutions typically use higher values for *τ* (e.g. *τ*=0.999) to calculate the economic capital which is necessary to cover unexpected losses, the use of a simple gamma distribution may imply a significant amount of model risk. In our case, the VaR_{0.999} rises by around 12 % if we use pTAS distributions based on skewness and up to 28 % if we use MLE. Please note, that the effect in general depends on the sectors (i.e. business lines and countries) of the portfolio as well as the data used for estimating the sector distributions.

### 3.2 Operational risk

A financial institution is exposed to different risks such as credit risk and market risk, for instance, and is required to put aside a capital buffer against unexpected losses. With the implementation of Basel II recommendations a capital requirement for operational risk (OpRisk) was set under regulation, too. There are many definitions of operational risk and many institutions have adopted their own definitions which better reflects their business model and strategy. The Basel Committee defines operational risk *as the risk of loss resulting from inadequate or failed internal processes, people and systems or from external events*. It becomes obvious that OpRisk is a very broad concept and may include anything from bank robberies, unauthorized trading, failures in the internal systems to terrorist attacks and natural catastrophies. Commonly, the loss data are organized according to seven official Basel II defined event types (Internal Fraud, External Fraud, Employment Practices & Workplace Safety, Clients, Products & Business Practice, Damage to Physical Assets, Business Disruption & System Failures, Execution, Delivery & Process Management) and eight business lines (Corporate Finance, Trading & Sales, Retail Banking, Commercial Banking, Payment & Settlement, Agency Services, Asset Management, Retail Brokerage) which implies 56 categories. In order to derive the OpRisk loss distribution, one typically derives the loss distribution for each relevant category in the first step^{6} and aggregates the individual loss distributions to the overall loss distribution, in a second step. For reason of simplicity, we assume in the sequel that the bank operates on one business line and is faced to one event type only. In this case, the loss distribution reduces to a compound sum of the type

with random variables *N* (number of loss in the next year) and corresponding loss severities *L*
_{1},…,*L*
_{
N
} for each loss. For reasons of simplicity we assume that *N* and *L*
_{1},…,*L*
_{
N
} are mutually independent (see, e.g. Neslehova et al. (2006) for an inclusion of dependence). Once these variables are specified and estimated within a parametric setting and for a given loss data set, the loss distribution can be easily simulated within a Monte Carlo framework. Typically, the number of losses are assumed to follow a Poisson distribution with parameter *λ*>0 which corresponds to the expected number of losses within the next period/year. In contrast, specifying the severity distribution is more complex to some extent. To avoid the problems in fitting a single parametric distribution with one or two parameters to the whole data set, one often uses a compound severity distribution, see El Adlouni et al. (2011). This involves dividing the severity distribution into the so-called body and the so-called tail by a threshold, and presuming a different distribution for each part. Both distributions are then combined into a single severity distribution which is commonly termed as a compound distribution. Losses below and above the threshold are referred to as low-severity and high-severity losses. Once, the parametric model(s) for the severity distribution has been selected, the estimation of unknown parameters can be done using the method of moments (MM), Maximum Likelihood (ML, used in the empirical part) or Ordinary Least Square (OLS). In order to compare the goodness-of-fit (GoF), graphical tools like quantile-quantile-plots or suitable GoF-test should be used.

The underlying data set is provided in the textbook of Bolancè et al. (2012), chapter 7. It contains 700 loss data from 2011 to 2014 which were multiplied by 1000 for technical reasons. The corresponding loss severities and loss frequencies in the course of time are depicted in Fig. 6.

In order to illustrate the OpRisk calculation, we assume that the number of losses is Poisson distributed and that we have a compound severity distribution, where the body is modelled by the empirical distribution function, whereas the tail is assumed to follow a lognormal, a Weibull, a pTAS, a gamma and a generalized gamma (see, e.g. Stacy (1962)) distribution, respectively. Table 3 summarizes the corresponding OpVaR (i.e. quantile of the loss distribution) for different confidence levels and each of the four distributions. Obviously, the Weibull (which is often applied in banking industry) and the pTAS tail model are close together, whereas the lognormal model implies significant higher OpVaR’s. In contrast, both gamma and generalized gamma distribution produce lower OpVaR figures.

In order to compare the goodness-of-fit, both quantile-quantile plots (see Fig. 7) and goodness-of-fit statistics (Kolmogorov-Smirnov and Anderson-Darling, see Table 4 and Chernobay et al. (2015) for a detailed discussion) indicate that the pTAS distribution with \(\widehat {\alpha }=0.3842\) seems to be the preferable choice. Although the generalized gamma distribution provides reasonable AD2UP and KS statistics, too, the user is in danger of being to progressive, taking into account that there are only a few number of observations and that the true parametric model is unknown^{7}.

Finally, Fig. 7 also depicts the simulated portfolio loss for the OpRisk data set.

## Conclusion

Within this article, we discussed the family of positive tempered *α*-stable distributions, which is a flexible distribution family and well suited to model both light and semi-heavy tailed data on the positive half-axis. Besides the derivation of the family and a summary of certain characteristics, which are relevant for practical applications, we provided an overview of the existing literature on this family. Furthermore, we introduced algorithms that can be used to implement the basic functionalities of the pTAS family (i.e. density and distribution function, calculation of quantiles and random numbers generation), which are also available via the pTAS R-package. By applying the pTAS distribution in the field of credit and operational risk we show that this distribution is more flexible and provides a better fit to empirical data compared to other competitors which are often used. Therefore, as in case of credit risk, the pTAS distribution can help to reduce the amount of model risk or as in case of operational risk, to reflect the risk more adequately which in turn helps banks to allocate economic capital more appropriately. Beyond the two given examples, the pTAS distribution may be also used to model (stock) returns and therefore being beneficial for market risk management as well.

## Endnotes

^{1} Please refer to Schiff (1999, Theorem 4.3) for further details.

^{2} Besides counterparties’ defaults also changes in a counterparties creditworthiness (so-called rating migrations) cause a portfolio loss. However, for reasons of simplicity we restrict this example to default risk only.

^{3} In 1997, when the CreditRisk^{+} was published, this was a major advantage over simulative models, which use a Monte Carlo simulation to estimate the loss distribution. However, nowadays computers are much more powerful and Monte Carlo simulations are widely used.

^{4} The parametrization based on mean and variance is a standard method within the CreditRisk^{+} model. In order to ensure that \(\mathbb {E}\left (\overline {\text {PD}}_{i}\right)=\text {PD}_{i}\), which is a common assumption, we have the condition that \(\mathbb {E}(S_{k})=1\) for all *k*.

^{5} For readers interested in the topic of copulas within credit portfolio models, we refer to Jakob and Fischer (2014) and Fischer and Jakob (2015).

^{6} The Basel Committee have prescribed guidance for three types of methods for the calculation of capital requirement for operational risk. Those are the Basic Indicator Approach, the Standard Approach and the Advanced Measurement Approach. The latter is the most sophisticated of the approaches and this is what this section is about.

^{7} Please note that for the GoF-test for left-truncated samples the distribution of the statistic is not parameter-free, and the *p*-values and the critical values are obtained by means of Monte Carlo simulation. There remains a certain variation of the *p*-values - a direct comparison is not meaningful.

## Appendix

## Using the pTAS R-package

With the help of short examples we explain how the functions can be used within an R-session. We will not describe the several functions in all details and parameters. Please refer to the corresponding help pages within the package for more information.

### Creating a pTAS distribution

The pTAS package uses an object oriented approach, which means that every distribution (e.g. with different parameters) is represented by a different object of class pTAS. Therefore, one can work with many different distributions at the same time (within the same workspace) without jeopardizing their consistency regarding distributional or numerical parameters.

Hence, the first step is to create a new pTAS distribution object.

The MYPTAS object describes a pTAS distribution with parameterization \(\mathcal {P}_{P}(\alpha,\gamma,\theta)=\left (0.5,1,1.5\right)\). The PTAS function automatically performs some plausibility checks on the given parameters and translates the given parameterization (i.e. according to Palmer et al. (2008) in this case) to the other ones. In addition, distribution figures such as mean, variance, skewness and kurtosis are calculated.

To obtain a first impression of the distribution, the density (and also the distribution function) can be shown by simply using the PLOT function.

### Density, distribution function, quantiles and random numbers

Density and distribution function are available via the standard R-notation (d…/ p…). The numerical parameters described in 2.1 can be set when the object is created via the PTAS function.

Quantiles and random numbers are generated via Algorithm 2.

### Estimation methods

For implementation issues, the MLE will be performed on the \(\mathcal {P}_{P}\)- parameterization always. For parameters *α*,*μ*,*ν* lower and upper bounds as well as fixed values can be specified. Especially for parameter *α* an appropriate upper bound may be helpful, because pdf calculations for parameters *α* close to 1 are numerically challenging. The FIT_MLE function uses the MLE function from the STATS4 package, which in turn uses R’s OPTIM optimizer.

Detailed information on the optimization results can by obtained via the OPTIM_RESfunction. This gives a list containing the number of iterations, the convergence result and the Hessian matrix for further calculations (e.g. to calculate confidence intervals). If the optimization did not converge properly, a warning is displayed automatically.

Alternatively, distribution parameters can be also estimated based on mean and variance, which determine parameters *μ* and *ν* regarding the \(\mathcal {P}_{P}\) parametrization and either the skewness, the kurtosis or a quantile to estimate parameter *α*. If *α* should be estimated based on a given kurtosis value, which possible has multiple solutions, a pTAS distribution with either the highest or the lowest value of possible *α*’s or a list containing all distributions will be returned.

If *α* should be estimated based on a given quantile, an grid search method as described in section 2.3 is applied. For given values *t*
^{∗}>0 and *p*
^{∗}∈(0,1) the algorithm terminates if \(\left |F_{\mathcal {P}_{P}(\alpha,\mu,\nu)}(t^{*})-p^{*}\right |<\epsilon \) for a prespecified *ε*>0, whereas values for *μ* and *ν* are fixed based on mean and variance. Similar to the estimation based on kurtosis, the solution for *α* (if one exists) may be not unique. Again, one can determine which distribution should be returned with an additional argument (see example below).

## References

Abate, J, Choudhury, GL, Whitt, W: An introduction to numerical transform inversion and its application to probability models. In:

*Computational Probability*, pp. 257–323. Springer Science+Business Media, New York (2000).Barndorff-Nielson, OE, Shephard, N: Normal modified stable processes. Economics papers 2001-w6. University of Oxford, Oxford (2001).

Bolancè, C, Guillèn, M, Gustafsson, J, Nielson, JP: Quantitative Models for Operational Risk: Extremes, Dependence and Aggregation. Chapman & Hall/CRC Finance Series, New York (2012).

Chernobay, A, Rachev, S, Fabozzi, F: Composites goodness-of-fit tests for left-truncated loss samples. In: Lee, CF, Lee, J (eds.)

*Handbook of Financial Econometrics and Statistics*, pp. 575–596. Springer (2015).Credit Suisse First Boston International: CreditRisk

^{+}A Credit Risk Management Framework (1997). http://www.csfb.com/institutional/research/assets/creditrisk.pdf. Accessed 27 Jan 2014.El Adlouni, S, Ezzahid, E, Moutazzim, J: Mixed distributions for loss severity modelling with zeros in the operational risk losses. Int. J. Appl. Math. Stat. 11(21), 96–109 (2011).

Esscher, F: On the probability function in the collective theory of risk. Scand. Actuarial J. 1932(3), 175–195 (1932). doi:http://dx.doi.org/10.1080/03461238.1932.10405883.

Fischer, M, Jakob, K: Copula-Specific Credit Portfolio Modeling. In: Glau, K, Scherer, M, Zagst, R (eds.)

*Innovations in Quantitative Risk Management. Springer Proceedings in Mathematics & Statistics*, pp. 129–145. Springer International Publishing (2015).Gundlach, M, Lehrbass, F: CreditRisk+ in the Banking Industry. Springer Finance. Springer, Berlin Heidelberg (2004).

Haas, M, Pigorsch, C: Financial economics: Fat-tailed distributions. In:

*Encyclopedia of Complexity and Systems Science vol. 4*, pp. 3404–3435. Springer, New York (2009).Hougaard, P: Survival models for heterogeneous populations derived from stable distributions. Biometrika. 73(2), 387–396 (1986).

Jakob, K, Fischer, M: Quantifying the impact of different copulas in a generalized CreditRisk+ framework An empirical study. Depend. Model. 2, 1–21 (2014).

Janson, S: Stable distributions. arXiv preprint arXiv:1112.0220 (2011). Accessed 2015-08-16.

Jørgensen, B: Exponential dispersion models (with discussion). J. R. Stat. Soc. Series B. 49(2), 127–162 (1987).

Koudou, AE, Ley, C: Characterizations of gig laws: A survey. Probab. Surv. 11, 161–176 (2014).

Küchler, U, Tappe, S: Tempered stable distributions and applications to financial mathematics (2011).

Merton, RC: On the pricing of corporate debt: The risk structure of interest rates. J. Finance. 29(2), 449–470 (1974).

Neslehova, J, Embrechts, P, Chavez-Demoulin, V: Infinite mean models and the LDA for operational risk. Journal of Operational Risk. 1(1), 3–25 (2006).

Nolan, J: Stable Distributions: Models for Heavy-tailed Data. Birkhauser, Boston (2003). In progress available via: http://fs2.american.edu/jpnolan/www/stable/chap1.pdf.

Palmer, KJ, Ridout, MS, Morgan, BJ: Modelling cell generation times by using the tempered stable distribution. J. R. Stat. Soc. Series C (Appl. Stat.) 57(4), 379–397 (2008).

Ridout, MS: Generating random numbers from a distribution specified by its Laplace transform. Stat. Comput. 19(4), 439–450 (2008). doi:http://dx.doi.org/10.1007/s11222-008-9103-x.

Schiff, JL: The Laplace Transform: Theory and Applications. Springer-Verlag, New York (1999).

Stacy, EW: A generalization of the gamma distribution. Ann. Math. Stat. 3(33), 1187–1192 (1962).

Tweedie, MCK: An index which distinguishes between some important exponential families. In:

*Statistics: Applications and New Directions: Proc, Indian Statistical Institute Golden Jubilee International conference*, pp. 579–604 (1984).

## Acknowledgement

The authors thank two anonymous referees and an associate editor for their helpful comments and suggestions which significantly improved the presentation of the paper.

## Author information

## Additional information

### Authors’ contributions

MF carried out the derivation and general properties of the pTAS family as well as the application to operational risk. KJ addressed issues regarding the implementation and the credit risk example. The manuscript was drafted together. All authors read and approved the final manuscript.

### Competing interests

The authors declare that they have no competing interests.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License(http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

#### Received

#### Accepted

#### Published

#### DOI

### Keywords

- Stable distributions
- Positive distributions
- Estimation
- Operational risk
- Credit risk

### Mathematics Subject Classification

- 44A10; 60E07; 91B28