how to know the distribution of my data
Show older comments
Dear Matlab Community, I have attached an excel file for some data I have. this data represents the percent of loads in each load bin with their histogram , my question is how can I know using MATLAB what distribution my data follows? is it normal? exponential or something else? and after that how to know the parameters of the distribution. Thanks alot
8 Comments
dpb
on 24 Sep 2018
Do you have the Statistics Toolbox?
There are fitting functions therein for quite a number of distributions and specific hypothesis tests llietest for normal, exponential, and extreme value.
Image Analyst
on 25 Sep 2018
Do you have any idea of the theoretical shape or where the data came from? For example, they're particle sizing measurements so it's likely to be log-normal? Or it's two Gaussians?
MAHMOUD ALZIOUD
on 25 Sep 2018
MAHMOUD ALZIOUD
on 25 Sep 2018
dpb
on 25 Sep 2018
All products from The Mathworks come from their normal distribution channel for your user type -- student, individual, industry, ... for your locale. How did you get access to the copy you're currently using of base product?
ver
at the command line will show which version you have and which Toolboxes are installed.
MAHMOUD ALZIOUD
on 25 Sep 2018
dpb
on 25 Sep 2018
Your institution may have access to more; ask your advisor for what is available for your use on university machines.
MAHMOUD ALZIOUD
on 25 Sep 2018
Accepted Answer
More Answers (2)
dpb
on 25 Sep 2018
0 votes
Plotting the data it definitely is not normal; has long RH tail and isn't symmetric.
For hypothesis testing it would be better to go back to the underlying data from which the histogram was made if you have it.
4 Comments
MAHMOUD ALZIOUD
on 25 Sep 2018
Image Analyst
on 25 Sep 2018
Doesn't look normal to me. At least not Gaussian. Maybe that's a "normal" (i.e. typical) distribution for traffic volume, but it doesn't look very Gaussian.

MAHMOUD ALZIOUD
on 25 Sep 2018
dpb
on 25 Sep 2018
By what measure? As IA says, it looks bimodal (if not tri, that's kinda suspicious hump at the LH side of the central lobe) and the RH tail is definitely not consistent with Gaussian.
If the raw data look markedly different that would be surprising.
Image Analyst
on 25 Sep 2018
0 votes
Since your data didn't look like one Gaussian to me, I fit it to the sum of two Gaussians with the attached m-file. I got this:

Categories
Find more on Descriptive Statistics 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!