0

Let $X \sim \Gamma(m, p)$ with a shape parameter $m$ and a scale parameter $p$ and $Y \sim \Gamma(m, q)$ with a shape parameter $m$ and a scale parameter $q$, and let $X$ and $Y$ be independent.

What will be the PDF and CDF of $X+Y$? How can I solve it in MatLab?

Richard Hardy
  • 54,375
  • 10
  • 95
  • 219
  • Notation comment: $\Gamma$ is used rather for denoting the gamma function and gamma distribution is rather written simply as "gamma". – Tim Jan 14 '16 at 09:02

1 Answers1

0

The PDF of the sum is the convolution of the probability density functions. You can get the CDF by integrating that PDF. For more information see

https://en.wikipedia.org/wiki/Convolution_of_probability_distributions

linksys
  • 89
  • 1
  • 9
  • 1
    This answer merely parrots the official line about convolutions without bothering to consider any of the difficulties that are encountered. – Dilip Sarwate Jan 14 '16 at 07:56
  • I second @DilipSarwate and think the answer deserves to be expanded. – Richard Hardy Jan 14 '16 at 08:25
  • Hi @DilipSarwate. With all due respect, that comment is at least as useless as my answer, because it does not expand on what those difficulties are. As an added bonus, your comment is mean-spirited. Submitting your own answer may be a better use of your time (and more helpful to the person who asked the question) than censuring me and leaving without further comment. – linksys Jan 19 '16 at 01:55
  • linksys, I have answered several questions about Gamma random variables on stats.SE including one about the sum of independent Gamma random variables with same scale parameter. When the scale parameters are _different_ as in this particular question, there is more difficulty in getting at the final result (which is well-documented in the answers to the question"General sum of Gamma random variables", and so needs no further amplification from me). I am down voting your answer pending revision. The official reason for a down vote is "This answer is not useful", a description that I agree with. – Dilip Sarwate Jan 19 '16 at 02:18
  • @DilipSarwate, I appreciate this comment that moves toward something constructive. You may consider linking to the relevant content or informing the person who asked the question about its existence. I don't understand that last bit about down voting. Is there somewhere I can view the reason? – linksys Jan 19 '16 at 02:33