Questions tagged [gamma-distribution]

A non-negative continuous probability distribution indexed by two strictly positive parameters.

If a variable $X$ follows a Gamma distribution with shape parameter $k > 0$ and scale parameter $\theta$, then it is a continuous random variable with probability density function:

$$ p(x) = \frac{1}{\theta^k}\frac{1}{\Gamma(k)}x^{k-1}e^{-\frac{x}{\theta}} $$

It follows that $\mathbb{E}(X) = k \theta$ and ${\rm var}(X) = k \theta^2$.

In some texts, the Gamma distribution is parameterized by the rate parameter $\beta$, instead of the scale parameter $\theta$, of which it is the reciprocal, in other words: $\beta = 1/\theta$.

The exponential distribution ($k=1$) and the $\chi^2$ distribution (with $\nu$ degrees of freedom, $k=\frac{\nu}{2}$, $\theta = 2$) are both special cases of the Gamma distribution.

932 questions
17
votes
1 answer

Why would they pick a gamma distribution here?

In one of the exercises for my course, we're using a Kaggle medical dataset. The exercise says: we want to model the distribution of individual charges and we also really want to be able to capture our uncertainty about that distribution so we can…
Vicki B
  • 327
11
votes
2 answers

What are the mean and variance for the Gamma distribution?

There are two forms for the Gamma distribution, each with different definitions for the shape and scale parameters. Rather than asking what the form is used for the gsl_ran_gamma implementation, it's probably easier to ask for the associated…
Aengus
  • 906
6
votes
1 answer

Three Parameter Gamma Distribution

What is the motivation for the three parameter gamma distribution and the resulting structure of its density? What is the meaning of the location, scale and shape parameters here?
Vani
  • 641
6
votes
2 answers

Is left-of-mean cdf of exponential distribution greater than that of a gamma distribution?

Edited to restrict one of the gamma distributions to be an exponential distribution, and to force both means to 1.0, and to add wolfram alpha links: I have two distributions, both with mean 1, and I want to compare their cdfs when $0 \lt x \lt 1$. …
gam
  • 260
5
votes
1 answer

On real-world use of gamma distributions

I typically encountered gamma distributions to model response time after a certain event. As far as my statistics goes, that is its natural place. However, in a recent piece of work of mine, I found gamma distribution perfectly modeling the number…
famargar
  • 851
4
votes
1 answer

Integrate Gamma pdf with respect to shape parameter alpha

Is there a trick to integrating a Gamma pdf with respect to the shape parameter alpha? I have yet to come up with a way to do it.
3
votes
1 answer

Proof that Pareto is a Mixture of Exponential and Gamma

I need to proof that the Pareto random variable is a mixture of the Gamma and Exponential distribution but need help with one part of the proof. Consider $X$ being Exponential with parameter $\lambda$ and $\Lambda$ being Gamma with parameters…
3
votes
1 answer

Numerical approximation to quantile function for Gamma distribution

I am building a stats/probability library in python and right now I am working on the properties of the gamma distribution. I know that its quantile function (F^-1(x)) does not have a nice closed-form solution, so I am trying to find a numerical…
2
votes
1 answer

Gamma PDF parameter interpretations

I'm reading about the Gamma distribution, but I'm struggling to understand what these parameters mean in a canonical sense. It was my belief that as Beta is to Binomial, Gamma is to Poisson. However, now I'm not so sure that this hits the mark. Beta…
jbuddy_13
  • 3,000
2
votes
1 answer

How to scale gamma distribution to longer interval?

I'm trying to gain intuition for how to scale the parameters of the Gamma distribution when the desired variance is not known. I'll make up an example: Let $\lambda$ be the number of 100-degree days in Austin, Texas per year. From historical…
m81
  • 123
2
votes
1 answer

Explain why if $X$ has a $\Gamma(\alpha, 1)$ distribution, then the random variable $\beta X$ has a $\Gamma(\alpha, \beta)$ distribution

If $X$ has a $\Gamma(\alpha, 1)$ distribution would $\beta X$ not have a $\Gamma(\alpha \beta, 1)$ distribution by the summation property of Gamma distributions? I must be missing something.
2
votes
2 answers

Is Gamma distribution appropriate for sales transaction data?

I have a sales data for a certain type of grocery products at stores' transaction-level (sales data gathered through cashiers' scanners). As you can imagine, for the most part, the number of units sold per transaction is rather small, which results…
Olga
  • 295
1
vote
1 answer

Is it correct to say the gamma distribution is completely determined by its first two moments?

I have heard this said by one of my professors, but he is not available for me to ask anymore. But if this is the case then why are there others defined on the wikipedia page, and why do authors refer to higher order moments in papers?? Many thanks.
0
votes
0 answers

Decomposing a gamma distribution into components whose means are known

Say we have a number of different geographic areas, $A_1, A_2, ...$, and a quantity $X$ that follows a gamma distribution in each area but, we expect, with different parameters: $(k_1,\theta_1), (k_2,\theta_2),...$. If we take a sample from the full…
JohnFrum
  • 101
0
votes
0 answers

Distribution of X/(X+Y)of gamma variables

Does anyone know how to calculate the distribution of $$X/(X+Y)$$ X ~ G(p,a) Y~G(p,b) G is gamma distribution
1
2