pub struct ConcentrationBound;Expand description
Concentration bounds for sums of independent bounded random variables.
Implementations§
Source§impl ConcentrationBound
impl ConcentrationBound
Sourcepub fn hoeffding(t: f64, intervals: &[(f64, f64)]) -> f64
pub fn hoeffding(t: f64, intervals: &[(f64, f64)]) -> f64
Hoeffding’s inequality: returns the upper bound on P(S_n - E[S_n] ≥ t) for n summands each bounded in [a_i, b_i].
Bound: exp(-2t² / Σ(b_i - a_i)²).
Sourcepub fn markov(expectation: f64, a: f64) -> f64
pub fn markov(expectation: f64, a: f64) -> f64
Markov inequality: P(X ≥ a) ≤ E[X] / a for non-negative X.
Sourcepub fn chernoff_upper(mu: f64, delta: f64) -> f64
pub fn chernoff_upper(mu: f64, delta: f64) -> f64
Chernoff bound for the sum of Bernoulli(p_i) variables with mean μ.
Upper tail: P(X ≥ (1+δ)μ) ≤ (e^δ / (1+δ)^(1+δ))^μ.
Sourcepub fn bernstein(t: f64, variance_sum: f64, c: f64) -> f64
pub fn bernstein(t: f64, variance_sum: f64, c: f64) -> f64
Bernstein inequality for bounded random variables with variance s².
P(S_n ≥ t) ≤ exp(-t² / (2(s² + ct/3))) where c is the bound on individual terms.
Sourcepub fn sub_gaussian_tail(t: f64, sigma: f64) -> f64
pub fn sub_gaussian_tail(t: f64, sigma: f64) -> f64
Sub-Gaussian tail bound: P(X ≥ t) ≤ exp(-t²/(2σ²)) for σ-sub-Gaussian X.
Auto Trait Implementations§
impl Freeze for ConcentrationBound
impl RefUnwindSafe for ConcentrationBound
impl Send for ConcentrationBound
impl Sync for ConcentrationBound
impl Unpin for ConcentrationBound
impl UnsafeUnpin for ConcentrationBound
impl UnwindSafe for ConcentrationBound
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more