Documentation

TauCeti.Probability.Distributions.Bernoulli.Basic

Elementary theory of the Bernoulli distribution #

This file computes the elementary moments and transforms of the real-valued Bernoulli law Ber((1 : ℝ), 0, p), together with the probability-generating function of the native ℕ-valued law Ber((1 : ℕ), 0, p). It uses Mathlib's convention that the value 1 has mass p and the value 0 has mass 1 - p.

Main results #

References #

A Bernoulli law with a nonzero success value and positive success probability has mass strictly less than one at zero.

@[simp]

The probability-generating function of a Bernoulli distribution.

The real cast of a native Bernoulli variable has the corresponding real Bernoulli law.

A real-cast coordinate under a product of native Bernoulli laws has the corresponding real Bernoulli law.

@[simp]

The mean of the real-valued Bernoulli law with success probability p is p.

@[simp]

The variance of the real-valued Bernoulli law with success probability p is p(1-p).

A real-valued Bernoulli random variable with success probability p has mean p.

A real-valued Bernoulli random variable with success probability p has variance p(1-p).

@[simp]

The moment-generating function of the real-valued Bernoulli law.

The moment-generating function of a real-valued Bernoulli law is strictly positive.

@[simp]

The cumulant-generating function of the real-valued Bernoulli law.

@[simp]

The characteristic function of the real-valued Bernoulli law.