Skip to main content

Phi Coefficient

The phi coefficient, written as φ, measures the strength and direction of association between two binary variables in Intro to Statistics. It is the correlation-style effect size for a 2x2 contingency table.

Last updated July 2026•Fiveable Content Team

What is the Phi Coefficient?

The phi coefficient is the effect size you use when both variables are binary in Intro to Statistics, meaning each variable has only two categories, like yes/no, present/absent, or pass/fail. It summarizes how strongly the two variables are associated in a 2x2 contingency table.

You can think of φ as the correlation version of a binary table. Instead of measuring how two numerical variables move together, it measures whether the pattern of counts in the table leans toward one pairing more than would happen by chance. A value near 0 means the table looks close to independent, while values near 1 or -1 mean the counts are clustered in a very strong positive or negative pattern.

The sign tells you the direction of the association, but only after you decide how the categories are coded. If one binary variable is labeled in a way that makes matching categories line up, φ may be positive. If the coding is reversed, the sign can flip even when the strength stays the same. That is why the size of the relationship is usually more useful than the sign by itself.

The formula uses the four cell counts from the table, often written as a, b, c, and d. The numerator, ad minus bc, captures whether the diagonals are stronger than the off-diagonals. The denominator scales that value so the result stays between -1 and 1. In practice, you usually calculate it after organizing the observed frequencies in a contingency table.

A quick example makes the idea clearer. Suppose a class records whether students passed a quiz and whether they attended review session. If most of the students who attended passed and most who did not attend failed, the phi coefficient would be positive and fairly large. If attendance and passing looked unrelated, φ would be close to zero.

Phi shows up right next to the chi-square test of independence. The chi-square test tells you whether there is evidence of a relationship, while phi tells you how strong that relationship is. That makes φ especially useful when you want more than a yes-or-no answer about independence.

Why the Phi Coefficient matters in Intro to Statistics

Phi coefficient matters because Intro to Statistics is not just about deciding whether a relationship exists, but also about describing how big that relationship is. A chi-square test can tell you that two categorical variables are associated, but it does not give you a clean sense of effect size on its own. Phi fills that gap for 2x2 tables.

This comes up anytime you compare two binary variables, such as whether students attended tutoring and whether they passed a quiz, whether a survey response was yes or no, or whether a condition was present or absent. In those situations, you are not looking for a slope or a regression line. You are reading the structure of counts in a contingency table.

Phi also helps you avoid a common mistake, which is treating statistical significance as the whole story. With a large sample, even a tiny association can produce a small p-value. The phi coefficient helps you ask a better follow-up question: is the relationship actually weak, moderate, or strong?

It connects directly to your work with contingency tables and chi-square tests, so once you know φ, you can move more confidently between the table, the test, and the interpretation. That is a big part of doing well in this course: not just crunching the numbers, but explaining what the numbers say about the relationship between categories.

Keep studying Intro to Statistics Unit 11

Official unit cheatsheet

open one-pager

How the Phi Coefficient connects across the course

Contingency Table

Phi is built from a 2x2 contingency table, so you have to organize the two binary variables correctly before you can interpret anything. The cell counts are the whole setup for the calculation, and a sloppy table usually leads to a wrong phi value. If you can read the rows and columns clearly, the rest of the process is much easier.

Chi-Square Test of Independence

Phi often shows up after a chi-square test of independence. The chi-square test answers whether the variables appear related, while phi describes how strong that relationship is in a binary table. If the test gives evidence against independence, phi helps you say whether the association is small or large instead of stopping at significance.

Correlation Coefficient

Phi is basically the correlation idea adapted to two binary variables. Regular correlation is used for numerical variables, but phi keeps the same -1 to 1 style interpretation for a 2x2 table. That makes it a bridge between the language of correlation and the language of categorical data.

Cramer's V

Phi and Cramer's V are both effect size measures for categorical association, but they are not used in exactly the same setting. Phi is the natural choice for a 2x2 table, while Cramer's V is the broader measure you use when tables have more than two rows or columns. If your table is larger than 2x2, phi is no longer the go-to summary.

Is the Phi Coefficient on the Intro to Statistics exam?

A quiz or problem-set question may give you a 2x2 contingency table and ask you to compute φ, interpret its sign, or compare it to the chi-square result. The main move is to identify which cells are a, b, c, and d, plug them into the formula, and then explain the association in words. If the class has coded the categories differently, check whether the sign should be positive or negative before you interpret it.

You may also see a short interpretation item that asks whether the relationship is weak, moderate, or strong. In that case, you are not just stating the number, you are connecting the number to the table pattern. A phi near 0 means little association, while a larger absolute value means the binary variables move together more clearly. Be ready to mention that phi is an effect size, not a p-value.

The Phi Coefficient vs Cramer's V

Phi and Cramer's V are both measures of association for categorical data, but phi is the one for a 2x2 table. Cramer's V is used when the table has more categories, so it is more general. If your data are strictly binary on both variables, phi is the more specific match.

Key things to remember about the Phi Coefficient

  • The phi coefficient measures association between two binary variables in a 2x2 contingency table.

  • It ranges from -1 to 1, with values near 0 showing little association and larger absolute values showing stronger association.

  • Phi is an effect size, so it tells you how strong the relationship is, not just whether it exists.

  • It is closely connected to the chi-square test of independence, which checks whether the variables are related.

  • If your table is not 2x2, you usually need a different categorical effect size like Cramer's V.

Frequently asked questions about the Phi Coefficient

What is Phi Coefficient in Intro to Statistics?

The phi coefficient is a measure of association for two binary variables in a 2x2 contingency table. It works like a correlation for yes/no or present/absent data. You use it to describe how strongly the two categories line up.

How do you interpret a phi coefficient?

Look at both the size and the sign. A value close to 0 means little association, while values closer to 1 or -1 mean a stronger relationship. The sign depends on how the categories were coded, so the absolute value is often the cleaner measure of strength.

Is phi coefficient the same as correlation?

Not exactly, but it is closely related. Pearson correlation is for numerical variables, while phi is the special case used when both variables are binary. That is why phi keeps the same -1 to 1 style range.

When do you use phi instead of Cramer's V?

Use phi when both variables are binary and the table is 2x2. Use Cramer's V when the table has more than two rows or columns. If the table is larger than 2x2, phi is not the usual summary.