Liking cljdoc? Tell your friends :D

kixi.stats.core


arithmetic-meanclj/s

Calculates the arithmetic mean of numeric inputs.

Calculates the arithmetic mean of numeric inputs.
sourceraw docstring

correlationclj/s

(correlation fx fy)

Given two functions: (fx input) and (fy input), each of which returns a number, estimates the unbiased linear correlation coefficient between fx and fy over inputs. Ignores any records where fx or fy are nil. If there are no records with values for fx and fy, the correlation is nil. See http://mathworld.wolfram.com/CorrelationCoefficient.html.

Given two functions: (fx input) and (fy input), each of which returns a
number, estimates the unbiased linear correlation coefficient between fx and
fy over inputs. Ignores any records where fx or fy are nil. If there are no
records with values for fx and fy, the correlation is nil. See
http://mathworld.wolfram.com/CorrelationCoefficient.html.
sourceraw docstring

correlation-matrixclj/s

(correlation-matrix kvs)

Given a map of key names to functions that extract values for those keys from an input, computes the correlation for each of the n^2 key pairs. For example:

(correlation-matrix {:name-length #(.length (:name %))
                     :age         :age
                     :num-cats    (comp count :cats)})

will, when reduced, return a map like:

{[:name-length :age]      0.56
 [:name-length :num-cats] 0.95
 ...}
Given a map of key names to functions that extract values for those keys
from an input, computes the correlation for each of the n^2 key pairs.
For example:

    (correlation-matrix {:name-length #(.length (:name %))
                         :age         :age
                         :num-cats    (comp count :cats)})

will, when reduced, return a map like:

    {[:name-length :age]      0.56
     [:name-length :num-cats] 0.95
     ...}
sourceraw docstring

countclj/s

Calculates the count of inputs.

Calculates the count of inputs.
sourceraw docstring

covarianceclj/s

Alias for covariance-s

Alias for covariance-s
sourceraw docstring

covariance-matrixclj/s

(covariance-matrix kvs)

Given a map of key names to functions that extract values for those keys from an input, computes the covariance for each of the n^2 key pairs. For example:

(covariance-matrix {:name-length #(.length (:name %))
                    :age         :age
                    :num-cats    (comp count :cats)})

will, when reduced, return a map like:

{[:name-length :age]      0.56
 [:name-length :num-cats] 0.95
 ...}
Given a map of key names to functions that extract values for those keys
from an input, computes the covariance for each of the n^2 key pairs.
For example:

    (covariance-matrix {:name-length #(.length (:name %))
                        :age         :age
                        :num-cats    (comp count :cats)})

will, when reduced, return a map like:

    {[:name-length :age]      0.56
     [:name-length :num-cats] 0.95
     ...}
sourceraw docstring

covariance-pclj/s

(covariance-p fx fy)

Given two functions of an input (fx input) and (fy input), each of which returns a number, estimates the population covariance of those functions over inputs.

Ignores any inputs where (fx input) or (fy input) are nil. If no inputs have both x and y, returns nil.

Given two functions of an input `(fx input)` and `(fy input)`, each of which
returns a number, estimates the population covariance of those functions over
inputs.

Ignores any inputs where `(fx input)` or `(fy input)` are nil. If no
inputs have both x and y, returns nil.
sourceraw docstring

covariance-sclj/s

(covariance-s fx fy)

Given two functions of an input (fx input) and (fy input), each of which returns a number, estimates the unbiased covariance of those functions over inputs.

Ignores any inputs where (fx input) or (fy input) are nil. If no inputs have both x and y, returns nil.

Given two functions of an input `(fx input)` and `(fy input)`, each of which
returns a number, estimates the unbiased covariance of those functions over
inputs.

Ignores any inputs where `(fx input)` or `(fy input)` are nil. If no
inputs have both x and y, returns nil.
sourceraw docstring

cramers-vclj/s

(cramers-v fx fy)

Cramer's Phi is the intercorrelation of two discrete variables and may be used with variables having two or more levels. It gives a value between 0 and +1 (inclusive). Given two functions: (fx input) and (fy input), each of which returns a the relevant discrete value.

Cramer's Phi is the intercorrelation of two discrete variables and may be used with variables having two or more levels. It gives a value between 0 and +1 (inclusive).
Given two functions: (fx input) and (fy input), each of which returns a the relevant discrete value.
sourceraw docstring

geometric-meanclj/s

Calculates the geometric mean of numeric inputs. Defined only for positive numbers.

Calculates the geometric mean of numeric inputs. Defined only for positive numbers.
sourceraw docstring

harmonic-meanclj/s

Calculates the harmonic mean of numeric inputs.

Calculates the harmonic mean of numeric inputs.
sourceraw docstring

histogramclj

Calculates a histogram of numeric inputs using the t-digest with default arguments.

