Cramér's V 计算器

Cramer's V Calculator

📐 计算公式
Cramér's V(2×2 列联表特例):期望频数 E_ij = 行合计×列合计 ÷ 总数 n,χ² = Σ(观测−期望)² ÷ 期望(四格求和),V = √(χ² ÷ n)(2×2 时 min(r−1,c−1)=1)。校验:a、b、c、d 四项非空合法数值守卫,n=0 时除零落 NaN 兜底。判据:无固定分级,V 取值 0~1、越接近 1 关联越强。
Cramér's V 由卡方统计量 χ² 除以样本量与最小维度约束后开方得到,把卡方值标准化到 0 到 1 区间,衡量两个分类变量关联强度:0 表示无关联、1 表示完全关联,适用于任意大小的列联表。本页由 2×2 表的四项频数计算。

From the chi-square value, sample size and degrees of freedom of a contingency table, compute Cramer's V to measure the association strength between two categorical variables.

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 equals phi Cohen J., Statistical Power Analysis for the Behavioral Sciences (1988)
📌 计算说明
  • 2×2 时 min(r−1,c−1)=1。
  • V∈[0,1],越大关联越强。

📚 深度解析:Cramer's V 关联强度

💡 常见使用场景

2×2 表
χ²=20、n=200、min(1,1)=1:V=√(20/200)=√0.1≈0.316。属中等关联。
弱关联
χ²=4、n=100:V=√(4/100)=0.2,较弱。

❓ 常见问题(FAQ)

V 比 χ² 好在哪?
χ² 随样本量增大,V 经 n 与维度标准化,便于跨表比较关联强度。
V 上界为何是 1?
除以 n·min(r−1,c−1) 后,完全关联时 V=1,故恒在 [0,1]。

如何使用V 计算器

  1. 在对应的输入框或选项中填写、选择所需参数。
  2. 点击「计算」或「生成」按钮运行。
  3. 在结果区查看输出,可复制结果或导出使用。

参数说明

适用场景

统计指标、置信区间与样本量的测算。

常见问题

V 计算器是做什么的?
Cramér's V 计算器:由列联表卡方值与样本量、自由度求 Cramér's V 效应量,衡量两个分类变量间的关联强度,用于交叉表分析。
如何使用V 计算器?
在对应的输入框或选项中填写、选择所需参数,点击「计算」或「生成」按钮即可运行,结果会在结果区实时显示,支持复制与导出。
计算结果准确吗?
本工具在你的本地浏览器中实时计算,不依赖服务器;只要输入的参数正确,结果即按对应的规则得出。涉及经验估算的部分仅供参考,不作为正式依据。
V 计算器适合哪些场景?
统计指标、置信区间与样本量的测算。
使用本工具需要联网或上传数据吗?
不需要。所有计算均在你的设备本地完成,数据不会上传到任何服务器,可放心使用。