Phase 5: extended multivariate test battery - #6
Open
jameshoweee wants to merge 1 commit into
Open
Conversation
New tests (code/multivariate_tests.py): - Squared-norm test (5.1): ||x||^2/sigma^2 ~ chi2(dim) via KS. Catches radial flaws from coordinate correlation. - Fisher+BH meta-layer (5.2): Fisher combination of per-coordinate p-values for global verdict + BH for localization. Fixes the informal "X out of dim pass" count. - Max off-diagonal correlation (5.3): max|rho_ij| with Jiang's Gumbel limit. Catches single-pair correlation that diagcov's diagonal sums dilute. - FFT-domain battery (5.4): per-frequency variance, Re/Im independence, higher criticism across frequencies. ffSampling flaws are localized in the FFT basis. - Cross-key homogeneity (5.5): two-sample energy distance with permutation test. Tests the GPV key-independence property. - Two-sample tests (5.6): per-coordinate KS + CvM with BH correction for cross-implementation comparison. - Henze-Zirkler (5.7): MC-calibrated (not analytic log-normal, which is uncalibrated for p >= 128). Shares pairwise distance computation with energy test. Integration: - MultivariateSamples.run_multivariate_battery() runs all new tests - to_dict() includes extended results New test vectors: - mv_bad_norm_inflated: all coords share common factor (norm test) - mv_bad_cross_key: mixed sigmas simulating key-dependent output - mv_med_fft_weak: frequency at 70% variance (subtle FFT flaw) Test suite: 125 passed, 0 skipped, 0 failed
Owner
Author
|
consolidating into a single PR |
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.
New file
multivariate_tests.pywith 7 tests for the multivariate sampler output:New multivariate test vectors: norm_inflated, cross_key, fft_weak.