Repository navigation
Bootstrap the DGSM value itself for dgsm_conf - #699
Merged
Merged
Conversation
Member
|
Thanks @raashish1601 , the changes look good to me |
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.
Fixes #698
calc_dgsmbootstrapped onlyvi, sodgsm_confwas the interval ofviwithout the(ub - lb)**2 / (D * pi**2)factor used fordgsm. It wasn't in the same units asdgsm: scalingYby 10 leftdgsmunchanged but multiplieddgsm_confby 100.Each bootstrap resample now computes the DGSM value itself, recomputing
viandD = var(base)on the resampled rows, and the interval is taken from those values.dgsmand the other outputs are unchanged.With the example from the issue,
dgsm_confis now[0.327, 0.74, 0.322]both forYand10 * Y. Before, it was[1.035, 0.981, 1.534]and[103.461, 98.082, 153.4].Tests: added
tests/test_analyze_dgsm.py, which checks thatdgsm_confdoesn't change whenYis scaled. It fails onmain. The existing DGSM tests still pass, includingtest_cli_analyze.py::test_dgsm, which checks that the reference values are withindgsm±dgsm_conf.pytest tests/test_regression.py tests/test_to_df.py tests/test_cli_analyze.pypasses locally, excepttest_cli_analyze.py::test_delta, which can't run on my Windows machine (an OS policy blocks a binary it uses) and doesn't touch DGSM. The pre-commit hooks (black, ruff) pass.