CDF of gamma distribution
Show older comments
assuming X~Gamma(k,theta) where k and theta are shape and scale parameters, the CDF Fx(x) should be
Fx(x) = 1/Gamma(k)*gamma(k,x/theta) where Gamma is the gamma function and gamma is the lower incomplete gamma function
however, trying to use gammainc for the incomplete gamma function I get a monotonic decreasing result, instead of the expected increasing to 1 CDF. instead I am using gamcdf which seems reasonable, but I don't understand the nature of the difference.
help ? anyone?
Accepted Answer
More Answers (0)
Categories
Find more on Gamma Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!