Mean of unormalized Gamma distribution

113 Views Asked by At

If $X$ follows a gamma distribution with parameters $\alpha$ and $\beta$ then:

$ p(x|\alpha,\beta) = \frac{\beta^{\alpha}x^{\alpha-1}e^{-\beta x}}{\Gamma(\alpha)}$ with $\Gamma(\alpha) = (\alpha - 1)!$

Then, $mean(x) = \frac{\alpha}{\beta}$

But, if for $x$ we have this probability density function instead:

$ p(x|\alpha,\beta) = K \times \beta^{\alpha}x^{\alpha-1}e^{-\beta x} $ with no $\Gamma(\alpha)$ and $K$ a constant value

What would be the $mean$ value of $x$ in this case ?

Best regards

Aymeric

3

There are 3 best solutions below

2
On

Simply your density (that is a posterior density) is not exactly a density. The correct one is

$$p(\mathbf{x}|a,b)\propto b^a x^{a-1}e^{-xb}$$

The constant must be calculated in order to let $p(\mathbf{x}|a,b)$ be a nice density.

This constant $K$ can be calculated using Bayes Theorem (integrating the denominator of Bayes Theorem ) or simply recognizing in your posterior the kernel of a Gamma distribution, thus

$$K=\frac{1}{\Gamma(a)}$$

and your expectation is exactly what you showed, $\frac{a}{b}$

0
On

Note that $$\int_{0}^{\infty} \frac{\beta^{\alpha}e^{-\beta x}}{\Gamma(\alpha)} x^{\alpha-1} dx=1$$ If you use $\int_{0}^{\infty} x^{m} e^{-kx}dx=k^{-m-1} \Gamma(m+1).$ Next the expatation value of $x$ is $$E(x)=\int_{0}^{\infty} \frac{\beta^{\alpha}e^{-\beta x}}{\Gamma(\alpha)} x^{\alpha} dx=\frac{\beta^{\alpha}}{\Gamma(\alpha)}\beta^{-\alpha-1} \Gamma(\alpha+1)=\frac{\alpha}{\beta}.$$

1
On

You have a misconception about probability densities. If $f_X(x)$ is a density for some real-valued random variable $X$, then we require $$\int_{x = -\infty}^\infty f_X(x) \, dx = 1.$$ Equivalently, if we wish to avoid using indicator functions, we can write the above as an integral over the support $\Omega$ of $X$: $$\int_{x \in \Omega} f_X(x) \, dx = 1.$$ In the case of a gamma distribution, the support is $X \in [0, \infty)$.

As such, you are not free to choose any value of $K$ in the function $K \beta^\alpha x^{\alpha-1} e^{-\beta x}$. You are constrained because when integrated on $[0,\infty)$, the result must be $1$, otherwise it is not a density. This forces $K = 1/\Gamma(\alpha)$.

In fact, if we remove all of the factors that are independent of $x$, i.e. we consider the kernel of the gamma density $$x^{\alpha-1} e^{-\beta x},$$ the unique constant $K$ that makes this kernel a density function is precisely $$K = \frac{\beta^\alpha}{\Gamma(\alpha)}.$$