Yule’s Q summarizes the association between two binary variables in a two by two table. It uses the difference between two products of counts and divides by their sum. The resulting value centers on zero when the two products are equal. This gives the direction of the association a simple interpretation as long as the reader knows how the two variables were ordered.
Suppose a factory study groups parts by whether a recorded setup was A or B and whether the parts passed a particular check. Use A and B for the rows, and pass and fail for the columns. Denote the four counts by a and b in the first row, and c and d in the second row. The two products are a times d and b times c. Yule's formula subtracts the second from the first, then divides by their sum.
In an invented table, setup A has twelve passes and four failures, while setup B has six passes and eight failures. The first product is twelve times eight, or ninety-six. The second is four times six, or twenty-four. Their difference is seventy-two and their sum is one hundred twenty, giving Q equal to 0.60. The positive sign corresponds to pass being more favorable relative to fail in the first row than in the second.

Where both row odds are finite and positive, divide the first row's pass-to-fail odds by the second row's. In the example the row odds are twelve divided by four and six divided by eight. Dividing three by three quarters gives an odds ratio of four. This is also the ratio of the two cross-products, ninety-six over twenty-four.
Luck's analysis of two by two tables writes Q as the odds ratio minus one, divided by the odds ratio plus one. An odds ratio of four therefore maps to three fifths. An odds ratio of one maps to zero. An odds ratio below one maps to a negative value. The mapping preserves ordering for positive odds ratios while putting the result on a bounded scale. It does not make Q a fraction of passing parts. In this example the two pass fractions are twelve out of sixteen and six out of fourteen, separate quantities.
Double both counts for setup A while leaving the setup B counts alone. The products become one hundred ninety-two and forty-eight. Both the difference and sum double, leaving their ratio at 0.60. The same algebra works for multiplication of a whole column by a positive factor. Each cross-product includes one count from the scaled row or column, so each acquires the same factor.
Yule emphasizes this feature in the 1912 paper when explaining how a change in the balance of categories can leave Q unchanged. In the example, the total number and overall pass proportion change after the row is doubled. The two row-specific pass odds stay the same. In an actual sample, selecting parts according to other properties can change the proportions within a row. The scaling result applies to proportional changes across a whole row or column, not to every change in sampling.

If one cross-product is zero and the other is positive, the formula reaches either positive one or negative one. The value is positive when a times d survives and negative when b times c survives. When both products are zero, the denominator is zero and Q is undefined. A report should retain that distinction even if an odds-ratio representation encounters a division by zero sooner.
A table with very few observations can also reach an endpoint because an event happened to be absent from one cell. The computed coefficient describes the observed table. An uncertainty assessment would require information about how those counts were obtained. A striking endpoint can therefore be reported together with the sample sizes and the full table.
Reversing the order of either variable exchanges the products and flips the sign. Reversing both exchanges them twice and restores the sign. A useful record therefore includes the exact row and column labels in order, the four counts, and the rule used for zero cells. Q expresses association under that coding. The four counts still show which group supplied each observation and support separate interpretations of outcome rates or differences between setups.
Primary references are G. Udny Yule's 1912 paper on association between attributes and Stanley Luck's research on two by two contingency tables. See the robot statistics collection and technical article directory.