<<

ON GENERALIZED PARETO 8. DISTRIBUTIONS

I. MIERLUS-MAZILU Abstract This paper discusses a set of algorithms for numerical simulation of the Generalized Pareto Distribution and the propositions they are based on. The numerical results and the histogram of generating data are also presented.

Keywords: Generalized Pareto Distribution; numerical simulation JEL classification: C15, C16, C44

1. Introduction The Generalized Pareto Distribution (GPD) was introduced by Pikands (1975) and has sine been further studied by Davison, Smith (1984), Castillo (1997, 2008) and other. If we consider an unknown distribution function F of a X , we are

interested in estimating the distribution function Fu of variable of x above a certain

threshold u . The distribution function Fu is so called the conditional excess distribution function and is defined as: F y P X u y | X u , 0 y x u , u  d ! d d F  where: X is random variable, u is a given threshold, y x  u are the excesses

and xF is the right endpoint of F .

We verify that Fu can be written in: F u y F u F x F u F y    . u 1 F u 1 F u Pickands (1975) posed that for a large class of underlying distribution function F the F y u conditional excess distribution function u , for large, is well approximated by: F y F y,k, , u u | V o f where :

Technical University of Civil Engineering, Bucharest, email [email protected]

Romanian Journal of Economic Forecasting – 1/2010 107 Institute of Economic Forecasting

­ 1 § ky · k °1 ¨1 ¸ k z 0, V ! 0 F(y;k,V ) ® © V ¹ x °  e V k ¯° 1 0, V ! 0 y x u k y ª V º k F k for >@0, F  , if d 0 , and  0, , if ! 0 . ˜, ,V is the so-called ¬« k ¼» Generalized Pareto Distribution. If x is defined as x u  y the GPD can also be expressed as a function of x . Definition 1 Castillo (1997): The random variable X has a generalized Pareto distribution GPD(k,V ) if the cumulative distribution function of X is given by ­ 1 § kx · k °1 ¨1 ¸ k z 0, V ! 0 F(x;k,V ) ® © V ¹ x °  e V k ¯°1 0, V ! 0 ª V º where: V and k are scale and shape parameters, x ! 0 for k d 0 and x  0, ¬« k ¼» for k ! 0 . Remark 1: x When k 0 , the GPD(k,V ) reduces to the with mean’s: Exp V . x When k 1, the GPD(k,V ) becomes uniform : U>@0,V . k GPD k Pareto k a c x When 0 , the ( ,V ) reduces to the 1, , distribution of the second kind. Definition 2 X Pareto k a c Castillo (2008): The random variable has the 1, , distribution of the second kind if the cumulative distribution function of X is given by k F x k a c 1 ; , , 1 a . 1 (x  c)

2. Algorithm for Numerical Simulation

2.1. The inverse method This method is based on the following lemma (Smirnov-Hincin).

108 Romanian Journal of Economic Forecasting – 1/2010 On Generalized Pareto Distributions

Lemma 1: Let X be a random variable having F , the cumulative distribution function, inversable, and let U be a uniform random variable on 0,1 . Then Y F 1 U has the same cumulative distribution function with X (e. g. Y is a sample of X ). Proof: P Y y P(F 1 (U ) y) P(U F(y)) F(y), U being uniformly distributed on 0,1 - q.e.d. According to Lemma 1, we can write the following algorithm. AI. {Algorithm for numerical simulation of the GPD(k,V ) random variable using the inverse method}

S0 Make suitable initializations; Input: k,V ;

S1 if k 0 then repeat 1 Generate U o U 0,1 ; X  lnU V until stop condition else if k 1 then repeat Generate U o U 0,1 ; X : V ˜U until stop condition else V input: a ; k repeat k Generate U o U 0,1 ; X a ˜ (1U ) until stop condition S2 Stop 2.2. The method based on the transformation of the standard exponential variable § V · We consider the case when k ! 0 and x ¨0, ¸ , according to Remark 1. © k ¹

V kY Proposition 1: Let Y o Exp 1 . Then X 1 e is a GPD(k,V ) random k variable. Proof:

Romanian Journal of Economic Forecasting – 1/2010 109 Institute of Economic Forecasting

