ArticleslgStudy

mathematics

Bayes space

Bayes space 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 Bayes space rather than just read about it. In short: Bayes space is a function space defined as an equivalence class of measures with the same null-sets. Two measures are defined to be equivalent if they are proportional.

Bayes space — main illustration
Bayes space — illustration

Key takeaways

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

Reference excerpt

Bayes space is a function space defined as an equivalence class of measures with the same null-sets. Two measures are defined to be equivalent if they are proportional. The basic ideas of Bayes spaces have their roots in Compositional Data Analysis and the Aitchison geometry. Theoretical applications are mainly in statistics, specifically functional data analysis of density functions, aka density data analysis. Practical applications are in geochemistry, COVID-19 modelling, sediment analysis and developmental research. Alternative approaches to density analysis are based on the Wasserstein metric, often termed Wasserstein regression, have also been applied to medicine. The basic structure of the Bayes space is that of a vector space, with addition and multiplication being defined by perturbation and powering. The space is formed over a σ-finite reference/base measure, denoted λ or P depending on whether it is infinite or finite. Densities are considered as Radon-Nikodym derivatives of the measures with same null-sets as the base measure, and are equivalent if they are proportional. In case of finite base measures, Hilbert space structure can be achieved by defining a centered log-ratio transformation on the measures, mapping them to a subset of L2(P) consisting of functions integrating to 0.

For data analysis, density functions are typically estimated using so-called ZB-splines to smooth over a histogram of the data, using Kernel density estimation, or using a combination of the two.

Definitions and main results Consider a finite base measure P (not necessarily a probability measure) on a domain Ω. This may be a uniform distribution on a bounded interval, or it can be a Radon-Nikodym derivative of the Lebesgue measure (the Gaussian distribution, for example). In practice, Ω is often truncated to a bounded interval. If we take two densities f,g with respect to P, they are said to be B-equivalent if there exists a c>0 s.t f(x)=c⋅g(x), denoted f=Bg (the convention c⋅∞=∞ is used in cases where a measure is infinite). It can be shown that (=B) is an equivalence relation. The Bayes space B(P) is defined as the quotient space of all measures with the same null-sets in Ω as P under the equivalence relation (=B). The first challenge to analysing density functions is that B(P) is not linear space under ordinary addition and multiplication since the ordinary difference between two densities would not be non-negative everywhere. Like in the Aitchison geometry for finite dimensional data, perturbation and powering is defined for densities: Perturbation (f⊕g)(x)=Bf(x)⋅g(x) Powering α⊙f(x)=Bf(x)α where f(x), g(x) are densities in B(P) and α is some real number. It can be shown using the properties of multiplication and powering of real numbers that (B(P),⊕,⊙) forms a vector space over the real numbers. The definition of Bayes space does not strictly require a finite reference measure P. If Bayes space is defined over an infinite reference measure λ, it must be σ-finite (like the Lebesgue measure). The finite reference measure is, however, necessary for adding Hilbert space structure to a subset of B(P). Consider the subspace Bp(P)={f∈B(P)|∫Ω|log⁡(f(x))|pdP(x)<∞}. For p=2, this is a linear subspace and isometrically isomorphic to the Hilbert space L02(P)={g∈L2(P):∫Ωg(x)dP(x)=0} via the centered log-ratio (clr) transformation clr(f(x))=log⁡(f(x))−1P(Ω)∫log⁡(f(x))dP(x)∈L02(P). The subspace of log-square integrable functions is termed the Bayes Hilbert space. It can be shown that the clr transformation is a linear isomorphism between the two spaces. Defining an inner product on B2(P) as the inner product of the clr transformations will provide the Hilbert space structure for B2(P), obtaining the centered log-ratio transformation as a linear isometry. Specifically, this results in the Aitchison distance between two densities in the same Bayes Hilbert space d(f,g)=∫(clr(f(x))−clr(g(x)))2dP(x) which for densities with respect to the Lebesgue measure on an interval Ω=[a,b] "simplifies" to d(f,g)=∫ab([log(f(x))−1b−a∫ablog(f(x))dx]−[log(g(x))−1b−a∫ablog(g(x))dx])2dx.

Multivariate densities The measure P does not have to be univariate (one-dimensional), but can also be defined as a product measure on Cartesian products, characterising bivariate (two-dimensional) or multivariate densities. The geometric structure of Hilbert spaces can be used to decompose multivariate densities orthogonally into independent and interaction parts using the concept of "geometric marginals". This decomposition has relations to copula theory. The geometry in B2(P) defines norms on densities that can be used to quantify "relative simplicial deviance", which is measure of how much of a bivariate distribution can be explained by the interaction part; in the multivariate case the relative simplicial deviance can be generalised to the "information composition".

See also Compositional data analysis Functional data analysis Copulas Information geometry

References

Illustrations

Bayes space: Visualisation of clr-transfomrations of densities from Chi-squared distribution and Normal distribution, with truncations to (0,3) and (−2,5) respectively.
Visualisation of clr-transfomrations of densities from Chi-squared distribution and Normal distribution, with truncations to (0,3) and (−2,5) respectively.

Worked examples

Example 1 — a first encounter with Bayes space

Start with the simplest possible case. Write down what Bayes space 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 Bayes space 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 Bayes space 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 Bayes space

In research
Bayes space 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 Bayes space 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
Bayes space is common in secondary-school and first-year university syllabi. It links to neighbouring topics Statistical concepts, so understanding it makes those chapters shorter.
In everyday life
Look for Bayes space 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 “Bayes space” →

How to study Bayes space in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bayes space 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 Bayes space out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bayes space in simple terms?

Bayes space is a function space defined as an equivalence class of measures with the same null-sets. Two measures are defined to be equivalent if they are proportional.

Why does Bayes space 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 Bayes space?

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 Bayes space.

Tags

  • Statistical concepts

Keep exploring