chore(deps): update dependency simple-statistics to v7.10.1 - #668
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.9.3→7.10.1Release Notes
simple-statistics/simple-statistics (simple-statistics)
v7.10.1Compare Source
Patch Changes
894958a: FixchiSquaredGoodnessOfFit()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 statisticNaN; andcriticalValue < NaNisfalse, 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 aTypeErroror a silentfalse.a078231: Declare thatPerceptronModel#predictandPerceptronModel#traincan returnnull.predictreturnsnullwhen the feature array's length differs from what the model was trained on, andtrainreturnsnullwhen the label is not 0 or 1 — both since their introduction — but the type declarations promised plainnumberandPerceptronModel, so TypeScript consumers understrictNullChecksgot no warning before dereferencing the result. Runtime behavior is unchanged; only the declarations and docstrings now state thenullcases.v7.10.0Compare Source
Minor Changes
2149cff: FixpoissonDistribution()andbinomialDistribution()returning a truncated table ending inInfinityorNaN. 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, andbinomialDistribution(10000, 0.5)returned 135 cells covering none of it. Cells are now taken throughgammaln, and a table that cannot be completed returnsundefinedrather 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.undefinedin cases where they used to return an array of non-finite cells.binomialDistribution(5, NaN)returned[NaN]and now returnsundefined. Their TypeScript declarations widen tonumber[] | undefined.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 behaviorThis fixes a bug in which the tie averaging in
wilcoxonRankSumwasincorrect and would return an unrelated position.
0779f22: FixsampleRankCorrelationreturning 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 returnsNaNinstead of reporting near-perfect correlation. Results for inputs with no ties are unchanged.Configuration
📅 Schedule: (in timezone Asia/Tokyo)
* 0-3 * * 1)🚦 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.
This PR was generated by Mend Renovate. View the repository job log.