Fitting Distribution to set of data
조회 수: 6 (최근 30일)
이전 댓글 표시
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/504858/image.jpeg)
댓글 수: 1
채택된 답변
Image Analyst
2021년 1월 31일
편집: Image Analyst
2021년 1월 31일
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.
댓글 수: 0
추가 답변 (1개)
Bjorn Gustavsson
2021년 1월 31일
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
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!