Summary
Short documentation of very basic statistical operations
Central Tendency
Mean
"Mean" stands here for the arithmetic mean (also called average) is the sum of numbers in a collection divided by the count of those numbers.
The mean function is usually located in the module of the respective collection:
1: 2: |
|
|
Median
If you sort the values of a collection by size, the median is the value in central position. Therefore there are as many bigger values as smaller values than the median in the collection. The median function is usually located in the module of the respective collection:
1: 2: |
|
|
Truncated/Trimmed mean
Computes the truncated (trimmed) mean where a given percentage of the highest and lowest values are discarded. In total 2 times the given percentage are discarded.
1: 2: |
|
|
Dispersion
Variance/Standard Deviation
The variance and standard deviation are measures of dispersion the values of a collection have. While the standard deviation has the same unit as the values of the collection the variance has the squared unit. If the full population is not given, the calculation lacks in one degree of freedom, so the Bessel corrected version of the calculation has to be used (results in higher values).
1: 2: 3: 4: 5: |
|
|
Coefficient of variation
The coefficient of variation is the mean-normalized standard deviation. It describes the ratio of the standard devation to the mean. It assists in comparing measurement variability with varying amplitudes. Use only if data is measured with a ratio scale (meaningful zero values and meaningful intervals).
1: 2: 3: 4: 5: 6: 7: |
|
|
namespace FSharp
--------------------
namespace Microsoft.FSharp
val vector : l:seq<float> -> Vector<float>
--------------------
type vector = Vector<float>
module Vector
from FSharp.Stats
--------------------
type Vector<'T> =
interface IEnumerable
interface IEnumerable<'T>
interface IStructuralEquatable
interface IStructuralComparable
interface IComparable
new : opsV:INumeric<'T> option * arrV:'T array -> Vector<'T>
override Equals : yobj:obj -> bool
override GetHashCode : unit -> int
member GetSlice : start:int option * finish:int option -> Vector<'T>
member Permute : p:permutation -> Vector<'T>
...
--------------------
new : opsV:INumeric<'T> option * arrV:'T array -> Vector<'T>
module Array
from FSharp.Stats
--------------------
module Array
from Microsoft.FSharp.Collections
val seq : seq<float>
--------------------
type seq<'T> = System.Collections.Generic.IEnumerable<'T>
module Seq
from FSharp.Stats
--------------------
module Seq
from Microsoft.FSharp.Collections