Repository navigation
Identification: exponential families with a sufficient statistic - #7
Merged
Merged
Conversation
Layer 1.2 now takes a probability measure on any measurable space and a measurable statistic T, with the natural exponential families of measures on ℝ as the case T = id. The Poisson family is stated on ℕ with T = Nat.cast (no pushforward), the Gaussian laws of known mean are added as a family with T x = (x - m)², and the Cramér–Chernoff bound takes the dominated form of the Refactors roadmap, Layer 0.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0196ftMTTvboLE9rrbLUFss1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Amends the Identification roadmap, Layer 1.2, so that exponential families take a probability measure
ρon any measurable space𝓧and a measurable statisticT : 𝓧 → ℝ, asρ.expFamily T η = ρ.tilted (fun x ↦ η * T x). The natural exponential families of measures onℝare the caseT = id. Companion to #5 (the Refactors roadmap, Layers 0.2 and 0.3, which restate the merged exponential-family code in this generality).Why. The roadmap's identification tasks already take observations in any measurable space. Exponential families fixed to
ℝwith the identity statistic would make every later layer built on them, from GLR statistics and deviation inequalities to Track-and-Stop, live in the narrower setting. The proofs work unchanged with a statisticT. Mathlib'scgf,tiltedand LMLExplore'sstrictMonoOn_deriv_cgfare already stated for a general random variable.Changes (only
LMLRoadmaps/Identification/):𝓧with a statisticT;ψ = cgf T ρ; strict monotonicity whenTis notρ-a.e. constant. The names areexpFamily,expFamilyMeans,natParamandexpFamilyDiv.ℕwithT = Nat.cast, Mathlib's nativepoissonMeasure, with no pushforward. The Gaussian laws of known meanmare added as a family withT x = (x - m)², means the variancesv, andd(v, v') = (v/v' - 1 - log(v/v'))/2. These two give the generality concrete uses.(ρ_a, T_a)on a common observation space.Suggested.lean.natExpFamily/klDiv_natExpFamilybecomeexpFamily/klDiv_expFamily, and the Track-and-Stop signature usesexpFamily (ρ a) id η.Suggested.leanbuilds.Drafted with Claude Opus 5.5 at the request of the code owner.
🤖 Generated with Claude Code
https://claude.ai/code/session_0196ftMTTvboLE9rrbLUFss1