InformationTheory

InformationTheory.Shannon.FisherInfo.OfDensity

source

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 #

Main statements #

noncomputable def

InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity

source
(f : ) :

The 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
Instances For
    Used by
      theorem

      InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity_nonneg

      source

      Fisher information of a density is non-negative (trivially, as ℝ≥0∞).

      Used by
        theorem

        InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity_zero

        source
        :
        (fisherInfoOfDensity fun (x : ) => 0) = 0

        The Fisher information of the constant-zero density is 0.

        Used by
          noncomputable def

          InformationTheory.Shannon.FisherInfo.fisherInfoOfDensityReal

          source
          (f : ) :

          Real-valued projection of fisherInfoOfDensity.

          Equations
          Instances For
            Used by
              theorem

              InformationTheory.Shannon.FisherInfo.fisherInfoOfDensityReal_nonneg

              source
              Used by
                structure

                InformationTheory.Shannon.FisherInfo.IsRegularDensityV2

                source
                (f : ) :

                The 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.

                Instances For
                  Used by
                    theorem

                    InformationTheory.Shannon.FisherInfo.integral_logDeriv_density_eq_zero

                    source
                    {f : } (h_reg : IsRegularDensityV2 f) :
                    (x : ), logDeriv f x * f x = 0

                    The 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 #

                      theorem

                      InformationTheory.Shannon.FisherInfo.integrable_logDeriv_sq_mul_gaussianPDFReal

                      source
                      (m : ) {v : NNReal} (hv : v 0) :

                      ((x - m) / v)² · gaussianPDFReal m v x is Lebesgue-integrable for v ≠ 0.

                      Used by
                        theorem

                        InformationTheory.Shannon.FisherInfo.fisherInfoOfDensity_gaussianPDFReal

                        source

                        The 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
                          theorem

                          InformationTheory.Shannon.FisherInfo.fisherInfoOfDensityReal_gaussianPDFReal

                          source

                          Real-valued projection of the Gaussian Fisher info closed form.

                          Used by