wwenjuan 假设检验中的p值到底是怎么算出来的?请高手指教下,怎么都不能明白? 比如你用spss算相关性分析,会得到这样的结果: Pearson Correlation:-.332(**) Sig. (2-tailed):0.0005656 这里这个0.0005656是怎么得出来的,没有计算p值的统一公式吗?
bjt 在 R 中可以参考: <br /> tmp <- rnorm(1000)<br /> <br /> t.test(tmp,mu = 0) #检验 u ?= 0<br /> <br /> t <- mean(tmp)/sd(tmp)*(length(tmp)^0.5)<br /> <br /> ifelse(t < 0, 2*pt(t,df = length(tmp)-1) , 2*(1- pt(t,df = length(tmp)-1))) #p-value
wwenjuan 我的两组数据分布是未知的,样本容量都是104;做了下正态性检验,一组满足,另一组不满足! 已经看了些书了,真的不太明白做出那样一个p值的具体过程. 可否就针对我这个例子说明下大概步骤!先谢谢各位!
rtist a p-value is a statistic by itself, i.e., a fctn of data, defined as Pr(as or more extreme data than the observed one given the null hypothesis).