← Back to directory

Next-period traffic weights from arm outcomes: Thompson-sampling probabilities b...

https://www.brainiac.software/api/v1/experimentation/bandit-allocate

Overview

Next-period traffic weights from arm outcomes: Thompson-sampling probabilities by deterministic quadrature, or UCB1 indices, with an exploration floor. Docs: https://www.brainiac.software/api/experimentation/bandit-allocate

Protocol x402 (POST)
Price $0.03
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Multi-armed Bandit Traffic
Source bazaar
Indexed 2026-11-24 19:01:06

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "arms": [ { "failures": 900, "name": "A", "successes": 100 }, { "failures": 880, "name": "B", "successes": 120 }, { "failures": 910, "name": "C", "successes": 90 } ], "minShare": 0.05, "policy": "thompson", "prior": { "alpha": 1, "beta": 1 } }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Thompson weights are exact posterior probabilities of being best (quadrature), not random draws, so repeated calls return the same weights.", "Pure computation on the supplied input: no events are stored and no network is called. Results are statistical calculations for human review." ], "policy": "thompson", "sources": [ { "retrievedAt": "2026-11-14T00:00:00.000Z", "source": "Russo et al. (2018) A Tutorial on Thompson Sampling", "status": "ok", "url": "https://arxiv.org/abs/1707.02038" }, { "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" } ], "weights": [ { "name": "A", "probBest": 0.07474923213, "weight": 0.07176986341 }, { "name": "B", "probBest": 0.9146879375, "weight": 0.8782301366 } ] }, "type": "json" }