Fit a Gamma distribution using Method of Moments
1. Gamma distribution is characterized by two parameters: Shape and scale.
2. For a given data, we can estimate shape and scale using Maximum likelihood or Method of Moments.
3. In this code, we use Method of Moments to estimate these parameters.
4. If plotit == 1, this function plots the histogram of the data along with the fit.
5. Distributions are normalized using matlab inbuilt trapz command.
Cite As
Shruti Sathyanarayan Rao (2024). Fit a Gamma distribution using Method of Moments (https://www.mathworks.com/matlabcentral/fileexchange/71450-fit-a-gamma-distribution-using-method-of-moments), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions > Continuous Distributions > Gamma Distribution >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |