InformationTheory.Shannon.FisherInfo.Basic
Fisher information density helpers #
Density-based regularity predicates and score-function lemmas underpinning the Fisher
information development. The score function reuses Mathlib's logDeriv f := deriv f / f
(Mathlib/Analysis/Calculus/LogDeriv.lean), which is definitionally the score of a
density f.
Main definitions #
IsRegularDensity— the regularity predicate (Cover–Thomas) bundling the differentiability, positivity, tail-vanishing, and integrability conditions on a smooth representative of the PDF.
Main statements #
integral_logDeriv_pdf_eq_zero— the score functionlogDeriv density · densityhas zero integral overℝ.
Implementation notes #
The Fisher information itself is defined in FisherInfo/OfDensity.lean (fisherInfoOfDensity) and
FisherInfo/DeBruijn.lean (fisherInfoOfMeasureV2); this file holds only the
density-based helpers that do not reference those definitions.
InformationTheory.Shannon.IsRegularDensity
sourceThe regularity predicate of Cover–Thomas, bundling the differentiability,
positivity, tail-vanishing, and integrability conditions needed for
integral_logDeriv_pdf_eq_zero. It is exposed as a predicate to be discharged downstream
rather than verified for a general random variable X.
Since MeasureTheory.pdf X P volume is defined only up to a.e. equivalence, pointwise
smoothness and positivity conditions cannot be stated on the PDF itself. The structure
therefore carries a chosen smooth representative density : ℝ → ℝ together with the
a.e.-equality pdf_ae_eq, and states the pointwise regularity conditions on density.
A smooth representative of the PDF (
(pdf X P volume x).toRealis a.e.-equal to this representative, seepdf_ae_eq).- pdf_ae_eq : (fun (x : ℝ) => (MeasureTheory.pdf X P MeasureTheory.volume x).toReal) =ᵐ[MeasureTheory.volume] self.density
(pdf X P volume).toRealequals the smooth representativedensitya.e. The representative is differentiable on all of
ℝ.The representative is strictly positive everywhere (so
logDerivis well-defined).The representative tends to
0at-∞.The representative tends to
0at+∞.The derivative of the representative is Lebesgue-integrable on all of
ℝ.The derivative integrates to
0overℝ(the boundary difference ofdensity, which vanishes by the tail conditions). A regularity consequence equivalent to FTC plus tail-vanishing on the half-lines, discharged downstream viaMeasureTheory.integral_deriv_eq_subor its improper variants.
Instances For
Used by
InformationTheory.Shannon.integral_logDeriv_pdf_eq_zero
sourceThe score function has zero expectation (Cover–Thomas). For the smooth
representative density of IsRegularDensity, the integral of
logDeriv density · density = deriv density over ℝ is 0. Stated on the
representative h_reg.density; combine with h_reg.pdf_ae_eq to recast in terms of
(pdf X P volume).toReal via an a.e.-integral congruence.
@audit:ok