Calculating Mean and Variance of a Ratio of Gamma-Distributed Random Variables

In summary, the conversation discusses the use of two random variables X and Y that follow a Gamma distribution with parameters k1 and k2 that are Poisson distributed. The speaker has a closed form expression for the distribution, mean, and variance of X and Y, but is now interested in finding an expression for the mean and variance of X/(X+Y). It is suggested that X/(X+Y) follows a Beta distribution with parameters k1 and k2, and thus the mean and variance are determined to be \frac{k1}{k1+k2} and \frac{k1k2}{(k1+k2)^2(k1+k2+1)}, respectively. However, it is pointed out that the model is undefined
  • #1
jimmy1
61
0
I have two random variables [tex]X[/tex] and [tex]Y[/tex]. Now the distribution of [tex]X[/tex] and [tex]Y[/tex], is a bit complicated. Basically they follow Gamma distributions, [tex]X=\Gamma(k1,\theta)[/tex] and [tex]Y=\Gamma(k2,\theta)[/tex], but [tex]k1[/tex] and [tex]k2[/tex] are Poisson distributed. But I do have a closed form expression for the distribution of [tex]X[/tex] and [tex]Y[/tex], and also have an expression for their mean and variances.


Now what I would like to do is find an expression for the mean and variance of [tex]X/(X+Y)[/tex].
So I'd like to know, is there a short way of getting the mean and variance of [tex]X/(X+Y)[/tex], from the mean and variance of [tex]X[/tex] and [tex]Y[/tex] and if not, then how would I go about finding the mean and variance of [tex]X/(X+Y)[/tex].
Any ideas??
 
Physics news on Phys.org
  • #2
From college prob & stat, I remember quotients of random variables as being notoriously difficult analytically. E.g. their means and variances being expressed with the "squiggly equal sign" rather than the "straight equal sign."

But for practical applications, you can always simulate.
 
  • #3
... unless you can show Γ1/(Γ1 + Γ2) ~ F, where F is a known distribution. E.g., if X and Y were i.i.d. Normal with zero means, then X + Y would be Normal with zero mean, and Normal(0,σ12)/Normal(0,σ22) is distributed Cauchy -- which does not happen to have moments, so if this were the case you would have a nonexistence result.

See also.
 
Last edited:
  • #4
Thanks for that EnumaElish. And yes Γ1/(Γ1 + Γ2) does follow a known distribution, as Beta distribution. So in my case the distribution of [tex]X/(X+Y)[/tex] would follow a Beta distribution with parameters k1 and k2, ie [tex] B(k1,k2)[/tex].
But the problem with this is that there is no closed form expression of [tex] B(k1,k2)[/tex] when k1, and k2 are Poisson distributed, so I'm unable to get a closed form expression for the mean and variance of [tex]X/(X+Y)[/tex].
That's why I was wondering if there was any way of getting an expression for the mean and variance of [tex]X/(X+Y)[/tex], from the mean and variance of [tex]X[/tex] and [tex]Y[/tex], or maybe a similar shortcut approach??
 
  • #5
jimmy1 said:
Basically they follow Gamma distributions, [tex]X=\Gamma(k1,\theta)[/tex] and [tex]Y=\Gamma(k2,\theta)[/tex], but [tex]k1[/tex] and [tex]k2[/tex] are Poisson distributed.
The first parameter in a Gamma distribution must be positive. However, a Poisson random variable has a positive probability of being 0. So this model looks like it is not well-defined.
 
  • #6
jimmy1 said:
I have two random variables [tex]X[/tex] and [tex]Y[/tex]. Now the distribution of [tex]X[/tex] and [tex]Y[/tex], is a bit complicated. Basically they follow Gamma distributions, [tex]X=\Gamma(k1,\theta)[/tex] and [tex]Y=\Gamma(k2,\theta)[/tex], but [tex]k1[/tex] and [tex]k2[/tex] are Poisson distributed. But I do have a closed form expression for the distribution of [tex]X[/tex] and [tex]Y[/tex], and also have an expression for their mean and variances.Now what I would like to do is find an expression for the mean and variance of [tex]X/(X+Y)[/tex].
So I'd like to know, is there a short way of getting the mean and variance of [tex]X/(X+Y)[/tex], from the mean and variance of [tex]X[/tex] and [tex]Y[/tex] and if not, then how would I go about finding the mean and variance of [tex]X/(X+Y)[/tex].
Any ideas??

