The Yule’s Q and Y association calculator gives Yule’s Q, Yule’s Y, the odds ratio, the phi coefficient and a 95 percent confidence interval for Q from the four counts of a 2 by 2 table.
How the calculation works
- Enter the counts a and b of the first row and c and d of the second row.
- The calculator forms the odds ratio from the cross products ad and bc.
- Read Q, Y, the odds ratio, phi and the interval.
Example
A table with 30, 10, 15 and 45 observations, 100 in all, has an odds ratio of 9.00. Yule’s Q is 0.800, with a standard error of 0.0849 and an interval from 0.634 to 0.966. Yule’s Y is 0.500 and the phi coefficient 0.492.
Why it matters
The calculator helps students, sociologists, epidemiologists and analysts who study the link between two yes-no variables, such as exposure and outcome or two survey answers, and want a bounded measure of association that does not depend on the margins of the table.
Good to know
Put the exposure or first variable in the rows and the outcome in the columns, and keep the same order for every comparison. Q is more extreme than a correlation: a Q of 0.8 corresponds to an odds ratio of 9 but a phi of about 0.5. A zero cell gives ±1 and an infinite odds ratio, so add 0.5 to all cells. The interval is an approximation that works well when every cell is at least about 5. Q and Y are symmetric, so swapping the rows or the columns changes only the sign, and they are most useful as descriptive measures next to a test such as the chi-square or the Fisher exact test.
Related tools
The Cramér V calculator handles larger tables, the Fisher exact test calculator tests small 2 by 2 tables, the chi-square test calculator tests independence and the Matthews correlation coefficient calculator scores a binary classifier.