Outliers Module

Functions and values

Function or value Description

mahalanobisDistanceOfEntry dataMatrix dataSource orientation observation

Full Usage: mahalanobisDistanceOfEntry dataMatrix dataSource orientation observation

Parameters:
Returns: float

Returns Mahalanobi's distance for an individual observation in a matrix. dataSource - Sample or Population.

orientation - RowWise or ColWise.

dataMatrix : matrix
dataSource : DataSource
orientation : Orientation
observation : seq<float>
Returns: float

mahalanobisDistances dataSource orientation dataMatrix

Full Usage: mahalanobisDistances dataSource orientation dataMatrix

Parameters:
Returns: float[]

Returns Mahalanobi's distance for for every observation in a matrix. dataSource - Sample or Population.

orientation - RowWise or ColWise. (RowWise orientation means that each row is a Vector)

dataSource : DataSource
orientation : Orientation
dataMatrix : matrix
Returns: float[]

populationIntervalByZScore minZ maxZ ls

Full Usage: populationIntervalByZScore minZ maxZ ls

Parameters:
    minZ : float -
    maxZ : float -
    ls : float list -

Returns: Interval<float>

Returns a population interval according to desired max and min Z Score values

minZ : float

maxZ : float

ls : float list

Returns: Interval<float>

Example

sampleIntervalByZscore minZ maxZ ls

Full Usage: sampleIntervalByZscore minZ maxZ ls

Parameters:
    minZ : float -
    maxZ : float -
    ls : float list -

Returns: Interval<float>

Returns a sample interval according to desired max and min Z Score values

minZ : float

maxZ : float

ls : float list

Returns: Interval<float>

Example

tukey k d

Full Usage: tukey k d

Parameters:
    k : float -
    d : float[] -

Returns: Interval<float>

Tukey's fences based on interquartile range. c defines the magnitude of interquartile range that is added/subtracted to Q3 and Q1 respectively.
Commonly c is 1.5 for outliers and 3 for points 'far out' (Tukey 1977).

k : float

d : float[]

Returns: Interval<float>

Example

zScore x m s

Full Usage: zScore x m s

Parameters:
    x : float -
    m : float -
    s : float -

Returns: float

Returns Z Score for an individual point.
x - raw score(raw data)
m - mean of the population
s - standard deviation of the population

x : float

m : float

s : float

Returns: float

Example

zScoresOfPopulation ls

Full Usage: zScoresOfPopulation ls

Parameters:
    ls : float list -

Returns: float list

Returns a list of Z scores of a population

ls : float list

Returns: float list

Example

zScoresOfSample ls

Full Usage: zScoresOfSample ls

Parameters:
    ls : float list -

Returns: float list

Returns a list of Z scores of a sample

ls : float list

Returns: float list

Example