Module to compute common statistical measure on list
Function or value | Description |
Full Usage:
cov list1 list2
Parameters:
^T list
-
The first input list.
list2 : ^T list
-
The second input list.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
covBy f list
Parameters:
'T -> ^a * ^a
-
A function applied to transform each element of the input list into a tuple of paired observations.
list : 'T list
-
The input list.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline |
Computes the sample covariance of two random variables generated by applying a function to the input list. Returns NaN if data is empty or if any entry is NaN.
Example
|
Full Usage:
covOfPairs list
Parameters:
(^T * ^T) list
-
The input list.
Returns: ^U
sample covariance estimator (Bessel's correction by N-1)
Modifiers: inline |
Computes the sample covariance of two random variables. The covariance will be calculated between the paired observations. Returns NaN if data is empty or if any entry is NaN.
Example
|
Full Usage:
covPopulation list1 list2
Parameters:
^T list
-
The first input list.
list2 : ^T list
-
The second input list.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline |
Returns NaN if data is empty or if any entry is NaN.
|
Full Usage:
covPopulationBy f list
Parameters:
'T -> ^a * ^a
-
A function applied to transform each element of the input list into a tuple of paired observations.
list : 'T list
-
The input list.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline |
Computes the population covariance of two random variables generated by applying a function to the input list. Returns NaN if data is empty or if any entry is NaN.
Example
|
Full Usage:
covPopulationOfPairs list
Parameters:
(^T * ^T) list
-
The input list.
Returns: ^U
population covariance estimator (denominator N)
Modifiers: inline |
Computes the population covariance of two random variables. The covariance will be calculated between the paired observations. Returns NaN if data is empty or if any entry is NaN.
Example
|
Full Usage:
mean items
Parameters:
^T list
-
Returns: ^a
Modifiers: inline Type parameters: ^T, ^a |
Example
|
Full Usage:
median xs
Parameters:
^T list
-
Returns: ^T
Modifiers: inline |
Calculate the median of a list of items.
Example
|
|
|