Liking cljdoc? Tell your friends :D

criterium.stats


bca-nonparametricclj

(bca-nonparametric data statistic size alpha rng-factory)

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.

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.
sourceraw docstring

bca-nonparametric-evalclj

(bca-nonparametric-eval n size data z-alpha estimate samples jack-samples)

Calculate bootstrap values for given estimate and samples

Calculate bootstrap values for given estimate and samples
sourceraw docstring

bca-to-estimateclj

(bca-to-estimate alpha bca-estimate)
source

bootstrap-estimateclj

(bootstrap-estimate sampled-stat)

Mean, variance and confidence interval. This uses the bootstrapped statistic's variance for the confidence interval, but we should use BCa of ABC.

Mean, variance and confidence interval. This uses the bootstrapped
statistic's variance for the confidence interval, but we should use BCa of
ABC.
sourceraw docstring

bootstrap-sampleclj

(bootstrap-sample data statistic size rng-factory)

Bootstrap sampling of a statistic, using resampling with replacement.

Bootstrap sampling of a statistic, using resampling with replacement.
sourceraw docstring

boxplot-outlier-thresholdsclj

(boxplot-outlier-thresholds q1 q3)

Outlier thresholds for given quartiles.

Outlier thresholds for given quartiles.
sourceraw docstring

confidence-intervalclj

(confidence-interval mean variance)

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.

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.
sourceraw docstring

cubeclj

(cube x)

Square of argument

Square of argument
sourceraw docstring

drop-atclj

(drop-at n coll)
source

erfclj

(erf x)

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

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
sourceraw docstring

gaussian-weightclj

(gaussian-weight t)

Weight function for gaussian kernel.

Weight function for gaussian kernel.
sourceraw docstring

jacknifeclj

(jacknife data statistic)

Jacknife statistics on data.

Jacknife statistics on data.
sourceraw docstring

kernel-density-estimatorclj

(kernel-density-estimator h K n X x)

Kernel density estimator for x, given n samples X, weights K and width h.

Kernel density estimator for x, given n samples X, weights K and width h.
sourceraw docstring

meanclj

(mean data)

Arithmetic mean of data.

Arithmetic mean of data.
sourceraw docstring

medianclj

(median data)

Calculate the median of a sorted data set References: http://en.wikipedia.org/wiki/Median

Calculate the median of a sorted data set
References: http://en.wikipedia.org/wiki/Median
sourceraw docstring

(modal-estimation-constant h-k sample-variance)

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

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
sourceraw docstring

normal-cdfclj

(normal-cdf x)

Probability p(X<x), for a normal distrubtion. Uses the polynomial erf approximation above, and so is not super accurate.

Probability p(X<x), for a normal distrubtion.  Uses the polynomial erf
approximation above, and so is not super accurate.
sourceraw docstring

normal-quantileclj

(normal-quantile x)

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

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 
sourceraw docstring

polynomial-valueclj

(polynomial-value x coefficients)

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).

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).
sourceraw docstring

quantileclj

(quantile quantile data)

Calculate the quantile of a sorted data set References: http://en.wikipedia.org/wiki/Quantile

Calculate the quantile of a sorted data set
References: http://en.wikipedia.org/wiki/Quantile
sourceraw docstring

quartilesclj

(quartiles data)

Calculate the quartiles of a sorted data set References: http://en.wikipedia.org/wiki/Quartile

Calculate the quartiles of a sorted data set
References: http://en.wikipedia.org/wiki/Quartile
sourceraw docstring

sampleclj

(sample x rng)

Sample with replacement.

Sample with replacement.
sourceraw docstring

sample-uniformclj

(sample-uniform n max-val rng)

Provide n samples from a uniform distribution on 0..max-val

Provide n samples from a uniform distribution on 0..max-val
sourceraw docstring

scale-bootstrap-estimateclj

(scale-bootstrap-estimate estimate scale)
source

smoothed-sampleclj

(smoothed-sample c-k h-k data deviates)

Smoothed estimation function.

Smoothed estimation function.
sourceraw docstring

sqrclj

(sqr x)

Square of argument

Square of argument
sourceraw docstring

sumclj

(sum data)

Sum of each data point.

Sum of each data point.
sourceraw docstring

sum-of-squaresclj

(sum-of-squares data)

Sum of the squares of each data point.

Sum of the squares of each data point.
sourceraw docstring

transposeclj

(transpose data)

Transpose a vector of vectors.

Transpose a vector of vectors.
sourceraw docstring

truncclj

(trunc x)

Round towards zero to an integeral value.

Round towards zero to an integeral value.
sourceraw docstring

uniform-distributionclj

(uniform-distribution max-val rng)

Return uniformly distributed deviates on 0..max-val use the specified rng.

Return uniformly distributed deviates on 0..max-val use the specified rng.
sourceraw docstring

varianceclj

(variance data)
(variance data df)

Sample variance. Returns variance. Ref: Chan et al. Algorithms for computing the sample variance: analysis and recommendations. American Statistician (1983).

Sample variance. Returns variance.
Ref: Chan et al. Algorithms for computing the sample variance: analysis and
     recommendations. American Statistician (1983).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close