Calculates a histogram of numeric inputs using the t-digest with default arguments.
sourceraw docstring

iqrclj

Calculates the interquartile range of numeric inputs.

Calculates the interquartile range of numeric inputs.
sourceraw docstring

kurtosisclj/s

Alias for kurtosis-s.

Alias for kurtosis-s.
sourceraw docstring

kurtosis-pclj/s

Calculates the population kurtosis of numeric inputs. See http://www.macroption.com/kurtosis-formula/

Calculates the population kurtosis of numeric inputs.
See http://www.macroption.com/kurtosis-formula/
sourceraw docstring

kurtosis-sclj/s

Estimates the sample kurtosis of numeric inputs.
See https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance
and http://www.real-statistics.com/descriptive-statistics/symmetry-skewness-kurtosis.
sourceraw docstring

meanclj/s

Alias for arithmetic-mean.

Alias for arithmetic-mean.
sourceraw docstring

medianclj

Calculates the median of numeric inputs.

Calculates the median of numeric inputs.
sourceraw docstring

simple-linear-regressionclj/s

(simple-linear-regression fx fy)

Given two functions: (fx input) and (fy input), each of which returns a number, calculates a least squares linear model between fx and fy over inputs. Returns a vector containing the coefficients: offset and slope. Ignores any records with fx or fy are nil. If there are no records with values for fx and fy, the linear relationship is nil. See https://en.wikipedia.org/wiki/Simple_linear_regression.

Given two functions: (fx input) and (fy input), each of which returns a
number, calculates a least squares linear model between fx and fy over inputs.
Returns a vector containing the coefficients: offset and slope.
Ignores any records with fx or fy are nil. If there are no records with
values for fx and fy, the linear relationship is nil. See
https://en.wikipedia.org/wiki/Simple_linear_regression.
sourceraw docstring

skewnessclj/s

Alias for skewness-s.

Alias for skewness-s.
sourceraw docstring

skewness-pclj/s

Calculates the population skewness of numeric inputs. See: http://www.real-statistics.com/descriptive-statistics/symmetry-skewness-kurtosis.

Calculates the population skewness of numeric inputs.
See: http://www.real-statistics.com/descriptive-statistics/symmetry-skewness-kurtosis.
sourceraw docstring

skewness-sclj/s

Estimates the sample skewness of numeric inputs. See https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance.

Estimates the sample skewness of numeric inputs.
See https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance.
sourceraw docstring

standard-deviationclj/s

Alias for standard-deviation-s.

Alias for standard-deviation-s.
sourceraw docstring

standard-deviation-pclj/s

Calculates the population standard deviation of numeric inputs.

Calculates the population standard deviation of numeric inputs.
sourceraw docstring

standard-deviation-sclj/s

Estimates the sample standard deviation of numeric inputs.

Estimates the sample standard deviation of numeric inputs.
sourceraw docstring

standard-errorclj/s

Alias for standard-error-s

Alias for standard-error-s
sourceraw docstring

standard-error-estimateclj/s

Given two functions: (fx input) and (fy input), each of which returns a number, and an x value, calculates the standard error of the least squares linear model of fx and fy over inputs. Ignores any records with fx or fy are nil. If there are no records with values for fx and fy, the standard error of the estimate is nil.

Given two functions: (fx input) and (fy input), each of which returns a
number, and an x value, calculates the standard error of the least
squares linear model of fx and fy over inputs.
Ignores any records with fx or fy are nil. If there are no records with
values for fx and fy, the standard error of the estimate is nil.
sourceraw docstring

standard-error-predictionclj/s

Given two functions: (fx input) and (fy input), each of which returns a number, and an x value, calculates the standard error of the least squares linear model of fx and fy over inputs. Ignores any records with fx or fy are nil. If there are no records with values for fx and fy, the standard error of the estimate is nil.

Given two functions: (fx input) and (fy input), each of which returns a
number, and an x value, calculates the standard error of the least
squares linear model of fx and fy over inputs.
Ignores any records with fx or fy are nil. If there are no records with
values for fx and fy, the standard error of the estimate is nil.
sourceraw docstring

standard-error-sclj/s

Calculates the standard error of sample means.

Calculates the standard error of sample means.
sourceraw docstring

sum-squaresclj/s

(sum-squares fx fy)
source

summaryclj

Calculates the five number summary of numeric inputs.

Calculates the five number summary of numeric inputs.
sourceraw docstring

varianceclj/s

Alias for variance-s.

Alias for variance-s.
sourceraw docstring

variance-pclj/s

Calculates the population variance of numeric inputs.

Calculates the population variance of numeric inputs.
sourceraw docstring

variance-sclj/s

Estimates an unbiased variance of numeric inputs.

Estimates an unbiased variance of numeric inputs.
sourceraw docstring

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

× close