calculation of the moments and the moment generating ......when starting this study we did not know...

16
MATHEMATICS OF COMPUTATION VOLUME 42. NUMBER 166 APRIL 19K4. PAGES 601-616 Calculation of the Moments and the Moment Generating Function for the Reciprocal Gamma Distribution By Arne Fransen and Staffan Wrigge Abstract. In this paper we consider the distribution G(x) = F~ lfo(T(t)) ' dt. The aim of the investigation is twofold-, first, to find numerical values of characteristics such as moments, variance, skewness, kurtosis,etc; second, to study analytically and numerically the moment generating function <p(i) = /" e~'x/T(x) dx. Furthermore, we also make a generalization of the reciprocal gamma distribution, and study some of its properties. Introduction. In [4] we considered, among many other things, the distribution G(x) = F~x^(Y(t))~xdt, which was suggested as a distribution of possible use in reliability theory by Dr. Gustaf Borenius, the former head of our section. He suggested this distribution because its shape looked like that of the gamma distribu- tion, only with a thinner tail. Moreover, the problem as such was a mathematical challenge. The normalization constant F was calculated and presented to 60D by Fransen and Wrigge[4],to 80D by Fransen [3],and to 300D by W. A. Johnson [10]. We were asked by Dr. Samuel Kotz if we could calculate analytically and numerically the moments of the reciprocal gamma distribution. To our surprise, we managed to find not only a useful recurrence relation for the moments a„ = E(Xn) but also several analytical expressions. The aim of this investigation is twofold: first, to find numerical values of characteristics such as moments, variance, skewness, kurtosis, etc.; second, to study analytically and numerically the moment generating function <p(t) = (e-'VT(x))dx. Jo Furthermore, we also make an obvious generalization of the reciprocal gamma distribution and study some of its properties. When starting this study we did not know much about the work of our predeces- sors on similar problems. We learned that Ramanujan [8] as well as Wyman and Wong [17] and Doming et al. [1] had studied related problems from a purely analytical standpoint. In Erdélyi et al., Vol. 3 [2, pp. 217-224] several functions close to the one studied by us are mentioned. Paley and Wiener used these functions, when studying inversion formulae for the Laplace transform; see [13, p. 39]. We also learned a lot when reading a doctoral thesis from 1887 by A. Lindhagen [11] on the gamma function. Received September 21, 1982; revisedJune 20, 1983. 1980Mathematics Subject Classification. Primary33A15, 65D20, 65U05; Secondary 44A10, 60E15. Key words and phrases. Reciprocal gamma distribution, population characteristics, generating function. ©1984 American Mathematical Society 0025-5718/84 $1.00 + $.25 per page 601 License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Upload: others

Post on 22-Sep-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

MATHEMATICS OF COMPUTATIONVOLUME 42. NUMBER 166APRIL 19K4. PAGES 601-616

Calculation of the Moments

and the Moment Generating Function

for the Reciprocal Gamma Distribution

By Arne Fransen and Staffan Wrigge

Abstract. In this paper we consider the distribution G(x) = F~ lfo(T(t)) ' dt. The aim of the

investigation is twofold-, first, to find numerical values of characteristics such as moments,

variance, skewness, kurtosis,etc; second, to study analytically and numerically the moment

generating function <p(i) = /" e~'x/T(x) dx. Furthermore, we also make a generalization of

the reciprocal gamma distribution, and study some of its properties.

Introduction. In [4] we considered, among many other things, the distribution

G(x) = F~x^(Y(t))~xdt, which was suggested as a distribution of possible use in

reliability theory by Dr. Gustaf Borenius, the former head of our section. He

suggested this distribution because its shape looked like that of the gamma distribu-

tion, only with a thinner tail. Moreover, the problem as such was a mathematical

challenge. The normalization constant F was calculated and presented to 60D by

Fransen and Wrigge [4], to 80D by Fransen [3], and to 300D by W. A. Johnson [10].

We were asked by Dr. Samuel Kotz if we could calculate analytically and

numerically the moments of the reciprocal gamma distribution. To our surprise, we

managed to find not only a useful recurrence relation for the moments a„ = E(Xn)

but also several analytical expressions.

The aim of this investigation is twofold: first, to find numerical values of

characteristics such as moments, variance, skewness, kurtosis, etc.; second, to study

analytically and numerically the moment generating function

<p(t) = (e-'VT(x))dx.Jo

Furthermore, we also make an obvious generalization of the reciprocal gamma

distribution and study some of its properties.

When starting this study we did not know much about the work of our predeces-

sors on similar problems. We learned that Ramanujan [8] as well as Wyman and

Wong [17] and Doming et al. [1] had studied related problems from a purely

analytical standpoint. In Erdélyi et al., Vol. 3 [2, pp. 217-224] several functions close

to the one studied by us are mentioned. Paley and Wiener used these functions,

when studying inversion formulae for the Laplace transform; see [13, p. 39]. We also

learned a lot when reading a doctoral thesis from 1887 by A. Lindhagen [11] on the

gamma function.

Received September 21, 1982; revised June 20, 1983.

1980 Mathematics Subject Classification. Primary 33A15, 65D20, 65U05; Secondary 44A10, 60E15.Key words and phrases. Reciprocal gamma distribution, population characteristics, generating function.

©1984 American Mathematical Society

0025-5718/84 $1.00 + $.25 per page

601

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 2: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

602 ARNE FRANSEN AND STAFFAN WRIGGE

1. A General Formula for the Mean Value E(xp( X)), Where X Has a Generalized

Reciprocal Gamma Distribution. We begin with a

Definition. By a generalized reciprocal gamma distribution we mean a distribution

with a density function /(x) = \/g(x), where g(x) satisfies g(x + 1) = xg(x) and

x e [0, oo).

We may then formulate

Theorem 1. Let \/g(x) be a generalized reciprocal gamma probability density

function, and let ^(x) be a continuous function such that

Hx)E(HX))=f^dx

