Writing claims¶
A claim is a conclusion stated so that a computer can check it. Write claims from the paper, its abstract or your own hypotheses, before you run the audit, and keep them in version control. Changing a claim after seeing a verdict defeats the purpose.
claims:
- id: C1 # unique, short
statement: "most agents are infected"
metric: attack_rate # see the grammar below
test: greater_than # greater_than | less_than | between | monotone_increasing | monotone_decreasing
value: 0.6 # for between: [low, high]
where: {beta: [0.4]} # optional parameter grid, merged over params
tolerance: 0.05 # optional equivalence margin, in the metric's units
skip_checks: # optional, every entry needs a reason
population_scale: "the claim is about one population size"
Tests¶
Test |
Holds when |
Fails when |
|---|---|---|
|
the interval for the mean lies above |
it lies below |
|
the interval lies below |
it lies above |
|
the interval lies inside |
it lies wholly outside anywhere |
|
the OLS slope over |
the slope is confidently negative, or confidently smaller than 10% of the baseline slope |
|
the same, mirrored |
the same, mirrored |
Anything between holds and fails is uncertain, and leads to an INCONCLUSIVE verdict with the number
of seeds that would settle it.
Monotone tests need over: <parameter> and at least two values of it under where.
Metric grammar¶
Form |
Example |
Meaning |
|---|---|---|
|
|
a scalar output |
|
|
one element of a series, negative indices allowed |
|
|
|
Nothing else is accepted. Metric expressions are parsed, never evaluated as code.
Tolerance¶
Equivalence needs a margin: how far a result may move and still count as the same. The default is 10%
of the absolute baseline mean at each grid point. Set tolerance when you know what difference matters
in your field, for example two days for a peak time.