kx kx §V kY · § kY · § kY · F(x) P(X x) P¨ 1 e x¸ P¨1 e ¸ P¨1 e ¸ © k ¹ © V ¹ © V ¹ 1 kx kx § kx k · P§ § · kY · P§Y 1 § ·· P¨Y § · ¸ ¨ln¨1 ¸  ¸ ¨  ln¨1 ¸¸ ¨ ln¨1 ¸ ¸ © © V ¹ ¹ © k © V ¹¹ ¨ © V ¹ ¸ © ¹ 1 1 § kx · k Y o Exp(1) ln¨1 ¸ § kx · k § V · 1 e © V ¹ 1 ¨1 ¸ for x ¨0, ¸ © V ¹ © k ¹ and k ! 0 - q.e.d. Remark 2: Since Y o Exp 1 , with the inverse method we have Y ln U , V k U V U k V k U o U 0,1 and thus we obtain: X 1 e ( ln ) 1 eln 1U . k k k Based on the proposition above, we have the following algorithm: AEx. {Algorithm for numerical simulation of the generalized Pareto distribution GPD(k,V ) starting from a standard exponential random variable} V S Make suitable initializations; Input k, ; Calculeazã ; 0 V D k

S1 repeat k Generate U o U 0,1 ; X : D 1U until stop condition

S2 Stop 2.3. The mixture method We consider the case when k 0 , V ! 0 and x ! 0 . Tkx Proposition 2 X G x e V x : Castillo (1997) Let T o ,T 1 with ! 0 , V ! 0 , § 1 · k 0 and let T ! 0 , T a sample of the random variable 4 o Gamma¨0,1, ¸ . © k ¹ X X Then the random variable obtained from mixing the two random variables T and 4 is a GPD(k,V ) random variable. Tkx 1 1  1 Proof: X o1 e V , 4 o T k eT T 1 ( ) *  k We calculate the cumulative distribution function of the random variable X :

110 Romanian Journal of Economic Forecasting – 1/2010 On Generalized Pareto Distributions

f Tkx 1 § · 1  1 F(x) P(X x) ¨1 e V ¸ eTT k dT ³¨ ¸ § 1 · 0 © ¹ *¨ ¸ © k ¹ 1 f § kx ·  1 1 T ¨1 ¸ ª § kx ·º k ª § kx ·º e © V ¹ ˜ T¨1 ¸ d T¨1 ¸ 1 ³ « » « » § · 0 ¬ © V ¹¼ ¬ © V ¹¼ f 1 *¨ ¸  1 k 1 eT k d © ¹ T T  1 § 1 · ³  *  0 kx k ¨ k ¸ §1 · © ¹ § 1 · ¨  ¸ *¨  ¸ V © k ¹ © ¹ 1 1 f § kx ·  1 kx k 1 T ¨1 ¸ kx k kx § · e © V ¹ ª § ·º d ª § ·º 1 ¨1 ¸ ˜ ˜ «T¨1 ¸» «T¨1 ¸» © V ¹ § 1 · ³ © V ¹ © V ¹ *¨ ¸ 0 ¬ ¼ ¬ ¼ k § 1 · © ¹ *¨  ¸ © k ¹ 1 § kx · k 1 ¨1 ¸ - q.e.d. © V ¹ Based on the proposition above we can write the following algorithm: AMm. {Algorithm for numerical simulation of the GPD(k,V ) distribution by the mixture method} 1 V S0 Make suitable initializations; Input k,V ,D ,E k k

S1 repeat § 1 · Generate T o Gamma¨0,1, ¸ © k ¹ Generate U o U 0,1 {U and T are independent}; E Deliver X : lnU T until stop condition; S2 Stop X The random variable T is obtained by the inverse method, as before. There are several methods for simulation of . Here we will remind only some of them. Therefore, the next problem is how we can generate X a Gamma 0,1,Q random variable.

Romanian Journal of Economic Forecasting – 1/2010 111 Institute of Economic Forecasting

2.3.1. The case when the parameter is greater than one A rejection enveloping algorithm This method is based on the following theorem: Theorem 1 Văduva (1977): Let Y be a random vector, to be generated, having the m probability density function f (y), y  R and Z , another random vector, which can m be generated, having the probability density function h(z), z  R such as P(h(Z)) 0) 0 . Assume that there is a positive and finite constant D such as:

f (x) m d D, x  R ,1 D f h(x) If U is an uniform 0,1 random variate, independent from Z , then the conditional f (Z) probability density function of Z , given that 0 d U d is f (y) . Dh(Z) The rejection procedure based on this theorem is sometimes called the enveloping 1 procedure and the acceptance probability is pa . a If in Theorem 2 we consider the case m 1, and that

1 y k f (y) yQ 1e I (y),Q t1 and h(z) , z t 0, c t 2Q 1 *(Q ) (0,f) (z  (Q 1))2 1 c meaning that h(z) is the Nonstandard , centered in Q 1 with c 2Q 1and K is a norming constant. It is shown that

