Kolmogorov-Smirnov test for inverse Gaussian distribution
4 次查看(过去 30 天)
显示 更早的评论
Hello ... I has data and I want to use a goodness-of-fit test (Kolmogorov-Smirnov) to indicate whether the data follow the inverse Gaussian distribution or not ... can you help me, how do I run this test ??
3 个评论
回答(1 个)
Jakob B. Nielsen
2020-1-9
The Kolmogorov-Smirnov test checks if your data is from a standard normal distribution, not an inverse gaussian. Of course, it is always good to check, first, if your data is from a standard normal distribution, before looking for alternative distributions :)
Simply [h,p]=kstest(data) will give you that info.
In case the null hypothesis is rejected, there is a code on the file exchange for testing for the inverse gaussian distribution, that you might check out. https://se.mathworks.com/matlabcentral/fileexchange/24036-anderson-darling-goodness-of-fit-test-to-inverse-gaussian-distbtn?focused=5114587&tab=function
1 个评论
Adam Danz
2020-1-9
编辑:Adam Danz
2020-1-10
Note that there is a modified Kolmogorov-Smirnov test for the inverse gaussian. Whether there exists Matlab code that implements this, I do not know.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!