Add DIMTEST (Stout 1987 / Nandakumar & Stout 1993) essential-unidimensionality test - #258
Merged
Merged
Conversation
…ensionality test Implements the original (non-bootstrap) DIMTEST with caller-supplied confirmatory AT1/AT2 partitions, PT raw-score grouping (J_k >= 20), ML variance denominators, the Nandakumar & Stout (1992/1993) refined bias-correction denominator S_k, T_L/T_B statistics, and one-sided p-value. Formulas transcribed from the inspected ERIC ED351383 technical report (pre-publication of Nandakumar & Stout, 1993, JEBS). - Rust core in mlsirm-core detect.rs with pinned 17-digit oracle (independent Python reference), exact-null bits fixture, error paths, and 500-rep Monte Carlo size/power test (#[ignore]). - 5/5 mutation kills executed (sign swap, J_k-1 denominator, dropped bias correction, Jmin relaxation, two-sided p). - PyO3 binding py_dimtest + thin Python wrapper with validate-before- cast input checks; exports and pytest coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…group oracle anchors - Python wrapper now rejects non-numeric (e.g. string) response and index arrays via dtype-kind checks BEFORE any astype coercion, with regression tests for string responses and string indices. - Rust: factor dimtest grouping (dimtest_pt_groups) and per-group computation (dimtest_group_diag) out of dimtest_stat, and add a test pinning all 8x2 per-group intermediates (J_k, mean, sigma_k^2, sigma_U,k^2, mu4_k, delta4_k, S_k^2, contribution) for AT1 and AT2 against the independent oracle at 1e-12, closing the compensating-error audit gap. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Implements DIMTEST (Stout, 1987, as refined by Nandakumar & Stout, 1993) — the confirmatory test of essential unidimensionality — as iteration 27 of the paper-implementation series. Stacked on #257 (ci_classify).
Scope (spec-verify: REDUCED-SCOPE APPROVED)
Citation governance
Evidence
Adversarial impl-review outcome
dimtest_pt_groups/dimtest_group_diag, with a new test pinning all 8 groups x 2 subtests x 8 intermediates (J_k, mean, sigma_k^2, sigma_U,k^2, mu4_k, delta4_k, S_k^2, contribution) at 1e-12 against the independent oracle.