Skip to main content

bootstrap_ci

Function bootstrap_ci 

Source
pub fn bootstrap_ci(
    result: &CssrResult,
    symbols: &[u8],
    b: usize,
) -> (Estimate<f64>, Estimate<f64>)
Expand description

Parametric bootstrap confidence intervals for (C_μ, h_μ).

Each bootstrap replicate perturbs each state’s pooled counts by resampling from its empirical distribution with the same total. The 2.5th–97.5th percentile of the B=200 replicates forms the 95% CI.

Returns (Estimate<f64> for C_μ, Estimate<f64> for h_μ) where point is the empirical estimate and lower/upper are CI bounds.