Compositional data


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.

Ternary plot

In three variables, 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.

Simplicial sample space

In general, John Aitchison defined compositional data to be proportions of some whole in 1982. In particular, a compositional data point can be represented by a real vector with positive components. The sample space of compositional data is a simplex:
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.. In this context, normalization to the standard simplex is called closure and is denoted by :
where D is the number of parts and denotes a row vector.

Aitchison geometry

The simplex can be given the structure of a real 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
; Powering
; Inner product
Under these operations alone, it is sufficient to show that the Aitchison simplex forms a -dimensional Euclidean vector space.

Orthonormal bases

Since the Aitchison simplex forms a finite dimensional Hilbert space, it is possible to construct orthonormal bases in the simplex. Every composition can be decomposed as follows
where forms an orthonormal basis in the simplex. The values are the coordinates of with respect to the given basis. They are called isometric log-ratio coordinates.

Linear transformations

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

Additive logratio transform

The additive log ratio transform is an isomorphism where. This is given by
The choice of denominator component is arbitrary, and could be any specified component.
This transform is commonly used in chemistry with measurements such as pH. In addition, this is the transform most commonly used for multinomial logistic regression. The alr transform is not an isometry, meaning that distances on transformed values will not be equivalent to distances on the original compositions in the simplex.

Center logratio transform

The center log ratio transform is both an isomorphism and an isometry where
Where is the geometric mean of. The inverse of this function is also known as the softmax function commonly used in neural networks.

Isometric logratio transform

The isometric log ratio transform is both an isomorphism and an isometry where
There are multiple ways to construct orthonormal bases, including using the Gram–Schmidt orthogonalization or singular-value decomposition of clr transformed data.
Another alternative is to construct log contrasts from a bifurcating tree. If are given a bifurcating tree, we can construct a basis from the internal nodes in the tree.
Each vector in the basis would be determined as follows
The elements within each vector are given as follows
where are the respective number of tips in the corresponding subtrees shown in the figure. It can be shown that the resulting basis is orthonormal
Once the basis is built, the ilr transform can be calculated as follows
where each element in the ilr transformed data is of the following form
where and are the set of values corresponding to the tips in the subtrees and

Examples