Skip to main content

Collection of lesser-known statistical functions

Project description

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;
    • Half-Sample Mode;
    • Hodges-Lehmann-Sen Location;
    • Midhinge;
    • Midmean;
    • Midrange;
    • Standard Trimmed Harrell-Davis Quantile;
    • Trimean.
  • Collection of measures of dispersion - obscure_stats/dispersion:
    • Coefficient of Range;
    • Coefficient of Variation;
    • Cole's Index of Dispersion;
    • Dispersion Ratio;
    • Fisher's Index of Dispersion;
    • Gini Mean Difference;
    • Linear Coefficient of Variation;
    • 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 (weighted and unweighted);
    • Bickel Mode Skewness Coefficient;
    • Bowley Skewness Coefficient;
    • Cumulative Skewness Coefficient;
    • Forhad-Shorna Rank Skewness Coefficient;
    • Groeneveld Skewness Coefficient;
    • Hossain-Adnan Skewness Coefficient;
    • Kelly Skewness Coefficient;
    • L-Skewness Coefficient;
    • Medeen Skewness Coefficient;
    • Pearson Median Skewness Coefficient;
    • Pearson Mode Skewness Coefficient.
  • Collection of measures of kurtosis - obscure_stats/kurtosis:
    • Crow-Siddiqui Kurtosis;
    • L-Kurtosis;
    • Hogg Kurtosis;
    • Moors Kurtosis;
    • Moors Octile Kurtosis;
    • Reza-Ma Kurtosis.
  • Collection of measures of association - obscure_stats/association:
    • Blomqvist's Beta;
    • Chatterjee Xi Correlation Coefficient (original and symmetric versions);
    • Concordance Correlation Coefficient;
    • Concordance Rate;
    • Gaussian Rank Correlation Coefficient;
    • Rank Minrelation 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.

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

obscure_stats-0.2.5.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

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

obscure_stats-0.2.5-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file obscure_stats-0.2.5.tar.gz.

File metadata

  • Download URL: obscure_stats-0.2.5.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1018-azure

File hashes

Hashes for obscure_stats-0.2.5.tar.gz
Algorithm Hash digest
SHA256 20956010d092ac3bf6c97b43a769c3aa25e432e09de49e9cd67978d12f16397f
MD5 36e43eaeaf23c5258329037b129a80e6
BLAKE2b-256 1ed393820d5f31e8b9117196a35fcf225f38c9df3eda4650a78e589072ad2040

See more details on using hashes here.

File details

Details for the file obscure_stats-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: obscure_stats-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1018-azure

File hashes

Hashes for obscure_stats-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 02c761a80e4280134bc79d9f3e423dc475a42f26e0617dee63cd9544083811d7
MD5 93a1b217da0160f58c37a51a7aa346a1
BLAKE2b-256 a29857d5de72d8333104491f6610b57780ff74e5fdcc6b534836cd949466e18a

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