Why an Interaction Is a Ratio of Ratios
In a log-mean model, a predictor’s effect on the expected count is often expressed as a ratio: compare the expected count at one predictor value with the expected count at another. With an interaction, that ratio can itself change across levels of a second predictor. The natural comparison is then a ratio of ratios: the expected-count ratio at one level of the second predictor, divided by the corresponding ratio at another level.
This is useful because an interaction coefficient can otherwise be difficult to interpret on the log scale. The ratio-of-ratios expresses it on the multiplicative scale of expected counts, while making clear which predictor changes and which predictor defines the comparison.
The Two-Predictor Log-Mean Model
Let \(Y\) be a count response and let \(x\) and \(z\) be two predictors. Write the conditional expected count as \(\mu(x,z)=E[Y\mid x,z]\). In a Poisson GLM with a log link and a product interaction, the model is
Here \(\beta_3\) is the interaction coefficient. The expected count is positive for every finite linear predictor. The algebra below concerns the conditional mean; it does not compare two realized counts, which may differ from their expected values because of random variation.
The model is linear in \(x\) and \(z\) on the log-mean scale, not necessarily on the count scale. The interaction term \(xz\) makes the slope with respect to \(x\) depend on \(z\), which is precisely why the expected-count ratio for a given change in \(x\) can differ between levels of \(z\).
Deriving the Ratio of Ratios
Proof. At a fixed \(z\), subtract the log mean at \(x\) from the log mean at \(x+\Delta\):
Thus the expected-count ratio at \(z\) is \(\exp\{\Delta(\beta_1+\beta_3z)\}\). Divide this ratio at \(z_1\) by the ratio at \(z_0\), or subtract their logarithms:
Exponentiating both sides gives the stated identity. The terms \(\beta_0\), \(\beta_1\), and \(\beta_2\) cancel from the ratio of ratios; only the interaction term determines how the \(x\)-ratio changes across \(z\). \(\square\)
The result also shows what a zero interaction means. If \(\beta_3=0\), the ratio of ratios is 1 for every such comparison, so the expected-count ratio for a fixed change in \(x\) is the same at every \(z\). Conversely, for any nonzero \(\Delta\) and \(z_1-z_0\), a ratio of ratios of 1 implies \(\beta_3=0\) in this model.
Worked Examples
Worked Example: Two Binary Predictors
Suppose \(x\) indicates a treatment (0 = control, 1 = treatment) and \(z\) indicates a patient group (0 = group A, 1 = group B). Consider
At \(z=0\), the expected-count ratio for treatment versus control is
At \(z=1\), it is
Therefore, the ratio of the treatment expected-count ratio in group B to that in group A is \(2.1/1.5=1.4\). The cell means verify this directly: \(\mu(0,0)=10\), \(\mu(1,0)=15\), \(\mu(0,1)=20\), and \(\mu(1,1)=42\). Hence
Because both predictors are binary and each comparison changes its indicator from 0 to 1, the interaction coefficient is the logarithm of this ratio of ratios.
Worked Example: A Two-Unit Change Across Continuous Predictor Levels
Suppose \(x\) and \(z\) are continuous, and the log-mean model is
Compare a two-unit increase in \(x\), from \(x=1\) to \(x=3\), at \(z=0\) and \(z=3\). At \(z=0\), the ratio is
At \(z=3\), the ratio is
The ratio of these two ratios is approximately \(0.980/1.174\approx0.835\). The theorem gives the same result directly:
Thus, for this two-unit increase in \(x\), the expected-count ratio at \(z=3\) is about 0.835 times the ratio at \(z=0\). It does not mean that either expected count is 0.835 times the other; it compares the two \(x\)-ratios.
Worked Example: A Binary Predictor Modified by a Continuous Predictor
Let \(x\) indicate whether an exposure is present (0 = absent, 1 = present), and let \(z\) be a continuous measure. Suppose
At \(z=0\), the expected-count ratio for exposure present versus absent is \(\exp(\log 2)=2\). At \(z=10\), the ratio is
The ratio of the exposure ratios at \(z=10\) and \(z=0\) is therefore \(3.297/2=e^{0.5}\approx1.649\). This agrees with the general formula using \(\Delta=1\) and \(z_1-z_0=10\):
Here the interaction says that the exposure expected-count ratio is multiplied by about 1.649 as \(z\) increases by 10 units. This is a comparison of ratios, not a claim that the expected count itself increases by that factor.
Binary Predictors and the Four-Mean Identity
For two binary predictors, the ratio-of-ratios interpretation can be written directly in terms of the four conditional means. Let \(\mu_{xz}=\mu(x,z)\), where \(x,z\in\{0,1\}\). The ratio for changing \(x\) from 0 to 1 at \(z=1\) is \(\mu_{11}/\mu_{01}\); at \(z=0\), it is \(\mu_{10}/\mu_{00}\). Their ratio is
Proof. Taking logarithms of the four-mean ratio gives
Exponentiating proves the result. Positivity of the four means ensures the ratios and logarithms are defined. \(\square\)
This identity is the expected-count analogue of a difference of differences on the log scale. It also makes the null interpretation precise: \(\beta_3=0\) exactly when the two \(x\)-ratios are equal, or equivalently when this four-mean ratio equals 1.
Interpreting the Coefficient and Avoiding Common Errors
For continuous predictors, \(\beta_3\) is the change in the log expected-count ratio for a one-unit increase in \(z\), for a one-unit change in \(x\). More generally, the ratio of ratios is \(\exp\{\beta_3\Delta(z_1-z_0)\}\). If this quantity exceeds 1, the \(x\)-ratio is larger at \(z_1\) than at \(z_0\); if it is below 1, the ratio is smaller. The sign of \(\beta_3\) alone describes the direction only after the directions of \(\Delta\) and \(z_1-z_0\) have been specified.
A common mistake is to interpret \(\exp(\beta_3)\) as the expected-count ratio for changing \(x\). In the general model, the ratio for a one-unit change in \(x\) at \(z\) is \(\exp(\beta_1+\beta_3z)\), not \(\exp(\beta_3)\). The latter is the ratio of those \(x\)-ratios when \(z\) increases by one unit and \(x\) changes by one unit. It equals the ratio of ratios for the 0-to-1 comparisons in the binary-by-binary model.
Another frequent error is to describe a ratio of ratios as a ratio of counts at two different predictor profiles. The comparison instead has four expected means: first form the \(x\)-ratio at each specified \(z\), then divide one ratio by the other. Finally, the interaction depends on predictor units and coding. Changing a continuous predictor’s unit changes the numerical coefficient, and reversing the order of either comparison reverses the corresponding contrast. State the predictor changes and reference levels whenever reporting the interpretation.
Check Your Understanding
For each question, identify the predictor changes before interpreting the comparison.
- In the two-predictor log-mean model, what is the expected-count ratio for changing \(x\) by \(\Delta\) at a fixed \(z\)?
- If \(\beta_3=0\), what does the model imply about the expected-count ratio for a fixed change in \(x\) across levels of \(z\)?
- For binary \(x\) and \(z\), express the ratio of the \(x\)-ratio at \(z=1\) to the \(x\)-ratio at \(z=0\) using the four conditional means.
- If \(\beta_3<0\), must the \(x\)-ratio be smaller at \(z_1\) than at \(z_0\)? State what additional direction information is needed.
- Why is \(\exp(\beta_3)\) not generally the expected-count ratio for a one-unit increase in \(x\)?