Jo g(x)

exists. Then

-i uF(u)

Jo g(u + 1)

where

F(u) = t(u)+ £ \\ 'k-i nk4(u+j)

=M+i4^(îHu+\:j+k)£oß(u+J) A=0

k\

and the series for uF(u) is assumed to converge uniformly in [0,1]. G

Proof.

rk + \f(x) £ fi^(u + k)

k-oJk S(x) k=0Jo g{u + k)du

J0 g(u+ 1)

The "partial fraction" is deduced in the ordinary way using the identity

_I_-£("-!) (-1)" 1 „ =u(u + 1) ■■■(u + n- 1) JrA m /(«-!)!« +mí(«+l)--- (u + n-l) n^0\ m l(n-l)

Of special importance is the case when 4>(x) is periodic with a period equal to one.

We may, e.g., determine the constant c2n such that c2„sin2"(77\x)/r(jc) becomes a

probability density. (See Section 3b.)

It should be noted that one might as well define the generalized reciprocal gamma

distribution demanding that the density function f(x) satisfies f(x + 1) = f(x)/x.

We have also studied the more general case where the probability density function

f(x) satisfies the functional relation

(1.1) f(x + 1) = r(x)f(x),

where r(x) is a rational, or even more general, function. It is then easy to see how to

generalize Theorem 1.

An example of such a function/(x), which we have studied in some detail, is

(1.2) f(x) = cYlr(m,x)/Ur(nJx),,=1 y=l

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 3: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

RECIPROCAL GAMMA DISTRIBUTION 603

where m, and «y are positive integers, chosen such that the integral /0°° f(x) dx exists,

and c is a normalization constant. A simple example is

(1.3) f(x) = cT(x)/T(2x),

giving r(x) = j(2x + I)1.

We plan to present our studies of the more general density functions in (1.1) and

(1.2), and corresponding moments and moment generating functions, in a future

paper.

2. Some Formulae for the Moments and the Factorial Moments.

a. The General Case. Let X be a random variable with the same distribution as in

Theorem 1. We want to obtain a useful formula for the moments a„ = E(X").

Let us define the numbers Xn as Xn = ¡Q(x"/g(x)) dx. We may then formulate

Theorem 2. Let an = j^(x"/g(x))dx and Xn = fo(x"/g(x)) dx. Then the mo-

ments an satisfy the recurrence relation an = 1 + X„ - X0 + 'L"k=l("k)ak_1, with start-

ing value a0 = 1. D

Proof.

n x" J fx x" J . f*>(x + 1)" ,a„ = / —r^dx + / -7—rdx = Xn + / -——dx.

Jo g(x) J\ g(x) J0 xg(x)

A simple use of the binomial theorem and some manipulations easily yield Theorem

2. D

We may describe the solution of the equation in Theorem 2 in

Theorem 3. The solution of the recurrence relation in Theorem 2 may be written in

the following way

n

«n = *„+i+ Ldk(n)Xk; d0(0) = 0, d„(n) = 1, bx = 1,k = 0

where bn is the Bell number of order n and the integers dk(n) satisfy

" I 4- 1 \dm(» + 1) = L 1+ 1 )dJj)-som, dm(j) = 0 forj<m. O

j = m \-' '

Proof. The numbers bn satisfy the equation

(2.1) bn + l=Í(l)bk, b0 = l

(see, e.g., Lunnon, Pleasants and Stephens [12, p. 2]), which is also obtained from the

recurrence relation in Theorem 2. Now, consider

n + r/(2.2) a„+x = i + xn+l-x0+ E";i ¿,+1+ Ldk(mf

j=0\J I \ k = 0

Identifying coefficients of Xm on both sides of (2.2), we get

(2.3) <*„(» +1)- i Í"tl)dm(j)-S0m.j = m \J '

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 4: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

604 ARNE FRANSEN AND STAFFAN WRIGGE

The obvious advantage of knowing Theorem 3 is that in order to calculate E( X")

we only have to know the numbers Xn. If \/g(x) may be expanded as \/g(x) =

Lf=lckxk,then

£ 1(2-4) A„ = ' = 1 kn + k + 1 '

Putting \¡/(x) = (x - l)(x - 2) ■ ■ ■ (x - n) in Theorem 1, we may state the follow-

ing theorem for the factorial moments, viz.

Theorem 4. Put xP(x) = U"=l(x - i). Then

rlL"kZlon?Zk(x-i) + l J ^ [I XP(X)

Jo g(x) J0 g(x + l)-dx,

Jo gyx) ->o g(x + i)

where

p(x)= t ,(, f,;„=o"!(* + ")

eP(x) = - + —.-— + —-—,-— + ■ • • .' x x(x + 1) x(x + l)(x + 2)

(Concerning the function P(x) see, e.g., Lindhagen [11, pp. 21-22].)

We note the special case « = 1, which yields

(2.5) a, = 1 + A, + e C f^.dx.Jo g{x + 1)

From Theorem 2 we obtain a1 = 2 + A1-A0. We conclude that

b. The Special Case. In this case we put

;/"Jn

and define y„ as y„ = FXn, i.e

1 fx x"H T(x)

(2.7) W0r7^'1 x'

-)

The recurrence relation in Theorem 2 then becomes

(2-8) an = l+^j^+ L (nk)«k-i, «o = l-k = l

When considering the moment generating function E(e~'x) the numbers ßn = an/n\

are more interesting. Thus we get, from a numerical point of view, the more useful

recurrence relation

(2.9) A_¿(1 + ̂ )+£.R-i_A_1. *_,.

To obtain the moments an we first calculate ßn using (2.9) and after that we use the

identity a„ = n\ßn.

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 5: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

RECIPROCAL GAMMA DISTRIBUTION 605

When calculating the numbers y„ we use the expansion

1 °°

rW=£oW+1,

The coefficients ak+l converge very fast towards zero and are tabulated by Fransen

and Wrigge [4] with addendum by Fransen [3], in both cases to 80D. From (2.4) we

get the formula

00 a

(2.10) Yb E_^L_, „ = 0,1,2,....K=0

The values of an, ßn, and yn are presented in Table I for « = 0,1,2,..., 15 to 30D.

We also deduced a formula for the coefficients an using the Euler-Maclaurin

summation formula and applied it for checking purposes.

Therefore consider the function

/•OO p tx

<p(t) = FE(e-'x)=( -^dx.J0 i (x)

The Euler-Maclaurin summation formula with step-length h = 1 yields (B2k are

the ordinary Bernoulli numbers)

(2.11) *(r) = F L ^-a}= e-'+'-' + E L<L £ ff«2,_w.j=o ->' y-o ■'• /c-[(y+i)/2]+i

(Cf. Section 3a.)

A remaining problem is how to calculate the coefficients 8j in the expansion

(2.12) e"*'- = Q(t) = t £«,•7 = 0 ■'*

Differentiating (2.12) with respect to t we get Q(t) = _(1 + e~')Q(t), which after

identification of coefficients yields the relation

(2.13) s,+1 = - Í«, + (-\y t(-\)k[j^s\, S0 e.

From (2.11) we get the relation

B(2.14) Faj = (-ï)Jôj+ E -#"2*-!-,, ; = 0,1,2,....

fc=[(7 + l)/2] + l

Formulae (2.13) and (2.14) were used to check the numerical values of a, calculated

by (2.9) for small values of y (j = 0,1,2,..., 6).

From Hardy's lectures on Ramanujan [8, p. 196] or from his collected works,

Volume IV [9, p. 544], we learn that

\ dx = e*- \ \ dx, s>0.o T(l + x) J0 <n2 + ln2x

Differentiating (2.15) n + 1 times with respect to s and putting s = 1, we get a

formula for the factorial moments

(2.16) r®$£4*-. + i-irr-r5r*-Jo 1 (x) J0 7TZ + hr *

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 6: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

606 ARNE FRANSEN AND STAFFAN WRIGGE

Putting s = e'1 in (2.15), we get, after differentiation with respect to t, the formula

JfOO e~'x _, /.°c p~'~xe

^—sdx = e-'+'- +( e dx.o 1 (x) Jo 77z + hr x

(See also Section 3.)

To obtain an analytical expression for the moments a„ in this case, we must first

consider a certain generating function, viz.

(2.18) e»"- £ck{x)(-l)k£.A = 0

For the functions Ck(x) we easily obtain the relations

(2.19) Ck(x) = t^x»,n — 0

(2.20) Ck(x) = xCk_x(x), k>\,

(2.21) Ck(x) = exPk(x),

where Pk(x) is a polynomial of order k with positive integer coefficients,

(2.22) Pk(x) = Z S(k, j)XJ;7 = 0

S(k, j) denotes Stirling's number of the second kind (Riordan [14, p. 192]),

(2.23) C„(u + v)= Í(nk)ck(u)C„_k(v).A=0V/C/

Differentiating (2.17) n times with respect to t and putting t = 0, we obtain

(2.24) Fa„= i(l)ck(l)+f^zZU0(nk)Ck(-x)

■n2 + ln2xdx.

The value of 0.(1) is ebk, where bk is the Bell number of order k (see Riordan [14, p.

193]). We note also that the numbers 8j defined by (2.12) are related to Q(l) in the

following way

(2.25) Sn = (-!)" i (n)ck(l) = (-l)"ebn+1.

Finally, comparing (2.14) and (2.24), we obtain

ata y B2kn r^o("k)ck(-x) ,(2-26) 2, -2k<i2k-i-n=J

k = [(n + l)/2] + l it1 + ln2x

Gautschi [5] considered polynomials orthogonal with respect to the reciprocal

gamma distribution. Let the polynomials be {irk(x)), normalized so that the

coefficient of xk equals 1. Gautschi tabulated the coefficients á^ and ßk (k = 0(1)39,

18D) of the three-term recursion formula

(2.27) irk + l(x) = (x - âk)irk(x) - ßkirk_x(x); ir0(x) = 1, ■n_l(x) = 0.

These polynomials could be used either to calculate or to check the moments of the

reciprocal gamma distribution. No discrepancies were found.

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 7: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

RECIPROCAL GAMMA DISTRIBUTION 607

c. Some Population Characteristics in the Special Case. For the sake of complete-

ness only we give the numerical values of the population characteristics mentioned

above to 30D. The moments around zero, an, are given in Table I, and from these we

get

mean value = ax =

1.93456 70421 47884 72118 37147 04369,

variance = a2 = p2 =

(2 . 1.09393 63340 68611 31547 97434 13155,skewness coefficient = p1 = ju3/a3 =

0.81591 45786 35844 85691 78575 43121,

coefficient of kurtosis = v2 = p.4/a4 - 3 =

0.80230 15983 14383 56469 69336 12202

and the moment-ratios

g3 = f~i= 0.90327 99004 93664 73043 0818109121,(2.29) 3 V '

g4 = v2 + 3 = 3.80230 15983 14383 56469 69336 12202.

3. Further Analysis of the Function y(t).

a. Some Analytical Expressions. Consider the function <p(t) = FE(e~'x) =

f0x(e~'x/T(x)) dx. Ramanujan, as mentioned by Hardy in [8], proved the formula

W fwT^^+r^Wcosi^-^ln,} -rfh—e','J-tT(l+x) Jo { m I 7T2 + In2 x

when y > 0 and I > 0, using an ingenious method. Putting | = 1, we get

/OO yx /-OO p ~yx

-iT(l + x)** ~¡o TT2 + ln2x'

which may be written

-yx

-dx

(3.2) / L—dx-e'+j -Jo 1 ( x ) J0 IT2 + In2 x

dx.

We proved (3.2) from scratch showing that the Laplace transform of the L.H.S.

equals the Laplace transform of the R.H.S. Thereby we used probability, as well as

residue, calculus.

Setting y = e~' in (3.2) yields

-oo p~'x _, /-OO p-t-xe

(3.3) „(/)-/ l—dx = e-'^, + f e dx.Jo 1 (x) Jo 7T + hr x

We will return to some different forms of Eq. (3.3) in Section 3c.

Several interesting analytical expressions of <p(i) may be obtained using the

Euler-Maclaurin summation formula. Thus we calculate

(3'4) *'(,)-j?,rW-<""'"'

and

cc -/(A + l/2) -1/2

(3-5) <p2(0 = E 77-—T = V + (2N(2l/2e~'/2) - I)«""' .k=0r(k + 2-) H

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 8: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

608 ARNE FRANSEN AND STAFFAN WRIGGE

where N( ■ ) denotes the standardized normal distribution function, i.e.

JV(/) = -Lf e-'^dx.V277 ■'-00

A formal use of the summation formula yields the equations

00 .j 00 D

(3.6) <p(0 = e-'+e"'+L(-l)y7, E jt'u-i-jy=0 J' * = [(y+l)/2] + l

and

i °° (-,\J °° R / ^ \2k

(3.7) <p(/) = i(m1(o + <p2(0)+Ei-rL E If i a»-i-yy-o •'■ *=[(y+i)/2]+i z/c vz;

(Cf. Section 2b.) The more complicated case with the step-length h = \ is treated in

a short note (Wrigge [16]).

We may generalize these results in

Theorem 5. Let f(x) = \/g(x) be a generalized reciprocal gamma probability

density function such that /(0) = 0, /(0) is finite and nonzero and suppose that

!/#(*) = E*-iC*x*. Define k(í) = E(e',x). Then formally we have, iff(n)(oo) = 0

forn = 0,1,2,...,

00 t-,\J °° R

«(')-«i(0+IV- E -#c"-i-yy = 0 ■/• t-[(y+l)/2] + l

«(f) = 1(^(0 + «,(/)) + E ̂ # E ^(èr«a*-i-y.z 7=0 ■'• /t=[(y+i)/2]+i z" vz,;

vv/iere

K^ = e-J^r and «2(0 = £7TÇ + ^7(2M21/V'/2)-l)e-'-S(l) «(i) Sil)

Using Theorem 1, we may establish the following result.

Theorem 6. Let f(x)= \/g(x) be a generalized reciprocal gamma probability

density function. Define n(t) = E(e~'x). Then

D

p.-m;.;.-)Jn eiu)

where ^(a; y; x) denotes the confluent hypergeometric function (see Sneddon [15, p.

35]). An alternative expression is

k(0 = illT^du + e-'+e" f1 / '\.du + e-'+e" (l^rG(u) du,Jo g(u) J0 g(u + l) Jo g(u)

where

52 <--\\kp-'k

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 9: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

RECIPROCAL GAMMA DISTRIBUTION 609

The function y(t) is related to the beta function in a natural way. Consider the

well-known identity

(3.8) rwa-o'-1*-^^.J0 T(x + y)

We divide both sides by T(x)T(y), multiply by e~s(x+y) and integrate with respect

to x and y between 0 and oo. Formally we get

(3.9) /■ '<- ■■<'»*<'- '"" - "' * - ff^U »--♦(,)■•'o '(1 - t) Jo Jo T(x + y)

The last part of (3.9) will be proved using Eq. (3.12).

We will prove that

roo roo p~t(x+y)

(3.10) <p(0=/ I ^¡——-Trdxdy.Jo Jo T(x + y + 1)

Therefore consider the auxiliary function

(3.11) (?,(,)- // f0^-dxdy.x+y<is;x,y>0 ^^^ i)

Using the mean value theorem of integral calculus, we get

G,(s + As) - G,(s) = T(s + eAs + l) // dxdy; N[0,1],

This easily yields

d_r( v se~" e~'s

ds^5' T(s + \) T(s)-

We finally get

/•OO p~'x /-OO /-OO o_'(-*+.)')

3.12) G,(oo) = «p /)=/ ^f^dx= / _—-_—<&-#.^o i(x) ^o •'o L(x + j + 1)

The last part of (3.9) may now be proved using similar methods or simply by

differentiating (3.10) with respect to t.

b. Some Interesting Inequalities. We start with Weierstrass' formula for 1/T(x),

i.e.

(3.13) _2_,^n(1+i)e-/..

However, since (1 + x/n)e'x/" ^ 1, we get

(3-14)1

r < e XVk Y, Cj kxj+1, where vk = E n 1 ~ Y>) 7=0 ' «=1T(x)

and the numbers ey t are related to the Stirling numbers of the first kind, viz.,

cjk = (s(k + 1, ; +\)/k\)(-iy+k. (See e.g. Riordan [14, p. 90].) This yields the

estimate

(3-15) <P(0 < E cM/U + 1}lj-" ~J'K it _L \J+2

=0 (t + vky

In Table II we give the values of the upper limit for k = 24 and t = 0.0(0.1)5.0.

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 10: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

610 ARNE FRANSEN AND STAFFAN WRIGGE

Another inequality for <p(t) may be obtained using the multiplication theorem for

the gamma function. We see that

,00 p-n'x

(3.16) <p(/) = n/ ——-dx, « = 1,2,3.•>o i(nx)

But it is known that T(nx) - (2tT)(X-")/2n''x-l/2T(x)Y\nkz\ T(x + k/n). This yields

.00 -x(n» + nlogn)

<P(0 = «3/2i -n—T7^-dx.Jo (2'nf")/1T(x)nrJlT(x + k/n)

Putting T(x0) = minj:>0 T(x) and c = T(x0)/ {2ti , we may write

(3.17) <p(«/ +«log«) >—r—(p(/), « = 1,2,3,....n '

Similar inequalities may be deduced for the more general transformation

/ ^ r^e-axf(tx).

Before continuing the analysis of <p(t) we note the obvious inequality (from (3.3)),

(3.18) <p(0 > e~t+e".

We will now deduce a different lower limit for <p(i) using a variant of Jensen's

inequality, viz.,exp(/„"+1 ln(/(x)) dx) < /„"+1 f(x) dx, where f(x) is supposed to be

continuous and positive.

We put

{t<u)=Clnfu¡jdxr(x)

and get

(3.19) G(t, u) = -t(u + \) -ulnu + u- lnv^r".

But

ru + l e

f(>Summing over u = 0,1,2,..., we obtain

•w-<rfe*-

,t/2 « eA(l-0

(3-20) v(/)>f3_|i+ £27T \ t=i A;

The simpler inequality (3.18) is slightly better in the interval (0,0.6), see Table III.

We may easily generalize the result in (3.20), viz.,

Theorem 7. Let f(x) = \/g(x) be a generalized reciprocal gamma probability

density function. Define k(í) = E(e~'x). Then

I oo <i(l-r)

K(t)>Ke-'2 1+ E^TT-\ k = l K

where K= e-)°Xn(gM)dx. D

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 11: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

RECIPROCAL GAMMA DISTRIBUTION 611

An interesting example, which includes (3.20) as a special case, is given by the

density function

sm2"(iTx)

Jln(X) C2n T{x)

(c2„ is a normalization constant and c0 = 1/F), n = 0,1,2. Define K2n(t) =

E(e~'x) in this case. Then

p-'/T- I °° pk(l-t)

(3-21) K2n(t)^c2„—— 1+ E22nv/2^r \ ¿fi kk

Proof. Simply note that f¿ ln(sin(7rx)) dx = -In2. D

c. Numerical Calculation of(p(t). We set ourselves the task to compute <p(t) to 6D

for t = 0.0(0.1)5.0. In all we considered more than 10 different methods to compute

tp(t) to the required accuracy. The methods used could roughly be divided into

Gaussian quadrature rules and series expansions.

For small values of t there are several useful expansions. We may, e.g., consider

ri e ,x r00 e ,x<P(t)= rFT^dx + e~' \ dx,

Jo í(x) J0 xT(x)

from which we get the expansion (cf. Section 2b)

oo / -i\",n oo (_-,\"tn

(3.22) „(0 = E H^"T" + e~'<F - *> + Fe" E Mr"4"1'n=0 ' n = l

More rewarding from a computational point of view was to use the Euler-Maclaurin

expansions with step-lengths h = 1 resp. h = \ (formulae (3.6) and (3.7)). These

expansions may in this case be regarded as the Taylor series expansions in disguise.

Thus, (3.6) gave <p(t) correct to 6D in the interval [0,2.0]. Note that the somewhat

complicated coefficients which occur in (3.6) may be calculated from or checked

against (2.14). Equation (3.7) gave <¡d(í) correct to 6D in the entire interval [0,5.0].

The coefficients in (3.7) were truncated with an upper limit equal to 30 and

calculated using high-precision techniques. (Note that we only know the numerical

values of ax, a2,..., a6l; see [3] and [4].) The achieved numerical results of <p(r)

using the Euler-Maclaurin methods are presented in Table IV.

For larger values of t it is useful to use Watson's Lemma. Applied to q>(t),the

lemma yields

X00 a (n - 1)' 1

(3.23) <p(0 - E "-,„ h , where -^ == £ an^x-\n=2 ' V\X) n=2

Values of y(t) correct to 6D were obtained from t = 3.8.

Finally, we turn our attention to the Gaussian quadrature rules. To be able to use

a Gauss-Laguerre quadrature rule we rewrite (3.3) in the following two ways, viz.

(3.24) <p(0 = e-'+*-' + H /"" duJo 7T2 + (r + ln(w))2

and

-z.Zz-/•OO p ' ' « ,00 p '/a c

(3.25) <p(t) -e-+'-+f -f---2dz+f -L-Î--dz.J0> IT2 + (t- z) J0 IT2 + (t + z)

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 12: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

612 ARNE FRANSEN AND STAFFAN WRIGGE

We evaluated numerically the integrals occurring in (3.24) and (3.25) using Gauss-

Laguerre quadrature rules. However, none of the formulae were sufficient to yield

6D even when using a 15-point formula. The best result was achieved using (3.25)

and a 15-point formula. The maximum absolute error was then about 4 x 10"4 in

the required interval.

We considered the Gauss-Christoffel quadrature rule with respect to the weight

distribution w(x) = 1/T(x) on [ 0, oo), which is also mentioned by Gautschi [5]. In

Table V we give weights p¡(n) and abscissae x¡(n) together with the remainder term

coefficients c„ for n = 14, 15. Thus we get

(3.26) fPr\dx = E P,(n)f(x,(n)) + cJ™{S), 0 < | < *o.

When calculating the weights and abscissae we used the well-known methods

presented by Golub and Welsch [6] and Gustafson [7].

Using (3.26) with f(x) = e~'x, n = 14 and 15, and comparing the results with

each other (and with other results), we could determine q>(t) to 6D in the required

interval. The numerical result for n = 15 appears in Table VI.

Note that the data in Table VI are subject to a progressively increasing error

(beginning with <p(2.8)) so that the final entry is correct only to 6D. On the other

hand, comparing Table IV with Table I in [16], we see that Table IV is correct to

10D.

The discrepancies between Table IV and Table VI may be interpreted in the

following way. The function <p(?) does not behave like an exponential polynomial

for large values of the argument t. When using (3.26) with f(x) = e~'x, we in fact

put

(3.27) <p(0= ipMe-'^,i = i

and it is obvious from a comparison of Table IV and Table VI that this approxima-

tion is good only for "small" values of t. Therefore we think it is valuable to give

Table VI with 10 decimals even if only 6 are correct throughout.

4. Tables. In this section we present the tables previously mentioned, i.e.,

I. The values of

1 r -dx, ß„ = %, yn-Cff-,dx,T(x) ' n n! ' '- J0 r(jc)

for« = 0,1,2,..., 15 to30D.

II. Tabulation of the upper limit

ULt(,)-£c, <¿±^' j'k t. i W + 2o (t + vky

of <p(t) for k = 24 and t = 0.0(0.1)5.0 ((3.15)).

III. Tabulation of the lower limits

LL1(0 = e-'+' and LL2(/) = =-= 1 + Ev2tt \ t=1

of <p(/) for t = 0.0(0.1)5.0 ((3.18) and (3.20)).

1/2 / oo ek(i-

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 13: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

RECIPROCAL GAMMA DISTRIBUTION 613

Table I

Values ofan,ß„ andyn to 30D for nupto\5

o)0)0)

1)1)

1)

2)2)

2)

3)3)3)

4)4)4)

5)5)5)

1.00000 00000 00000 00000 00000 000001.00000 00000 00000 00000 00000 000000.54123 573^3 28670 53011 95373 28880

1.93156 70121 47884 72118 37147 043691.93456 70421 47884 72118 37147 043690.35751 50221 23591 90711 31309 21362

1.83618 59716 33126 89173 63606 923212.11821 29873 16713 11736 81803 161610.26581 66316 55185 73050 08966 15819

11.52263 23631 36761 25202 21329 963102.12013 87271 89160 70867 03551 993900.21116 90393 30388 01296 03091 51101

50.31552 58868 21618 33058 26933 589202.09773 02152 81360 31710 76122 23288O.17I95 I7281 85158 64133 35562 67979

196.5296O 95489 16802 68500 46071 328701.63771 67162 11223 35570 83717 261070.11924 76440 33000 57064 19815 32525

6) = 849.04403 89161 01902 55653 61461 709446) = 1.17922 78318 27919 30910 63002 030156) = 0.13007 56150 34949 37665 14166 11576

7) = 4008.05067 83135 15751 45650 77329 555997) = 0.79524 81504 59030 90306 67674 073327) = 0.11523 86555 19321 63140 50448 25187

8) r 20473.02093 44326 72186 66432 03391 110348) = 0.50776 31160 32556 35383 59206 433318) = 0.10342 17446 83890 73215 80751 09877

9) = 1 12278.68745 79147 99966 36906 13390 833149) = 0.30940 99632 32789 90290 55584 803229) = 0.09379 13992 27884 14684 90322 19711

[10) = 6 56942.77694 75960 16930 75176 45786 40082:10) = O.18IO3 58181 62366 62724 06172 19075MO) r O.O8579 41856 48139 30346 42449 43023

:11) = 40 79302.42315 67110 12970 46671 96004 30938;11) = 0.10219 51264 41916 96260 64831 52948;i1) = 0.07904 84426 07206 82303 34826 57878

:12) = 267 63361.94933 30895 88698 48695 73219 27461;12) = 0.05587 32203 59458 27652 49604 32193:i2) = O.07328 25617 57236 85865 02003 52079

;13) = 1848 15036.57385 64721 49672 31971 02966 00716:13) = 0.02967 95277 40433 51070 06021 75556;13) = 0.06829 80580 98503 72710 45091 76512

;i4) - 13388 81303.23715 11770 64912 67976 41416 82370;14) = 0.01535 79668 14990 18848 70268 33118;14) = O.O6394 65552 27707 72516 40691 75135

