Re: question on gamma distribution and inverse gamma distribution



"James Anderson" <janderson_net@xxxxxxxxx> wrote in message
<f9hv87$qf8$1@xxxxxxxxxxxxxxxxxx>...
Hi,

I am new to gamma distribution and inverse gamma
distribution, seems that if X follows gamma (alpha,beta),
1/X follows inverse gamma (alpha,1/beta). I tried to
generate a variable following gamma distribution using
X = gamrnd(1,1,[100000 1]);
The histogram of X looks like gamma distribution, but when I
plot the histogram of 1/X, it does not look like inverse
gamma at all, am I misunderstanding the meaning of
"reciprocal" between gamma and inverse gamma?

Without looking at it deeply, did you plot
the histogram of 1/X, or did you plot the
histogram of 1./X ?

John
.



Relevant Pages


Loading