Skip to main content

Module isotonic

Module isotonic 

Source
Expand description

Isotonic regression by the pool-adjacent-violators algorithm (SciPy’s optimize.isotonic_regression).

See the book entry Brute force, isotonic regression and gradient checks.

Structs§

IsotonicResult
The result of isotonic_regression.

Functions§

isotonic_regression
The weighted least-squares fit of y by a non-decreasing (or, with increasing = false, non-increasing) sequence, min Σ wᵢ (xᵢ − yᵢ)² subject to x₁ ≤ x₂ ≤ … ≤ xₙ (SciPy’s isotonic_regression). The pool-adjacent-violators algorithm merges each new observation with the blocks before it while their weighted means are out of order; every block’s value is its weighted mean, in O(n) time. weights default to one and must be positive.