# 克拉默 V

**克拉默 V**（Cramér's V）是衡量两个分类变量之间关联强度的指标，由列联表计算得出，其方法是将皮尔逊卡方统计量重新缩放至 0 到 1 的范围。对于具有 r 行、c 列、样本量为 n、卡方统计量为 \( \chi^{2} \) 的表格，其定义为

\[ V = \sqrt{\frac{\chi^{2}}{n \cdot \min(r-1,\, c-1)}} \]

该统计量由卡尔·哈拉尔德·克拉默（Carl Harald Cramér，1893–1985）提出；其底层量有时被称为克拉默 φ，可追溯至克拉默 1946 年的工作。<sup>[1](https://encyclopedia.arabpsychology.com/cramers-v-coefficient/?wpa_download_pdf=1)</sup><sup> • </sup><sup>[2](https://www.ucl.ac.uk/arts-humanities/sites/arts_humanities/files/phimeasures.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对于样本量为 n 的 r × c 表格，\( V = \sqrt{\chi^{2} / (n \cdot \min(r-1, c-1))} \)<sup>[3](https://mathworld.wolfram.com/CramersV.html)</sup> |
| 取值范围 | 0 表示未观察到关联；在适当的表格中，完全关联时可达 1<sup>[3](https://mathworld.wolfram.com/CramersV.html)</sup> |
| 2×2 情形 | 对于 2×2 表格，V 等于 φ 系数的绝对值<sup>[3](https://mathworld.wolfram.com/CramersV.html)</sup> |
| 目的 | 对卡方进行重新缩放，使关联强度可在不同大小的表格之间进行比较；原始统计量无法做到这一点，因为它会随样本量和表格维度增大而增大<sup>[4](https://casrai.org/guides/cramers-v)</sup> |
| 解释 | 科恩的惯例将阈值设为 V × √df*，因此随着表格变大，小、中、大效应的原始 V 临界值会缩小<sup>[4](https://casrai.org/guides/cramers-v)</sup> |
| 偏差校正 | 伯格什马（Bergsma，2013）提出了一种校正估计量，从 φ² 中减去 (r−1)(c−1)/(n−1) 并收缩表格维度；表格越大、样本越小，改进越明显<sup>[5](https://stats.lse.ac.uk/bergsma/pdf/cramerV3.pdf)</sup><sup> • </sup><sup>[6](https://mathcalculate.com/tools/cramers-v)</sup> |
| 软件 | 可在 SciPy（`scipy.stats.contingency.association`）、R（`vcd::assocstats`、`rcompanion::cramerV`）、SAS 和 SPSS 中使用<sup>[7](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html)</sup><sup> • </sup><sup>[4](https://casrai.org/guides/cramers-v)</sup> |

## 为什么需要重新缩放

列联表的皮尔逊卡方统计量为

\[ \chi^{2} = \sum_{k=1}^{K} \sum_{j=1}^{J} \frac{(o_{kj} - e_{kj})^{2}}{e_{kj}} \]

其中 \( o_{kj} \) 是单元格 (k, j) 中的观测频数，\( e_{kj} \) 是在独立性假设下由行和列合计计算出的期望频数。<sup>[8](https://jadamso.github.io/Rbooks/02_14_Associations.html)</sup> 该统计量不仅随关联强度增大，还会随样本量以及行数和列数的增加而增大。两项样本量不同的研究可能报告出差异很大的卡方值，却发现相同的底层关联强度；随 n 变化的只是原始统计量以及检测到该关联的统计置信度。<sup>[4](https://casrai.org/guides/cramers-v)</sup><sup> • </sup><sup>[9](https://quantmemo.com/concepts/cramers-v-and-measures-of-association)</sup>

除以 n 可消除对样本量的依赖，除以 \( \min(r-1, c-1) \)（即表格的自由度）可消除对表格形状的依赖。结果介于 0 和 1 之间，0 对应未观察到关联，在适当的表格中完全关联时可达 1。<sup>[3](https://mathworld.wolfram.com/CramersV.html)</sup>

## 与其他度量的关系

对于 2×2 表格，克拉默 V 等于 φ 系数的绝对值，后者是将皮尔逊相关应用于一对二值变量的结果。<sup>[3](https://mathworld.wolfram.com/CramersV.html)</sup>

二维列联表中独立性检验的相关效应量还包括楚普罗夫的 T（Tschuprow's T）、皮尔逊列联系数和科恩的 w。科恩的 w 不以 1 为界，可能超过 1，这使其解释更为困难。<sup>[10](https://easystats.github.io/effectsize/reference/phi.html)</sup> 皮尔逊列联系数同样由卡方导出，在 SciPy 和 Numerical Recipes 例程等软件包中与 V 一同提供。<sup>[7](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html)</sup><sup> • </sup><sup>[11](https://iate.oac.uncor.edu/~mario/materia/nr/numrec/f14-4.pdf)</sup>

## 解释

与其他效应量一样，V 的解释取决于表格维度和应用场景。<sup>[3](https://mathworld.wolfram.com/CramersV.html)</sup>

## 偏差校正与局限

V 的样本值是对总体关联的有偏估计，在小样本中尤其如此。统计学研究者维赫尔·伯格什马（Wicher Bergsma）于 2013 年提出了针对克拉默 V 和楚普罗夫 T 的偏差校正；该论文中的模拟表明，校正估计量优于经典估计量，且表格越大、样本越小，优势越明显。<sup>[5](https://stats.lse.ac.uk/bergsma/pdf/cramerV3.pdf)</sup> 伯格什马的偏差调整减去了随机情况下 φ² 的期望值，其值等于 (r-1)(c-1)/(n-1)，并相应缩减表格的行数和列数。<sup>[6](https://mathcalculate.com/tools/cramers-v)</sup> 在 R 中，`rcompanion::cramerV()` 将该校正作为选项提供。<sup>[4](https://casrai.org/guides/cramers-v)</sup>

近期工作还提出了两点进一步的限定。2025 年一项关于克拉默 V 最大值的分析指出，尽管通常认为最大值为 1，但并非每张表格都如此。<sup>[12](https://arxiv.org/abs/2501.12411)</sup> 而 2025 年的一篇方法论论文认为，所报告的 V 值中有很大一部分描述的是抽样噪声；在固定 N 的多项抽样下，φ² 在任何样本量下都不存在无偏估计量；伯格什马校正并不能解决这一问题。<sup>[13](https://arxiv.org/abs/2609.26211)</sup> 相关工作指出，V 几乎从不附带置信区间，因为该区间是一个棘手的冗余参数问题，并提出了精确条件区间。<sup>[14](https://arxiv.org/abs/2609.26163)</sup>

## 实际应用

V 通常与独立性卡方检验一同报告。在 R 中，`vcd::assocstats()` 在一次调用中同时报告 V、χ² 和列联系数。<sup>[4](https://casrai.org/guides/cramers-v)</sup> SciPy 的 `contingency.association` 函数可从二维表格计算 V、楚普罗夫 T 和皮尔逊列联系数，并提供可选的偏差校正。<sup>[7](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html)</sup> SAS 的 FREQ 过程同样由皮尔逊卡方导出克拉默 V。<sup>[15](https://support.sas.com/documentation/cdl/en/procstat/65544/HTML/default/procstat_freq_details08.htm)</sup>

## References

1. [CRAMÉR'S V COEFFICIENT, Arab Psychology Encyclopedia](https://encyclopedia.arabpsychology.com/cramers-v-coefficient/?wpa_download_pdf=1)
2. [Cramér's φ and Other Contingency Tables Correlations, UCL](https://www.ucl.ac.uk/arts-humanities/sites/arts_humanities/files/phimeasures.pdf)
3. [Cramér's V, Wolfram MathWorld](https://mathworld.wolfram.com/CramersV.html)
4. [Cramér's V: Effect Size for Categorical Association, CASRAI](https://casrai.org/guides/cramers-v)
5. [Wicher Bergsma (2013). A bias-correction for Cramér's V and Tschuprow's T](https://stats.lse.ac.uk/bergsma/pdf/cramerV3.pdf)
6. [Cramér's V Calculator, MathCalculate](https://mathcalculate.com/tools/cramers-v)
7. [scipy.stats.contingency.association, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html)
8. [Statistics of Association, Introductory Economic Statistics](https://jadamso.github.io/Rbooks/02_14_Associations.html)
9. [Cramér's V and Measures of Association, Explained, Quant Memo](https://quantmemo.com/concepts/cramers-v-and-measures-of-association)
10. [phi and Other Contingency Tables Correlations, effectsize documentation](https://easystats.github.io/effectsize/reference/phi.html)
11. [14.4 Contingency Table Analysis of Two Distributions, Numerical Recipes](https://iate.oac.uncor.edu/~mario/materia/nr/numrec/f14-4.pdf)
12. [On the maximum of Cramer's V, arXiv](https://arxiv.org/abs/2501.12411)
13. [An Honest Effect Size for Contingency Tables, arXiv](https://arxiv.org/abs/2609.26211)
14. [Exact Conditional Confidence Intervals for Cramér's V, arXiv](https://arxiv.org/abs/2609.26163)
15. [Chi-Square Tests and Statistics, Base SAS 9.4 Procedures Guide](https://support.sas.com/documentation/cdl/en/procstat/65544/HTML/default/procstat_freq_details08.htm)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Multivariate association and dimension reduction › Association measures

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/cramers-v

English original: https://www.edgepedia.org/cramers-v
