Fit a Gamma distribution using Method of Moments

For a given data, Gamma fit is computed using Method of Moments.
327 Downloads
Updated 4 May 2019

View License

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
Created with R2015a
Compatible with R2006b to R2015b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0