卡方检验(chisquare test)和费歇尔精确检验(fisher's exact test)

  • 卡方检验(chi-square test):独立性检验,判断变量之间是否有相关性;
  • 费歇尔精确检验(fisher's exact test):同样为独立性检验,但基于超几何分布;

什么情况下用卡方检验(chi-square test)或费歇尔精确检验(fisher's exact test)呢?

以下面二联表为例:

健康 患病
吸烟 A B
不吸烟 C D

N=A+B+C+D
假定吸烟患病人群是二联表中人数最少的,那么吸烟患病人群的理论频数T=(A+B)*(B/N)

  • 当 T ≥5 且 N ≥ 40,采用卡方检验(chi-square test);
  • 当 1<= T<5 ,且 N ≥ 40,采用连续性校正的卡方进行检验;
  • 当 T<1 或 N<40,采用费歇尔精确检验(fisher's exact test);
原文地址:https://www.cnblogs.com/chenwenyan/p/15706505.html