Comparing Distribution Fitting: Normal, Exponential, Gamma

Utilizing MATLAB's Statistics and Machine Learning Toolbox for fitting normal, exponential, and gamma distributions to a dataset
16 Downloads
Updated 7 Aug 2023

View License

In this analysis, the goal is to assess the appropriateness of fitting three distinct probability distributions – normal, exponential, and gamma – to a specific dataset. The primary objective is to determine which of these distributions offers the most accurate representation of the data's underlying characteristics. To accomplish this, cumulative distribution function (CDF) values are computed for each of the fitted distributions using the `normcdf`, `expcdf`, and `gamcdf` functions available in MATLAB. By quantifying how closely the CDF values of the fitted distributions align with the actual dataset, the effectiveness of each distribution in modeling the data can be evaluated. This comparison aids in the selection of the distribution that best captures the dataset's nature and provides insights into its behavior.

Cite As

Mrutyunjaya Hiremath (2025). Comparing Distribution Fitting: Normal, Exponential, Gamma (https://www.mathworks.com/matlabcentral/fileexchange/133412-comparing-distribution-fitting-normal-exponential-gamma), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

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