The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V20. Probability

Mathlib.Probability.Notation

8 declarations. Mathlib docs · Source

Notations for probability theory

This file defines the following notations, for functions X,Y, measures P, Q defined on a measurable space m0, and another measurable space structure m with hm : m ≤ m0,

  • P[X] = ∫ a, X a ∂P
  • 𝔼[X] = ∫ a, X a
  • 𝔼[X | m]: conditional expectation of X with respect to the measure volume and the measurable space m. The similar P[X|m] for a measure P is defined in MeasureTheory.Function.ConditionalExpectation.Basic.
  • P⟦s | m⟧ = P[s.indicator (fun ω => (1 : ℝ)) | m], conditional probability of a set.
  • X =ₐₛ Y: X =ᵐ[volume] Y
  • X ≤ₐₛ Y: X ≤ᵐ[volume] Y
  • ∂P/∂Q = P.rnDeriv Q

We note that the notation ∂P/∂Q applies to three different cases, namely, MeasureTheory.Measure.rnDeriv, MeasureTheory.SignedMeasure.rnDeriv and MeasureTheory.ComplexMeasure.rnDeriv.

  • ℙ is a notation for volume on a measured space.

To use these notations, you need to use open scoped ProbabilityTheory or open ProbabilityTheory.

def ProbabilityTheory.«term𝔼[_|_]» E1 #

Lean.ParserDescr

𝔼[f | m] is the conditional expectation of f with respect to m.

def ProbabilityTheory.«term__[_]» E1 #

Lean.TrailingParserDescr

P[X] is the expectation of X under the measure P.

Note that this notation can conflict with the GetElem notation for lists. Usually if you see an error about ambiguous notation when trying to write l[i] for a list, it means that Lean could not find i < l.length, and so fell back to trying this notation as well.

def ProbabilityTheory.«term𝔼[_]» E1 #

Lean.ParserDescr

𝔼[X] is the expectation of X, defined as its Lebesgue integral.

def ProbabilityTheory.«term_⟦_|_⟧» E1 #

Lean.TrailingParserDescr

P⟦s | m⟧ is the conditional expectation of s with respect to m under measure P.

def ProbabilityTheory.«term_=ₐₛ_» E1 #

Lean.TrailingParserDescr

X =ₐₛ Y if X = Y almost surely.

def ProbabilityTheory.«term_≤ₐₛ_» E1 #

Lean.TrailingParserDescr

X ≤ₐₛ Y if X ≤ Y almost surely.

def ProbabilityTheory.«term∂_/∂_» E1 #

Lean.ParserDescr

∂P/∂Q is the Radon–Nikodym derivative of P with respect to Q.

def ProbabilityTheory.termℙ E1 #

Lean.ParserDescr

ℙ is a notation for volume on a measured space.