How to fit a specific distribution to data

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

 Risposta accettata

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" ?

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by