Repository navigation
Conversation
KolmogorovSmirnovNormalityGofStatistic stores mean and var but evaluates the standard normal CDF, so the statistic ignores them. - Add a test that the statistic changes when mean and/or var differ from the defaults on the same sample. - Pass mean and var in test_ks_normality_criterion. The case labelled "mean = 11" used an N(0, 1) sample with the default N(0, 1) hypothesis; shift the sample by 11 and test it against N(11, 1). The expected value is unchanged since KS is shift-invariant (cross-checked with scipy.stats.kstest). These tests are expected to fail until the statistic is fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KolmogorovSmirnovNormalityGofStatistic evaluated the standard normal CDF and ignored the mean and var it was constructed with. Use them as loc and scale; var is a variance, so scale is its square root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Спасибо за реквест! |
Contributor
|
Надо только подправить под актуальное состояние репозитория |
f1i3g3
approved these changes
Nov 21, 2026
This branch has not been deployed
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.
Summary
Make$N(0, 1)$ .
KolmogorovSmirnovNormalityGofStatisticuse itsmeanandvarinstead of always testing againstQuick changelog
loc=mean,scale=sqrt(var)tonorm.cdf.mean/vardiffer from defaults.mean = 11case intest_ks_normality_criterionused anWhat's new?
Reproduce:
Prints
rejectedbefore the fix,not rejectedafter.