Documentation

TauCeti.Probability.Distributions.Tilted

Exponential tilts of the Gaussian, gamma, Poisson, and binomial laws #

When exp (t * x) is μ-integrable, tilting a law μ on ℝ or ℕ by exp (t * x) gives the probability law with density exp (t * x) / ∫ exp (t * y) ∂μ with respect to μ; otherwise Measure.tilted returns the zero measure. Each of the four families below is closed under this operation, and the tilt acts on the parameters as follows.

The continuous identities compare densities through TauCeti.tilted_withDensity, and the discrete ones compare singleton masses through TauCeti.tilted_singleton; in each case the normalizing constant is the family's known moment-generating function.

References #

Multiplying the Gaussian density of N(m, v) by exp (t * x) divided by the moment-generating function exp (m t + v t² / 2) gives the density of N(m + v t, v). At variance zero both densities vanish.

@[simp]

Exponential tilting of a Gaussian law shifts its mean. Tilting N(m, v) by exp (t * x) gives N(m + v t, v); at variance zero both sides are the point mass at m.

Integrating the exponential weight exp (t * x) against N(m, v) over a set s gives the moment-generating function exp (m t + v t² / 2) times the mass of s under the tilted law N(m + v t, v).

theorem TauCeti.Probability.gammaMeasure_tilted_mul {a r t : ℝ} (ha : 0 < a) (hr : 0 < r) (ht : t < r) :

Exponential tilting of a gamma law lowers its rate. For t < r, tilting the gamma law of shape a and rate r by exp (t * x) gives the gamma law of shape a and rate r - t.

@[simp]

Exponential tilting of a Poisson law scales its rate. Tilting the native Poisson law of rate r by exp (t * n) gives the Poisson law of rate r * exp t; at rate zero both sides are the point mass at 0.

theorem TauCeti.Probability.binomial_tilted_mul (n : ℕ) (p : ↑unitInterval) (t : ℝ) {q : ↑unitInterval} (hq : ↑q = ↑p * Real.exp t / (1 - ↑p + ↑p * Real.exp t)) :

Exponential tilting of a binomial law. Tilting the native binomial law with n trials and success probability p by exp (t * k) gives the binomial law with n trials and success probability q = p * exp t / (1 - p + p * exp t). The boundary cases p = 0 and p = 1 are included, where q = p.