1 Q 1 (Q 1) 1 a (Q 1) e , pa K *(Q ) a and hence the average number of trials (meaning that pairs of U, Z ) for obtaining a (Q 1) Q 1 sampling value of Y is en S ee (Q 1) *(Q ) .

Note that en d S for 1 e Q f , which illustrates a good performance of the algorithm. A disadvantage of this algorithm is that it uses three elementary functions x tan, e , log which may increase computing time and anyway will reduce accuracy. Therefore, Devroye (1986) have proposed a composition-rejection algorithm based on decomposition of the gamma density f (y) in the form: f y p f y p f y p p ( ) 1 1( )  2 2 ( ), 1  2 1 f y y b 1( ) 0 if >@0,

112 Romanian Journal of Economic Forecasting – 1/2010 On Generalized Pareto Distributions

f y y b 2( ) 0 if  ,f f y b f y where: 1( ) is enveloped by the truncated normal on >@0. and 2 ( ) is enveloped by the truncated exponential on 0,f , b being properly selected. This is one of the best algorithms for generating a gamma random variable when Q !1. An algorithm based on the ratio-of-uniforms A new fast and more accurate algorithm for generating a standard gamma variate with the parameterQ !1 will be presented. This algorithm is based on the following: Theorem 2 Văduva (1977): If the probability density function f of the random vector

