Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds three new advanced statistics to the moarstats command: Atkinson Index with a configurable inequality aversion parameter, Normalized Entropy, and Bimodal Coefficient. These statistics provide deeper insights into data distribution characteristics, with the Atkinson Index offering a more general inequality measure than the Gini coefficient through its configurable epsilon parameter.

Key changes:

  • Adds Atkinson Index computation with configurable epsilon parameter (default 1.0) via --epsilon flag
  • Adds Bimodality Coefficient to detect whether distributions have single or multiple modes
  • Adds Normalized Entropy as a [0,1]-scaled version of Shannon Entropy

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 12 comments.

File Description
src/cmd/moarstats.rs Core implementation: adds computation functions for the three new statistics, refactors struct/function names from "KurtosisGini" to "KGA" (Kurtosis-Gini-Atkinson), adds epsilon parameter validation, and integrates new statistics into the processing pipeline
tests/test_moarstats.rs Updates test suite with new test moarstats_advanced_atkinson_epsilon to verify Atkinson Index with custom epsilon value, and updates expected output to include new statistics columns
docs/STATS_DEFINITIONS.md Documents the three new statistics with formulas, value ranges, and Wikipedia references

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jqnatividad jqnatividad merged commit a8d3458 into master Dec 28, 2025
16 checks passed
@jqnatividad jqnatividad deleted the moarstats-gimme-moar branch December 28, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants