{"openapi":"3.1.0","info":{"title":"Statistics & Quality Engineering API","version":"1.0.0","description":"Hypothesis tests, ANOVA, regression, normality and power calculations, plus control charts, process capability, gage R&R, designed experiments, Weibull reliability and time-series decomposition, computed from the numbers you send. Paid with x402 exact USDC on Base. No account is required.","contact":{"email":"support@brainiac.software"},"x-guidance":"BRAINIAC.software is a pay-per-call API for software agents. No account or API key is required.\nPayment uses x402 with exact USDC on Base (8453). Each paid resource accepts POST for the call; unpaid GET/HEAD return the same 402 payment challenge for discovery.\nHow to call an operation:\n1. POST JSON matching the requestBody. An unpaid POST (including empty body) returns 402 payment terms before body validation.\n2. Compare 402 payTo, asset, and network with /api/v1/catalog and /.well-known/x402 — not only with the 402 itself.\n3. Pay and retry with payment-signature. Invalid JSON/schema after payment-signature returns 400 and is not charged. Settlement (a charge) only on 2xx. payment-signature attached ≠ charged.\nIdempotency-Key: 64 hex chars from 32 random bytes. Reuse only for the same operation and body (replays stored response, including status=partial). A new key runs a fresh call.\nIdempotency after errors: unpaid 402 does not store the key. Post-signature 402/503 release it (retry same key). Pre-reserve schema 400 does not store it. Other post-signature responses (2xx/4xx/5xx) are stored: same key+body replays; different body → 409. Stored 4xx/5xx replays are not a second charge. Prefer a new key after fixing a 4xx; after 5xx reuse the same key only for the stored error.\nPost-signature 402/503 include prior-payment-attempt (nonce, settled false|unknown). A facilitator 502 is SETTLEMENT_UNKNOWN (stored under the Idempotency-Key; cross-instance replay needs the shared store; may already be charged) — check USDC authorizationState(payer, nonce) on Base before re-signing.\nSettlement signal: settled 2xx include payment-response. 4xx/5xx do not. Do not book a cost from payment-signature alone.\nCoverage billing: HTTP 200 with status complete, partial, or failed is charged at the full listed price. Retrying missing checks needs a new settled call. 4xx/5xx are not charged.\nmissing_items.reason: timeout/rate_limited → one delayed retry (new key); upstream_down → after recovery; not_supported → never.\nInvariants: any missing_items ⇒ not status complete; sources[] is provenance only (source, url, retrievedAt), never success/error keyed by check.\nFree lookup: GET /api/v1/results/{result_id} returns stored coverage JSON (404 RESULT_NOT_FOUND if unknown/expired; not a 402). Prior-Result-Id sets replaces_result_id.\nOutputs are prechecks/drafts for human review — not official determinations, legal advice, or certified filings."},"servers":[{"url":"https://www.brainiac.software"}],"paths":{"/api/v1/statistics/t-test":{"post":{"operationId":"run_a_t_test_with_confidence_interval","summary":"Run a t-test with confidence interval","description":"One-sample, two-sample (Welch or pooled) and paired t-tests with the estimate, statistic, degrees of freedom, p-value, confidence interval and Cohen's d from caller-supplied numbers. Pure computation; no data is stored or fetched.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["one_sample","two_sample","paired"]},"x":{"minItems":2,"maxItems":100000,"type":"array","items":{"type":["number","null"]}},"y":{"maxItems":100000,"type":"array","items":{"type":["number","null"]}},"equalVariance":{"default":false,"type":"boolean"},"mu0":{"default":0,"type":"number"},"alternative":{"default":"two-sided","type":"string","enum":["two-sided","less","greater"]},"confidence":{"default":0.95,"type":"number","exclusiveMinimum":0.5,"exclusiveMaximum":0.9999}},"required":["kind","x"],"additionalProperties":false},"example":{"kind":"two_sample","x":[5.1,4.9,5.6,5.8,6,5.4,5.2,5.9],"y":[5.9,6.3,6.1,5.7,6.6,6.2,6,6.4],"equalVariance":false,"mu0":0,"alternative":"two-sided","confidence":0.95}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string"},"estimate":{"type":"number"},"statistic":{"type":"number"},"df":{"type":"number"},"pValue":{"type":"number"},"ci":{"type":"array","items":{"type":"number"}},"cohensD":{"type":"number"},"means":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"additionalProperties":true},"sds":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"additionalProperties":true},"n":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"additionalProperties":true},"droppedRows":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"kind":"two_sample","estimate":0.6625,"statistic":3.792631,"df":12.69114,"pValue":0.002330913,"ci":[0.2841893,1.040811],"cohensD":1.896316,"means":{"x":5.4875,"y":6.15},"sds":{"x":0.4015595,"y":0.2878492},"n":{"x":8,"y":8},"droppedRows":0,"sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["mu0 is the hypothesised mean (one-sample) or the hypothesised difference (two-sample and paired); the estimate and conf…","One-sided intervals use null for the open end.","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/anova":{"post":{"operationId":"run_one_way_or_two_way_anova","summary":"Run one-way or two-way ANOVA","description":"One-way and two-way ANOVA with interaction (Type II or III sums of squares), R-squared, Tukey HSD post-hoc comparisons and the Brown-Forsythe (median-centred Levene) test of equal variances. Sums of squares use centred two-pass accumulation and match NIST StRD SiRstv.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"design":{"type":"string","enum":["one_way","two_way"]},"rows":{"minItems":3,"maxItems":100000,"type":"array","items":{"type":"object","properties":{"y":{"type":["number","null"]},"a":{"type":"string","minLength":1},"b":{"type":"string","minLength":1}},"required":["y","a"],"additionalProperties":false}},"posthoc":{"default":"none","type":"string","enum":["tukey","none"]},"levene":{"default":false,"type":"boolean"},"ssType":{"default":"II","type":"string","enum":["II","III"]},"confidence":{"default":0.95,"type":"number","exclusiveMinimum":0.5,"exclusiveMaximum":0.9999}},"required":["design","rows"],"additionalProperties":false},"example":{"design":"one_way","rows":[{"y":196.3052,"a":"1"},{"y":196.124,"a":"1"},{"y":196.189,"a":"1"},{"y":196.2569,"a":"1"},{"y":196.3403,"a":"1"},{"y":196.3042,"a":"2"},{"y":196.3825,"a":"2"},{"y":196.1669,"a":"2"},{"y":196.3257,"a":"2"},{"y":196.0422,"a":"2"},{"y":196.1303,"a":"3"},{"y":196.2005,"a":"3"},{"y":196.2889,"a":"3"},{"y":196.0343,"a":"3"},{"y":196.1811,"a":"3"},{"y":196.2795,"a":"4"},{"y":196.1748,"a":"4"},{"y":196.1494,"a":"4"},{"y":196.1485,"a":"4"},{"y":195.9885,"a":"4"},{"y":196.2119,"a":"5"},{"y":196.1051,"a":"5"},{"y":196.185,"a":"5"},{"y":196.0052,"a":"5"},{"y":196.209,"a":"5"}],"posthoc":"tukey","levene":true}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"df":{"type":"number"},"ss":{"type":"number"},"ms":{"type":"number"},"F":{"type":"number"},"p":{"type":"number"}},"additionalProperties":true}},"rSquared":{"type":"number"},"tukey":{"type":"array","items":{"type":"object","properties":{"factor":{"type":"string"},"pair":{"type":"array","items":{"type":"string"}},"diff":{"type":"number"},"lower":{"type":"number"},"upper":{"type":"number"},"pAdj":{"type":"number"}},"additionalProperties":true}},"levene":{"type":"object","properties":{"center":{"type":"string"},"W":{"type":"number"},"p":{"type":"number"}},"additionalProperties":true},"droppedRows":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"table":[{"source":"a","df":4,"ss":0.05114626,"ms":0.01278657,"F":1.180462,"p":0.3494475},{"source":"residual","df":20,"ss":0.2166366,"ms":0.01083183}],"rSquared":0.190999,"tukey":[{"factor":"a","pair":["1","2"],"diff":0.00122,"lower":-0.1957485,"upper":0.1981885,"pAdj":1},{"factor":"a","pair":["1","3"],"diff":-0.07606,"lower":-0.2730285,"upper":0.1209085,"pAdj":0.7755731},"…"],"levene":{"center":"median","W":0.2266032,"p":0.9202796},"droppedRows":0,"sources":[{"source":"NIST Statistical Reference Datasets (StRD)","url":"https://www.itl.nist.gov/div898/strd/","retrievedAt":"2026-11-14","status":"ok"},{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Sums of squares use centred two-pass accumulation; Tukey HSD uses the studentised range distribution (Tukey-Kramer for …"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/chi-square-test":{"post":{"operationId":"run_a_chi_square_test","summary":"Run a chi-square test","description":"Chi-square test of independence (with optional Yates correction), goodness of fit, Fisher's exact test for 2x2 tables and Cramer's V, with expected counts and a low-expected-cell warning.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["independence","goodness_of_fit"]},"table":{"minItems":2,"maxItems":50,"type":"array","items":{"minItems":2,"maxItems":50,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"yates":{"default":false,"type":"boolean"},"fisher":{"default":false,"type":"boolean"},"observed":{"minItems":2,"maxItems":1000,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},"expectedProportions":{"minItems":2,"maxItems":1000,"type":"array","items":{"type":"number","minimum":0}}},"required":["kind"],"additionalProperties":false},"example":{"kind":"independence","table":[[30,10],[20,40]],"yates":false,"fisher":true}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"chiSquare":{"type":"number"},"df":{"type":"number"},"pValue":{"type":"number"},"expected":{"type":"array","items":{"type":"array","items":{"type":"number"}}},"cramersV":{"type":"number"},"fisher":{"type":"object","properties":{"oddsRatio":{"type":"number"},"pValue":{"type":"number"}},"additionalProperties":true},"lowExpectedCells":{"type":"number"},"yates":{"type":"boolean"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"chiSquare":16.66667,"df":1,"pValue":0.00004455709,"expected":[[20,20],[30,30]],"cramersV":0.4082483,"fisher":{"oddsRatio":6,"pValue":0.00008308659},"lowExpectedCells":0,"yates":false,"sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Cramer's V uses the uncorrected chi-square statistic.","The Fisher odds ratio is the sample odds ratio (a*d)/(b*c); it is null when the denominator is zero."]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/nonparametric-tests":{"post":{"operationId":"run_a_nonparametric_test","summary":"Run a nonparametric test","description":"Mann-Whitney U, Wilcoxon signed-rank, Kruskal-Wallis, Friedman and sign tests with average-rank ties, exact p-values for samples up to 50 and tie-corrected normal approximations.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"test":{"type":"string","enum":["mann_whitney","wilcoxon_signed_rank","kruskal_wallis","friedman","sign"]},"x":{"minItems":1,"maxItems":100000,"type":"array","items":{"type":["number","null"]}},"y":{"minItems":1,"maxItems":100000,"type":"array","items":{"type":["number","null"]}},"groups":{"minItems":2,"maxItems":100,"type":"array","items":{"minItems":1,"maxItems":100000,"type":"array","items":{"type":["number","null"]}}},"blocks":{"minItems":2,"maxItems":100000,"type":"array","items":{"minItems":2,"maxItems":100,"type":"array","items":{"type":"number"}}},"mu0":{"default":0,"type":"number"},"exact":{"default":"auto","anyOf":[{"type":"string","const":"auto"},{"type":"boolean"}]}},"required":["test"],"additionalProperties":false},"example":{"test":"mann_whitney","x":[5.1,4.9,5.6,5.8,6,5.4,5.2,5.9],"y":[5.9,6.3,6.1,5.7,6.6,6.2,6,6.4],"exact":"auto"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"statistic":{"type":"number"},"pValue":{"type":"number"},"method":{"type":"string"},"tieCorrection":{"type":"boolean"},"n":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"additionalProperties":true},"droppedRows":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"statistic":59,"pValue":0.002952603,"method":"exact","tieCorrection":true,"n":{"x":8,"y":8},"droppedRows":0,"sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Two-sided p-values only.","Ties are present: the exact p-value uses the no-ties null distribution of U. Pass exact false for the tie-corrected nor…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/linear-regression":{"post":{"operationId":"fit_a_multiple_linear_regression","summary":"Fit a multiple linear regression","description":"Ordinary least squares by Householder QR with coefficient standard errors, t-tests and intervals, R-squared, F, VIF, Durbin-Watson, Breusch-Pagan and confidence and prediction intervals. Matches NIST StRD Norris and Longley.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"y":{"minItems":3,"maxItems":100000,"type":"array","items":{"type":["number","null"]}},"X":{"minItems":3,"maxItems":100000,"type":"array","items":{"minItems":1,"maxItems":50,"type":"array","items":{"type":["number","null"]}}},"names":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"intercept":{"default":true,"type":"boolean"},"predict":{"maxItems":1000,"type":"array","items":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"number"}}},"confidence":{"default":0.95,"type":"number","exclusiveMinimum":0.5,"exclusiveMaximum":0.9999}},"required":["y","X"],"additionalProperties":false},"example":{"y":[0.1,338.8,118.1,888,9.2,228.1,668.5,998.5,449.1,778.9,559.2,0.3,0.1,778.1,668.8,339.3,448.9,10.8,557.7,228.3,998,888.8,119.6,0.3,0.6,557.6,339.3,888,998.5,778.9,10.2,117.6,228.9,668.4,449.2,0.2],"X":[[0.2],[337.4],[118.2],[884.6],[10.1],[226.5],[666.3],[996.3],[448.6],[777],[558.2],[0.4],[0.6],[775.5],[666.9],[338],[447.5],[11.6],[556],[228.1],[995.8],[887.6],[120.2],[0.3],[0.3],[556.8],[339.1],[887.2],[999],[779],[11.1],[118.3],[229.2],[669.1],[448.9],[0.5]],"names":["x1"],"intercept":true,"predict":[[500]],"confidence":0.95}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"coefficients":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"estimate":{"type":"number"},"se":{"type":"number"},"t":{"type":"number"},"p":{"type":"number"},"ciLow":{"type":"number"},"ciHigh":{"type":"number"},"vif":{"type":"null"}},"additionalProperties":true}},"rSquared":{"type":"number"},"adjRSquared":{"type":"number"},"residualSd":{"type":"number"},"F":{"type":"number"},"dfModel":{"type":"number"},"dfResidual":{"type":"number"},"durbinWatson":{"type":"number"},"breuschPagan":{"type":"object","properties":{"stat":{"type":"number"},"p":{"type":"number"}},"additionalProperties":true},"predictions":{"type":"array","items":{"type":"object","properties":{"fit":{"type":"number"},"ciLow":{"type":"number"},"ciHigh":{"type":"number"},"piLow":{"type":"number"},"piHigh":{"type":"number"}},"additionalProperties":true}},"n":{"type":"number"},"droppedRows":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"coefficients":[{"name":"intercept","estimate":-0.2623231,"se":0.2328182,"t":-1.126729,"p":0.2677467,"ciLow":-0.7354667,"ciHigh":0.2108205,"vif":null},{"name":"x1","estimate":1.002117,"se":0.0004297968,"t":2331.606,"p":4.654041e-90,"ciLow":1.001243,"ciHigh":1.00299,"vif":null}],"rSquared":0.9999937,"adjRSquared":0.9999936,"residualSd":0.8847964,"F":5436386,"dfModel":1,"dfResidual":34,"durbinWatson":1.271509,"breuschPagan":{"stat":7.426888,"p":0.006425636},"predictions":[{"fit":500.7961,"ciLow":500.4882,"ciHigh":501.104,"piLow":498.9718,"piHigh":502.6204}],"n":36,"droppedRows":0,"sources":[{"source":"NIST Statistical Reference Datasets (StRD)","url":"https://www.itl.nist.gov/div898/strd/","retrievedAt":"2026-11-14","status":"ok"},{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["OLS by Householder QR on centred, column-scaled predictors; normal equations are never formed.","Durbin-Watson uses the row order supplied. Breusch-Pagan is the Koenker studentised form (n * R-squared of squared resi…","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/logistic-regression":{"post":{"operationId":"fit_a_binary_logistic_regression","summary":"Fit a binary logistic regression","description":"Binary logistic regression by iteratively reweighted least squares with odds ratios and intervals, deviance, AIC, Hosmer-Lemeshow goodness of fit, a confusion matrix at a chosen threshold and complete-separation detection.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"y":{"minItems":10,"maxItems":100000,"type":"array","items":{"anyOf":[{"type":"integer","minimum":0,"maximum":1},{"type":"null"}]}},"X":{"minItems":10,"maxItems":100000,"type":"array","items":{"minItems":1,"maxItems":30,"type":"array","items":{"type":["number","null"]}}},"names":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1}},"threshold":{"default":0.5,"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},"hlGroups":{"default":10,"type":"integer","minimum":3,"maximum":50}},"required":["y","X"],"additionalProperties":false},"example":{"y":[0,0,0,0,0,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1],"X":[[0.5],[0.75],[1],[1.25],[1.5],[1.75],[1.75],[2],[2.25],[2.5],[2.75],[3],[3.25],[3.5],[4],[4.25],[4.5],[4.75],[5],[5.5]],"names":["hours"],"threshold":0.5,"hlGroups":10}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"coefficients":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"estimate":{"type":"number"},"se":{"type":"number"},"z":{"type":"number"},"p":{"type":"number"},"oddsRatio":{"type":"number"},"orCi":{"type":"array","items":{"type":"number"}}},"additionalProperties":true}},"deviance":{"type":"number"},"nullDeviance":{"type":"number"},"aic":{"type":"number"},"hosmerLemeshow":{"type":"object","properties":{"chiSquare":{"type":"number"},"df":{"type":"number"},"p":{"type":"number"}},"additionalProperties":true},"confusion":{"type":"object","properties":{"tp":{"type":"number"},"fp":{"type":"number"},"fn":{"type":"number"},"tn":{"type":"number"}},"additionalProperties":true},"converged":{"type":"boolean"},"iterations":{"type":"number"},"n":{"type":"number"},"droppedRows":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"coefficients":[{"name":"intercept","estimate":-4.077713,"se":1.760994,"z":-2.315574,"p":0.02058152},{"name":"hours","estimate":1.504645,"se":0.6287208,"z":2.393185,"p":0.01670281,"oddsRatio":4.502557,"orCi":[1.31305,15.43964]}],"deviance":16.05976,"nullDeviance":27.72589,"aic":20.05976,"hosmerLemeshow":{"chiSquare":2.647725,"df":8,"p":0.9544861},"confusion":{"tp":8,"fp":2,"fn":2,"tn":8},"converged":true,"iterations":7,"n":20,"droppedRows":0,"sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["IRLS (Newton-Raphson) from beta = 0, stopping when max |change| < 1e-10 or after 50 iterations; each step is a Househol…","Odds-ratio intervals use exp(beta +/- 1.96 SE). Hosmer-Lemeshow groups come from a stable sort on fitted probability."]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/normality-test":{"post":{"operationId":"test_data_for_normality","summary":"Test data for normality","description":"Anderson-Darling, Shapiro-Wilk (Royston AS R94) and Lilliefors tests of normality with optional normal probability plot coordinates. Shapiro-Wilk and Anderson-Darling agree with SciPy and statsmodels.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"x":{"minItems":3,"maxItems":100000,"type":"array","items":{"type":["number","null"]}},"tests":{"default":["anderson_darling","shapiro_wilk","lilliefors"],"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["anderson_darling","shapiro_wilk","lilliefors"]}},"plot":{"default":false,"type":"boolean"}},"required":["x"],"additionalProperties":false},"example":{"x":[2.39,2.7,2.95,3.1,3.21,3.33,3.48,3.61,3.77,3.9,4.05,4.27,4.44,4.71,5.2],"tests":["anderson_darling","shapiro_wilk","lilliefors"],"plot":true}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"anderson_darling":{"type":"object","properties":{"A2":{"type":"number"},"A2Adjusted":{"type":"number"},"p":{"type":"number"}},"additionalProperties":true},"shapiro_wilk":{"type":"object","properties":{"W":{"type":"number"},"p":{"type":"number"}},"additionalProperties":true},"lilliefors":{"type":"object","properties":{"D":{"type":"number"},"p":{"type":"number"}},"additionalProperties":true},"plot":{"type":"array","items":{"type":"object","properties":{"x":{"type":"number"},"theoretical":{"type":"number"}},"additionalProperties":true}},"n":{"type":"number"},"droppedRows":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"anderson_darling":{"A2":0.08929639,"A2Adjusted":0.09465417,"p":0.9971691},"shapiro_wilk":{"W":0.9904953,"p":0.9995884},"lilliefors":{"D":0.07178418,"p":0.99},"plot":[{"x":2.39,"theoretical":-1.739384},{"x":2.7,"theoretical":-1.245046},"…"],"n":15,"droppedRows":0,"sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Anderson-Darling p uses the D'Agostino and Stephens (1986) piecewise formula for estimated mean and variance.","Shapiro-Wilk follows Royston (1995), algorithm AS R94.","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/power-sample-size":{"post":{"operationId":"calculate_statistical_power_or_sample_size","summary":"Calculate statistical power or sample size","description":"Power or required sample size for a two-sample t-test (noncentral t), one-way ANOVA (noncentral F), two proportions (Cohen's h) and a correlation (Fisher z). Exactly one of n or power is solved.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"test":{"type":"string","enum":["t_two_sample","anova_oneway","two_proportions","correlation"]},"effectSize":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"alpha":{"default":0.05,"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},"power":{"anyOf":[{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"null"}]},"n":{"anyOf":[{"type":"number","exclusiveMinimum":1,"maximum":10000000},{"type":"null"}]},"groups":{"type":"integer","minimum":2,"maximum":100},"p1":{"anyOf":[{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"null"}]},"p2":{"anyOf":[{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1},{"type":"null"}]},"r":{"anyOf":[{"type":"number","exclusiveMinimum":-1,"exclusiveMaximum":1},{"type":"null"}]}},"required":["test"],"additionalProperties":false},"example":{"test":"t_two_sample","effectSize":0.5,"alpha":0.05,"power":0.8,"n":null,"groups":3,"p1":null,"p2":null,"r":null}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"nPerGroup":{"type":"number"},"nRaw":{"type":"number"},"totalN":{"type":"number"},"power":{"type":"number"},"method":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"nPerGroup":64,"nRaw":63.76561,"totalN":128,"power":0.8014596,"method":"noncentral t","sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"},{"source":"Cohen (1988) Statistical Power Analysis for the Behavioral Sciences","url":"https://doi.org/10.4324/9780203771587","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Balanced designs, two-sided tests. n is the sample size per group (anova_oneway, t_two_sample, two_proportions) or the …"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/control-chart":{"post":{"operationId":"compute_control_chart_limits_and_violations","summary":"Compute control chart limits and violations","description":"Control limits and Western Electric or Nelson rule violations for I-MR, X-bar R, X-bar S, p, np, c and u charts from caller-supplied measurements or counts, with optional fixed Phase II limits.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chart":{"type":"string","enum":["imr","xbar_r","xbar_s","p","np","c","u"]},"values":{"minItems":2,"maxItems":100000,"type":"array","items":{"type":"number"}},"subgroups":{"minItems":2,"maxItems":100000,"type":"array","items":{"minItems":2,"maxItems":50,"type":"array","items":{"type":"number"}}},"counts":{"minItems":2,"maxItems":100000,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},"sizes":{"minItems":2,"maxItems":100000,"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"size":{"type":"integer","minimum":1,"maximum":9007199254740991},"rules":{"default":["we1"],"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","enum":["we1","we2","we3","we4","n5","n6","n7","n8"]}},"phase":{"default":"I","type":"string","enum":["I","II"]},"limits":{"type":"object","properties":{"center":{"type":"number"},"ucl":{"type":"number"},"lcl":{"type":"number"},"secondary":{"type":"object","properties":{"center":{"type":"number"},"ucl":{"type":"number"},"lcl":{"type":"number"}},"required":["center","ucl","lcl"],"additionalProperties":false}},"required":["center","ucl","lcl"],"additionalProperties":false}},"required":["chart"],"additionalProperties":false},"example":{"chart":"xbar_r","subgroups":[[10.2,9.9,10.1,10,10.3],[9.8,10,10.1,9.9,10.2],[10.1,10.4,10,10.2,10.3],[9.9,9.7,10,10.1,9.8],[10,10.2,9.9,10.1,10],[10.6,10.8,10.5,10.7,10.9]],"rules":["we1","we2","we3","we4"],"phase":"I"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"chart":{"type":"string"},"phase":{"type":"string"},"center":{"type":"number"},"ucl":{"type":"number"},"lcl":{"type":"number"},"secondary":{"type":"object","properties":{"chart":{"type":"string"},"center":{"type":"number"},"ucl":{"type":"number"},"lcl":{"type":"number"},"points":{"type":"array","items":{}}},"additionalProperties":true},"points":{"type":"array","items":{"type":"object","properties":{"i":{"type":"number"},"value":{"type":"number"},"violations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true}},"sigmaWithin":{"type":"number"},"subgroupSize":{"type":"number"},"n":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"chart":"xbar_r","phase":"I","center":10.15667,"ucl":10.37785,"lcl":9.935483,"secondary":{"chart":"R","center":0.3833333,"ucl":0.8103667,"lcl":0,"points":[]},"points":[{"i":4,"value":9.9,"violations":["we1","we2"]},{"i":6,"value":10.7,"violations":["we1"]}],"sigmaWithin":0.1648037,"subgroupSize":5,"n":6,"sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"},{"source":"ASTM E2587 Standard Practice for Use of Control Charts in Statistical Process Control","url":"https://www.astm.org/e2587-16.html","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Phase I limits are computed from all points supplied; remove assignable causes and re-run for Phase II limits.","Rule violations flag the point that completes the pattern. Points are 1-based; only points with violations are listed.","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.04"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/process-capability":{"post":{"operationId":"calculate_process_capability_indices","summary":"Calculate process capability indices","description":"Cp, Cpk, Pp, Ppk, Cpm and expected parts per million out of specification from individual values or subgroups, with R-bar, S-bar or pooled within-subgroup sigma, an optional Box-Cox transform and a Bissell interval for Cpk.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"values":{"minItems":2,"maxItems":100000,"type":"array","items":{"type":["number","null"]}},"subgroups":{"minItems":2,"maxItems":100000,"type":"array","items":{"minItems":2,"maxItems":50,"type":"array","items":{"type":"number"}}},"lsl":{"type":"number"},"usl":{"type":"number"},"target":{"type":"number"},"withinMethod":{"default":"rbar","type":"string","enum":["rbar","sbar","pooled"]},"transform":{"default":"none","type":"string","enum":["none","box_cox"]}},"additionalProperties":false},"example":{"subgroups":[[10.2,9.9,10.1,10,10.3],[9.8,10,10.1,9.9,10.2],[10.1,10.4,10,10.2,10.3],[9.9,9.7,10,10.1,9.8],[10,10.2,9.9,10.1,10]],"lsl":9.5,"usl":10.5,"target":10,"withinMethod":"rbar","transform":"none"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"mean":{"type":"number"},"sigmaWithin":{"type":"number"},"sigmaOverall":{"type":"number"},"Cp":{"type":"number"},"Cpk":{"type":"number"},"Cpu":{"type":"number"},"Cpl":{"type":"number"},"Pp":{"type":"number"},"Ppk":{"type":"number"},"Ppu":{"type":"number"},"Ppl":{"type":"number"},"Cpm":{"type":"number"},"cpkCi":{"type":"array","items":{"type":"number"}},"ppmExpectedOverall":{"type":"number"},"ppmExpectedWithin":{"type":"number"},"ppmObserved":{"type":"number"},"n":{"type":"number"},"withinMethod":{"type":"string"},"transform":{"type":"string"},"lambda":{"type":"null"},"droppedRows":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"mean":10.048,"sigmaWithin":0.1633706,"sigmaOverall":0.171075,"Cp":1.020175,"Cpk":0.9222386,"Cpu":0.9222386,"Cpl":1.118112,"Pp":0.9742314,"Ppk":0.8807052,"Ppu":0.8807052,"Ppl":1.067758,"Cpm":0.9380087,"cpkCi":[0.6304441,1.214033],"ppmExpectedOverall":4798.873,"ppmExpectedWithin":3228.982,"ppmObserved":0,"n":25,"withinMethod":"rbar","transform":"none","lambda":null,"droppedRows":0,"sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"},{"source":"AIAG Statistical Process Control (SPC) reference manual, 2nd edition","url":"https://www.aiag.org/quality/automotive-core-tools/spc","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Assumes a stable, approximately normal process; expected PPM comes from the normal distribution with the overall standa…","Cpk interval is the Bissell approximation at 95%."]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.04"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/gage-rr":{"post":{"operationId":"run_a_crossed_gage_r_r_study","summary":"Run a crossed gage R&R study","description":"Crossed gage repeatability and reproducibility by the ANOVA method: variance components, percent contribution, percent study variation, percent tolerance and number of distinct categories for a balanced parts by operators by replicates study.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"measurements":{"minItems":8,"maxItems":100000,"type":"array","items":{"type":"object","properties":{"part":{"type":"string","minLength":1},"operator":{"type":"string","minLength":1},"value":{"type":"number"}},"required":["part","operator","value"],"additionalProperties":false}},"tolerance":{"type":"number","exclusiveMinimum":0},"studyVarMultiplier":{"default":6,"anyOf":[{"type":"number","const":5.15},{"type":"number","const":6}]},"removeInteractionAbove":{"default":0.25,"type":"number","minimum":0,"maximum":1}},"required":["measurements"],"additionalProperties":false},"example":{"measurements":[{"part":"1","operator":"A","value":2.01},{"part":"1","operator":"A","value":1.99},{"part":"1","operator":"B","value":2.06},{"part":"1","operator":"B","value":2.04},{"part":"1","operator":"C","value":1.97},{"part":"1","operator":"C","value":1.99},{"part":"2","operator":"A","value":2.42},{"part":"2","operator":"A","value":2.4},{"part":"2","operator":"B","value":2.46},{"part":"2","operator":"B","value":2.44},{"part":"2","operator":"C","value":2.36},{"part":"2","operator":"C","value":2.39},{"part":"3","operator":"A","value":1.79},{"part":"3","operator":"A","value":1.82},{"part":"3","operator":"B","value":1.86},{"part":"3","operator":"B","value":1.84},{"part":"3","operator":"C","value":1.77},{"part":"3","operator":"C","value":1.78},{"part":"4","operator":"A","value":2.91},{"part":"4","operator":"A","value":2.89},{"part":"4","operator":"B","value":2.95},{"part":"4","operator":"B","value":2.96},{"part":"4","operator":"C","value":2.88},{"part":"4","operator":"C","value":2.86},{"part":"5","operator":"A","value":2.2},{"part":"5","operator":"A","value":2.22},{"part":"5","operator":"B","value":2.26},{"part":"5","operator":"B","value":2.25},{"part":"5","operator":"C","value":2.16},{"part":"5","operator":"C","value":2.18}],"tolerance":1,"studyVarMultiplier":6,"removeInteractionAbove":0.25}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"anova":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"df":{"type":"number"},"ss":{"type":"number"},"ms":{"type":"number"},"F":{"type":"number"},"p":{"type":"number"}},"additionalProperties":true}},"interactionPooled":{"type":"boolean"},"components":{"type":"object","properties":{"repeatability":{"type":"number"},"reproducibility":{"type":"number"},"grr":{"type":"number"},"part":{"type":"number"},"total":{"type":"number"},"operator":{"type":"number"},"interaction":{"type":"number"}},"additionalProperties":true},"table":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"variance":{"type":"number"},"sd":{"type":"number"},"studyVar":{"type":"number"},"pctContribution":{"type":"number"},"pctStudyVar":{"type":"number"},"pctTolerance":{"type":"number"}},"additionalProperties":true}},"pctContributionGrr":{"type":"number"},"pctStudyVarGrr":{"type":"number"},"pctTolerance":{"type":"number"},"ndc":{"type":"number"},"parts":{"type":"number"},"operators":{"type":"number"},"replicates":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"anova":[{"source":"part","df":4,"ss":4.260847,"ms":1.065212,"F":7198.786,"p":2.953262e-35},{"source":"operator","df":2,"ss":0.03084667,"ms":0.01542333,"F":104.2321,"p":2.939713e-12},"…"],"interactionPooled":true,"components":{"repeatability":0.000147971,"reproducibility":0.001527536,"grr":0.001675507,"part":0.1775106,"total":0.1791861,"operator":0.001527536,"interaction":0},"table":[{"source":"repeatability","variance":0.000147971,"sd":0.01216433,"studyVar":0.072986,"pctContribution":0.08257951,"pctStudyVar":2.873665,"pctTolerance":7.2986},{"source":"reproducibility","variance":0.001527536,"sd":0.03908371,"studyVar":0.2345022,"pctContribution":0.8524858,"pctStudyVar":9.233016,"pctTolerance":23.45022},"…"],"pctContributionGrr":0.9350653,"pctStudyVarGrr":9.669877,"pctTolerance":24.55978,"ndc":14,"parts":5,"operators":3,"replicates":2,"sources":[{"source":"AIAG Measurement Systems Analysis (MSA) reference manual, 4th edition","url":"https://www.aiag.org/quality/automotive-core-tools/msa","retrievedAt":"2026-11-14","status":"ok"},{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Crossed, balanced ANOVA method. The interaction is pooled into repeatability when its p-value exceeds removeInteraction…","Part and operator F tests use the part-by-operator mean square (the pooled mean square when the interaction is pooled).","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/doe-design-generate":{"post":{"operationId":"generate_a_designed_experiment","summary":"Generate a designed experiment","description":"Full and fractional factorial (with defining relation, resolution and alias structure), Plackett-Burman and central composite designs in standard order, optionally randomised with a seeded xorshift128+ shuffle that is reproducible across languages.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["full_factorial","fractional_factorial","plackett_burman","central_composite"]},"factors":{"minItems":2,"maxItems":47,"type":"array","items":{"type":"string","minLength":1}},"generators":{"maxItems":14,"type":"array","items":{"type":"string","minLength":3}},"centerPoints":{"default":0,"type":"integer","minimum":0,"maximum":1000},"replicates":{"default":1,"type":"integer","minimum":1,"maximum":100},"randomize":{"default":false,"type":"boolean"},"seed":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"alpha":{"default":"rotatable","anyOf":[{"type":"string","enum":["rotatable","face_centered"]},{"type":"number","exclusiveMinimum":0}]}},"required":["type","factors"],"additionalProperties":false},"example":{"type":"fractional_factorial","factors":["A","B","C","D","E"],"generators":["D=AB","E=AC"],"centerPoints":0,"replicates":1,"randomize":false,"seed":1}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"runs":{"type":"number"},"resolution":{"type":"number"},"definingRelation":{"type":"array","items":{"type":"string"}},"aliases":{"type":"object","properties":{"A":{"type":"array","items":{"type":"string"}},"B":{"type":"array","items":{"type":"string"}},"C":{"type":"array","items":{"type":"string"}},"D":{"type":"array","items":{"type":"string"}},"E":{"type":"array","items":{"type":"string"}},"AB":{"type":"array","items":{"type":"string"}},"AC":{"type":"array","items":{"type":"string"}},"AD":{"type":"array","items":{"type":"string"}},"AE":{"type":"array","items":{"type":"string"}},"BC":{"type":"array","items":{"type":"string"}},"BD":{"type":"array","items":{"type":"string"}},"BE":{"type":"array","items":{"type":"string"}},"CD":{"type":"array","items":{"type":"string"}},"CE":{"type":"array","items":{"type":"string"}},"DE":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"matrix":{"type":"array","items":{"type":"object","properties":{"std":{"type":"number"},"run":{"type":"number"},"A":{"type":"number"},"B":{"type":"number"},"C":{"type":"number"},"D":{"type":"number"},"E":{"type":"number"}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"runs":8,"resolution":3,"definingRelation":["I","ABD","…"],"aliases":{"A":["BD","CE","…"],"B":["AD","ABCE","…"],"C":["ABCD","AE","…"],"D":["AB","ACDE","…"],"E":["ABDE","AC","…"],"AB":["D","BCE","…"],"AC":["BCD","E","…"],"AD":["B","CDE","…"],"AE":["BDE","C","…"],"BC":["ACD","ABE","…"],"BD":["A","ABCDE","…"],"BE":["ADE","ABC","…"],"CD":["ABC","ADE","…"],"CE":["ABCDE","A","…"],"DE":["ABE","ACD","…"]},"matrix":[{"std":1,"run":1,"A":-1,"B":-1,"C":-1,"D":1,"E":1},{"std":2,"run":2,"A":1,"B":-1,"C":-1,"D":-1,"E":-1},"…"],"sources":[{"source":"Box, Hunter & Hunter (2005) Statistics for Experimenters; Plackett & Burman (1946)","url":"https://www.wiley.com/en-us/Statistics+for+Experimenters:+Design,+Innovation,+and+Discovery,+2nd+Edition-p-9780471718130","retrievedAt":"2026-11-14","status":"ok"},{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Coded levels are -1 and +1 (and 0 for centre points, +/- alpha for axial points). Standard order changes the first fact…","Generators, defining relation and aliases use factor codes A, B, C, ... in the order of `factors`."]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/doe-effects-analyze":{"post":{"operationId":"analyse_two_level_factorial_effects","summary":"Analyse two-level factorial effects","description":"Effects, coefficients and standardised effects for a two-level factorial, with Lenth's pseudo standard error and margin of error for unreplicated designs or a pure-error ANOVA when runs are replicated, sorted as a Pareto of effects.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"matrix":{"minItems":4,"maxItems":1024,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}}},"response":{"minItems":4,"maxItems":1024,"type":"array","items":{"type":"number"}},"terms":{"default":"all_interactions","type":"string","enum":["main","two_way","all_interactions"]},"alpha":{"default":0.05,"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["matrix","response"],"additionalProperties":false},"example":{"matrix":[{"A":-1,"B":-1,"C":-1},{"A":1,"B":-1,"C":-1},{"A":-1,"B":1,"C":-1},{"A":1,"B":1,"C":-1},{"A":-1,"B":-1,"C":1},{"A":1,"B":-1,"C":1},{"A":-1,"B":1,"C":1},{"A":1,"B":1,"C":1}],"response":[60,72,54,68,52,83,45,80],"terms":"all_interactions","alpha":0.05}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"intercept":{"type":"number"},"effects":{"type":"array","items":{"type":"object","properties":{"term":{"type":"string"},"effect":{"type":"number"},"coefficient":{"type":"number"},"t":{"type":"number"}},"additionalProperties":true}},"lenth":{"type":"object","properties":{"s0":{"type":"number"},"pse":{"type":"number"},"marginOfError":{"type":"number"},"df":{"type":"number"}},"additionalProperties":true},"anova":{"type":"null"},"significant":{"type":"array","items":{"type":"string"}},"confounded":{"type":"array","items":{}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"intercept":64.25,"effects":[{"term":"A","effect":23,"coefficient":11.5,"t":10.22222},{"term":"AC","effect":10,"coefficient":5,"t":4.444444},"…"],"lenth":{"s0":2.25,"pse":2.25,"marginOfError":8.469277,"df":2.333333},"anova":null,"significant":["A","AC"],"confounded":[],"sources":[{"source":"Box, Hunter & Hunter (2005); Lenth (1989) Technometrics 31(4)","url":"https://doi.org/10.1080/00401706.1989.10488595","retrievedAt":"2026-11-14","status":"ok"},{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Effect = sum(x * y) / (N / 2) on the coded +/-1 matrix; coefficient = effect / 2. The design is assumed orthogonal.","Terms are ordered by interaction order; a term whose column duplicates (or negates) an earlier term is confounded with …","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/weibull-reliability":{"post":{"operationId":"fit_a_life_distribution_to_censored_data","summary":"Fit a life distribution to censored data","description":"Maximum-likelihood Weibull, lognormal or exponential life fits to right-censored failure data with Fisher-matrix confidence bounds, B-lives, reliability at chosen times and mean time to failure.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"times":{"minItems":3,"maxItems":100000,"type":"array","items":{"type":"number","exclusiveMinimum":0}},"failed":{"minItems":3,"maxItems":100000,"type":"array","items":{"type":"integer","minimum":0,"maximum":1}},"distribution":{"default":"weibull","type":"string","enum":["weibull","lognormal","exponential"]},"bLives":{"default":[],"maxItems":100,"type":"array","items":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":100}},"reliabilityAt":{"default":[],"maxItems":1000,"type":"array","items":{"type":"number","exclusiveMinimum":0}},"confidence":{"default":0.95,"type":"number","exclusiveMinimum":0.5,"exclusiveMaximum":0.9999}},"required":["times","failed"],"additionalProperties":false},"example":{"times":[105,140,183,212,237,265,301,350,350,350],"failed":[1,1,1,1,1,1,1,0,0,0],"distribution":"weibull","bLives":[10],"reliabilityAt":[200],"confidence":0.95}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"failures":{"type":"number"},"censored":{"type":"number"},"confidence":{"type":"number"},"distribution":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}},"parameters":{"type":"object","properties":{"shape":{"type":"number"},"scale":{"type":"number"}},"additionalProperties":true},"parameterCi":{"type":"object","properties":{"shape":{"type":"array","items":{"type":"number"}},"scale":{"type":"array","items":{"type":"number"}}},"additionalProperties":true},"logLikelihood":{"type":"number"},"bLives":{"type":"array","items":{"type":"object","properties":{"p":{"type":"number"},"time":{"type":"number"},"ciLow":{"type":"number"},"ciHigh":{"type":"number"}},"additionalProperties":true}},"reliability":{"type":"array","items":{"type":"object","properties":{"t":{"type":"number"},"R":{"type":"number"},"ciLow":{"type":"number"},"ciHigh":{"type":"number"}},"additionalProperties":true}},"mttf":{"type":"number"}},"additionalProperties":true},"example":{"failures":7,"censored":3,"confidence":0.95,"distribution":"weibull","sources":[{"source":"NIST/SEMATECH e-Handbook of Statistical Methods","url":"https://www.itl.nist.gov/div898/handbook/","retrievedAt":"2026-11-14","status":"ok"},{"source":"Meeker & Escobar (1998) Statistical Methods for Reliability Data","url":"https://doi.org/10.1002/9781118033141","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Right-censored maximum likelihood; confidence bounds are Fisher-matrix (delta method on log parameters) at the requeste…","Times must share one unit; censored units are assumed to be suspensions independent of failure."],"parameters":{"shape":2.377761,"scale":311.3125},"parameterCi":{"shape":[1.25374,4.509505],"scale":[227.6548,425.7123]},"logLikelihood":-45.62637,"bLives":[{"p":10,"time":120.8288,"ciLow":62.77148,"ciHigh":232.5832}],"reliability":[{"t":200,"R":0.7052523,"ciLow":0.4035469,"ciHigh":0.874262}],"mttf":275.9273}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/statistics/time-series-decompose":{"post":{"operationId":"decompose_a_seasonal_time_series","summary":"Decompose a seasonal time series","description":"Classical moving-average additive or multiplicative decomposition into trend, seasonal indices and remainder, with Wang-Smith-Hyndman strength of seasonality and trend measures. STL is not provided.","tags":["statistics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"values":{"minItems":4,"maxItems":100000,"type":"array","items":{"type":"number"}},"period":{"type":"integer","minimum":2,"maximum":366},"model":{"default":"additive","type":"string","enum":["additive","multiplicative"]}},"required":["values","period"],"additionalProperties":false},"example":{"values":[120,95,110,140,128,101,117,150,135,108,124,158],"period":4,"model":"additive"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"trend":{"type":"array","items":{"type":["null","number"]}},"seasonalIndices":{"type":"array","items":{"type":"number"}},"seasonal":{"type":"array","items":{"type":"number"}},"remainder":{"type":"array","items":{"type":["null","number"]}},"seasonalStrength":{"type":"number"},"trendStrength":{"type":"number"},"model":{"type":"string"},"period":{"type":"number"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"trend":[null,null,"…"],"seasonalIndices":[7.09375,-21.90625,"…"],"seasonal":[7.09375,-21.90625,"…"],"remainder":[null,null,"…"],"seasonalStrength":0.9984219,"trendStrength":0.9780572,"model":"additive","period":4,"sources":[{"source":"Hyndman & Athanasopoulos, Forecasting: Principles and Practice (classical decomposition); Wang, Smith & Hyndman (2006)","url":"https://otexts.com/fpp3/classical-decomposition.html","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Classical moving-average decomposition; the first and last floor(period / 2) trend and remainder values are null. STL i…","Seasonal indices are centred to sum 0 (additive) or mean 1 (multiplicative). Strengths use population variance over non…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}}},"components":{"schemas":{"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}}}}}}}}