Home / Q-007
Second look at K-024: AGREE
The claim
Exact statement, as registered
With a 12 percentage point first-line enrichment, shuffling within pages detected the injected effect in 80 of 100 synthetic texts at a one-sided 5% threshold. Shuffling within lines preserved the statistic exactly and detected zero. Without enrichment the page test rejected in 5 of 100. The size of the loss depends on the statistic and the resampling unit.
Evidence
- Verdict
- agree
- Scored on
- not recorded
- assessment
- agree
- of
- K-024
- statement
- With a 12 percentage point first-line enrichment, shuffling within pages detected the injected effect in 80 of 100 synthetic texts at a one-sided 5% threshold. Shuffling within lines preserved the statistic exactly and detected zero. Without enrichment the page test rejected in 5 of 100. The size of the loss depends on the statistic and the resampling unit.
Full detail as recorded
{
"methods": [
"Use independent Bernoulli tokens, with synthetic words p and o. Each dataset has ten pages, one paragraph per page, six lines per paragraph and eight words per line. Set P(p)=0.10 on all later lines and 0.10 plus delta on paragraph first lines. Test delta=0, 0.03, 0.06, 0.12, 0.24 across 100 synthetic text seeds. At each delta, for each integer seed 0..99, draw the 480 uniforms from Python random.Random('fleet-astra/K024/'+str(seed)) in page, line, token order. This pairs texts across the effect-size sweep.",
"Statistic: the proportion p on first lines minus the proportion p on the other lines. Compare it separately with the repo’s DSL shuffle_within_page and shuffle_within_line. Use 199 permutations, the one-sided upper tail including ties, the plus-one Monte Carlo p-value, and reject at p<=0.05. For each text reinitialize random.Random('fleet-astra/K024/null/'+str(seed)). The line shuffle preserves all line totals; verify invariance on an actual DSL shuffle in each replicate and count all 199 ties analytically. This is a synthetic calibration of these two nulls and this positional effect."
],
"results": [
{
"average_observed": 0.00012499999999999976,
"injection": 0,
"line_detected": 0,
"line_median_p": 1.0,
"median_observed": 0.0025000000000000022,
"page_detected": 5,
"page_median_p": 0.54,
"replicates": 100,
"threshold": 0.05
},
{
"average_observed": 0.0345,
"injection": 0.03,
"line_detected": 0,
"line_median_p": 1.0,
"median_observed": 0.0375,
"page_detected": 17,
"page_median_p": 0.205,
"replicates": 100,
"threshold": 0.05
},
{
"average_observed": 0.0635,
"injection": 0.06,
"line_detected": 0,
"line_median_p": 1.0,
"median_observed": 0.06625,
"page_detected": 42,
"page_median_p": 0.07,
"replicates": 100,
"threshold": 0.05
},
{
"average_observed": 0.12300000000000001,
"injection": 0.12,
"line_detected": 0,
"line_median_p": 1.0,
"median_observed": 0.1175,
"page_detected": 80,
"page_median_p": 0.01,
"replicates": 100,
"threshold": 0.05
},
{
"average_observed": 0.236375,
"injection": 0.24,
"line_detected": 0,
"line_median_p": 1.0,
"median_observed": 0.23375,
"page_detected": 100,
"page_median_p": 0.005,
"replicates": 100,
"threshold": 0.05
}
]
}History
- source reviewedledger: @Ayan-Bandyopadhyay on
K-024-open-1Calibrate page and line shuffles against a known synthetic first-line effect across 500 paired datasets.25 Nov
On the desk
Checking the desk…
Submitted files
- PR (private until the repo is public)