criterium.stats documentation
bca-nonparametric
Non-parametric BCa estimate of a statistic on data. Size bootstrap samples are used. Confidence values are returned at the alpha normal quantiles. rng-factory is a method that returns a random number generator to use for the sampling.
An introduction to the bootstrap. Efron, B., & Tibshirani, R. J. (1993).
See http://lib.stat.cmu.edu/S/bootstrap.funs for Efron's original implementation.
bca-nonparametric-eval
Calculate bootstrap values for given estimate and samples
bootstrap-estimate
Mean, variance and confidence interval. This uses the bootstrapped statistic's variance for the confidence interval, but we should use BCa of ABC.
bootstrap-sample
Bootstrap sampling of a statistic, using resampling with replacement.
boxplot-outlier-thresholds
Outlier thresholds for given quartiles.
confidence-interval
Find the significance of outliers gicen boostrapped mean and variance estimates. This uses the bootstrapped statistic's variance, but we should use BCa of ABC.
cube
Square of argument
erf
erf polynomial approximation. Maximum error is 1.5e-7. Handbook of Mathematical Functions: with Formulas, Graphs, and Mathematical Tables. Milton Abramowitz (Editor), Irene A. Stegun (Editor), 7.1.26
gaussian-weight
Weight function for gaussian kernel.
jacknife
Jacknife statistics on data.
kernel-density-estimator
Kernel density estimator for x, given n samples X, weights K and width h.
mean
Arithmetic mean of data.
median
Calculate the median of a sorted data set References: http://en.wikipedia.org/wiki/Median
modal-estimation-constant
Kernel function for estimation of multi-modality. h-k is the critical bandwidth, sample-variance is the observed sample variance. Equation 7, Nonparametric assessment of multimodality for univariate data. Salgado-Ugarte IH, Shimizu M
normal-cdf
Probability p(X
normal-quantile
Normal quantile function. Given a quantile in (0,1), return the normal value for that quantile.
Wichura, MJ. 'Algorithm AS241' The Percentage Points of the Normal Distribution. Applied Statistics, 37, 477-484
polynomial-value
Evaluate a polynomial at the given value x, for the coefficients given in descending order (so the last element of coefficients is the constant term).
quantile
Calculate the quantile of a sorted data set References: http://en.wikipedia.org/wiki/Quantile
quartiles
Calculate the quartiles of a sorted data set References: http://en.wikipedia.org/wiki/Quartile
sample
Sample with replacement.
sample-uniform
Provide n samples from a uniform distribution on 0..max-val
smoothed-sample
Smoothed estimation function.
sqr
Square of argument
sum
Sum of each data point.
sum-of-squares
Sum of the squares of each data point.
transpose
Transpose a vector of vectors.
trunc
Round towards zero to an integeral value.
uniform-distribution
Return uniformly distributed deviates on 0..max-val use the specified rng.
variance
Sample variance. Returns variance. Ref: Chan et al. Algorithms for computing the sample variance: analysis and recommendations. American Statistician (1983).