Skip to content

chore(deps): update dependency simple-statistics to v7.10.1 - #668

Merged
renovate[bot] merged 1 commit into
masterfrom
renovate/all-minor-patch
Aug 23, 2026
Merged

chore(deps): update dependency simple-statistics to v7.10.1#668
renovate[bot] merged 1 commit into
masterfrom
renovate/all-minor-patch

Conversation

@renovate

@renovate renovate Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
simple-statistics 7.9.37.10.1 age confidence

Release Notes

simple-statistics/simple-statistics (simple-statistics)

v7.10.1

Compare Source

Patch Changes
  • 894958a: Fix chiSquaredGoodnessOfFit() reporting a fit it never measured. Collapsing a sparse class dropped the last class instead of the one that had just been merged, so observations were discarded and others double counted; an observation past the end of the hypothesized distribution had no expected frequency at all, which made the statistic NaN; and criticalValue < NaN is false, the same answer the function gives for a good fit. Degrees of freedom and significance levels the table does not cover now raise a descriptive error instead of a TypeError or a silent false.
  • a078231: Declare that PerceptronModel#predict and PerceptronModel#train can return null. predict returns null when the feature array's length differs from what the model was trained on, and train returns null when the label is not 0 or 1 — both since their introduction — but the type declarations promised plain number and PerceptronModel, so TypeScript consumers under strictNullChecks got no warning before dereferencing the result. Runtime behavior is unchanged; only the declarations and docstrings now state the null cases.

v7.10.0

Compare Source

Minor Changes
  • 2149cff: Fix poissonDistribution() and binomialDistribution() returning a truncated table ending in Infinity or NaN. Both built each cell from a power and a factorial (or a binomial coefficient) that leave floating-point range long before their product does, so the cumulative-probability stopping rule was satisfied by a non-finite sum instead of by the distribution: poissonDistribution(200) returned 135 cells covering 0.000045% of the distribution, and binomialDistribution(10000, 0.5) returned 135 cells covering none of it. Cells are now taken through gammaln, and a table that cannot be completed returns undefined rather than a partial one.

    NOTE: this is tagged as a minor change but you should be aware that it does change behavior
    for binomialDistribution. For most users this won't be a big deal.

    1. Both functions now return undefined in cases where they used to return an array of non-finite cells. binomialDistribution(5, NaN) returned [NaN] and now returns undefined. Their TypeScript declarations widen to number[] | undefined.
    2. Evaluating cells through logarithms costs a precision where the old product form was exact: binomialDistribution(2, 0.5) returns [0.25000000000000006, 0.5000000000000006, 0.25000000000000006] rather than [0.25, 0.5, 0.25]. This precision loss is small but if you're comparing exact results, it may require updates or rounding.
Patch Changes
  • 13530b2: Fix wilcoxon rank-sum test behavior

    This fixes a bug in which the tie averaging in wilcoxonRankSum was
    incorrect and would return an unrelated position.

  • 0779f22: Fix sampleRankCorrelation returning different results for the same data depending on the order the pairs are listed in. Tied values were given distinct consecutive ranks broken by original array position, rather than sharing the average of the ranks they span as Spearman's rho requires. Reordering rows could change the magnitude and even the sign of the result. Tied values now receive midranks, so the correlation depends only on the paired data. As a consequence an input with no rank variance — every value tied — now correctly returns NaN instead of reporting near-perfect correlation. Results for inputs with no ties are unchanged.


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the renovate label Aug 23, 2026
@renovate
renovate Bot enabled auto-merge (squash) August 23, 2026 17:15
@renovate
renovate Bot merged commit 579832e into master Aug 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants