Documentation

TauCeti.Probability.Distributions.Rademacher.Basic

The Rademacher distribution #

The Rademacher law is the probability measure on ℝ assigning equal mass to -1 and 1. This file gives its masses and support, cumulative distribution and quantile, natural moments, and moment- and characteristic-function formulas, and the fact that a variable with this law is almost surely ±1.

The Rademacher law, assigning probability 1 / 2 to each of -1 and 1.

Instances For

    The Rademacher law is the equally weighted sum of the Dirac masses at -1 and 1.

    The Rademacher law is invariant under reflection in the origin.

    theorem TauCeti.Probability.integral_rademacherMeasure {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (f : ℝ → E) :
    ∫ (x : ℝ), f x ∂rademacherMeasure = (1 / 2) • f (-1) + (1 / 2) • f 1

    Integration against the Rademacher law is the average of evaluation at -1 and 1.

    @[simp]

    Every function is integrable with respect to the finitely supported Rademacher law.

    @[simp]

    Each of the two atoms of the Rademacher law has mass 1 / 2, and every other singleton has mass zero.

    @[simp]

    The topological support of the Rademacher law consists exactly of its two atoms.

    @[simp]

    The cumulative distribution function of the Rademacher law.

    @[simp]

    The interior lower quantile of the Rademacher law is -1 on the lower half of the unit interval and 1 on the upper half.

    The lower quantile tends to the lower endpoint of the Rademacher support as the level tends to zero from above.

    The lower quantile tends to the upper endpoint of the Rademacher support as the level tends to one from below.

    Every natural power is integrable under the Rademacher law.

    @[simp]

    The nth raw moment of the Rademacher law is one for even n and zero for odd n.

    @[simp]

    The Rademacher law is centered.

    Every exponential moment of the Rademacher law is integrable.

    @[simp]

    The exponential-integrability domain of the Rademacher law is all of ℝ.

    @[simp]

    The moment-generating function of the Rademacher law is the hyperbolic cosine.

    @[simp]

    The cumulant-generating function of the Rademacher law is the logarithm of the hyperbolic cosine.

    @[simp]

    The characteristic function of the Rademacher law is the cosine.

    A random variable with the Rademacher law is almost everywhere measurable: an unmeasurable pushforward is 0 or a Dirac mass, and neither charges both atoms ±1.

    A random variable with the Rademacher law equals ±1 almost surely.