biasCorrectionFactor

fun biasCorrectionFactor(bootstrapEstimates: DoubleArray, originalDataEstimate: Double): Double

For the so called, BCa, interval, the approach requires a bias correction factor which in essence measures the median bias of the bootstrap replicates for the estimated quantity. This function computes the bias correction factor based on the bootstrap estimates and the original estimated quantity.

Parameters

bootstrapEstimates

the bootstrap replicates from the bootstrapping process

originalDataEstimate

the original estimate from the original data using the estimator