Documentation

TauCeti.Probability.Distributions.Bernoulli

Elementary theory of the Bernoulli distribution #

This file computes the elementary moments and transforms of the real-valued Bernoulli 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 #

@[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.