【发布时间】:2026-02-01 20:40:01
【问题描述】:
我按照How to repeat the Grubbs test and flag the outliers网站上的程序代码,在我的数据向量中测试了异常值。我的数据向量包含更多 44000 项。
输出如下:
grubbs.result = grubbs.test(test_data)
pvalue = grubbs.result$p.value
grubbs.result
Grubbs test for one outlier
data: test_data
G = 3.79551464153584561, U = 0.99967764032789053, p-value = 1
alternative hypothesis: highest value -48.70000076 is an outlier
pvalue
[1] 1
grubbs.result$alternative
[1] "highest value -48.70000076 is an outlier"
我的问题是为什么pvalue是1,但是程序检测到值-48.70000076是异常值??? -48.70000076 是否是 grubbs 测试检测到的异常值?如果是,如何解释pvalue是1,而不是0.01这样的小值?
因为我是这个领域的新手,有人可以帮我吗?非常感谢您。
【问题讨论】: