# φ系数

φ系数（φ）是衡量两个二值（二分）变量之间关联强度与方向的指标，由2×2列联表计算得出。将两个变量的类别分别编码为0和1后，按皮尔逊积矩相关系数公式计算，所得数值与φ系数完全相同；φ系数与独立性卡方检验以及克拉默V也密切相关。<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup><sup> • </sup><sup>[2](https://casrai.org/guides/phi-coefficient)</sup>

| 关键事实 | 详情 |
|---|---|
| 测量内容 | 2×2列联表中两个二值变量之间关联的强度与方向<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup> |
| 等价性 | 与对0/1编码的二值数据计算皮尔逊相关系数所得数值完全相同<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup><sup> • </sup><sup>[2](https://casrai.org/guides/phi-coefficient)</sup> |
| 取值范围 | −1至+1；0表示无关联<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup> |
| 与卡方的联系 | φ² = χ²/n，其中n为观测总数<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup> |
| 与克拉默V的联系 | 对于2×2表，\|φ\| = 克拉默V；V和楚普罗夫T将φ推广到更大的表<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup><sup> • </sup><sup>[3](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html)</sup> |
| 起源 | 归功于卡尔·皮尔逊；各文献给出的年份分别为：计算式1904年，与四分相关一同提出为1900年，另有1899年之说<sup>[4](https://www.sciencedirect.com/topics/social-sciences/pearson-correlation-coefficient)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/topics/computer-science/correlational-method)</sup> |
| 主要注意事项 | 当边际分布不均衡时，即使表内数据完全一致，φ的最大可达值也会低于1<sup>[2](https://casrai.org/guides/phi-coefficient)</sup> |

## 定义与公式

对于单元格计数为a、b、c、d、总计n = a + b + c + d的2×2表，φ系数定义为

\[ \phi = \frac{ad - bc}{\sqrt{(a+b)(c+d)(a+c)(b+d)}} \]

分子为对角单元格的交叉乘积之差，分母用边际合计对其进行标准化，使取值限于[−1, 1]区间。符号携带方向信息：正的φ意味着两个变量倾向于同时取相匹配的类别，负的φ则意味着它们倾向于取相反的类别。<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup>

由于该公式恰好就是对0/1编码数据应用皮尔逊积矩相关系数，φ并非为分类数据另行发明的统计量；它不过是普通相关公式在两个变量均只取两个值时所产生的结果。<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup><sup> • </sup><sup>[2](https://casrai.org/guides/phi-coefficient)</sup> 作为一个计算示例，382名学生中按性别（男/女）与是否饮用汽水（是/否）交叉分类，各单元格为151、106、39、86，得到

\[ \phi = \frac{151 \cdot 86 - 39 \cdot 106}{\sqrt{(151+39)(106+86)(151+106)(39+86)}} \approx 0.259 \]

表明男性身份与每周饮用超过2升碳酸饮料之间存在中等程度的正关联。<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup>

## 与卡方及克拉默V的关系

φ与同一张表的皮尔逊卡方统计量直接相关：φ² = χ²/n，即φ的平方是按样本量标准化的卡方统计量。等价地，对于2×2表，φ的绝对值等于克拉默V。<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup>

克拉默V和楚普罗夫T是φ系数向大于2×2的列联表的推广；这两种推广通常给出相近的数值，且随着表的形状偏离2×2越远，二者的差异越大。<sup>[3](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html)</sup> 软件通常将这些指标与φ一并报告：SciPy的`association`函数从列联表计算克拉默V、楚普罗夫T和皮尔逊列联系数，R的`oii`包则将φ列入其基于卡方的关联度量之中。<sup>[3](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html)</sup><sup> • </sup><sup>[6](https://search.r-project.org/CRAN/refmans/oii/html/association.measures.html)</sup>

## 历史

该系数归功于卡尔·皮尔逊，这位统计学家在伦敦大学学院发展了相关分析框架的许多内容。ScienceDirect上关于皮尔逊相关系数的综述将计算式归为皮尔逊1904年的工作，<sup>[4](https://www.sciencedirect.com/topics/social-sciences/pearson-correlation-coefficient)</sup> 而一篇关于相关方法的综述则指出，皮尔逊于1900年为二分变量提出了四分相关和φ系数；<sup>[5](https://www.sciencedirect.com/topics/computer-science/correlational-method)</sup> 一份相关度量的比较表将φ系数列在1899年之下。<sup>[7](https://www.shpltd.co.uk/hs.pdf)</sup> 这些年份在二手文献中各不相同，而该系数源自皮尔逊关于四格表列联与关联的更广泛工作，发表为《论列联理论及其与关联和正态相关的关系》（剑桥大学出版社，1904年）。<sup>[8](https://books.google.com/books/about/On_the_Theory_of_Contingency_and_Its_Rel.html?id=I-elHz5cPykC)</sup>

## 取值范围与边际分布的影响

尽管φ一般以−1和+1为界，但实际可达的取值取决于两个变量的边际分布。当任一变量上的某一类别远比另一类别常见时，即使在与这些边际分布一致的最极端表中，φ所能达到的最大值也会被拉低到1以下。这一限制在方法学文献中有记载，尤其是明尼苏达大学教育心理学教授小欧内斯特·C·达文波特与纳德尔·A·埃尔-桑胡里发表于《教育与心理测量》的1991年综述《Phi/Phimax：回顾与综合》；phimax校正按依赖边际的最大值对φ进行重新缩放。<sup>[2](https://casrai.org/guides/phi-coefficient)</sup><sup> • </sup><sup>[9](https://journals.sagepub.com/doi/10.1177/001316449105100403)</sup> 同样的观点也出现在效应量文献中：只有当边际概率相等时，才能达到完整的相关范围，因为两个二值变量之间的完全相关要求有两个单元格概率为零。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC3591379/)</sup>

心理测量学研究者马蒂斯·J·沃伦斯在《心理测量学》（2008年）中分析了2×2关联系数，将φ归入这样一族系数：在给定边际概率的条件下，它们是观测一致比例的线性变换；科恩卡帕也属于这一族。他证明，φ不能同时满足以下三个条件：无论边际分布如何，统计独立时取零值、最大值为1、最小值为−1；而能同时满足这三条的系数包括四分相关、尤尔Q和Y，以及优势比的变换。<sup>[11](https://link.springer.com/article/10.1007/s11336-008-9070-3)</sup>

## 作为效应量的使用

φ和克拉默V用作分类关联的效应量度量，可在不受样本量影响的情况下量化关联强度：在保持比例不变的前提下，将每个单元格的受试者数量加倍，会使卡方统计量加倍、P值缩小，但φ和克拉默V保持不变。与所有效应量一样，最好将它们与P值、置信区间以及优势比或相对风险等相关量一并解读。<sup>[12](https://www.graphpad.com/guides/prism/latest/statistics/stat_interpreting_results_cramers_v_and_phi.htm)</sup> 关于2×2表效应量的综述将φ与优势比、风险比一同列为常见的基于卡方的度量，并指出它们在解释上存在易用性方面的局限。<sup>[13](https://www.mdpi.com/2227-7390/11/9/1982)</sup>

φ还出现在简单关联检验之外的应用场景中。在观察性研究中，用于检查协变量平衡的标准化差异与φ直接相关：两组之间某二值变量出现比例的标准化差异为0.1，对应于处理组与该变量之间相关系数的φ值为0.05，这一数值表明相关可忽略不计。<sup>[14](https://www.tandfonline.com/doi/full/10.1080/03610910902859574)</sup> 在患病率估计中，φ系数用作二值结局（如吸烟状况）与二值协变量（如性别）之间的相关系数。<sup>[15](https://pmc.ncbi.nlm.nih.gov/articles/PMC2254620/)</sup>

## 相关系数

对于2×2表，有若干度量与φ一致或密切相关。当一个变量为二值、另一个为定量时，相应的度量是点二列相关，它在数学上同样等价于将二值变量编码为0和1后计算的皮尔逊相关。<sup>[1](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)</sup>

## References

1. [Chapter 12: Association in binary data, Statistics 1 lecture notes (Błażej Kochański)](https://blazejkochanski-statistics1.share.connect.posit.cloud/binary.html)
2. [The Phi Coefficient: Formula & Limits, CASRAI Guides](https://casrai.org/guides/phi-coefficient)
3. [scipy.stats.contingency.association, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.contingency.association.html)
4. [Pearson Correlation Coefficient: an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/social-sciences/pearson-correlation-coefficient)
5. [Correlational Method: an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/computer-science/correlational-method)
6. [association.measures {oii}, R Documentation, CRAN](https://search.r-project.org/CRAN/refmans/oii/html/association.measures.html)
7. [History of Science table of correlation coefficients (HS March 99)](https://www.shpltd.co.uk/hs.pdf)
8. [Karl Pearson, On the Theory of Contingency and Its Relation to Association and Normal Correlation, Cambridge University Press, 1904](https://books.google.com/books/about/On_the_Theory_of_Contingency_and_Its_Rel.html?id=I-elHz5cPykC)
9. [Davenport, E. C., Jr., & El-Sanhury, N. A. (1991). Phi/Phimax: Review and Synthesis. Educational and Psychological Measurement, 51(4), 821–828](https://journals.sagepub.com/doi/10.1177/001316449105100403)
10. [Effect Sizes for 2×2 Contingency Tables, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3591379/)
11. [Warrens, M. J. (2008). On Association Coefficients for 2×2 Tables and Properties That Do Not Depend on the Marginal Distributions. Psychometrika, 73, 777–789](https://link.springer.com/article/10.1007/s11336-008-9070-3)
12. [Interpreting Results: Cramér's V and the Phi Coefficient, GraphPad Prism 11 Statistics Guide](https://www.graphpad.com/guides/prism/latest/statistics/stat_interpreting_results_cramers_v_and_phi.htm)
13. [Phi, Fei, Fo, Fum: Effect Sizes for Categorical Data That Use the Chi-Squared Statistic, Mathematics (MDPI), 2023](https://www.mdpi.com/2227-7390/11/9/1982)
14. [Using the Standardized Difference to Compare the Prevalence of a Binary Variable Between Two Groups in Observational Research, Communications in Statistics](https://www.tandfonline.com/doi/full/10.1080/03610910902859574)
15. [Should adjustment for covariates be used in prevalence estimations? PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC2254620/)

---
*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/phi-coefficient

English original: https://www.edgepedia.org/phi-coefficient
