Fitting a multivariate Gaussian distribution on a histogram

8 views (last 30 days)
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.

Accepted Answer

Jeff Miller
Jeff Miller on 14 Feb 2021
Edited: Jeff Miller on 14 Feb 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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!