Skip to content
Fourohtwo

Reads one conversion experiment two ways at once

tools.halowerk.com/v1/abtest/evaluate

Reads one conversion experiment two ways at once. Frequentist: two-proportion test, p value, confidence interval on the absolute lift, and the sample size the requested minimum detectable effect needs at the requested power. Bayesian: Beta-Binomial posteriors, probability the variant is better, expected loss either way, credible intervals - closed form, not sampled, so the numbers repeat exactly.

BaseAnswering
POSThttps://tools.halowerk.com/v1/abtest/evaluate

Uptime100% of 3 checks 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://tools.halowerk.com/v1/abtest/evaluate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"confidence_level":0.95,"control":{"conversions":241,"visitors":4820},"looks_taken":3,"minimum_detectable_effect_rel":0.1,"variant":{"conversions":302,"visitors":4790}}),
});
console.log(await res.json());

Example input

{
  "confidence_level": 0.95,
  "control": {
    "conversions": 241,
    "visitors": 4820
  },
  "looks_taken": 3,
  "minimum_detectable_effect_rel": 0.1,
  "variant": {
    "conversions": 302,
    "visitors": 4790
  }
}

More from HALOWERK Agent ToolsProvider status