Skip to main content

obscure_stats

Category Badges
CI/CD CI build and test status Release workflow status Test coverage on Coveralls
Security CodeQL analysis status Dependabot enabled OpenSSF Scorecard score
Package Supported Python versions Latest version on PyPI Total downloads from PyPI
Meta Managed with uv Linted and formatted with Ruff Type checked with pyrefly License: MIT Zenodo DOI 10.5281/zenodo.10206933

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.

  • Every function cites the paper it implements.
  • Functions return raw statistics, without hidden normalizing constants.
  • Inputs can be lists, tuples, NumPy arrays or pandas Series; the package is fully typed.

Installation

pip install obscure_stats

or, with uv:

uv add 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}")
# Robust measure of central tendency = 1.09±0.39

Available functions

Central tendency (obscure_stats.central_tendency)

  • Contraharmonic Mean - contraharmonic_mean
  • Gastwirth's Location - gastwirth_location
  • Grenander's Mode - grenanders_m
  • Half-Sample Mode - half_sample_mode
  • Hodges-Lehmann-Sen Location - hodges_lehmann_sen_location
  • Midhinge - midhinge
  • Midmean - midmean
  • Midrange - midrange
  • Shorth - shorth
  • Standard Trimmed Harrell-Davis Quantile - standard_trimmed_harrell_davis_quantile
  • Tau Measure of Location - tau_location
  • Trimean - trimean

Dispersion (obscure_stats.dispersion)

  • Coefficient of Range - coefficient_of_range
  • Coefficient of Variation - coefficient_of_variation
  • Fisher's Index of Dispersion - fisher_index_of_dispersion
  • Gini Mean Difference - gini_mean_difference
  • Inter-Expectile Range - inter_expectile_range
  • Length of the Shortest Half - length_of_shortest_half
  • Linear Coefficient of Variation - coefficient_of_lvariation
  • Morisita Index of Dispersion - morisita_index_of_dispersion
  • Quartile Coefficient of Dispersion - quartile_coefficient_of_dispersion
  • Robust Coefficient of Variation - robust_coefficient_of_variation
  • Shamos Estimator - shamos_estimator
  • Shapiro Coefficient of Variation - shapiro_coefficient_of_variation
  • Standard Quantile Absolute Deviation - standard_quantile_absolute_deviation
  • Studentized Range - studentized_range

Skewness (obscure_stats.skewness)

  • Area Under the Skewness Curve - auc_skew_gamma
  • Bickel Mode Skewness Coefficient - bickel_mode_skew
  • Bowley Skewness Coefficient - bowley_skew
  • Cumulative Skewness Coefficient - cumulative_skew
  • Forhad-Shorna Rank Skewness Coefficient - forhad_shorna_rank_skew
  • Groeneveld Range Skewness Coefficient - groeneveld_range_skew
  • Kelly Skewness Coefficient - kelly_skew
  • Meeden Skewness Coefficient - meeden_skew
  • Pearson Median Skewness Coefficient - pearson_median_skew
  • Pearson Mode Skewness Coefficient - pearson_mode_skew

Kurtosis (obscure_stats.kurtosis)

  • Crow-Siddiqui Kurtosis Coefficient - crow_siddiqui_kurt
  • Hogg Kurtosis Coefficient - hogg_kurt
  • Moors Octile Kurtosis Coefficient - moors_octile_kurt
  • Quantile Weight - quantile_weight
  • Reza-Ma Kurtosis Coefficient - reza_ma_kurt
  • Schmid-Trede Measure of Peakedness - schmid_trede_peakedness
  • Staudte Kurtosis Coefficient - staudte_kurt

Association (obscure_stats.association)

  • Blomqvist's Beta - blomqvist_beta
  • Coefficient of Monotone Association - coefficient_of_monotone_association
  • Concordance Correlation Coefficient - concordance_correlation
  • Concordance Rate - concordance_rate
  • Fechner Correlation Coefficient - fechner_correlation
  • Gaussian Rank Correlation Coefficient - gaussian_rank_correlation
  • Gini Correlation Coefficient - gini_correlation
  • L1 Concordance Correlation Coefficient - l1_concordance_correlation
  • Morisita-Horn Similarity - morisita_horn_similarity
  • Normalized Chatterjee Xi Correlation Coefficient - normalized_chatterjee_xi
  • Quantile Correlation Coefficient - quantile_correlation
  • Rank Minrelation Coefficient - rank_minrelation_coefficient
  • Rank-Turbulence Divergence - rank_divergence
  • Symmetric Chatterjee Xi Correlation Coefficient - symmetric_chatterjee_xi
  • Tanimoto Similarity - tanimoto_similarity
  • Tukey's Correlation Coefficient - tukey_correlation
  • Winsorized Correlation Coefficient - winsorized_correlation
  • Zhang I Correlation Coefficient - zhang_i

Qualitative variation (obscure_stats.variation)

  • AVDev - avdev
  • B Index - b_index
  • Brillouin Index - brillouin_index
  • Extropy - extropy
  • Gibbs M1 - gibbs_m1
  • McIntosh's D - mcintosh_d
  • MNDif - mndif
  • ModVR - mod_vr
  • RanVR - range_vr
  • Rényi Entropy - renyi_entropy

Citation

If you use obscure_stats in your work, please cite it using the metadata in CITATION.cff (GitHub shows it under "Cite this repository") or the DOI 10.5281/zenodo.10206933.

Code of Conduct

This project follows the Code of Conduct.

Contributing

See the contribution guidelines for how to set up the project, run the checks and propose changes.

Security Policy

See the security policy for how to report a vulnerability.

Accessibility

See the accessibility statement for our accessibility commitments and how to report a barrier.

License

This project is licensed under the MIT License.

Metadata

Release files for obscure-stats 0.8.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.8.0
File Size Uploaded Provenance Actions
obscure_stats-0.8.0.tar.gz 33.4 kB With provenance Details for obscure_stats-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 72.9 kB

Release files / obscure_stats-0.8.0.tar.gz

Download URL obscure_stats-0.8.0.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5cf7dcec56a8d49907b1399ef9171e3a56d425077a21c3c7cfe38db80a5e0dbd
BLAKE2b-256 checksum
How to use checksums
189729bfe3278e0080670ad03e762c8f4c30c7042ce6c2de30b00a735113d538
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

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

Download URL obscure_stats-0.8.0-py3-none-any.whl
Size 39.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb0e33d8bb3ea5f369a0b6bc7e8cd579a1ecaba8ab411b1c21150d0c4a2ad6fb
BLAKE2b-256 checksum
How to use checksums
3a5b47e9addc4550b60c3c8192efd6542e572d8eda1d772c8465ae925b6bc617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

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

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for obscure_stats-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

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