InformationTheory.Shannon.FisherInfo.OfDensity
Fisher information of a density #
The Fisher information fisherInfoOfDensity f := ∫⁻ (logDeriv f x)² · f x dx takes the
density f : ℝ → ℝ as an explicit argument rather than extracting it from a measure via
Measure.rnDeriv. The Radon–Nikodym derivative is defined via Classical.choose of the
Lebesgue decomposition and returns a generically non-differentiable representative, so a
measure-keyed definition collapses logDeriv to 0 a.e.; supplying the density directly
avoids that.
Main definitions #
fisherInfoOfDensity— the Fisher information of a density (ℝ≥0∞-valued).fisherInfoOfDensityReal— its real-valued projection.IsRegularDensityV2— the regularity predicate with the densityfas its primary field.
Main statements #
integral_logDeriv_density_eq_zero— the score function has zero expectation.fisherInfoOfDensity_gaussianPDFReal— the Gaussian closed formfisherInfoOfDensity (gaussianPDFReal m v) = ENNReal.ofReal (1 / v).
InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity
sourceThe Fisher information of a density f : ℝ → ℝ, defined as
∫⁻ (logDeriv f x)² · f x dx with logDeriv f := deriv f / f Mathlib's score function.
Valued in ℝ≥0∞ to capture +∞ for irregular families; use fisherInfoOfDensityReal or
.toReal to project to ℝ when finite.
Equations
- InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity f = ∫⁻ (x : ℝ), ENNReal.ofReal (logDeriv f x ^ 2) * ENNReal.ofReal (f x)
Instances For
Used by
InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity_nonneg
sourceFisher information of a density is non-negative (trivially, as ℝ≥0∞).
Used by
InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity_zero
sourceThe Fisher information of the constant-zero density is 0.
Used by
InformationTheory.Shannon.FisherInfo.fisherInfoOfDensityReal
sourceReal-valued projection of fisherInfoOfDensity.
Equations
Instances For
Used by
InformationTheory.Shannon.FisherInfo.fisherInfoOfDensityReal_nonneg
sourceUsed by
InformationTheory.Shannon.FisherInfo.IsRegularDensityV2
sourceThe regularity predicate on a density f, bundling the differentiability, positivity,
tail-vanishing, and integrability conditions needed for
integral_logDeriv_density_eq_zero. No measure is mentioned: the link to a random variable
X is established separately via an a.e.-equality between f and (pdf X P volume).toReal.
fis differentiable on all ofℝ.fis strictly positive everywhere (sologDeriv fis well-defined).ftends to0at-∞.ftends to0at+∞.deriv fis Lebesgue-integrable on all ofℝ.deriv fintegrates to0overℝ, a regularity consequence of FTC plus tail-vanishing on the half-lines.
Instances For
Used by
InformationTheory.Shannon.FisherInfo.integral_logDeriv_density_eq_zero
sourceThe score function has zero expectation: for a regular density f, the integral of
logDeriv f · f = deriv f over ℝ is 0.
@audit:ok
Used by
Gaussian closed form #
InformationTheory.Shannon.FisherInfo.integrable_logDeriv_sq_mul_gaussianPDFReal
source((x - m) / v)² · gaussianPDFReal m v x is Lebesgue-integrable for v ≠ 0.
Used by
InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity_gaussianPDFReal
sourceThe Gaussian Fisher information in closed form:
fisherInfoOfDensity (gaussianPDFReal m v) = ENNReal.ofReal (1 / v), obtained by
supplying the Gaussian PDF directly and evaluating the integral via the variance identity.
Used by
InformationTheory.Shannon.FisherInfo.fisherInfoOfDensityReal_gaussianPDFReal
sourceReal-valued projection of the Gaussian Fisher info closed form.