1 1 m m X is in the form f (x) h(x) , H f (x)dx , d(m) , M : R 1 o R H ³ mc Rm 1 is in the form: v v v c § 1 2 m · M(v ,v ,...,vm ) ¨ , ,..., ¸ , c ! 0 0 1 ¨ vc vc vc ¸ © 0 0 0 ¹ c and C v v v v v v is bounded, and if V is a random vector ^ 0 , 1,..., m | J 0 , 1,..., m d 0` uniformly distributed on C , then the random vector Y M(V ) has the probability density function f. In Theorem 2 we consider m 1 and

1 x f (x) h(x), H *(Q ), h(x) xQ 1e H

1 x f (x) h(x), H *(Q ), h(x) xQ 1e H 1 ª § v · v º J (v ,v ) log v  Q 1 log¨ 1 ¸  1 0 1 0 c « ¨ vc ¸ vc » 1 ¬ © 0 ¹ 0 ¼ then, using Theorem 2, after some calculations, we have cQ 1 Q 1 cQ 1 Q 1  c c 1  c § Q 1·  c a b c 1 e 1 a b e 1 0 0, 0 Q 1  , 1 0, 1 ¨ ¸ © c ¹ p c * Q a cQ 1 Q 1 c c1 § Q 1· Q c 1 Q 1 c1 ¨ ¸ e © c 1 ¹ Now the final algorithm can be described easily.

Romanian Journal of Economic Forecasting – 1/2010 113 Institute of Economic Forecasting

An interesting question concerns the finding of the “best” constant c ! 0 to maximize the acceptance probability pa (c) . The analytical treatments of this problem necessitate complicated calculations. Therefore we designed a special procedure c which, starting from the initial value 0 1, searches (using a small step of variation of c ,) a positive value c in the neighborhood of this initial value, to give a greater p c probability. It results that lim a 0 , which shows that the algorithm has a bad Q of behavior for large values of Q . However, for not very large values of Q (e.g. Q d 34 ) it is faster than the algorithm based on a Cauchy envelope, as computer tests have shown. 2.3.2. The case when the parameter 0 O 1 A rejection algorithm This algorithm uses theorem 1 where

1 y z f (y) yQ 1e I (y), 0 Q 1, h(z) Q zQ 1e I (z) *(Q ) (0,f) (0,f) (meaning that h is a standard Weibull probability density function) which gives f y Q ( ) 1 [ (1Q ) 1Q 1 d a(Q ) e , [ Q , pa h(y) *(Q 1) a In our application we have to take into account that the behavior of the rejection algorithm is good mainly for 0.12 dQ d 0.9999 as computer tests have shown (Văduva, 1977).

3. Numerical Results I this paper, we implement all these three algorithms: AI{Algorithm for numerical simulation of the GPD(k,V ) random variable using the inverse method}, AEx{Algorithm for numerical simulation of the generalized Pareto distribution GPD(k,V ) starting from a standard exponential random variable}, AMn{Algorithm for numerical simulation of the GPD(k,V ) distribution by the mixture method}. Numerical application was performed using Mathcad.

114 Romanian Journal of Economic Forecasting – 1/2010 On Generalized Pareto Distributions

GPD k V N  fori1N  if k 0 V GPD k V N  a m ln() rnd() 1 k X m i V for i1N  fori1N  if k 1 k X m a1˜  rnd1() i X m V˜rnd() 1 i return X otherwise V a m k for i1N  k X m a˜ 1 rnd() 1 i return X The general algorithm AI The general algorithm AEx The general algorithm AI was called 1000 times. We consider k 2, V 2.5 in Figure 1 and k 0, V 2.5 in Figure 2.

Histograma Histograma 1500 2500 3 3 1.34u 10 2.456u 10

2000

1000 1500

fi fi

1000 500

500

153 0 0 0 4 4 4 4 4 4 4 4 4 0 2000 4000 6000 8000 1 10 1.2 10 1.4 10 0 5000 1 10 1.5 10 2 10 2.5 10 3 10 3.5 10 0.616 int 4 4 i 1.226u 10 1.16 inti 3.446u 10 Fig. 1. Fig. 2 The general algorithm AEx was called 1000 times. We consider k 2, V 2.5 in Fig 3. Also in Fig 4 we use AMn algorithm called 1000 times, with k 2, V 2.5 .

Romanian Journal of Economic Forecasting – 1/2010 115 Institute of Economic Forecasting

Histograma Histograma 1500 1500 3 3 1.37u 10 1.317u 10

1000 1000

fi fi

500 500

166 156 0 0 4 4 4 4 4 0 2000 4000 6000 8000 1 10 1.2 10 1.4 10 0 2000 4000 6000 8000 1 10 1.2 10 4 4 2.534 inti 1.226u 10 2.374 inti 1.128u 10 Fig. 3. Fig. 4 The histogram obtained on generated selection shows that the empirical distribution is similar to the theoretical distribution.

4. Example and Conclusions The GPD has applications in a number of fields, including reliability studies, in the modelling of large insurance claims, as a failure time distribution. Also it plays an important role in modeling extreme events. A model is frequently used in the study of income distribution and in the analysis of extreme events, e.g. for the analysis of the precipitation data, in the flood frequency analysis, in the analysis of the data of greatest wave heights or sea levels, maximum winds loads on buildings, in the maximum rain fall analysis, in the analysis of greatest values of yearly floods, breaking strength of materials, aircraft loads, etc. The GPD has been quite popular not only for flood frequency analysis but for fitting the distribution of extreme natural events in general. Every portfolio of policies incurs losses of greater and lower amounts at irregular intervals. The sum of all the losses (paid & reserved) in any one-year period is described as the annual loss burden or simply total incurred claims amount. An insurance company generally decides to transfer the high cost of contingent capital to a third party, a reinsurance company. It is possible to generate randomly a number of claims per year and to calculate each claim severity through the Generalized Pareto distribution. In this case if we calculate the economic risk capital defined as the difference between the expected loss, defined as the expected annual claims amount, and in this case the 99.93th quantile of the distribution corresponding to a Standard & Poor’s A rating. The analysis highlights the importance of a reinsurance program in terms of “capital absorption & release” because what happens in the tail of the loss distribution - where things can go very wrong and where the inevitable could sadly happen - has relevant impact on the capital base. This implicitly demonstrates that reinsurance decisions based on costs comparison could lead to wrong conclusions.

116 Romanian Journal of Economic Forecasting – 1/2010 On Generalized Pareto Distributions

References Castillo, E. and A.S. Hadi, (1997), “Fitting the Generalised Pareto Distribution to Data”, JASA, 92( 440): 1609 – 1620. Castillo J., Daoudib J. (2008), “Estimation of the generalized Pareto distribution”, Statistics & Probability Letters, In Press. Corradin, S. and B. Verbrigghe, (2003), "Economic Risk Capital and Reinsurance: an Application to Fire Claims of an Insurance Company" ASTIN Colloquium International Actuarial Association - Brussels, Belgium. Davidson A.C. (1984), “Modeling excesses over high threshold with an application”, In: J. Tiago de Oliveria (ed.), Statistical Extremes and Applications, Reidel, Dordrech, pp. 416-482. Devroye L. (1986), “Non-Uniform Random Variate Generation”, New York - Berlin Heidelberg - Tokyo: Springer Verlag,. Deak I. “Random Number Generators and Simulation”, Akademia Kiado, Budapest, 1990. Johnson N., Kotz S. (1972), “Distributions in statistics. Continous univariate distributions”, New York : John Wiley and Sons. Pickands J. (1975), "Statistical Inference Using Extreme Order Statistics," The Annals of Statistics, 3: 119-131. Vaduva I. (1997), “Simulation Models for Computer Applications” (in romanian), Bucharest : Technical Publishers.

Romanian Journal of Economic Forecasting – 1/2010 117