Skip to content
Fourohtwo

www.brainiac.software/api/v1/statistics/t-test

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. Docs: https://www.brainiac.software/api/statistics/t-test

BaseAnswering
POSThttps://www.brainiac.software/api/v1/statistics/t-test

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.brainiac.software/api/v1/statistics/t-test", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"alternative":"two-sided","confidence":0.95,"equalVariance":false,"kind":"two_sample","mu0":0,"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]}),
});
console.log(await res.json());

Example input

{
  "alternative": "two-sided",
  "confidence": 0.95,
  "equalVariance": false,
  "kind": "two_sample",
  "mu0": 0,
  "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
  ]
}