Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Derivation of Result 4, p. 353 — F(x) + E(e^{−yF(x)}y|x)/E(e^{−yF(x)}|x) = F(x) + E_w(y|x), w = e^{−yF(x)}

Proved
AddLogReg.Gentle.newton_update

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

boostinggentle-adaboostnewton-methodp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let ν\nuν be a probability measure on X×{−1,1}X\times\{-1,1\}X×{−1,1}, the joint law of (x,y)(x,y)(x,y), let F:X→RF : X\to\mathbb RF:X→R and fix x∈Xx\in Xx∈X. With the weight w(x,y)=e−yF(x)w(x,y) = e^{-yF(x)}w(x,y)=e−yF(x) and the weighted conditional expectation Ew[g∣x]=E[wg∣x]/E[w∣x]E_w[g\mid x] = E[wg\mid x]/E[w\mid x]Ew​[g∣x]=E[wg∣x]/E[w∣x],

F(x)+E(e−yF(x)y∣x)E(e−yF(x)∣x)=F(x)+Ew(y∣x).F(x) + \frac{E\big(e^{-yF(x)}y\mid x\big)}{E\big(e^{-yF(x)}\mid x\big)} = F(x) + E_w(y\mid x).F(x)+E(e−yF(x)∣x)E(e−yF(x)y∣x)​=F(x)+Ew​(y∣x).

The left-hand side is the Newton update for Ee−yF(x)E e^{-yF(x)}Ee−yF(x) computed from the Derivation's first and second derivatives; the identity recognizes it as the population form of the Gentle AdaBoost step.

Formalization Note The page's assignment "F(x)←…F(x) \leftarrow \dotsF(x)←…" is rendered as an equality of the two right-hand sides. Conditional expectations are integrals against ν.condKernel x.

Preamble
import Mathlib
import Definitions.Def_AddLogReg_Gentle_Setting

open MeasureTheory ProbabilityTheory
Formal statement
namespace AddLogReg.Gentle

theorem newton_update {X : Type*} [MeasurableSpace X] (ν : Measure (X × Bool))
    [IsProbabilityMeasure ν] (F : X → ℝ) (x : X) :
    F x + (∫ b, Real.exp (-(AddLogReg.ExpCrit.sgn b * F x)) * AddLogReg.ExpCrit.sgn b ∂(ν.condKernel x)) /
        (∫ b, Real.exp (-(AddLogReg.ExpCrit.sgn b * F x)) ∂(ν.condKernel x)) =
      F x + AddLogReg.ExpCrit.wCondExp ν F (fun _ b => AddLogReg.ExpCrit.sgn b) x := by sorry

end AddLogReg.Gentle
Source
Friedman, Hastie and Tibshirani, Additive logistic regression: a statistical view of boosting, Ann. Statist. 28 (2000), p. 353, §4.4, Derivation of Result 4, third display
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me