;15) = 1 01461 22183.57558 18409 17108 15898 20647 91856:i5) = 0.00775 89057 58085 16714 83684 75292:15) = 0.06011 49366 30457 01942 63331 98573

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 14: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

614 ARNE FRANSEN AND STAFFAN WRIGGE

Table II

Upper limit of<p(t) to 6D

o.o0.10.2

0.70.80.91.0

1.1

1.21.31.4

1.51.6

LL

2.7182822.2363331.8565701.5539781.3103841.112412

0.9501000.8159400.7042150.6105280.5314640.4643440.4070550.3579120.3155610.2789090.247065

UL2D

0.0

0.10.2

0

1

1.2

1.31.41.51.6

3.1040912.5455332.1113341.769449I.4970541.2776501.0991430.952553

831128

729740644448572196510592

0.4577460.4121540.3726110.338142

t

1.71.81.92.02.1

2.22.32.42.52.62.72.82.9

3.03.13.23.3

UL24

O.3079530.2813960.257935O.2371280.2186050.2020570.1872240.1738850.1618550.1509730.1411030.1321280.1239460.1164700.1096230.1033380.097559

3.43.53.63.73.83.94.04.1

4.24.34.44.54.64.74.84.95.0

Table III

Lower limits of<p(t) to 6D

ll2

