Finding E(x^k) for gamma, beta, and lognormal distributions

Click For Summary
SUMMARY

The discussion focuses on calculating the expected value of the function g(X) = Xk for three probability distributions: gamma, beta, and lognormal. The gamma distribution is defined by the probability density function (PDF) involving parameters α and β, while the beta distribution is defined over the interval (0, 1) with parameters α and β. The lognormal distribution is characterized by its transformation of a normally distributed variable. Participants provided integral setups for each distribution and discussed techniques for solving them, including substitutions and properties of the gamma function.

PREREQUISITES
  • Understanding of gamma distribution and its PDF: f(x) = (xα-1e-x/β)/(Γ(α)βα)
  • Knowledge of beta distribution and its PDF: f(x) = (Γ(α + β)xα-1(1-x)β-1)/(Γ(α)Γ(β))
  • Familiarity with lognormal distribution and its PDF: f(x) = (1/(xσ√(2π)))e-(lnx-μ)2/(2σ2)
  • Proficiency in integral calculus, particularly in evaluating expected values: E(X) = ∫xf(x)dx
NEXT STEPS
  • Learn techniques for evaluating integrals involving gamma functions, specifically Γ(z+1) = zΓ(z).
  • Study the properties of the beta distribution and its applications in statistical modeling.
  • Explore the transformation methods for lognormal distributions, particularly variable substitutions in integrals.
  • Investigate the use of moment-generating functions for calculating expected values in various distributions.
USEFUL FOR

Statisticians, data scientists, and students in probability theory or statistics who are looking to deepen their understanding of expected values in different

ArcanaNoir
Messages
778
Reaction score
4

Homework Statement



Find the expected value of g(X) = Xk for the
a. gamma distribution
b. beta distribution
c. lognormal distribution

Homework Equations



gamma distribution: \frac{x^{\alpha -1}e^{ \frac{-x}{\beta}}}{ \Gamma (\alpha ) \beta ^{\alpha }} with paramenter x>0

beta distribution: \frac{ \Gamma (\alpha + \beta) x^{\alpha -1}(1-x)^{\beta -1}}{\Gamma (\alpha ) \Gamma (\beta )} with paramenter 0<x<1

lognormal distribution: ( \frac{1}{x \sigma \sqrt{2 \pi }}) e^{ \frac{-(lnx-\mu )^2}{2 \sigma y^2}} with parameter x>0

E(X) = \int_{-\infty}^{\infty} \! xf(x) \mathrm{d} x

The Attempt at a Solution



Well I can set up the integrals, but that gets me nowhere.

a. \int_0^{\infty} \! x^k \frac{x^{\alpha -1}e^{ \frac{-x}{\beta}}}{ \Gamma (\alpha ) \beta ^{\alpha }} \mathrm{d} x

b. \int_0^1 \! x^k \frac{ \Gamma (\alpha + \beta) x^{\alpha -1}(1-x)^{\beta -1}}{\Gamma (\alpha ) \Gamma (\beta )} \mathrm{d} x

c. \int_0^{\infty} \! x^k ( \frac{1}{x \sigma \sqrt{2 \pi }}) e^{ \frac{-(lnx-\mu )^2}{2 \sigma y^2}} \mathrm{d} x
 
Physics news on Phys.org
ArcanaNoir said:

Homework Statement



Find the expected value of g(X) = Xk for the
a. gamma distribution
b. beta distribution
c. lognormal distribution

Homework Equations



gamma distribution: \frac{x^{\alpha -1}e^{ \frac{-x}{\beta}}}{ \Gamma (\alpha ) \beta ^{\alpha }} with paramenter x>0

beta distribution: \frac{ \Gamma (\alpha + \beta) x^{\alpha -1}(1-x)^{\beta -1}}{\Gamma (\alpha ) \Gamma (\beta )} with paramenter 0<x<1

lognormal distribution: ( \frac{1}{x \sigma \sqrt{2 \pi }}) e^{ \frac{-(lnx-\mu )^2}{2 \sigma y^2}} with parameter x>0

E(X) = \int_{-\infty}^{\infty} \! xf(x) \mathrm{d} x

