LASSO tail inequality when a fraction of the samples is i.i.d.
ProvedBastaniBayati.LassoBandit.lasso_tail_inequality_iid_fractionConsider the linear model with rows indexed by times on a filtered probability space: row is -measurable, noise is -measurable and -subgaussian conditionally on (), every realization has (), and . Let be finite sets of times such that the rows are i.i.d. with law , and let for a constant . Let and .
If , , and , then every LASSO estimator trained on the samples in satisfies
This is Lemma 1 of Bastani and Bayati: the LASSO converges on a sample that is only partly i.i.d., provided a constant fraction is. It is the step from Proposition 1 to the forced-sample and all-sample estimators.
Formalization Note and are fixed (deterministic) sets of times, the literal reading of the lemma; the paper later applies it with random sets. , are those of the Constants definition with . Noise and boundedness are assumed on the times in only.
import Mathlib import Definitions.Def_BastaniBayati_LassoBandit_Basic import Definitions.Def_BastaniBayati_LassoBandit_Constants open MeasureTheory ProbabilityTheory Finset open scoped NNReal ENNReal
namespace BastaniBayati.LassoBandit
/-- **Lemma 1**, Bastani–Bayati, p. 286 (setting of §4.1, pp. 285–286), with `𝒜' ⊆ 𝒜` fixed
index sets. Linear model `W = Zβ + ε` on a filtered probability space: row `Z_t` is
`ℱ_t`-measurable, `ε_t` is `ℱ_{t+1}`-measurable and `σ`-subgaussian conditionally on `ℱ_t`,
`‖Z_t‖_∞ ≤ x_max` for every realization (`t ∈ 𝒜`), `‖β‖₀ = s₀ ≥ 1`. The rows `{Z_t | t ∈ 𝒜'}` are
i.i.d. with law `𝒫_Z`, and `Σ ≡ E_{Z∼𝒫_Z}[ZZᵀ] ∈ 𝒞(supp(β), φ₁)` with `φ₁ > 0`. For `p > 0`,
`χ > 0`, if `d > 1`, `|𝒜'|/|𝒜| ≥ p/2`, `|𝒜| ≥ 6 log d/(p C₂(φ₁)²)` and
`λ = λ(χ, φ₁√p/2) = χφ₁²p/(16s₀)`, then every LASSO estimator `β̂(𝒜, λ)` on the samples in `𝒜`
satisfies `Pr[‖β̂(𝒜, λ) − β‖₁ > χ] ≤ 2 exp[−C₁(φ₁√p/2)|𝒜|χ² + log d] + exp[−p C₂(φ₁)²|𝒜|/2]`. -/
theorem lasso_tail_inequality_iid_fraction {Ω : Type*} [mΩ : MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] {d : ℕ} (ℱ : Filtration ℕ mΩ) (Z : ℕ → Ω → Fin d → ℝ)
(ε : ℕ → Ω → ℝ) (β : Fin d → ℝ) (σ : ℝ≥0) (xmax : ℝ) (s0 : ℕ) (PZ : Measure (Fin d → ℝ))
(A A' : Finset ℕ) (φ1 p χ : ℝ) (βhat : Ω → Fin d → ℝ)
(hσ : 0 < σ) (hxmax : 0 < xmax) (hs0 : (supp β).card = s0) (hs0pos : 1 ≤ s0)
(hφ1 : 0 < φ1) (hp : 0 < p) (hχ : 0 < χ) (hd : 1 < d)
(hZ_adapted : ∀ t ∈ A, Measurable[ℱ t] (Z t))
(hε_meas : ∀ t ∈ A, Measurable[ℱ (t + 1)] (ε t))
(hε_int : ∀ t ∈ A, ∀ s : ℝ, Integrable (fun ω => Real.exp (s * ε t ω)) P)
(hε_subg : ∀ t ∈ A, ∀ s : ℝ,
P[fun ω => Real.exp (s * ε t ω) | ℱ t] ≤ᵐ[P] fun _ => Real.exp ((σ : ℝ) ^ 2 * s ^ 2 / 2))
(hbound : ∀ t ∈ A, ∀ ω, ‖Z t ω‖ ≤ xmax)
(hA'A : A' ⊆ A)
(hiid : iIndepFun (fun t : A' => Z t) P) (hlaw : ∀ t ∈ A', P.map (Z t) = PZ)
(hSigma : (fun a b => ∫ z, z a * z b ∂PZ : Matrix (Fin d) (Fin d) ℝ) ∈ compatSet (supp β) φ1)
(hfrac : p / 2 ≤ (A'.card : ℝ) / A.card)
(hsize : 6 * Real.log d / (p * C2 s0 xmax φ1 ^ 2) ≤ A.card)
(hβhat : ∀ ω, IsLassoMinimizer (fun t : A => Z t ω) (fun t : A => Z t ω ⬝ᵥ β + ε t ω)
(χ * φ1 ^ 2 * p / (16 * s0)) (βhat ω)) :
P {ω | χ < l1Norm (βhat ω - β)} ≤
ENNReal.ofReal (2 * Real.exp (-(C1 s0 σ xmax (φ1 * Real.sqrt p / 2)) * A.card * χ ^ 2
+ Real.log d) +
Real.exp (-(p * C2 s0 xmax φ1 ^ 2 * A.card / 2))) := by sorry
end BastaniBayati.LassoBandit
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a probability measure on , with a filtration . The other data are:
- a natural ;
- random rows and noises ;
- a fixed with ;
- reals , , , and ;
- a measure on ;
- finite sets of times ;
- a map .
Hypotheses.
- For every :
- is -measurable, and is -measurable.
- For all , is integrable and, almost surely, .
- For every , .
- The rows are mutually independent, and each has law .
- The matrix lies in . This set consists of the positive semidefinite with whenever , where zeroes the coordinates outside .
- and , where .
- For every , globally minimizes
Conclusion.
where
- No independence between the rows in and the noises is assumed.
- The event need not be measurable. Its probability is the outer measure.
Degenerate cases.
- If , the ratio evaluates to (division by zero), and the fraction hypothesis fails. So the hypotheses force , and then , to be nonempty.
- Since , the hypotheses are unsatisfiable when .
- Because is nonempty, is the law of a random vector under , hence a probability measure.
- makes .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.