Cramer's V Calculator
📐 计算公式
Cramér's V(2×2 列联表特例):期望频数 E_ij = 行合计×列合计 ÷ 总数 n,χ² = Σ(观测−期望)² ÷ 期望(四格求和),V = √(χ² ÷ n)(2×2 时 min(r−1,c−1)=1),且 V = |φ|:有符号 φ = (ad−bc) ÷ √[(a+b)(c+d)(a+c)(b+d)],其正负由行/列编码约定决定,V 只保留强度、不带方向。校验:a、b、c、d 四项须为非负整数;出现负值、小数或行/列合计为 0 时停算并清空结果、图表与明细。判据:无固定分级,V 取值 0~1、越接近 1 关联越强。
Cramér's V 由卡方统计量 χ² 除以样本量与最小维度约束后开方,把关联强度标准化到 0–1。2×2 表中 V=|φ|;φ 可随行列编码为负,V 恒非负。例:a=40,b=60,c=20,d=80 时 φ≈+0.2182、V≈0.2182;交换两列(a=60,b=40,c=80,d=20)后 φ≈−0.2182,V 仍≈0.2182。本工具只接受 2×2 四格频数;r×c 大表、粘贴原始交叉表或仅凭 χ²/n 摘要反算均不在支持范围内,请改用支持任意维度的统计软件。
Only 2×2 tables are supported: enter four integer cell counts to compute chi-square and Cramer's V; r×c tables are not supported.
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Pearson chi-square statistic | chi-square = sum (O - E)^2 / E | Pearson K. (1900), On the criterion that a given system of deviations... |
| Cramer's V | V = sqrt( chi-square / (n · min(r-1, c-1)) ) | Cramer H., Mathematical Methods of Statistics (1946), Princeton Univ. Press |
| Degrees of freedom | df = (r-1)(c-1), where r = rows and c = columns | Cramer H., Mathematical Methods of Statistics (1946) |
| Effect size benchmarks | 0.1 small / 0.3 medium / 0.5 large; for a 2x2 table V = |phi| (phi is signed, V is not) | Cohen J., Statistical Power Analysis for the Behavioral Sciences (1988) |
📌 计算说明
- 2×2 时 min(r−1,c−1)=1,且 V = |φ|;φ 的符号取决于行列编码。
- V∈[0,1],越大关联越强;交换列顺序 V 不变、φ 反号。