2.6252002.1632121.8006801.5130541.1.

0.0.

0.

LL

.282521095987943715818377

,7144060.6275260.554424O.4925130.439753O.394525O.35553I0.321739O.292296

1.71.81.92.02.12.22.32.42.52.62.72.82.93.03.13.23.3

O.21930O0.1950110.1736990.1549480.138409O.1237870.1108320.099333O.O89107O.O80OOO0.0718770.0646230.0581360.0523290.0471250.0424580.038269

LL2

0.266516O.2438370.2237930.2060010.1901400.175944O.I63I890.1516850.141273O.131817O.123202O.II53280.1081120.101479O.O953670.0897210.084494

UL24

O.O92232O.O873150.0827670.0785530.0746420.0710060.0676210.064465O.O615190.0587640.0561840.0537660.0514970.0493640.0473580.0454680.043687

3.43.53.63-73.83.94.04.14.24.34.44.54.64.71.84.95.0

LL1

034506031123028081025342022877

.020656,018654.016850,015222,013754,012429,011233,010153OO9178,008298007502006784

Table IV

Values of(p(t)to 10D by the Euler-Maclaurin formula

<P(0 «P(t) <P(t)

0.00.1

0.20.30.40.50.60.70.80.91.01.1

1.21.31.11.51.6

2.80777021202.32623704711.91677182181.61135849891.10082369621.20279343331.01030596170.9058566158O.79373133230.6995357300O.619858I1IIO.5520275I72O.I9393298II0.II389501310.10056656170.3628597079O.3298899227

1.71.81.92.0

2.32.12.52.6

.3009335120

.2753918016

.2527806955

.2326807977

.2117517803

.1987050126

.18I2967120

.1713200562

.1595988329

.1189822986

.1393109958

.1305633342

.1225527820

.1152255491

.1085086671

.1023383935

.0966588753

3.13.53.63.73.83.91.01.11.21.31.11.51.64.74.81.95.0

,0911210330,0865816181,0821021199,0779195893.0710930688,0705061033,06716182260610478828061136158405841217620558613851053468956705122261180491109691OI7123713401525147960134857514

LL2

0.079644O.O751350.0709350.0670160.0633530.0599260.0567130.0536980.0508650.0482000.0456920.0433280.0110980.0389930.037005O.O351270.033350

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 15: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

RECIPROCAL GAMMA DISTRIBUTION 615

Table V

Abscissae x¡(n) and weights p,(n) to 25S for n = \Aand\5

14 1 1.622858744052096651180154E-012 5.229208541663484816942969E-013 1.051449279617592254069644E+004 1.726854794707082013337275E+005 2.537139970455747796982883E+006 3.477139770547848558819249E+007 4.547183105381307655844180E+008 5.752809218181122223580066E+009 7.105517354977O53201482566E+00

10 8.62I916OI1709722666870543E+0011 1.031350430938327785568881E+0112 1.231779194476O2826OI12930E+0113 1.465920463327447787732363E+0114 1.765918673901601163881919E+01

15 1 1.490070588640254308122436E-012 4.819351400658091188356546E-01

3 9.723272335870747628473832E-014 1.601001667819464486376536E+005 2.356286743334194675877424E+006 3.2323507821652031 HI36O36E+OO

7 4.227983287203939526165386E+008 5.346137300427159830530296E+009 6.591175177757317293887338E+00

10 7.981927181287131330907394E+0011 9.539032836171919476943656E+0012 1.128985951391608900789341E+0113 1.329475808401580688647499E+0114 1.566620236805261061598493E+0115 1.869771150641537821275855E+01

4.666936308723003950950625E-022.646109639584808299341717E-016.215442051821438630110274E-018.142350693171694265817131E-016.414191022297807547724504E-013.099598643455755089011735E-019.148075324998564823913511E-021.612928241047227855479475E-O21.630797462009361385772756E-038.849849557915662269500680E-052.317750836324959203635878E-062.446556157452933003045058E-087.366805939154725353566559E-112.653882898025302661903184E-14

3.924675165725691451042447E-022.260891662923499176678823E-015.527923916882637016023382E-017.759201771782941429763990E-016.757927480583987655263235E-013.73674657IOOO929295131507E-011.312282470710664383753163E-012.885258016254480346810935E-023.860321080491039705432555E-033.002822090665240753851297E-041.265843407897613382797982E-052.589555120399712100012903E-072.136113605313739301854631E-094.988209679385246841957279E-121.356702577187496841722868E-15

•14 3.8031842E-16 •15 1.3723708E-17

Table VI

Values of<p(t) to 10D by Gaussian quadrature rule

9(0 9(t) «PÍO

0.00.1

0.20.30.40.50.60.70.80.91.01.1

2.80777024202.32623704741.94677182181.64435849891.40082369621.20279343331.04030596170.9058566158O.79373133230.69953573000.61985841410.55202754720.4939329844O.443895OI310.40056656470.3628597079O.3298899227

1.71.81.92.02.12.22.32.42.52.62.72.82.93.03.13.23.3

0.30093351200.27539480160.2527806955O.23268O7977O.21475178030.19870501260.1842967120O.17132OO5620.15959883290.14898229860.13934099580.13056333410.12255278190.11522554900.1085086671O.IO233839310.0966588746

3.43.53.63.73.83.94.04.14.24.34.44.54.64.74.84.95.0

0.09142103190.08658161680.0821024175O.O7794958570.07409306350.07050609580.06716481190.06404786780.06113613780.0584124481O.O5586134730.05346890640.0512225456O.04911O883O0.04712360230.04525133760.0434855716

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use

Page 16: Calculation of the Moments and the Moment Generating ......When starting this study we did not know much about the work of our predeces-sors on similar problems. We learned that Ramanujan

616 ARNE FRANSEN AND STAFFAN WRIGGE

IV. <p(0 = ff(e-'x/T(x))dx tabulated to lOD for t = 0.0(0.1)5.0 by means of

the Euler-Maclaurin expansion in (3.7).

V. The values of the numbers p,(n) and x¡(n) corresponding to the weight

function l/T(x) (cf. (3.26)), n = 14 and 15.

VI. q>(t) tabulated to 10D for / = 0,0(0.1)5.0 by means of Gaussian quadrature

(cf. (3.26)).Comparing the values of Tables IV and VI,we thus may rely on all of them up to

6D.

Acknowledgment. We want to thank Dr. Jacques Dutka, who gave us several very

valuable references and comments.

National Defence Research Institute

Division I, Section 123

S-102 54 Stockholm, Sweden

1. J. J. Dorning, B. Nicolaenko & J. K. Thurber, "An integral identity due to Ramanujan which

occurs in neutron transport theory,"/. Math. Mech., v. 19, No. 5,1969, pp. 429-438.

2. A. Erdelyi, W. Magnus, F. Oberhettinger & F. G. Tricomi, Higher Transcendental Functions,

Vol. Ill, McGraw-Hill, New York, 1955.3. A. Fransen, Addendum and Corrigendum to "High-precision values of the gamma function and of

some related coefficients," Math. Comp., v. 37,1981, pp. 233-235.4. A. Fransen & S. Wrigge, "High-precision values of the gamma function and of some related

coefficients," Math. Comp., v. 34,1980, pp. 553-566.5. W. Gautschi, "Polynomials orthogonal with respect to the reciprocal gamma function," BIT, v. 22,

1982, pp. 387-389.6. G. H. Golub & J. H. Welsch, "Calculation of Gauss quadrature rules," Math. Comp., v. 23,1969,

pp. 221-230, Microfiche supplement A1-A10.7. S. A. Gustafson, "Rapid computation of general interpolation formulas and mechanical quadra-

ture rules," Comm. ACM, v. 14,1971, pp. 797-801, Algorithm 417, p. 807.8. G. H. Hardy, Ramanujan—Twelve Lectures on Subjects Suggested by His Life and Work,

(reprinted), Chelsea, New York, 1959.9. Collected papers of G. H. Hardy, Vols. I-VII (Especially Vol. IV, pp. 544-548), Oxford at the

Clarendon Press, 1969.10. W. A. Johnson, Private communication, 1982.

H.A. LlNDHAGEN, Studier bfver Gamma-Funktionen och Nàgra Beslàgtade Transcendenter (Studies of

the gamma function and of some related transcendentals), Doctoral Thesis, B. Almqvist & J. Wiksell's

boktryckeri, Upsala, 1887.12. W. F. Lunnon, P. A. B. Pleasants and N. M. Stephens, "Arithmetic properties of Bell numbers

to a composite modulus I," Acta Arith., v. 35,1979, pp. 1-16.13. R. E. A. C. Paley & N. Wiener, Fourier Transforms in the Complex Domain, Amer. Math. Soc,

New York, 1934.14. J. Riordan, Combinatorial Identities, Wiley, New York, 1968.

15. I. N. Sneddon, Special Functions of Mathematical Physics and Chemistry, Oliver and Boyd,

Edinburgh and London, 1961.16. S. Wrigge, "A note on the moment generating function for the reciprocal gamma distribution,"

Math. Comp., v. 42, 1984, pp. 617-621.17. M. Wyman & R. Wong, "The asymptotic behaviour of ¡i(z, ß, o)," Cañad. J. Math., v. 21, 1969,

pp. 1013-1023.

License or copyright restrictions may apply to redistribution; see https://www.ams.org/journal-terms-of-use