Effacer les filtres
Effacer les filtres

How to check whether the distribution of my data is a right/left skewed normal distribution using kolmogorov-smirnov test?

6 vues (au cours des 30 derniers jours)
Hi,
The figure below is the histogram of my data:
I want to check that whether the distribution of my data can be a skewed normal distribution or not.
I have already calculated the mean and standarad deviation of the data, and giving those parameters using "cdf" and a normal distribution:
test_cdf = [negativeData',cdf('Normal',negativeData',mu,sigma)];
h = kstest(negativeData','CDF',test_cdf)
"kstest" rejects the null hypothesis, resulting in h=1.
Would you help me with defining a skewed test_cdf that fits the shape of the data's histogram better?

Réponse acceptée

Abdolkarim Mohammadi
Abdolkarim Mohammadi le 23 Août 2020
If your data points were positive, they would look like Gamma or Chi-square distribution. Type distributionFitter in the command window and to open the distribution fitter app. There you will have options to easily fit multiple distributions and find the right one.

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