ArticleslgStudy

mathematics

Compositional data

Compositional data is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Compositional data rather than just read about it. In short: In statistics, compositional data are quantitative descriptions of the parts of some whole, conveying relative information. Mathematically, compositional data is represented by points on a simplex.

Compositional data — main illustration
Compositional data — illustration

Key takeaways

  • Compositional data belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Compositional data to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Compositional data from memory before moving on to harder problems.

Reference excerpt

In statistics, compositional data are quantitative descriptions of the parts of some whole, conveying relative information. Mathematically, compositional data is represented by points on a simplex. Measurements involving probabilities, proportions, percentages, and ppm can all be thought of as compositional data. All analyses of real data deals with noisy measurements. The simpler case is in empirical studies such as questionnaire surveys, where each respondent's total allocation is fixed and one must deal solely with the effects of closure, odds and odds ratios serve as invariant statistics. In such cases, associations are determined solely by the magnitude of the odds ratio relative to 1. But in compositional data containing noise, the noise is present in the total sum and is distributed asymmetrically among the individual components. Since noise and signal are inseparable, the data can only be dichotomized into zeros and noise-contaminated components. Therefore, without explicit noise filtering, even statistics based on odds remain mathematically ill-defined. Indeed, odds and their ratios can only be calculated across samples in the absolute absence of any noise other than that induced by the compositionality itself (except for normalization).

Ternary plot Compositional data in three variables can be plotted via ternary plots. The use of a barycentric plot on three variables graphically depicts the ratios of the three variables as positions in an equilateral triangle.

The problem of noise Under conditions where Poisson noise, overdispersion, or additive instrumental errors occur, the process of composition (scaling by the total sum) propagates these distortions asymmetrically across all components, making the value of each component difficult to compare due to noise contamination. As a simple degree-of-freedom check or limit analysis (N→∞ or N→0) demonstrates, compositional data is fundamentally closed and isolated within a single row (each sample), illustrating the inherent difficulty of direct cross-sample comparisons. In the presence of such noise, any attempt to use the central limit theorem and Chebyshev's inequality to define a strict boundary between signal and noise fails, as the full joint distribution remains unknown and the threshold parameter remains purely an arbitrary matter of human interpretation. To demonstrate the baseline invariance under pure conditions, consider the ratio between two components, xi and xj, within a given sample under purely compositional effects. Letting k denote the scaling factor applied to maintain a constant row total, the closed compositional values are expressed as kxi and kxj. Their ratio then becomes kxikxj=xixj, wherein k cancels out completely. Similarly, the odds ratio between two distinct samples (or conditions), expressed as x1i/x1jx2i/x2j, remains entirely unaffected by sample-specific closure factors. Under these pure conditions, the relative order of the components derived from the observed percentage data deterministically reflects the true physical ordering, allowing for the exact calculation of the odds ratio as a definitive value for the study. The resulting odds ratio can be classified into three distinct categories based on its magnitude relative to 1: a negative association (< 1), complete independence (= 1), and a positive association (> 1).

Why Log-Ratio Transformations Fail Even for Solely Positive Compositional Data When there are three or more components, there are three or more possible combinations of relative relationships. Therefore, with two components, the ratio between them can be defined as the odds; however, with three or more components, while the ratio between components is mathematically calculable, it lacks a generalized meaning. In conclusion, a logarithmic ratio transformation is not well defined, for compositional data consisting solely of positive three or more components.

Simplicial sample space

In general, John Aitchison defined compositional data to be proportions of some whole in 1982. In particular, a compositional data point (or composition for short) can be represented by a real vector with positive components. The sample space of compositional data is a simplex: 𝒮D={𝐱=[x1,x2,…,xD]∈ℝD|xi>0,i=1,2,…,D;∑i=1Dxi=κ}. The only information is given by the ratios between components, so the information of a composition is preserved under multiplication by any positive constant. Therefore, the sample space of compositional data can always be assumed to be a standard simplex, i.e. κ=1. In this context, normalization to the standard simplex is called closure and is denoted by 𝒞[⋅]: 𝒞[x1,x2,…,xD]=[x1∑i=1Dxi,x2∑i=1Dxi,…,xD∑i=1Dxi], where D is the number of parts (components) and [⋅] denotes a row vector.

Aitchison geometry The simplex can be given the structure of a vector space in several different ways. The following vector space structure is called Aitchison geometry or the Aitchison simplex and has the following operations:

Perturbation (vector addition)

x⊕y=[x1y1∑i=1Dxiyi,x2y2∑i=1Dxiyi,…,xDyD∑i=1Dxiyi]=C[x1y1,…,xDyD]∀x,y∈SD Powering (scalar multiplication)

α⊙x=[x1α∑i=1Dxiα,x2α∑i=1Dxiα,…,xDα∑i=1Dxiα]=C[x1α,…,xDα]∀x∈SD,α∈ℝ Inner product

⟨x,y⟩=12D∑i=1D∑j=1Dlog⁡xixjlog⁡yiyj∀x,y∈SD Endowed with those operations, the Aitchison simplex forms a (D−1)-dimensional Euclidean inner product space. The uniform composition [1D,…,1D] is the zero vector.

Orthonormal bases Since the Aitchison simplex forms a finite dimensional Hilbert space, it is possible to construct orthonormal bases in the simplex. Every composition x can be decomposed as follows

x=⨁i=1D−1xi∗⊙ei where e1,…,eD−1 forms an orthonormal basis in the simplex. The values xi∗,i=1,2,…,D−1 are the (orthonormal and Cartesian) coordinates of x with respect to the given basis. They are called isometric log-ratio coordinates (ilr⁡).

Linear transformations There are three well-characterized isomorphisms that transform from the Aitchison simplex to real space. All of these transforms satisfy linearity as given below.

Logarithm of the odds ratio or Additive log ratio transform The logarithm of the odds ratio is also known as the additive log ratio (alr). The additive log ratio (alr) transform is an isomorphism where alr⁡:SD→ℝD−1. This is given by

… excerpt ends here. Continue reading the full article.

Illustrations

Compositional data: A representation of a tree in terms of its orthogonal components. l represents an internal node, an element of the orthonormal basis. This is a precursor to using the tree as a scaffold for the ilr transform
A representation of a tree in terms of its orthogonal components. l represents an internal node, an element of the orthonormal basis. This is a precursor to using the tree as a scaffold for the ilr transform

Worked examples

Example 1 — a first encounter with Compositional data

Start with the simplest possible case. Write down what Compositional data claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Compositional data before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Compositional data ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Compositional data

In research
Compositional data appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Compositional data in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Compositional data is common in secondary-school and first-year university syllabi. It links to neighbouring topics Statistical data types, so understanding it makes those chapters shorter.
In everyday life
Look for Compositional data outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Compositional data” →

How to study Compositional data in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Compositional data means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Compositional data out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Compositional data in simple terms?

In statistics, compositional data are quantitative descriptions of the parts of some whole, conveying relative information. Mathematically, compositional data is represented by points on a simplex.

Why does Compositional data matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Compositional data?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Compositional data.

Tags

  • Statistical data types

Keep exploring