Fitting probability distributions to the data (allfitdist)
Show older comments
Hello
I have found the amazing script allfitdist which fits all valid parametric distributions to the data and sorts them using a metric (e.g. BIC or AIC). In a blog post there is a example for a normal distribution:
% Create a normally distributed (mu: 5, sigma: 3) random data set
x = normrnd(5, 3, 1e4, 1);
% Compute and plot results. The results are sorted by "Bayesian information
% criterion".
[D, PD] = allfitdist(x, 'PDF');
If I do this, I'm getting the Rayleigh as winning distribution. In the blog post they got the normal distribution (as expected). The plot I'm getting is in the attachment.
Does somebody see from where this problem comes? I have the newest version of Matlab. Is this the problem?
1 Comment
Kacper PLUTA
on 5 Mar 2017
I had the same problem and I swiched from 2016b to 2012b. Well, in 2012b the code gives results which seem to be OK.
Accepted Answer
More Answers (0)
Categories
Find more on Logistic Distribution 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!