How to check whether the distribution of my data is a right/left skewed normal distribution using kolmogorov-smirnov test?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ali Barzegar Kh.
il 21 Ago 2020
Commentato: Ali Barzegar Kh.
il 23 Ago 2020
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?
0 Commenti
Risposta accettata
Abdolkarim Mohammadi
il 23 Ago 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.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!