ArticleslgStudy

mathematics

Phi coefficient

Phi coefficient is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Phi coefficient rather than just read about it. In short: In statistics, the phi coefficient, also known as the mean square contingency coefficient or Yule coefficient of correlation and commonly denoted by φ or rφ, is a measure of association between two binary variables. In machine learning and bioinformatics, it is known as the Matthews correlation coefficient (MCC).

Key takeaways

  • Phi coefficient belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Phi coefficient to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Phi coefficient from memory before moving on to harder problems.

Reference excerpt

In statistics, the phi coefficient, also known as the mean square contingency coefficient or Yule coefficient of correlation and commonly denoted by φ or rφ, is a measure of association between two binary variables. In machine learning and bioinformatics, it is known as the Matthews correlation coefficient (MCC). In meteorology and elsewhere, it is referred to as the Doolittle Measure of Association or Doolittle Skill Score. Described by Udny Yule in 1912 and given the name phi by Karl Pearson in the 1930s, it is a special case of the Pearson correlation coefficient.

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

φ = n 11 n 00 − n 10 n 01 n 1 ∙ n 0 ∙ n ∙ 0 n ∙ 1 . {\displaystyle \varphi ={\frac {n_{11}n_{00}-n_{10}n_{01}}{\sqrt {n_{1\bullet }n_{0\bullet }n_{\bullet 0}n_{\bullet 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 {\displaystyle n} , n 11 {\displaystyle n_{11}} , n 1 ∙ {\displaystyle n_{1\bullet }} , and n ∙ 1 {\displaystyle n_{\bullet 1}} , as

φ = n n 11 − n 1 ∙ n ∙ 1 n 1 ∙ n ∙ 1 ( n − n 1 ∙ ) ( n − n ∙ 1 ) . {\displaystyle \varphi ={\frac {nn_{11}-n_{1\bullet }n_{\bullet 1}}{\sqrt {n_{1\bullet }n_{\bullet 1}(n-n_{1\bullet })(n-n_{\bullet 1})}}}.}

Maximum values In general, the Pearson correlation coefficient ranges from −1 to +1, where ±1 indicates perfect agreement or disagreement, and 0 indicates no relationship. The range of the phi coefficient—a special case of the Pearson correlation coefficient—is more tightly bound when either of the binary variables are class-imbalanced.

Machine learning The Matthews correlation coefficient (MCC) is widely used in the fields of bioinformatics and machine learning to evaluate the quality of binary (two-class) classifications. It is named for biochemist Brian W. Matthews, who described the measure in a foundational 1975 paper. An equivalent quantity, the Doolittle Measure of Association or Doolittle Skill Score, was used by M. H. Doolittle in the 1880s to rate the accuracy of meteorologist John Park Finley's tornado predictions and other weather forecasts. The coefficient accounts for true and false positives and negatives and is generally regarded as a balanced measure which can be used even if the classes are of very different sizes. The MCC is in essence a correlation coefficient between the observed and predicted binary classifications; it returns a value between −1 and +1. A coefficient of +1 represents a perfect prediction, 0 no better than random prediction and −1 indicates total disagreement between prediction and observation. However, if MCC equals neither −1, 0, or +1, it is not a reliable indicator of how similar a predictor is to random guessing because MCC is dependent on the dataset. MCC is closely related to the chi-square statistic for a 2×2 contingency table

| MCC | = χ 2 n {\displaystyle |{\text{MCC}}|={\sqrt {\frac {\chi ^{2}}{n}}}}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Phi coefficient

Start with the simplest possible case. Write down what Phi coefficient claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Phi coefficient before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Phi coefficient ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Phi coefficient

In research
Phi coefficient appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Phi coefficient in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Phi coefficient is common in secondary-school and first-year university syllabi. It links to neighbouring topics Bioinformatics, Cheminformatics, Computational chemistry, so understanding it makes those chapters shorter.
In everyday life
Look for Phi coefficient outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Phi coefficient in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Phi coefficient means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Phi coefficient out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Phi coefficient in simple terms?

In statistics, the phi coefficient, also known as the mean square contingency coefficient or Yule coefficient of correlation and commonly denoted by φ or rφ, is a measure of association between two binary variables. In machine learning and bioinformatics, it is known as the Matthews correlation coe…

Why does Phi coefficient matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Phi coefficient?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Phi coefficient.

Tags

  • Bioinformatics
  • Cheminformatics
  • Computational chemistry
  • Information retrieval evaluation
  • Machine learning
  • Statistical classification
  • Statistical ratios
  • Summary statistics for contingency tables

Keep exploring