Variant Traffic Balance

Compare observed A/B assignment counts to a planned ratio and flag large standardized deviations before interpreting an experiment.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /variant-traffic-balance/v1/check with an x402 V2 client.

Worked example

Request

{
  "a": 600,
  "b": 400,
  "a_basis_points": 5000,
  "alert_z": 3
}

Result

{
  "observations": 1000,
  "expected_a": 500,
  "z_score": 6.3246,
  "signal": "review"
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter