The cumulative distribution function of a real Gaussian law #
This file computes ProbabilityTheory.cdf (gaussianReal m v) in closed form. For a nonzero
variance the answer is (1 + erf ((x - m) / √(2 * v))) / 2, and at the singular boundary
v = 0 the law is a Dirac mass, with the step-function cdf.
These are the Gaussian entries of the closed-form cdf target of
TauCetiRoadmap/StandardDistributions/README.md, Layer 2.
The computation goes through the interval integral of gaussianPDFReal, which is an affine
change of variables away from the integral defining TauCeti.Real.erf; the improper integral
over Set.Iic x is then the limit of those interval integrals, using
TauCeti.Real.tendsto_erf_atBot for the contribution at -∞.
Main declarations #
TauCeti.Probability.intervalIntegral_gaussianPDFReal— the Gaussian density integrates to a difference of error-function values.TauCeti.Probability.integral_Iic_gaussianPDFReal— the same over a left half-line.TauCeti.Probability.cdf_gaussianReal_eq— the closed-form cdf for a nonzero variance.TauCeti.Probability.cdf_gaussianReal_zero_one— the standard Gaussian cdf.TauCeti.Probability.cdf_gaussianReal_eq_cdf_zero_one— standardizationΦ ((x - m) / √v).TauCeti.Probability.cdf_gaussianReal_zero— the cdf at the singular boundaryv = 0.TauCeti.Probability.cdf_gaussianReal_zero_one_neg— the symmetryΦ (-x) = 1 - Φ xof the standard Gaussian cdf.TauCeti.Probability.gaussianReal_preimage_Ioo_pos,TauCeti.Probability.measureReal_gaussianReal_preimage_Iic_lt,TauCeti.Probability.measureReal_gaussianReal_pos— for a nonzero variance every nondegenerate interval with extended bounds has positive mass.TauCeti.Probability.measureReal_gaussianReal_eq_cdf_zero_one— the mass of an interval with finite bounds as a difference of standard Gaussian cdf values.TauCeti.Probability.cdf_gaussianReal_self— for a nonzero variance the cdf equals1 / 2at the mean.TauCeti.Probability.cdf_gaussianReal_pos,TauCeti.Probability.cdf_gaussianReal_lt_one— for a nonzero variance the cdf takes values strictly between0and1.TauCeti.Probability.strictMono_cdf_gaussianReal— for a nonzero variance the cdf is strictly increasing.TauCeti.Probability.hasDerivAt_cdf_gaussianReal— the cdf has the Gaussian density as its derivative.TauCeti.Probability.hasDerivAt_measureReal_gaussianReal_preimage_Iic,TauCeti.Probability.hasDerivAt_measureReal_gaussianReal— as a function of the mean, the mass up to an extended bound, and the mass of an interval with extended bounds, have the Gaussian densities at the bounds (TauCeti.Probability.gaussianPDFRealEReal) as derivative.TauCeti.Probability.measureReal_Ioi_gaussianReal— the upper tail, in terms ofTauCeti.Real.erfc.TauCeti.Probability.measureReal_Ioi_gaussianReal_eq_cdf— the upper tail, in terms of the standard Gaussian cdf.TauCeti.Probability.mul_gaussianPDFReal_add_le_measureReal_Ioi_gaussianReal— a lower bound for the upper tail to the right of the mean, by the density at a later point.TauCeti.Probability.gaussianPDFReal_add_one_le_measureReal_map_abs_Ioi— the corresponding lower bound for the upper tail of the absolute value of a standard Gaussian.TauCeti.Probability.measureReal_le_of_hasLaw_gaussianReal— the random-variable corollary.
On an interval, the Gaussian density integrates to the difference of two error-function
values. Both sides vanish at zero variance; otherwise the affine change of variables
t ↦ (t - m) / √(2 * v) turns the integral into the one defining TauCeti.Real.erf.
Over a left half-line, the Gaussian density integrates to
(1 + erf ((x - m) / √(2 * v))) / 2.
The cumulative distribution function of the standard Gaussian law.
A Gaussian cumulative distribution function of nonzero variance is the standard one at the
standardized argument: P(X ≤ x) = Φ ((x - m) / √v) for X ∼ N(m, v).
At positive variance, the Gaussian mass up to an extended bound is strictly increasing in the bound.
At the singular boundary v = 0 the Gaussian law is a Dirac mass, and its cumulative
distribution function is the corresponding step function.
The standard Gaussian cumulative distribution function is symmetric about zero:
Φ (-x) = 1 - Φ x.
A Gaussian law with nonzero variance has its mean as median: its cumulative distribution
function takes the value 1 / 2 at the mean.
The cumulative distribution function of a Gaussian law with nonzero variance is positive.
The cumulative distribution function of a Gaussian law with nonzero variance is less than one.
The cumulative distribution function of a Gaussian law with nonzero variance is strictly increasing.
The cumulative distribution function of a Gaussian law with nonzero variance has the Gaussian density as its derivative.
At positive variance, the Gaussian mass of a set between the open and the closed interval
with finite bounds l ≤ r is a difference of standard Gaussian cdf values.
At positive variance, the Gaussian mass up to an extended bound e, as a function of the
mean, has derivative minus the Gaussian density at e.
At positive variance, the Gaussian mass of a set between the open and the closed interval with
extended bounds l ≤ r, as a function of the mean, has derivative the difference of the Gaussian
densities at the two bounds.
The upper tail of a Gaussian law with nonzero variance is a value of the standard Gaussian
cumulative distribution function: P(X > x) = Φ ((m - x) / √v) for X ∼ N(m, v).
Over a right half-line, a Gaussian density of nonzero variance integrates to a value of the
standard Gaussian cumulative distribution function:
∫ t in Ioi x, N(m, v)(t) = Φ ((m - x) / √v).
A lower bound for the upper tail of a Gaussian law: beyond a point s to the right of the
mean, the interval (s, s + t] alone carries mass at least its length t times the density at
its right end (for t < 0 the left side is nonpositive and the bound is trivial).
The absolute value of a standard Gaussian exceeds s ≥ 0 with probability at least the
standard Gaussian density at s + 1.
A random variable with a Gaussian law of nonzero variance has the error-function cumulative distribution function.