Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.8.0 instead.
Reason given by maintainers: wrong dependencies

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 - 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;
    • Standard Trimmed Harrell-Davis Quantile - standard_trimmed_harrell_davis_quantile;
    • Tau Measure of Location - tau_location;
    • Trimean - trimean.
  • Collection of measures of dispersion - obscure_stats.dispersion:
    • Coefficient of Range - coefficient_of_range;
    • Coefficient of Variation - coefficient_of_variation;
    • Cole's Index of Dispersion - cole_index_of_dispersion;
    • Fisher's Index of Dispersion - fisher_index_of_dispersion;
    • Gini Mean Difference - gini_mean_difference;
    • Linear Coefficient of Variation - coefficient_of_lvariation;
    • Inter-expectile Range - inter_expectile_range;
    • 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;
    • Standard Quantile Absolute Deviation - standard_quantile_absolute_deviation;
    • Studentized Range - studentized_range.
  • Collection of measures of 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;
    • Hossain-Adnan Skewness Coefficient - hossain_adnan_skew;
    • Kelly Skewness Coefficient - kelly_skew;
    • Left Quantile Weight - left_quantile_weight;
    • Medeen Skewness Coefficient - medeen_skew;
    • Pearson Median Skewness Coefficient - pearson_median_skew;
    • Pearson Mode Skewness Coefficient - pearson_mode_skew;
    • Right Quantile Weight - right_quantile_weight.
  • Collection of measures of kurtosis - obscure_stats.kurtosis:
    • Crow-Siddiqui Kurtosis Coefficient - crow_siddiqui_kurt;
    • Hogg Kurtosis Coefficient - hogg_kurt;
    • Moors Kurtosis Coefficient - moors_kurt;
    • Moors Octile Kurtosis Coefficient - moors_octile_kurt;
    • Reza-Ma Kurtosis Coefficient - reza_ma_kurt;
    • Schmid-Trede measure of Peakedness - schmid_trede_peakedness;
    • Staudte Kurtosis Coefficient - staudte_kurt.
  • Collection of measures of association - obscure_stats.association:
    • Blomqvist's Beta - blomqvist_beta;
    • Concordance Correlation Coefficient - concordance_correlation;
    • Concordance Rate - concordance_rate;
    • Fechner Correlation Coefficient - fechner_correlation;
    • Gaussian Rank Correlation Coefficient - gaussain_rank_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.
  • Collection of measures of qualitative variation - obscure_stats.variation:
    • AVDev - avdev;
    • B Index - b_index;
    • Gibbs M1 - gibbs_m1;
    • Gibbs M2 - gibbs_m2;
    • McIntosh's D - mcintosh_d;
    • ModVR - mod_vr;
    • Negative Extropy - negative_extropy;
    • RanVR - range_vr;
    • Rényi entropy - renyi_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.7.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.7.0
File Size Uploaded Provenance Actions
obscure_stats-0.7.0.tar.gz 22.0 kB Without provenance Details for obscure_stats-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 47.6 kB

Release files / obscure_stats-0.7.0.tar.gz

Download URL obscure_stats-0.7.0.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5800951786624b3897d5c83dba37a03d572e0c027a42f013d0460be8e9d111c5
BLAKE2b-256 checksum
How to use checksums
1f8c63e37e66f04641fe2fe7d990d6a63f56711c83a0e3d1e069401f228e107a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.11.15 Linux/6.17.0-1010-azure

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

Download URL obscure_stats-0.7.0-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce4ed7dc3e8d01d98a7fcbeb641feb57ae69a5abd1b6e482ff0882f648d78a2d
BLAKE2b-256 checksum
How to use checksums
9c12736ccea122a2d06b988b0b494d1699f0c69a253b7d465cdb0ff857554102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.11.15 Linux/6.17.0-1010-azure

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