解题方法 — Chi-squared Tests
方法一:拟合优度检验(一般流程)
步骤
- 确定理论分布,提出假设
- 若分布参数未知,从样本估计
- 计算每类的理论概率
- 计算期望频数
- 检查 ,合并 E_i < 5 的类别
- 计算
- 自由度 ( = 合并后类别数, = 估计参数数)
- 查表比较,下结论
Binomial 特殊情况
- 若 未知,需从数据估计;若已知,直接用已知
- 估计 :(加权平均)
- 最后几项合并使
- 例如 合并为一项
Poisson 特殊情况
- 估计
- 右侧尾部合并:
方法二:独立性检验(一般流程)
步骤
- 构造列联表,标注行和、列和、总和
- 对每格计算
- 检查所有 ,否则合并行或列
- 计算
- 自由度
- 查表比较,下结论
计算技巧
- 先算行和 、列和 、总和
- 逐格计算 ,不要四舍五入到整数
- 使用分数或保留更多小数位
方法三:检验临界值与结论
标准结论模板
: The data follow the specified distribution / the variables are independent
: The data do not follow the specified distribution / the variables are not independent
test statistic
Since \chi^2_{\text{calc}} \; [> / <] \; \chi^2_{\text{crit}} at the significance level, we [reject / do not reject] .
Conclusion: There is [sufficient / insufficient] evidence to suggest that...