生信基础统计检验

一入统计深似海-t检验

2019-05-04  本文已影响72人  Juan_NF

翻开统计学的书,让我有种当年看《红楼梦》的错觉;嗯,名著(高级),要看下去;可是人(概念)怎么这么多,我还是慢慢来!!!
没有自己的理解串起来,会比较枯燥,之后再持续更新。

假设检验

三步走:
1.提出假设
2.计算得到p值(p.value)
3.依据p值抉择对零假设是拒绝还是接受

t检验

用于样本量小,总体标准差未知的情况;通过R里的使用来了解下:
t.test(x, y = NULL,
       alternative = c("two.sided", "less", "greater"),
       mu = 0, paired = FALSE, var.equal = FALSE,
       conf.level = 0.95, ...)
> t.test(1:10, y = c(7:20))  

    Welch Two Sample t-test

data:  1:10 and c(7:20)
t = -5.4349, df = 21.982, p-value = 1.855e-05
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -11.052802  -4.947198
sample estimates:
mean of x mean of y 
      5.5      13.5 

【参考】《统计学》第六版

课程分享
生信技能树全球公益巡讲
https://mp.weixin.qq.com/s/E9ykuIbc-2Ja9HOY0bn_6g
B站公益74小时生信工程师教学视频合辑
https://mp.weixin.qq.com/s/IyFK7l_WBAiUgqQi8O7Hxw
招学徒:
https://mp.weixin.qq.com/s/KgbilzXnFjbKKunuw7NVfw

上一篇下一篇

猜你喜欢

热点阅读