Skip to main content

obscure_stats

CI/CD CI CD Coverage
Security CodeQL Dependabot OpenSSF Scorecard
Package PyPI - Python Version PyPI Downloads
Meta Poetry Ruff Checked with mypy License - MIT DOI

Highlights:

obscure_stats is a small Python package that includes a lot of useful but lesser-known statistical functions and builds on top of numpy and scipy.

Current API list

  • Collection of measures of central tendency - obscure_stats/central_tendency:
    • Contraharmonic Mean;
    • Gastwirth's Location;
    • Grenander's Mode;
    • Half-Sample Mode;
    • Hodges-Lehmann-Sen Location;
    • Midhinge;
    • Midmean;
    • Midrange;
    • Standard Trimmed Harrell-Davis Quantile;
    • Tau Measure of Location;
    • Trimean.
  • Collection of measures of dispersion - obscure_stats/dispersion:
    • Coefficient of Range;
    • Coefficient of Variation;
    • Cole's Index of Dispersion;
    • Fisher's Index of Dispersion;
    • Gini Mean Difference;
    • Linear Coefficient of Variation;
    • Inter-expectile Range;
    • Morisita Index of Dispersion;
    • Quartile Coefficient of Dispersion;
    • Robust Coefficient of Variation;
    • Shamos Estimator;
    • Standard Quantile Absolute Deviation;
    • Studentized Range.
  • Collection of measures of skewness - obscure_stats/skewness:
    • Area Under the Skewness Curve;
    • Bickel Mode Skewness Coefficient;
    • Bowley Skewness Coefficient;
    • Forhad-Shorna Rank Skewness Coefficient;
    • Groeneveld Range Skewness Coefficient;
    • Hossain-Adnan Skewness Coefficient;
    • Kelly Skewness Coefficient;
    • L-Skewness Coefficient;
    • Left Quantile Weight;
    • Medeen Skewness Coefficient;
    • Pearson Median Skewness Coefficient;
    • Pearson Mode Skewness Coefficient;
    • Right Quantile Weight;
  • Collection of measures of kurtosis - obscure_stats/kurtosis:
    • Crow-Siddiqui Kurtosis;
    • L-Kurtosis;
    • Hogg Kurtosis;
    • Moors Kurtosis;
    • Moors Octile Kurtosis;
    • Reza-Ma Kurtosis;
    • Schmid-Trede measure of Peakedness;
    • Staudte Kurtosis.
  • Collection of measures of association - obscure_stats/association:
    • Blomqvist's Beta;
    • Chatterjee Xi Correlation Coefficient;
    • Concordance Correlation Coefficient;
    • Concordance Rate;
    • Fechner Correlation Coefficient;
    • Gaussian Rank Correlation Coefficient;
    • Normalized Chatterjee Xi Correlation Coefficient;
    • Quantile Correlation Coefficient;
    • Rank Minrelation Coefficient;
    • Symmetric Chatterjee Xi Correlation Coefficient;
    • Tanimoto Similarity;
    • Tukey's Correlation Coefficient;
    • Winsorized Correlation Coefficient;
    • Zhang I Correlation Coefficient.
  • Collection of measures of qualitative variation - obscure_stats/variation:
    • AVDev;
    • B Index;
    • Gibbs M1;
    • Gibbs M2;
    • McIntosh's D;
    • ModVR;
    • Negative Extropy;
    • RanVR;
    • Rényi entropy.

Installation

>>> pip install obscure_stats

Usage Example

>>> from obscure_stats.central_tendency import standard_trimmed_harrell_davis_quantile
>>> from obscure_stats.dispersion import standard_quantile_absolute_deviation

>>> data = [1.83, 1.01, 100.12, 1.20, 0.99, 0.87, 1.13, 100.01, 0.75, 1.03]
>>> central_tendency = standard_trimmed_harrell_davis_quantile(data)
>>> dispersion = standard_quantile_absolute_deviation(data)
>>> print(f"Robust measure of central tendency = {central_tendency:.2f}±{dispersion:.2f}")
Out[1]:
Robust measure of central tendency = 1.09±0.42

Code of Conduct

Code of Conduct for this project can be found here.

Contributing

Contribution guidelines for this project can be found here.

Security Policy

Security Policy for this project can be found here.

License

The content of this repository is licensed under a MIT license.

This repository bundles several libraries that are compatibly licensed. A full list can be found here.

Metadata

Release files for obscure-stats 0.4.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 obscure-stats 0.4.0
File Size Uploaded Provenance Actions
obscure_stats-0.4.0.tar.gz 20.9 kB Without provenance Details for obscure_stats-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for obscure-stats 0.4.0
File Interpreter ABI Platform Actions
obscure_stats-0.4.0-py3-none-any.whl Python 3 none any Details for obscure_stats-0.4.0-py3-none-any.whl

Total release size: 46.2 kB

Release files / obscure_stats-0.4.0.tar.gz

Download URL obscure_stats-0.4.0.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
67d33c22539e6898820b51afd70e2152221b90934b5ccb57af9bc32fc0ab0844
BLAKE2b-256 checksum
How to use checksums
03e2ccd6465f10c66a287d7700bf4948688ceb58a7b91ebe0444bf320860f2a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.11.11 Linux/6.8.0-1021-azure

Release files / obscure_stats-0.4.0-py3-none-any.whl

Download URL obscure_stats-0.4.0-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa71442854be539fe3d6802a8cb7234773260d852b3e681745181d7102033914
BLAKE2b-256 checksum
How to use checksums
3a37b5f699aa7f69891ba55fbf1315f475914d8064a92f5300a63b8a35991a1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.11.11 Linux/6.8.0-1021-azure

Security for obscure-stats 0.4.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.

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