obscure_stats

A small collection of lesser-known statistical measures

https://github.com/glevv/obscure_stats

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.8%) to scientific vocabulary

Keywords

data-analysis data-analytics data-science descriptive-statistics math mathematical-functions mathematical-statistics numpy python robust-statistics scipy statistical-analysis statistics

Keywords from Contributors

interactive conjugation mesh interpretability sequences generic projection optim hacking network-simulation
Last synced: 4 months ago · JSON representation ·

Repository

A small collection of lesser-known statistical measures

Basic Info
  • Host: GitHub
  • Owner: glevv
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 694 KB
Statistics
  • Stars: 42
  • Watchers: 1
  • Forks: 5
  • Open Issues: 0
  • Releases: 19
Topics
data-analysis data-analytics data-science descriptive-statistics math mathematical-functions mathematical-statistics numpy python robust-statistics scipy statistical-analysis statistics
Created about 2 years ago · Last pushed 4 months ago
Metadata Files
Readme Contributing License Code of conduct Citation Codeowners Security

README.md

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;
    • Linear Skewness Coefficient - l_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;
    • Linear Kurtosis Coefficient - l_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;
    • Chatterjee Xi Correlation Coefficient - chatterjee_xi;
    • 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

```bash

pip install obscure_stats ```

Usage Example

```python

from obscurestats.centraltendency import standardtrimmedharrelldavisquantile from obscurestats.dispersion import standardquantileabsolutedeviation

data = [1.83, 1.01, 100.12, 1.20, 0.99, 0.87, 1.13, 100.01, 0.75, 1.03] centraltendency = standardtrimmedharrelldavisquantile(data) dispersion = standardquantileabsolutedeviation(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.

Owner

  • Name: Gleb Levitski
  • Login: glevv
  • Kind: user
  • Location: Cyprus

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Obscure Stats
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Hleb
    family-names: Levitski
identifiers:
  - type: doi
    value: 10.5281/zenodo.10206933
repository-code: 'https://github.com/glevv/obscure_stats'
repository-artifact: 'https://pypi.org/project/obscure_stats'
abstract: Collection of lesser-known statistical measures
license: MIT
version: 0.5.0
date-released: '2023-10-21'

GitHub Events

Total
  • Create event: 71
  • Issues event: 1
  • Release event: 3
  • Watch event: 7
  • Delete event: 69
  • Issue comment event: 71
  • Push event: 108
  • Pull request event: 136
  • Pull request review event: 66
Last Year
  • Create event: 71
  • Issues event: 1
  • Release event: 3
  • Watch event: 7
  • Delete event: 69
  • Issue comment event: 71
  • Push event: 108
  • Pull request event: 136
  • Pull request review event: 66

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 300
  • Total Committers: 4
  • Avg Commits per committer: 75.0
  • Development Distribution Score (DDS): 0.463
Past Year
  • Commits: 124
  • Committers: 2
  • Avg Commits per committer: 62.0
  • Development Distribution Score (DDS): 0.177
Top Committers
Name Email Commits
dependabot[bot] 4****] 161
Gleb Levitski 3****v 134
Gleb g****b@G****l 3
StepSecurity Bot b****t@s****o 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 2
  • Total pull requests: 252
  • Average time to close issues: 2 months
  • Average time to close pull requests: about 12 hours
  • Total issue authors: 2
  • Total pull request authors: 4
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.98
  • Merged pull requests: 236
  • Bot issues: 0
  • Bot pull requests: 211
Past Year
  • Issues: 1
  • Pull requests: 134
  • Average time to close issues: N/A
  • Average time to close pull requests: about 13 hours
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.94
  • Merged pull requests: 123
  • Bot issues: 0
  • Bot pull requests: 124
Top Authors
Issue Authors
  • dependabot[bot] (1)
  • fcotizelati (1)
  • celestinoxp (1)
Pull Request Authors
  • dependabot[bot] (323)
  • glevv (59)
  • step-security-bot (6)
  • fossabot (2)
Top Labels
Issue Labels
dependencies (1)
Pull Request Labels
dependencies (324) github_actions (51) enhancement (31) bug (14) documentation (8) duplicate (1) invalid (1) wontfix (1)

Dependencies

.github/workflows/package.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
  • snok/install-poetry v1 composite
pyproject.toml pypi
  • numpy ^1.26.1
  • python >=3.10,<3.13
  • scipy ^1.11.3
.github/workflows/publish.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • snok/install-poetry v1 composite
.github/workflows/codeql.yml actions
  • actions/checkout b4ffde65f46336ab88eb53be808477a3936bae11 composite
  • github/codeql-action/analyze e5f05b81d5b6ff8cfa111c80c22c5fd02a384118 composite
  • github/codeql-action/autobuild e5f05b81d5b6ff8cfa111c80c22c5fd02a384118 composite
  • github/codeql-action/init e5f05b81d5b6ff8cfa111c80c22c5fd02a384118 composite
  • step-security/harden-runner eb238b55efaa70779f274895e782ed17c84f2895 composite
.github/workflows/dependency-review.yml actions
  • actions/checkout b4ffde65f46336ab88eb53be808477a3936bae11 composite
  • actions/dependency-review-action c74b580d73376b7750d3d2a50bfb8adc2c937507 composite
  • step-security/harden-runner eb238b55efaa70779f274895e782ed17c84f2895 composite
.github/workflows/scorecards.yml actions
  • actions/checkout b4ffde65f46336ab88eb53be808477a3936bae11 composite
  • actions/upload-artifact 1eb3cb2b3e0f29609092a73eb033bb759a334595 composite
  • github/codeql-action/upload-sarif e5f05b81d5b6ff8cfa111c80c22c5fd02a384118 composite
  • ossf/scorecard-action 99c53751e09b9529366343771cc321ec74e9bd3d composite
  • step-security/harden-runner eb238b55efaa70779f274895e782ed17c84f2895 composite