Skip to content

wilsonLowerBound

wilsonLowerBound(helpful, n, z?): number

Defined in: src/learnings-lifecycle.ts:61

Wilson score interval lower bound on the success proportion.

p̂ = helpful / n w⁻ = ( p̂ + z²/(2n) − z·√( p̂(1−p̂)/n + z²/(4n²) ) ) / ( 1 + z²/n )

n ≤ 0 → 0 (no evidence ⇒ lowest confidence). Result clamped to [0, 1].

number

number

number = WILSON_Z

number