阅读说明: 保留原笔记的编号与章节顺序;代码只供查看,没有在本站运行。历史输出不代表当前版本的复现结果。截图/外链图以独立整理的公式、表格、示意或文字替换;纠错与必要补充均作说明。
0. Preparation
Normal distribution
正态覆盖范围: 在正态模型中,均值±1、2、3个标准差的概率质量约为68.27%、95.45%、99.73%;不是任意分布的通用比例。
The 68-95-99.7 rule:
- 68% of the observations all within of the mean
- 95% of the observations all within of the mean
- 99.7% of the observations all within of the mean
检验步骤: 预设H0/H1与单尾/双尾方向、显著性水平;选定满足假设的统计量;在H0分布下算当前或更极端值的概率;比较p与alpha,并同时报告效应量与区间。
2.Hypothesis testing
2.1 The bigger picture
Hypothesis testing is the procedure to determine if the estimated difference/relation is a statistically meaningful difference/relation.
- 学术定义:用于判断“基于小样本数据的参数估计结论,今后能否在总体中长期保存”
- 普通定义:用于回答“产生这样的数据差异,到底是偶然还是必然?”
整理注: 假设检验量化的是在H0与模型假设下观察到当前或更极端统计量的概率,不判定因果必然性,也不证明结论永久成立。
2.2 The logic of Hypothesis Testing - 为什么HT可以用来判断显著性?
- Null and alternative hypotheses (H0 and H1)
- Calculate P-value and interpretation
- 预先设定显著性水平 alpha;p < alpha 时拒绝 H0,而非证明 H1 为真
- Significance level
- 确定原假设H0及备择假设H1
- 选择合适的检测方法,计算P值
- 当P值小于预先设定的显著性水平时拒绝原假设;否则只能说未能拒绝,不能证明原假设成立
The Null hypothesis is assumed to be true unless there is strong evidence to the contrary-similar to how a person is assumed to be innocent until proven guilty.
证据逻辑的修正: 小概率事件可能发生;p小并非逻辑证明H0为假。p≥alpha时是“未能拒绝”,不是证明H0,也不把检验类比成对具体人的裁判。统计结论取决于抽样和模型假设。