The Attempt at a Solution



Well I can set up the integrals, but that gets me nowhere.

a. \int_0^{\infty} \! x^k \frac{x^{\alpha -1}e^{ \frac{-x}{\beta}}}{ \Gamma (\alpha ) \beta ^{\alpha }} \mathrm{d} x

Let's do this one first. You will have to use that

\int_0^{\infty} \! \frac{x^{\alpha -1}e^{ \frac{-x}{\beta}}}{ \Gamma (\alpha ) \beta ^{\alpha }} \mathrm{d} x =1

For some alpha and beta. So what you do is

\int_0^{\infty} \! x^k \frac{x^{\alpha -1}e^{ \frac{-x}{\beta}}}{ \Gamma (\alpha ) \beta ^{\alpha }} \mathrm{d} x = \int_0^{\infty} \! \frac{x^{k+\alpha -1}e^{ \frac{-x}{\beta}}}{ \Gamma (\alpha ) \beta ^{\alpha }} \mathrm{d} x

So your alpha in the above integtral will be k+alpha. Now try to adjust the integral in such a way so you can use the above integral. That is, try to have \Gamma(\alpha+k)and \beta^{\alpha+k} in the denominator.
 
Okay, thanks. I'll try that.
 
Hi ArcanaGold!

In addition to what micro said, you may want to use the property of the gamma function that:
\Gamma(z+1)=z \Gamma(z)
 
ArcanaNoir said:
Okay, thanks. I'll try that.

For problem (c), change variables to y = ln(x); that will give you something of the form E[exp(k*Y)] for normally-distributed Y. Do you recognize that quantity? (Hint: I'll bet you have seen it before, or it is in your textbook or course notes. If not, it should be.)

RGV
 
Okay, I got the first one, and according to the book I have the correct solution. Thanks a lot guys :)

For the second one, (the second and third answers are not provided) I got :

\frac{ \Gamma (\alpha ) \Gamma (\alpha + k)}{\Gamma (\alpha + \beta + k) \Gamma (\alpha + \beta )}

I used the same technique, I think that is right.

Then I get stuck on the last one. Since it's x-1 instead of a variable, I'm not sure what substitution to make here.
 
For the lognormal, first make the substitution t=log(x)...
 
\int_0^{\infty} \! x^k ( \frac{1}{ \sigma \sqrt{2 \pi }}) e^{ \frac{-(t-\mu )^2}{2 \sigma y^2}} \mathrm{d} x

where t= ln(x), dt = 1/x

How on Earth am I going to integrate x^k?
 
should I let some other variable, say u, =x^k?
Can you do that, make two substitutions in one integral?
 
  • #10
ArcanaNoir said:
\int_0^{\infty} \! x^k ( \frac{1}{ \sigma \sqrt{2 \pi }}) e^{ \frac{-(t-\mu )^2}{2 \sigma y^2}} \mathrm{d} x

where t= ln(x), dt = 1/x

How on Earth am I going to integrate x^k?

My previous post told you exactly what you have to do. Of course, x = exp(t).

RGV
 
  • #11
( \frac{1}{ \sigma \sqrt{2 \pi }}) \int_a^{b} \! e^{tk} e^{ \frac{-(t-\mu )^2}{2 \sigma ^2}} \mathrm{d} t

the (new) current integral
 
Last edited:
  • #12
To get started on the exponent...

tk - {(t-\mu)^2 \over 2 \sigma^2}<br /> = {2tk\sigma^2 - (t-\mu)^2 \over 2 \sigma^2}<br /> = {2tk\sigma^2 - t^2 + 2t\mu - \mu^2 \over 2 \sigma^2}<br /> = {- (t^2 - 2t(k\sigma^2 - \mu) + (k\sigma^2 - \mu)^2) + (k\sigma^2 - \mu)^2 - \mu^2 \over 2 \sigma^2}<br /> = {- (t - (k\sigma^2 - \mu))^2 + (k\sigma^2 - \mu)^2 - \mu^2 \over 2 \sigma^2}

Now substitute u=t - (k\sigma^2 - \mu).
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
7
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K