Is there a way to know how close to a Gaussian distribution is my plot?

조회 수: 9 (최근 30일)
I am creating some plots and i would like to see how close to a Gaussian distribution they are. Maybe it will help me compare the quality of the data because one time I can have values from 0 to 40 and another from 0 to 1000. Does anyone have any previous experience with this? Thank you in advance.

채택된 답변

van lef
van lef 2011년 9월 5일
It turns out I wanted to use the fit function ( [ff,gof,out] = fit(x',jh','gauss1');) and by the gof output you can compare how close each value is to a Gaussian.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 2일
If you were fitting a specific Gaussian distribution then kstest2() . But if you do not know the parameters of the distribution then... ummm, measure the mean and standard deviation of the actual data, and generate a gaussian distribution from those, and then kstest2() that against the actual data, maybe?
  댓글 수: 2
van lef
van lef 2011년 9월 2일
Thank you for your quick response!
I am searching how to generate a Gaussian from my standard deviation and mean values but i can't find something.
Could you indicate something?
Walter Roberson
Walter Roberson 2011년 9월 2일
See the legend under the top graph at http://en.wikipedia.org/wiki/Gaussian_function

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

Community Treasure Hunt

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

Start Hunting!

Translated by