kstest2
双样本柯尔莫哥洛夫-斯米尔诺夫检验
说明
使用双样本柯尔莫哥洛夫-斯米尔诺夫检验,返回对向量 h = kstest2(x1,x2)x1 和 x2 中的数据来自同一连续分布的原假设的检验决策。备择假设是 x1 和 x2 来自不同的连续分布。如果检验在 5% 的显著性水平上拒绝原假设,则结果 h 为 1,否则为 0。
返回对双样本柯尔莫哥洛夫-斯米尔诺夫检验的检验决策,并使用一个或多个名称-值对组参量指定其他选项。例如,您可以更改显著性水平或进行单侧检验。h = kstest2(x1,x2,Name,Value)
示例
输入参数
名称-值参数
输出参量
详细信息
参考
[1] Massey, F. J. “The Kolmogorov-Smirnov Test for Goodness of Fit.” Journal of the American Statistical Association. Vol. 46, No. 253, 1951, pp. 68–78.
[2] Miller, L. H. “Table of Percentage Points of Kolmogorov Statistics.” Journal of the American Statistical Association. Vol. 51, No. 273, 1956, pp. 111–121.
[3] Marsaglia, G., W. Tsang, and J. Wang. “Evaluating Kolmogorov’s Distribution.” Journal of Statistical Software. Vol. 8, Issue 18, 2003.
版本历史记录
在 R2006a 之前推出
另请参阅
kstest | lillietest | adtest