Expected value of g(x)=1/(x+c) under gamma distribution

Click For Summary

Homework Help Overview

The discussion revolves around calculating the expected value of the function g(x) = 1/(x+c), where c is a positive constant and x follows a Gamma distribution. Participants are exploring the integration of this function with respect to the Gamma probability density function.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the challenges of calculating the integral due to the constant in the denominator. Some suggest splitting the integral into two parts and using power series expansions for different intervals of x. Others mention the potential for the integral to lack a closed form.

Discussion Status

There are various approaches being explored, including series expansions and the use of computational tools like Maple. Some participants have noted that Maple provides a solution in terms of the incomplete Gamma function, while others express uncertainty about the existence of a closed form for the integral.

Contextual Notes

Some participants indicate that this problem is presented in a homework style, raising questions about its appropriateness for a homework help forum. There is also mention of the non-elementary nature of the incomplete Gamma function when certain conditions are met.

PMRDK
Messages
3
Reaction score
0

Homework Statement



Let g(x) = \frac{1}{x+c}, where c is a positive constant, and x is a random variable distributed according to the Gamma distribution
x\sim f(x)=\frac{1}{\Gamma(\alpha) \beta^\alpha} x^{\alpha \,-\, 1} e^{-\frac{x}{\beta}}.

I wish to calculate the expected value of g(x) with respect to the probability density function f(x).

Homework Equations



The expected value can be calculated as
E(g(x))=\int_0^∞g(x)f(x)dx = \int_0^∞ \frac{1}{x+c} \frac{1}{\Gamma(\alpha) \beta^\alpha} x^{\alpha \,-\, 1} e^{-\frac{x}{\beta}}dx<br />


The Attempt at a Solution


I have problems with calculating the integral. If g(x)=\frac{1}{x}, then the integral would not be too difficult. But the constant in the denominator gives me problems. I have attempted with variable substitutions and integration by parts. However, I have not been able to come up with a solution.
Actually, this is not a homework problem. I posted it here since it is `homework style', so I do not know if it is event possible to calculate the expectation.

Any help is much appreciated.
 
Physics news on Phys.org
The integral may not have a closed form. Do you know for sure if it does?

I'm not sure if this will help much, but you could try splitting up the integral into two, one from ##[0,c)## and the other on ##[c,\infty)##, and then expand the 1/(x+c) as a power series and integrate term by term to get a series expression. In the first integral, since x is smaller than c, you would use

$$\frac{1}{x+c} = \frac{1}{c} \frac{1}{1+x/c} = \frac{1}{c} \sum_{n=0}^\infty \left(\frac{x}{c}\right)^n,$$

while in the second term x is greater than c, so you would write

$$\frac{1}{x+c} = \frac{1}{x} \frac{1}{1+c/x} = \frac{1}{x} \sum_{n=0}^\infty \left(\frac{c}{x}\right)^n.$$

In principle one needs to be careful about switching the integral and the sum since the geometric series is only uniformly convergent on a domain ##|z-c| \leq R## for R < 1, so if you want to be rigorous I guess you could split up the integral into three regions, ##[0,c-\epsilon), [c-\epsilon,c+\epsilon], (c+\epsilon,\infty)## and do the series expansion for the first and the last, then estimate the error from neglecting the ##[c-\epsilon,c+\epsilon]## integral when taking ##\epsilon \rightarrow 0##, but my guess is that it won't cause problems.
 
PMRDK said:

Homework Statement



Let g(x) = \frac{1}{x+c}, where c is a positive constant, and x is a random variable distributed according to the Gamma distribution
x\sim f(x)=\frac{1}{\Gamma(\alpha) \beta^\alpha} x^{\alpha \,-\, 1} e^{-\frac{x}{\beta}}.

I wish to calculate the expected value of g(x) with respect to the probability density function f(x).

Homework Equations



The expected value can be calculated as
E(g(x))=\int_0^∞g(x)f(x)dx = \int_0^∞ \frac{1}{x+c} \frac{1}{\Gamma(\alpha) \beta^\alpha} x^{\alpha \,-\, 1} e^{-\frac{x}{\beta}}dx<br />


The Attempt at a Solution


I have problems with calculating the integral. If g(x)=\frac{1}{x}, then the integral would not be too difficult. But the constant in the denominator gives me problems. I have attempted with variable substitutions and integration by parts. However, I have not been able to come up with a solution.
Actually, this is not a homework problem. I posted it here since it is `homework style', so I do not know if it is event possible to calculate the expectation.

Any help is much appreciated.

Using b instead of 1/β, Maple evaluates this integral in terms of the incomplete Gamma function:

f:=b^a*x^(a-1)/GAMMA(a)*exp(-b*x);
f = b^a*x^(a-1)/GAMMA(a)*exp(-b*x)

J1:=int(f/(x+c),x=0..infinity) assuming a>0,b>0,c>0;
J1 = b^a*c^(a-1)*exp(c*b)*GAMMA(1-a,c*b)

That is,
\int_0^{\infty} \frac{b^a}{\Gamma(a)} \frac{x^{a-1}}{x+c} e^{-bx} \, dx<br /> = b^a c^{a-1} e^{bc} \Gamma(1-a,bc),
where
\Gamma(u,z) = \int_z^{\infty} e^{-t} t^{u-1} \, dt \text{ if } z &gt; 0
is the incomplete Gamma function. I believe it has been proven that the incomplete Gamma function is non-elementary if u is not a positive integer.
 
Last edited:
Thank you for your help:smile:. So Maple was able to provide an answer in terms of a closed form solution (I tried in Maxima but did not succeed).
 

Similar threads

Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
6
Views
1K
  • · Replies 13 ·
Replies
13
Views
13K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
2K
Replies
2
Views
2K