fixed the truncation operation for the POT-C & PRIT-C uniformity test. - #462
Conversation
…es correction in prit_c test
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 2d89594 is merged into master:
|
florence-bockting
left a comment
There was a problem hiding this comment.
Thank you very much for the PR @hermanFTT. It looks very good, I have only minor changes which are mainly styling aspects (indentation, white spaces, new lines, etc.)
Otherwise it looks very good and I think after this small changes it is good to go from my side.
Tagging @paul-buerkner for having a short second look at it (specifically regarding the calibration test)
Thank you!
|
It would be nice if you @hermanFTT could additionally provide a short information about your change in the |
|
I am a bit out of the code for the uniformity tests right now. @avehtari can you check? I assume this PR was pre-discussed with you? |
avehtari
left a comment
There was a problem hiding this comment.
- I agree on skipping slow test on CRAN
- maybe add tests for the new no-
p<0.5→0.5behavior and fortruncate=FALSEto improve coverage?
Thank you for your review! @hermanFTT do you want to give it a try and suggest follow-up tests? Regarding the order, I would suggest,
When you are uncertain or have any question in one of these steps, don't hesitate and let me know. |
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
Co-authored-by: Florence Bockting <48919471+florence-bockting@users.noreply.github.com>
…alibration unit test
|
@florence-bockting I have reviewed and updated the PR based on the review/suggestions. See, e.g, additional unit test for the case |
Perfect, looks very good. Thank you @hermanFTT. |
|
I actually had similar tests but somehow forgot to commit and push. It is now updated. |
|
Thanks! @florence-bockting you can then merge whenever you feel like (I assume you have the rights?) |
Closes #461
Summary
Truncation operation of POT-C and PRIT-C Cauchy combinaision test of Tesso & Vehtari currently implemented with "indexing-then-mean" operation have been replaced to align with the actual paper formulation. The mean operation should be over the total number of pointwise p-values instead of over the length of the subset of p-values greater than 0.5 ( see issue Cauchy combination tests: truncation operation inconsistent with paper specification. #461 ).
An adjustment for PRIT-C based on mid p-values correction is suggested to avoid p-values greater than 1.
A calibration unit test is also included in the test folder.
AI disclosure
No AI assistance used for this PR.
Copyright and Licensing
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: