Skip to content
Fourohtwo

CUPED adjustment with a pre-experiment covariate on unit-level data

www.brainiac.software/api/v1/experimentation/cuped-adjust

CUPED adjustment with a pre-experiment covariate on unit-level data: theta, variance reduction, and Welch tests on raw and adjusted values. Docs: https://www.brainiac.software/api/experimentation/cuped-adjust

BaseAnswering
POSThttps://www.brainiac.software/api/v1/experimentation/cuped-adjust

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/experimentation/cuped-adjust", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"alpha":0.05,"units":[{"group":"control","x":10,"y":11},{"group":"treatment","x":12,"y":13},{"group":"control","x":9,"y":9},{"group":"treatment","x":15,"y":17},{"group":"control","x":11,"y":12},{"group":"treatment","x":14,"y":15},{"group":"control","x":8,"y":9},{"group":"treatment","x":13,"y":14},{"group":"control","x":10,"y":10},{"group":"treatment","x":12,"y":14}]}),
});
console.log(await res.json());

Example input

{
  "alpha": 0.05,
  "units": [
    {
      "group": "control",
      "x": 10,
      "y": 11
    },
    {
      "group": "treatment",
      "x": 12,
      "y": 13
    },
    {
      "group": "control",
      "x": 9,
      "y": 9
    },
    {
      "group": "treatment",
      "x": 15,
      "y": 17
    },
    {
      "group": "control",
      "x": 11,
      "y": 12
    },
    {
      "group": "treatment",
      "x": 14,
      "y": 15
    },
    {
      "group": "control",
      "x": 8,
      "y": 9
    },
    {
      "group": "treatment",
      "x": 13,
      "y": 14
    },
    {
      "group": "control",
      "x": 10,
      "y": 10
    },
    {
      "group": "treatment",
      "x": 12,
      "y": 14
    }
  ]
}