How to fit a specific distribution to data
10 views (last 30 days)
Show older comments
Samuele Di Russo
on 16 Oct 2018
Answered: Akira Agata
on 17 Oct 2018
My scope is to fit some samples of data to a custom lognormal distribution. In particular, i have to fit my data to a classic lognormal distribution with mu=1 and sigma=1.1 I tried to use the Statistics Toolbox but how can I create a custom distribution for the tool? I know there's the laplace example but i can't find the way to implement my case. Thank you
0 Comments
Accepted Answer
Akira Agata
on 17 Oct 2018
Assuming your data samples are stored in 1-by-N (or N-by-1) array x, the following code can fit log-normal distribution to the data.
pd = fitdist(x,'Lognormal')
But, regarding you question, what do you mean by "fit my data to a classic lognormal distribution with mu=1 and sigma=1.1" ?
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!