How can I fit 2 or more gamma distributions on a data set?

3 views (last 30 days)
I have a data set that is more appropriately fitted as 2 or more gamma distributions.  Right now, I separate the data into two sets by hand and obtain fits for each set by using 'fitdist(ourData, 'Gamma')'.  Is there a better way to do this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 3 Mar 2021
Edited: MathWorks Support Team on 3 Mar 2021
Unfortunately, at this time fitting multiple gamma distributions on a data set is not a supported functionality in MATLAB R2014b. 
 
The workaround is to write the fitting problem as a Maximum Likelihood Estimation problem. Please consider the example on this documentation link:
You can use the ‘mle’ function to estimate the parameters with a custom pdf that you can specify.

More Answers (0)

Products


Release

R2014b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!