Approximate 95% confidence interval for the fold enrichment
Source:R/statistics.R
fold_enrichment_ci.RdLog-scale Wald interval. Only k is random (K/N is the fixed population fraction), so with p_hat = k/n: SE(log FE) = SE(log p_hat), approximately sqrt(1/k - 1/n) by the delta method. A Jeffreys-style continuity correction (k+0.5 successes, n+1 trials) keeps the interval finite at k = 0. Bounds are exponentiated back. Byte-parity port of the TypeScript `foldEnrichmentCI` (packages/core/src/statistics.ts); coverage is validated by Monte Carlo under the null in scripts/bio_validation.py.