Lably
Skip to content

Phi coefficient

Statistical measure of association for two binary variables

  • 6 min read
  • 7 chapters

Related on Lably

Through Statistics, Correlation and Machine learning

Definition

A Pearson correlation coefficient estimated for two binary variables will return the phi coefficient.

Two binary variables are considered positively associated if most of the data falls along the diagonal cells. In contrast, two binary variables are considered negatively associated if most of the data falls off the diagonal.

If we have a 2×2 table for two random variables x and y

where n11, n10, n01, n00, are non-negative counts of numbers of observations that sum to n, the total number of observations. The phi coefficient that describes the association of x and y is

φ=n11n00−n10n01n1∙n0∙n∙0n∙1.

Phi is related to the point-biserial correlation coefficient and Cohen's d and estimates the extent of the relationship between two variables (2×2).

The phi coefficient can also be expressed using only n, n11, n1∙, and n∙1, as

φ=nn11−n1∙n∙1n1∙n∙1(n−n1∙)(n−n∙1).

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Robotics