How does MATLAB compute p-values for Anderson Darling Test for the weibull distribution?
8 次查看(过去 30 天)
显示 更早的评论
I have compared the reported p-values for the AD test across MATLAB and Minitab for a given dataset for the weibull distribution. The results match which is what I expected, but I need to know how the calculations are performed in the background?
There is very little literature that I could find that described how this process works for non-normal distributions.
0 个评论
回答(1 个)
Yash
2023-11-24
编辑:Yash
2023-11-24
Hello Sasan,
The Anderson-Darling (AD) test is a statistical test used to determine whether a given sample of data comes from a specific probability distribution. In MATLAB, the "adtest" function is used to perform the AD test. It calculates a test statistic and p-value by comparing the dataset's distribution to the expected one. If the p-value is less than a chosen significance level, we reject the idea that the data fits the expected distribution. If the p-value is higher, we fail to reject the idea that the data fits the expected distribution.
To know about the function you can refer to its documentation here: https://in.mathworks.com/help/stats/adtest.html
The p-value in MATLAB is calculated using the AD test statistic and the corresponding null distribution. The null distribution is the distribution of the AD test statistic under the null hypothesis that the sample data comes from the specified distribution. The p-value is then calculated as the probability of observing a test statistic as extreme or more extreme than the observed test statistic, assuming the null hypothesis is true.
You can refer to the "More about" section of its MATLAB documentation for more information on the function and the underlying algorithm: https://in.mathworks.com/help/stats/adtest.html#btq5i9_
Hope this helps!
0 个评论
另请参阅
类别
在 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!