← Market

Experimentation · Bayesian Ab

Posterior, probability to beat control, probability of being best, expected loss and equal-tailed credible intervals for 2-10 conversion arms. Docs: https://www.brainiac.software/api/experimentation/bayesian-ab

POST https://www.brainiac.software/api/v1/experimentation/bayesian-ab

0.03 USDC on Base · payTo 0x6428665E83F503904571104311bB78CBb29b975c

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.03 USDC · payTo 0x6428665E83F503904571104311bB78CBb29b975c · via cdp · settles direct
{
  "arms": [
    {
      "conversions": 1000,
      "name": "A",
      "users": 10000
    },
    {
      "conversions": 1100,
      "name": "B",
      "users": 10000
    }
  ],
  "credibleLevel": 0.95,
  "prior": {
    "alpha": 1,
    "beta": 1
  }
}
{
  "arms": [
    {
      "credible": [
        0.09427511307,
        0.106036332
      ],
      "expectedLoss": 0.01001358271,
      "mean": 0.100079984,
      "name": "A",
      "posterior": {
        "alpha": 1001,
        "beta": 9001
      },
      "probBeatControl": null,
      "probBest": 0.01054264559
    },
    {
      "credible": [
        0.1040187816,
        0.1162848782
      ],
      "expectedLoss": 0.00001558231261,
      "mean": 0.1100779844,
      "name": "B",
      "posterior": {
        "alpha": 1101,
        "beta": 8901
      },
      "probBeatControl": 0.9894573544,
      "probBest": 0.9894573544
    }
  ],
  "control": "A",
  "credibleLevel": 0.95,
  "limitations": [
    "Independent Beta-Binomial posteriors; no Monte Carlo, so results are reproducible. Quadrature spans the 1e-9 to 1-1e-9 posterior quantiles of all arms.",
    "Probabilities describe the posterior under the supplied prior, not the long-run error rate of a procedure."
  ],
  "method": {
    "expectedLoss": "deterministic Simpson quadrature of E[max_j p_j] minus posterior mean",
    "probBeatControl": "exact (Miller 2015)",
    "probBest": "pairwise probability to beat control"
  },
  "sources": [
    {
      "retrievedAt": "2026-11-14T00:00:00.000Z",
      "source": "Miller (2015) Formulas for Bayesian A/B Testing",
      "status": "ok",
      "url": "https://www.evanmiller.org/bayesian-ab-testing.html"
    }
  ]
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Sellers · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human store: human checkout, card & crypto · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust scorepending / 100 · breakdown
Probe uptime (30d)— over 0 probes · daily
Avg 402 latency— ms
Paid calls (30d, on-chain)0 calls · 0 buyers

How to call

POST https://www.brainiac.software/api/v1/experimentation/bayesian-ab · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "prior": {
      "type": "object",
      "description": "prior supplied by the caller for this operation.",
      "example": {
        "alpha": 1,
        "beta": 1
      }
    },
    "arms": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "arms supplied by the caller for this operation.",
      "example": [
        {
          "name": "A",
          "users": 10000,
          "conversions": 1000
        },
        {
          "name": "B",
          "users": 10000,
          "conversions": 1100
        }
      ]
    },
    "credibleLevel": {
      "type": "number",
      "description": "credible Level supplied by the caller for this operation.",
      "example": 0.95
    }
  },
  "required": [
    "arms"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://www.brainiac.software/api/v1/experimentation/bayesian-ab' \
  -H 'content-type: application/json' -d '{"prior":{"alpha":1,"beta":1},"arms":[{"name":"A","users":10000,"conversions":1000},{"name":"B","users":10000,"conversions":1100}],"credibleLevel":0.95}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)