TOPICS
Search

Log Contrast


A log contrast of a positive vector x=(x_1,...,x_d) is a linear combination of natural logarithms of its components of the form

 L_(a)(x)=sum_(i=1)^da_ilnx_i,

where the coefficients a_i are real numbers satisfying sum_(i=1)^(d)a_i=0. The zero-sum condition makes the value unchanged when every component is multiplied by the same positive constant, since

 L_(a)(cx)=L_(a)(x),

for every c>0. Equivalently, L_(a)(x)=ln(product_(i=1)^(d)x_i^(a_i)), so the log contrast depends only on ratios among the components. For example, choosing a_1=1, a_2=-1, and a_i=0 for i>2 gives ln(x_1/x_2).

For compositional data, a linear regression model with compositional independent variables can be written y=beta_0+sum_(i=1)^(d)beta_ilnx_i+epsilon, where sum_(i=1)^(d)beta_i=0. The zero-sum restriction makes the fitted value independent of the total to which the components are normalized.


See also

Aitchison Geometry, Compositional Data, Linear Regression, Natural Logarithm, Ratio

Explore with Wolfram|Alpha

References

Aitchison, J. "The Statistical Analysis of Compositional Data." J. Roy. Statist. Soc. Ser. B 44, 139-160, 1982. https://doi.org/10.1111/j.2517-6161.1982.tb01195.x.Aitchison, J. and Bacon-Shone, J. "Log Contrast Models for Experiments with Mixtures." Biometrika 71, 323-330, 1984. https://doi.org/10.1093/biomet/71.2.323.

Cite this as:

Weisstein, Eric W. "Log Contrast." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/LogContrast.html

Subject classifications