how to make a curve of Poisson, Rayleih, t , ....etc distribution of my random data (in histogram)

조회 수: 5 (최근 30일)
I am looking for the best shape that can fit with my histogram(in pdf). I tried with dfittool, but its does not include all types of distribution. and also I used the goodness fit.

채택된 답변

the cyclist
the cyclist 2019년 1월 10일
If you have the Statistics and Machine Learning Toolboox, then you could use the fitdist function. It will fit a large variety of functional forms.
  댓글 수: 4
Andrés F Vásquez
Andrés F Vásquez 2019년 12월 4일
Using this script as base, how could I plot also certain basic statistics such as mean, median, mode, and std. deviation (including legends in the chart)?
the cyclist
the cyclist 2019년 12월 5일
I'm going to assume you know how to get the values of the statistics. (If not, just google the statistic name along with matlab and you will find that.)
For adding them to the plot, here are a few commands that you could find useful:
  • annotation -- add a wide variety of annotations (including textboxes) to a plot
  • text -- add text to a plot; not as versatile as annotation, but simpler
  • legend -- add legend
  • sprintf -- convert a numerical variable to a string, so that it can be used in the above commands

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by