HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulestatistics-0.16.3.0Haskell2010

Statistics.Resampling

Resampling statistics.

  • 3 types
  • 10 values

Data types

4 declarations
newtypenewtype Resample
#

A resample drawn randomly, with replacement, from a set of data points. Distinct from a normal array to make it harder for your humble author's brain to go wrong.

Instances9Eq, Data, Read, Show, Generic, Binary, …
datadata Bootstrap (v :: Type -> Type) a
#

Constructors

Instances12Functor, Foldable, Traversable, Eq, Data, Read, …

Resampling

3 declarations
valueresample
  1. :: GenIO
  2. -> [Estimator]

    Estimation functions.

  3. -> Int

    Number of resamples to compute.

  4. -> Vector Double

    Original sample.

  5. -> IO [(Estimator, Bootstrap Vector Double)]
#

O(e*r*s) Resample a data set repeatedly, with replacement, computing each estimate over the resampled data.

This function is expensive; it has to do work proportional to e*r*s, where e is the number of estimation functions, r is the number of resamples to compute, and s is the number of original samples.

To improve performance, this function will make use of all available CPUs. At least with GHC 7.0, parallel performance seems best if the parallel garbage collector is disabled (RTS option -qg).

Jackknife

5 declarations

Helper functions

1 declaration