X/(X+Y) is a beta distribution with parameters k1 and k2. Therefore, the mean of X/(X+Y) is [itex]\frac{k1}{k1+k2}[/itex] and the variance is [itex]\frac{k1k2}{(k1+k2)^2(k1+k2+1)}[/itex]. Now just take the expected values of these. Which isn't the funnest thing in the world.

I think I proved that the distribution of X/(X+Y) is a beta distribution sometime ago on these forums. Or it might have been X/Y is beta (of the 2nd kind).
 
Last edited:
  • #7
ZioX said:
X/(X+Y) is a beta distribution with parameters k1 and k2. Therefore, the mean of X/(X+Y) is [itex]\frac{k1}{k1+k2}[/itex] and the variance is [itex]\frac{k1k2}{(k1+k2)^2(k1+k2+1)}[/itex]. Now just take the expected values of these. Which isn't the funnest thing in the world.
Those expected values are undefined. The probability that k_1 = 0 and k_2 = 0 is positive, in which case both those expressions are 0/0. So it is not even that those expectations are infinite. They simply do not make sense. The OP needs to correct his model, so that it is well-defined.
 
  • #8
Jason Swanson said:
ZioX said:
X/(X+Y) is a beta distribution with parameters k1 and k2. Therefore, the mean of X/(X+Y) is [itex]\frac{k1}{k1+k2}[/itex] and the variance is [itex]\frac{k1k2}{(k1+k2)^2(k1+k2+1)}[/itex]. Now just take the expected values of these. Which isn't the funnest thing in the world.
Those expected values are undefined. The probability that k_1 = 0 and k_2 = 0 is positive, in which case both those expressions are 0/0. So it is not even that those expectations are infinite. They simply do not make sense. The OP needs to correct his model, so that it is well-defined.

Yes you're right the model is undefined when k1=0 or k2=0, but isn't this just a technicality??
So, am I right in saying that there is nothing wrong with the model, as long as I state that k1>0 and k2>0, and hence making the model well-defined??
 
  • #9
jimmy1 said:
Yes you're right the model is undefined when k1=0 or k2=0, but isn't this just a technicality??
So, am I right in saying that there is nothing wrong with the model, as long as I state that k1>0 and k2>0, and hence making the model well-defined??
But if k1 > 0 and k2 > 0, then they are not Poisson distributed. So what is their distribution?
 
  • #10
Jason Swanson said:
But if k1 > 0 and k2 > 0, then they are not Poisson distributed. So what is their distribution?

Well technically k1 and k2 are binomially distributed, but I was thinking of using the Poisson distribution to make things a bit easier.
But anyway from your argument, the problem still exists if I use a binomial dsitribution?
So basically you are saying that I cannot use the binomial or Poisson distribution as the distribution for the two parameters in a Beta distribution?
But can't I just say something like k1 and k2 are 'approximations' to binomial/poisson distributions where k1>0 and k2>0??
 
  • #11
You are right that you cannot use Binomial either. You must use a distribution with no mass at 0. In my opinion, it is not enough to say that it is an approximation to a Poisson or a Binomial. You must tell us what that approximation is. There may be many ways to approximate these, and your results may be different, depending on how you do it. Is this a model of some real-world phenomenon? If so, what is it? The context of the model may help you determine which distribution to use.
 

FAQ: Calculating Mean and Variance of a Ratio of Gamma-Distributed Random Variables

What are random variables?

Random variables are mathematical quantities that take on different values as a result of a random experiment or process. They can represent outcomes of a random experiment or the measurements of a random process.

What are the functions of random variables?

The functions of random variables are mathematical operations that are performed on random variables. These functions can help to describe the behavior and characteristics of the random variable, such as its probability distribution, mean, and variance.

What is the difference between a discrete and continuous random variable?

A discrete random variable can only take on a finite or countably infinite number of values, while a continuous random variable can take on any value within a certain range. For example, the number of heads obtained from flipping a coin would be a discrete random variable, while the height of a person would be a continuous random variable.

How are random variables used in statistics?

Random variables are used in statistics to model and analyze data that has a random component. They allow us to calculate probabilities and make inferences about a population based on a sample of data.

What are some common examples of random variables?

Some common examples of random variables include the number of goals scored in a soccer game, the temperature at a given time, the time it takes for a bus to arrive, and the number of defective products in a production line. Essentially, any quantity that can vary and is affected by random factors can be considered a random variable.

Back
Top