Study-Mate
Miaotofu01
你的AI学习搭档:定路线、讲知识、做项目,边学边做,学透一门科目
PerryLink/dsh-statcheck
Recompute the statistics reported in a manuscript and flag self-inconsistent p values for DeepSeek Harness: APA-style t/F/chi-square/r/z parsing, two-tailed and upper-tail p values from zero-dependency distributions, CI-versus-p checks, exact character locators, Markdown and SARIF 2.1.0 output, and a REP v1 evidence record. Arithmetic, not accusati
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:PerryLink/dsh-statcheck
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Recompute the statistics a manuscript reports — and flag the ones that do not add up.
It is arithmetic, not accusation: each finding shows the reported statistic, the p value it actually implies, and the exact characters it came from.
English · 简体中文
t(df), F(df1, df2), χ²(df), r(df), z, each with a nearby p = …, p < … or p > … and an optional 95% CI [lo, hi].dsh-doc-anchor) and pass text or a .txt/.md/.tex/.html path.| DeepSeek Harness | dsh-v0.2.1-rc.5 (verified 2026-11-08); peer line >=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0 |
| Node | ^22.19.0 \|\| >=24.9.0 (tested on 24.22.1), ESM only |
| Peers | @perrylink/dsh-research-core ^0.1.0, @deepseek-ai/cordis ^4.0.5-alpha.1, @deepseek-ai/dsh-tools, @deepseek-ai/schemastery ^3.18.5-alpha.1 |
| Runtime dependencies | zero |
dsh plugin --profile <name> add @perrylink/dsh-research-core dsh-statcheck
dsh --profile <name> --dump-config | grep dsh-statcheck
dsh plugin --profile <name> remove dsh-statcheck
stat_check{ text?, path?, persist?, maxFindings? } → { ok, summary, findings[], source, evidenceId?, recordPath? }.
Each finding: statistic, df, text, charStart, charEnd, reported { statistic, p, pKind, pValue, ci? }, recomputed { p }, status (consistent/inconsistent/unparsed), issue? (p-value/p-threshold/ci/format/df), severity, detail.
stat_recompute{ statistic: 't'|'F'|'chi2'|'r'|'z', value, df[], p? } → { ok, p, judgment? }.
t/r/z are two-tailed; F/χ² upper-tail. p uses the same rounding rule as stat_check.
stat_report{ findings, text? } → { ok, markdown, sarif, summary }. SARIF carries one error result per inconsistent finding. Pass the original manuscript text to map each finding's charStart to a real SARIF startLine/startColumn; without text, the region falls back to line 1 plus a character column (the properties.charStart/charEnd are always exact).
INVALID_INPUT · NOT_FOUND · PATH_ESCAPE · NOT_A_FILE · TOO_LARGE · OUT_OF_DOMAIN · STORE_ERROR
A reported p = x is consistent when |recomputed − x| ≤ 0.5 × 10^-decimals + 0.001.
The extra 0.001 absorbs the fact that the statistic itself is often reported rounded (e.g. t = 2.50 implies p ≈ .01855, commonly written .019). p < X is consistent when the recomputed value is below X; p > X when above.
| Key | Default | Meaning |
|---|---|---|
enabled |
true |
false mounts nothing |
root |
.statcheck |
store + records root |
workspaceRoot |
process.cwd() |
manuscript paths must resolve inside it |
maxChars |
2000000 |
analyzed-character cap (over-limit fails, never truncates) |
maxFindings |
500 |
findings per call |
persist |
true |
store a snapshot + REP record |
dsh-research-bench stats v0.1.0 (30 cases)pnpm run bench:stats
| metric | value |
|---|---|
| inconsistent precision | 1.00 |
| inconsistent recall | 1.00 |
| inconsistent F1 | 1.00 |
| clean false-positive rate | 0.00 |
| issue accuracy when flagged | 1.00 |
| exact accuracy | 1.00 |
Raw per-case predictions: bench/results-stats.json.
Scope warning: the dataset is small, synthetic and clean (10 consistent + 20 inconsistent sentences around published critical values). A perfect score shows the parser and the recomputation agree with the critical-value labels on these constructions; it does not estimate real-manuscript accuracy. The rounding rule and issue codes are documented so a reader can disagree with a specific finding.
p values in tables are out of scope.stat_report text; without it the region is line 1 + character column (the exact charStart/charEnd properties are always present).Apache-2.0. No third-party runtime code.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: research。