Fitting a multivariate Gaussian distribution on a histogram

7 vues (au cours des 30 derniers jours)
hamed
hamed le 14 Fév 2021
Commenté : hamed le 17 Fév 2021
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.

Réponse acceptée

Jeff Miller
Jeff Miller le 14 Fév 2021
Modifié(e) : Jeff Miller le 14 Fév 2021
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.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by