Zulip Chat Archive
Stream: maths
Topic: How to define the Gaussian measure
Jason KY. (Jul 27 2022 at 13:13):
I think it would be nice to define the Gaussian measure sometime soon as it is important for the CLT and Brownian motions but it is not clear to me what is the best way of doing it. In particular, I would like Gaussian to be a predicate on the space measures on topological vector spaces and allow for degenerate Gaussians.
Here is what I'm thinking and how we might define it:
(1) A random variable is standard Gaussian (on ) if .
(2) A random variable is Gaussian if there exists some such that where is a standard Gaussian.
(3) A measure on is Gaussian if there exists some measure space such that where is a Gaussian.
(4) If is some space such that makes sense then a measure on is Gaussian if for all , is a Gaussian measure on .
I'm personally not very happy with step 3 since we need to choose a measure space. Is there a better way of defining the Gaussian that I'm overlooking?
Oliver Nash (Jul 27 2022 at 13:50):
I presume you've looked at https://mathoverflow.net/questions/407465/definition-of-infinite-dimensional-gaussian-random-variable
Oliver Nash (Jul 27 2022 at 13:51):
It looks to me like this provide a convenient alternative to your (3).
Jason KY. (Jul 27 2022 at 13:55):
Ah yes. I completely forgot about that mathoverflow page. Thanks!
Oliver Nash (Jul 27 2022 at 13:56):
I remember it because the answer was blessed by Hairer himself!
Sebastien Gouezel (Jul 27 2022 at 15:15):
First you should define the Gaussian measure with mean and variance on the real line, as the measure with a density (you will need #15106 to check that this a probability measure). Then, to say that a real-valued random variable is Gaussian you look at the image measure.
Jason KY. (Jul 27 2022 at 15:51):
But this definition wouldn't allow the degenerate Gaussian measure to be a Gaussian measure right?
Kalle Kytölä (Jul 27 2022 at 16:39):
I guess all agree (as Sébastien explicitly said) that a gaussian random variable is a random variable whose distribution, i.e., the pushed-forward underlying probability measure to , is a gaussian measure on . And gaussianity in more general vector spaces than is reduced to the case of (like in the linked Stack Exchange discussion).
So I interpret Jason's question as: "how do we define the gaussian measures on ?"
I'd have no qualms about a definition by density, if it wasn't for degenerate cases (a gaussian of zero variance has no density!). The degenerate cases should be considered gaussian (otherwise the reduction of more general gaussians to real gaussians doesn't work). In fact degenerate gaussians become even more important in more than 1-dimensional case, since gaussians are often supported on proper subspaces (and are thus degenerate in some directions). (E.g., the 2D gaussian free field on essentially Sobolev-regularity subspace of whatever space you a priori build it in.)
For this reason I'd much prefer the definition by characteristic functions to the definition by densities --- no ad hoc treatment of the case would be needed. (And moreover, the characteristic function is anyway how calculations with gaussians are done.)
Of course we don't have characteristic functions yet, so this is not feasible in short term. Good enough Fourier analysis would probably be needed for characteristic functions, since the mathlib approach would not be to do the Fourier transforms of finite measures on the real line separately from the Fourier transforms of distributions, say.
Jason's "shift and scale a standard Gaussian" is a way to circumvent the problem of degenerate Gaussians in dimension one. I think it is better than the "only density" definition in that it includes the degenerate case and one can therefore safely build multidimensional gaussians and gaussian processes on that definition. But in my opinion it is not as elegant as the characteristic function definition...
Sebastien Gouezel (Jul 27 2022 at 17:47):
If you want a Dirac mass to be Gaussian (this depends on the conventions), then you can allow it if you like and define the Gaussian measure with mean and variance to be the Dirac mass at .
Sebastien Gouezel (Jul 27 2022 at 17:51):
Fourier transform is something complicated to implement cleanly, as there are a lot of different natural settings (finite measures, distributions, integrable functions, functions in the Schwartz class) where the Fourier transform lives in different spaces (functions, distributions, functions in the Schwarz class, and so on). So I wouldn't oppose an ad hoc definition of characteristic functions and building a minimal API (up to the Lévy convergence theorem, say), independently of a more general theory.
Jason KY. (Jul 27 2022 at 18:55):
Sure, that works!
Oliver Nash (Sep 29 2023 at 12:17):
Earlier today @Kevin Buzzard asked me if we had the definition of Gaussian measures yet.
It looks like @Jason KY. showed us how to do it last year (I've tweaked his code and translated to Lean 4, any mistakes are likely mine):
import Mathlib.MeasureTheory.Measure.Lebesgue.Basic
-- Based on Jason's work:
-- https://github.com/leanprover-community/mathlib/commit/b7048541b780ba86f8643f339309adb96eb0f5fe
-- https://github.com/leanprover-community/mathlib/commit/fbe2eeeaa939e56fa904f19c63f81a36eee12b29
open ENNReal NNReal Real
noncomputable section
namespace MeasureTheory.Measure
def gaussianDensity (m s x : ℝ) : ℝ≥0∞ :=
ENNReal.ofReal <| (s * sqrt (2 * π))⁻¹ * exp (- 2⁻¹ * ((x - m) / s) ^ 2)
def realGaussian (m s : ℝ) :=
if s = 0 then dirac m else volume.withDensity (gaussianDensity m s)
-- Data: we need these
variable {E : Type*}
[AddCommGroup E] [Module ℝ E] [TopologicalSpace E] [MeasurableSpace E] (ν : Measure E)
-- Props: should some / all of these be included?
variable [ContinuousAdd E] [ContinuousSMul ℝ E] [LocallyConvexSpace ℝ E] [BorelSpace E]
[IsLocallyFiniteMeasure ν] [OuterRegular ν] (hν : InnerRegular ν IsCompact IsOpen)
def isGaussian : Prop :=
∀ l : E →L[ℝ] ℝ, ∃ m s, ν.map l = realGaussian m s
end MeasureTheory.Measure
Oliver Nash (Sep 29 2023 at 12:17):
But there was a question of whether we could instead use characteristic functions.
So I wonder: how far away are we from having characteristic functions? Maybe @Rémy Degenne has some idea?
Jason KY. (Sep 29 2023 at 12:21):
FYI, @Rémy Degenne has a repo defining the real gaussian here
Rémy Degenne (Sep 29 2023 at 12:22):
The real case was also done very similarly to what you just wrote by @Lorenzo Luccioli at lftcm. But it has not been PRed to mathlib (it's here: https://github.com/RemyDegenne/gaussian/blob/master/Gaussian/Gaussian.lean).
We are not far away from having characteristic functions. @Jason KY., @Peter Pfaffelhuber and I are working on that and we will add those very soon.
Rémy Degenne (Sep 29 2023 at 12:30):
And even if we don't have a Gaussian measure definition in mathlib, we already have computations related to it, like docs#fourier_transform_gaussian
Oliver Nash (Sep 29 2023 at 13:40):
Wow, this is all great news. Thanks!
Vincent Beffara (Sep 29 2023 at 13:51):
Is the plan to define the real valued Gaussian, and then to say that a measure is Gaussian iff it is mapped to a real Gaussian by any linear form? Ah sorry I should have read the code before asking ...
Oliver Nash (Sep 29 2023 at 13:56):
It's good to ask: the code is just one possibility, and questions like this https://mathoverflow.net/questions/123493/what-is-a-gaussian-measure suggest we could consider alternatives (though I'm not fit to judge).
Last updated: Dec 20 2023 at 11:08 UTC