Skip to main content

obscure_stats

CI/CD CI CD Coverage
Package PyPI - Python Version PyPI
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 Variation;
    • Dispersion Ratio;
    • Linear Coefficient of Variation;
    • Lloyds Index;
    • Morisita Index;
    • Quartile Coefficient of Dispersion;
    • Robust Coefficient of Variation;
    • 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;
    • Forhad-Shorna Rank Skewness Coefficient;
    • Groeneveld Skewness Coefficient;
    • Hossain-Adnan Skewness Coefficient;
    • Kelly Skewness Coefficient;
    • Medeen Skewness Coefficient;
    • Pearson Median Skewness Coefficient;
    • Pearson Mode Skewness Coefficient.
  • Collection of measures of kurtosis - obscure_stats/kurtosis:
    • Crow-Siddiqui Kurtosis;
    • Hogg Kurtosis;
    • Moors Kurtosis;
    • Moors Octile Kurtosis;
    • Reza-Ma Kurtosis.
  • Collection of measures of association - obscure_stats/association:
    • Chatterjee Xi correlation Coefficient (original and symmetric versions);
    • Concordance Correlation Coefficient;
    • Concordance Rate;
    • Tanimoto Similarity;
    • Zhang I Correlation Coefficient.
  • Collection of measures of qualitative variation - obscure_stats/variation:
    • AVDev;
    • B Index;
    • Extropy;
    • Gibbs M1;
    • Gibbs M2;
    • ModVR;
    • RanVR.

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}, Robust measure of dispersion = {dispersion:.2f}")
Out[1]:
Robust measure of central tendency = 1.09, Robust measure of dispersion = 0.42

License

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

Metadata

Release files for obscure-stats 0.1.4

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.1.4
File Size Uploaded Provenance Actions
obscure_stats-0.1.4.tar.gz 15.9 kB Without provenance Details for obscure_stats-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 34.6 kB

Release files / obscure_stats-0.1.4.tar.gz

Download URL obscure_stats-0.1.4.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
30f26a8b6e31660d30347caae7f271959a5aeb7eea4861077b5cef11cf39a24d
BLAKE2b-256 checksum
How to use checksums
9466c49dec7987c79589e2d47caafe21b8b5c0467d5c2b31c0d505d1c1ace61c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure

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

Download URL obscure_stats-0.1.4-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
452db8ae579bd78ea1ed1fd4f34c0bb21d923510e03d381eea5e5d37540d0c11
BLAKE2b-256 checksum
How to use checksums
7a00152f39955c9e56af1e4cb21f58fb1449dc3d9c2454a6c5fcbee0f314f165
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure

Security for obscure-stats 0.1.4

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