Fitting a multivariate Gaussian distribution on a histogram
7 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
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)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!