Fitting a multivariate Gaussian distribution on a histogram

조회 수: 7 (최근 30일)
hamed
hamed 2021년 2월 14일
댓글: hamed 2021년 2월 17일
Hi.
I have a vector of data and want to find:
1- The best PDF that fits the data. In other words, I first plot the histogram of the data and I want to know what type of probability distirbution descibes the data best.
2-Fit a Gaussian distribution and extract its statistical parameters, such as mean.
I attached my data as a mat file.
Thanks for your help.

채택된 답변

Jeff Miller
Jeff Miller 2021년 2월 14일
편집: Jeff Miller 2021년 2월 14일
There isn't really a universal answer to "which distribution fits best", because there are an infinite number of different distributions. You can compare the fits of various standard distributions using MATLAB's DistributionFitter app.
If you want to "fit a Gaussian", just compute the mean and std of the sample scores. Once you assume it is a Gaussian, there is no additional fit-relevant information in the sample beyond those two numbers.
By the way, this is a 'univariate' distribution rather than a multivariate one, because you only have one type of score--though you have many different samples of it.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by