Causal Claim Referee avatar

Causal Claim Referee

Pricing

$1,880.00 / 1,000 causal claim referee runs

Go to Apify Store
Causal Claim Referee

Causal Claim Referee

Referees a causal claim against an observational table with deterministic statistics: crude and stratified effects, Mantel-Haenszel pooling, Simpson's-paradox detection, d-separation and backdoor/front-door checks with minimal adjustment sets, g-formula standardization with…

Pricing

$1,880.00 / 1,000 causal claim referee runs

Rating

0.0

(0)

Developer

WritersLogic

WritersLogic

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 hours ago

Last modified

Features

Limited permissions

Share

Referees a causal claim against an observational table (JSON rows, CSV text, or a published contingency table with counts) and leads with a verdict, confidence, whether the claim holds, the crude and adjusted effects with bootstrap intervals, and a concrete next step. Underneath: crude and stratified effects, Mantel-Haenszel pooling, Simpson's-paradox detection, d-separation and backdoor/front-door checks with minimal adjustment sets, g-formula standardization with positivity checks, exact or seeded Monte Carlo permutation tests, and a PC-algorithm check of the DAG against the data. Verdict by code rules; with a caller-supplied DAG no model is called and the result is reproducible. Conclusions hold only under the DAG and no-unmeasured-confounding assumptions, which are listed in the output; this is statistical analysis, not a substitute for a randomized trial.

Every result is a signed, verifiable answer:

  • a W3C Verifiable Credential 2.0, signed with eddsa-jcs-2022 by did:web:agents.writerslogic.com;
  • a C2PA-style manifest that lists every source the agent read, each with its SHA-256;
  • an EIP-191 co-signature over the same digest.

Change one byte and verification fails, so you can pass the result to a client, an auditor or another agent and they can check it without trusting you or us.

How to use Causal Claim Referee

  1. Fill in the input form. Required fields are marked; the form opens with a working example.
  2. Start the run.
  3. Read the result in the Output tab, or download the dataset as JSON. The full signed envelope is also saved as the OUTPUT record in the key-value store.

Input

FieldRequiredDescription
datanoObservational table as an array of row objects (at most 20000 rows). Cells are string, number, boolean or null; rows missing a used variable are dropped. Provide this or csv.
csvnoAlternative to data: CSV text with a header line (comma, semicolon or tab separated; quoted fields allowed; at most 20000 data rows). Numeric cells become numbers.
countColumnnoName of a column holding how many times each row repeats, so a published contingency table can be sent as a few aggregate rows (counts must be non-negative integers; the expanded table is capped at the row limit).
treatmentyesColumn with exactly two distinct values.
outcomeyesBinary column (risk difference, risk ratio, odds ratio) or numeric column (mean difference).
covariatesyesCandidate adjustment variables (at most 12). Numeric ones with more than bins distinct values are cut at deterministic quantile edges; others must have at most 20 levels.
claimyesThe causal claim being refereed, in plain language.
dagnoYour causal DAG (formal input: no LLM is called to build the graph or, by default, the report). Omit to have one proposed by two independent model samples, which is then an assumption.
treatedValuenoTreatment value that counts as treated; required unless the values are numeric or boolean (then the larger is treated).
successValuenoOutcome value that counts as success for a binary outcome; same default rule.
outcomeTypenoForce the outcome type; inferred from the number of distinct values otherwise.
claimDirectionnoDirection of the claimed effect of treated vs control; default nonzero.
binsnoQuantile bins for numeric covariates, default 4.
alphanoSignificance level for the permutation test and the (1-alpha) bootstrap interval, default 0.05.
seednoSeed for bootstrap and Monte Carlo; default derived from the input hash.
bootstrapRepsno
permutationSamplesnoUsed only when the exact enumeration would exceed 1000000 label assignments.
llmReportnoAsk a model to write the executive report in prose (numbers verified in code, template fallback). Default false: the report is a deterministic template over the computed results.
descriptionsnoOptional one-line description per variable, used only to propose the DAG.

Example input:

{
"data": [
{
"treatment": "A",
"stone_size": "small",
"success": 1,
"n": 81
},
{
"treatment": "A",
"stone_size": "small",
"success": 0,
"n": 6
},
{
"treatment": "A",
"stone_size": "large",
"success": 1,
"n": 192
},
{
"treatment": "A",
"stone_size": "large",
"success": 0,
"n": 71
},
{
"treatment": "B",
"stone_size": "small",
"success": 1,
"n": 234
},
{
"treatment": "B",
"stone_size": "small",
"success": 0,
"n": 36
},
{
"treatment": "B",
"stone_size": "large",
"success": 1,
"n": 55
},
{
"treatment": "B",
"stone_size": "large",
"success": 0,
"n": 25
}
],
"countColumn": "n",
"treatment": "treatment",
"outcome": "success",
"covariates": [
"stone_size"
],
"treatedValue": "B",
"claim": "Treatment B causes a higher recovery rate than treatment A.",
"claimDirection": "positive",
"dag": {
"edges": [
{
"from": "stone_size",
"to": "treatment"
},
{
"from": "stone_size",
"to": "success"
},
{
"from": "treatment",
"to": "success"
}
]
}
}

Output

{
"agent": "causalReferee",
"priceUsd": 1.88,
"data": { "...": "the agent's answer" },
"_provenance": { "credential": {}, "manifest": {}, "ethSignature": "0x..." }
}

To check a result for free, POST { "data": ..., "_provenance": ... } to https://agents.writerslogic.com/api/v1/verify-provenance, or verify it offline against the public key in the DID document.

Pricing

$1.88 per successful run, charged once and only after the agent returns its answer. If the input is rejected or the agent fails, you are not charged for the call.

Use it from code or an AI assistant

  • Apify API and integrations: call this Actor from Make, Zapier, n8n, LangChain or the Apify API like any other Actor.
  • MCP: npx -y @writerslogic/ai-agents-mcp exposes this agent and the rest of the hub as tools.
  • x402: the same agent is available at POST https://agents.writerslogic.com/api/v1/prove-causality, paid per call in USDC on Base.

More verifiable agents

FAQ

Who runs this? WritersLogic. The agent runs on the WritersLogic Verifiable AI Agent Hub; this Actor sends your input there and returns the signed result.

Is my input stored? The Actor stores your result in your own Apify storage. Ask before sending confidential documents; the hub is a third-party service from your point of view.