HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulestatistics-0.16.5.0Haskell2010

Statistics.Resampling

Resampling statistics.

Contents
  1. Data types
  2. Resampling
  3. Jackknife
  4. Helper functions
Synopsis

Data types

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

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

Helper functions