Skip to main content

This package provides a Statistical Inference framework for testing the anomaly results obtained by DBSCAN algorithm.

Project description

Statistical Inference for Cluster-based Anomaly Detection

This package provides a Statistical Inference framework for Cluster-based Anomaly Detection, with controllable FPR. In particular, we propose a valid p-value for testing the anomaly results obtained by DBSCAN algorithm. Basically, the problem is decomposed into multiple tractable sub-problems to enable an efficient test with the highest TPR while controlling the FPR through the divide-and-conquer approach.

This package has the following requirements:

mpmath
numpy>=1.23.0
scipy>=1.4.1

Installization

You can install this package from PyPI using:

pip install si-clad

Example

from si_clad import SI_CLAD, generate, DBSCAN_AD

n = 50
d = 10
delta =  0 #no true outliers
X, Sigma, _ = generate(n, d, delta)

minpts =  10
eps = 3
O, _ = DBSCAN_AD(eps, minpts).fit(X)
p_value = SI_CLAD(X, Sigma, minpts, eps, O, j = None) #randomly choose an outlier j for testing

print(p_value)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

si-clad-0.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

si_clad-0.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file si-clad-0.0.1.tar.gz.

File metadata

  • Download URL: si-clad-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for si-clad-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7721ac7e9c39ca38e9713d2c1ff8f93a031ee88a07d7c2979cf7c35ad0e9f9e1
MD5 f91c7166051f72bf0308bdac56150d3e
BLAKE2b-256 9a693fd5dcbc739b9191d21f525c0196d9d8d6978c8e38c9d0597f89e61a1c14

See more details on using hashes here.

File details

Details for the file si_clad-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: si_clad-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for si_clad-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a0f70800811925e0eb94efa96dcc3e9e36467d0f36af4cc97101a7073a3203a
MD5 aa1404cfeb1745b782e301c28bdcb689
BLAKE2b-256 7676ce9eab018cab25601fb2ac6223a2c132c0f4a620e26de6bbcbece874effd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page