Filter löschen
Filter löschen

Fitting Distribution to set of data

2 Ansichten (letzte 30 Tage)
NeGM
NeGM am 31 Jan. 2021
Bearbeitet: Image Analyst am 31 Jan. 2021
Hi everyone,
I have a vector A represented by the histrogram attached in the image. I'd like to fit a normal, Gaussian, and Poisson distribution to see which one fits best. Is there a function in MATLAB that would allow me to do that? Thank you
  1 Kommentar
Walter Roberson
Walter Roberson am 31 Jan. 2021
https://www.mathworks.com/help/curvefit/gaussian.html#bs41yzj-1

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 31 Jan. 2021
Bearbeitet: Image Analyst am 31 Jan. 2021
In my opinion, you should not fit either of those two. Because your distribution is not symmetrical you will have trouble fitting a Gaussian. I've had trouble before (MATLAB threw warnings) while trying to fit a Gaussian that was basically just the side slope of a Gaussian hump like you have. Likewise a Poisson expects in most cases a peak with lower values at the origin. I think a better equation to describe your equation would be an exponential decay, and I'm attaching a variety of demos for you.

Weitere Antworten (1)

Bjorn Gustavsson
Bjorn Gustavsson am 31 Jan. 2021
If you have the statistics toolbox you have the function fitdist, that should do the job. Just check the help and documentation to that function.
HTH

Community Treasure Hunt

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

Start Hunting!

Translated by