Skip to main content

End of Distribution

end_of_distribution is a Python library designed for statistical outlier detection, focusing on identifying values at the "end of the distribution" in datasets. It provides methods for detecting outliers using both Z-score and Interquartile Range (IQR), commonly used techniques in data preprocessing and analysis.

Features

  • Z-Score Outliers: Identify outliers based on their distance from the mean.
  • IQR Outliers: Detects outliers based on the interquartile range, robust against extreme values.

Installation

After cloning the repository:

git clone https://github.com/adityayadav0111/end_of_distribution.git
cd end_of_distribution

To install directly if available on PyPI:

pip install end_of_distribution

Usage

Import the functions from end_of_distribution to detect outliers in your data.

from lib.end_of_distribution import z_score_outliers, iqr_outliers

# Example data
data = [1, 2, 3, 4, 100, 5]

# Detect outliers with Z-score
z_outliers = z_score_outliers(data, threshold=3)
print("Z-score Outliers:", z_outliers)

# Detect outliers with IQR
iqr_outliers = iqr_outliers(data)
print("IQR Outliers:", iqr_outliers)

API Reference

  • z_score_outliers(data, threshold=3)

    • Parameters:
      • data (list): List of numerical values to check for outliers.
      • threshold (float): Z-score threshold for identifying outliers. Default is 3.
    • Returns: A list with True/False for outliers in the dataset.
  • iqr_outliers(data)

    • Parameters:
      • data (list): List of numerical values to check for outliers.
    • Returns: A list with True/False indicating outliers.

Contributing

We welcome contributions! Here’s how to get started:

  1. Fork the repository and clone it locally.
  2. Create a new branch for your contribution.
  3. Make your changes and commit.
  4. Push your changes and open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for end-of-distribution 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for end-of-distribution 0.1.0
File Size Uploaded Provenance
end_of_distribution-0.1.0.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for end-of-distribution 0.1.0
File Interpreter ABI Platform
end_of_distribution-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / end_of_distribution-0.1.0.tar.gz

Download URL end_of_distribution-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
824d300eebee3d0c937df76be14e22654526467688cf6f09d602759fcc4c6188
BLAKE2b-256 checksum
How to use checksums
115227cb6c83d118eb0ce1e593310ee78ab39e6b05316fae59a13811c963c7ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / end_of_distribution-0.1.0-py3-none-any.whl

Download URL end_of_distribution-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86740ac00f7b163e7f886f9f8039bac8511a4b06981b7355a4a2ded83538c285
BLAKE2b-256 checksum
How to use checksums
30b3e3b2b528140b6bd986e9fe90fef06f2e1470e9714e9ffd513e349e568b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Security for end-of-distribution 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page