I have question regarding the gamma distribution when using

alpha <- 3
beta <- 3
x <- rgamma(n = 100, shape = alpha, scale = 1/beta)


I get shape to 3.9 and rate to 3.4.

Are the rate=beta or is the rate=theta? What is the difference between scale and rate? Note: I did not understood what they said on Wiki


1 Answer 1


If you consider the notations on wiki, there $\theta$ is the scale parameter. So, $1/\theta$ is the rate. That means $1/\theta$ corresponds to $\beta$.

  • $\begingroup$ How can I then get the Beta estimate out of the rate estimate? $\endgroup$
    – david576
    Oct 1, 2020 at 16:12
  • $\begingroup$ In your output you have rate. That means rate = $\beta$ $\endgroup$
    – Zeeba
    Oct 1, 2020 at 16:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.