spkit.OutLiers

spkit.OutLiers(x, method='iqr', k=1.5, include_lower=True, include_upper=True, return_lim=False)

Identyfying outliers

Using 1. Interquartile Range: below Q1 - k*IQR and above Q3 + k*IQR 2. Stander Deviation: below Mean -k*SD(x) above Mean + k*SD(x)

Parameters:
x1d array or nd-array
method = ‘iqr’ or ‘sd’
k(default 1.5), factor for range, for SD k=2 is widely used
include_lower: if False, excluding lower outliers
include_upper: if False excluding upper outliers
  • At least one of (include_lower, include_upper) should be True

return_lim: if True, return includes lower and upper limits (lt, ul)
Returns:
idx: index of outliers in x
idx_bin: binary array of same size as x, indicating outliers
(lt,ut): lower and upper limit for outliers, if return_lim is True

See also

spkit

#TODO

Notes

#TODO

References

  • wikipedia -

Examples

import numpy as np import spkit as sp #TODO