Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

and we no longer need a dedicated outliers command. resolves #107

@jqnatividad jqnatividad requested a review from Copilot December 20, 2025 18:59
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 pull request enhances the moarstats command by adding comprehensive outlier detection and analysis capabilities, eliminating the need for a dedicated outliers command (resolves #107). The implementation adds 12 new outlier-related statistics along with 7 additional distribution metrics, using efficient parallel processing for large datasets.

Key Changes:

  • Added detailed outlier classification (extreme/mild, lower/upper) using IQR-based fence calculations
  • Introduced additional statistical metrics including relative standard error, z-scores for min/max, median-to-mean ratio, IQR-to-range ratio, and MAD-to-StdDev ratio
  • Implemented parallel outlier counting for indexed CSV files with automatic fallback to sequential processing
  • Enhanced duplicate column prevention to avoid re-adding statistics on subsequent runs

Reviewed changes

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

File Description
tests/test_moarstats.rs Adds comprehensive test coverage for outlier statistics, duplicate prevention, and edge cases including scenarios with and without outliers
src/cmd/moarstats.rs Implements outlier counting with parallel processing support, adds 7 new statistical computations, and enhances documentation with detailed descriptions of all computed statistics

…alert

its ok to have the same name, as Rust has shadowing
@jqnatividad jqnatividad merged commit 458a678 into master Dec 20, 2025
17 checks passed
@jqnatividad jqnatividad deleted the even-moar-stats branch December 20, 2025 19:19
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.

add outliers "smart" command

2 participants