What does a real call return?
With 48 conversions out of 80 visitors in the control group and 56 out of 70 in the variant, the difference is 20.0 percentage points, with z = 2.650 and a two-sided p-value of 0.00805. The 95% Newcombe interval for the difference runs from 0.0524 to 0.3339. In the same call, planning for a baseline rate of 0.05 and a target rate of 0.055, with alpha 0.05 and power 0.8, returned 31,234 visitors per group.
Recorded on 23 November 2026 through the public MCP endpoint, service release 0.18.0. Inputs and full responses, response SHA-256 f8e9c6478bd2…. Verdict values are the literal values the tool returns. Run the same inputs yourself to compare; elapsed times vary, and a new release may change the figures.
Checked against
- 15 observed and 7 planning cases from a separate 50-digit mpmath script (exact fractions, erfc, bisection on the Wilson score equation and on the power relation), cross-checked there against SciPy.
- R manual power.prop.test examples (n = 76.7 and n = 10451937, read from the manual) and Newcombe’s 56/70 versus 48/80 method 10 interval (+0.0524, +0.3339), the latter transcribed from memory and not re-read from the paper.
- Zero-variance tables without an invented test, mirrored groups, every small table, contract bounds, strict JSON input and refused invalid inputs.
Recorded on release 0.18.0. These checks cover the listed cases, not every input. Evidence cards.
How it works
The observed part computes each conversion rate, the absolute and relative difference (variant minus control), a two-sided pooled two-proportion z-test under the normal approximation, and the Newcombe hybrid score interval for the difference (method 10: Wilson limits per group, no continuity correction). The planning part gives the equal-allocation sample size of the same pooled z-test for a stated baseline rate, minimum detectable effect, alpha and power. Both parts are closed-form float64 calculations and are computed independently: planning never uses the observed counts.
Inputs and units
Provide observed (conversions and visitors for the control and variant groups, 1 to 1,000,000,000 visitors per group, and an optional confidence_level from 0.5 to 0.9999, default 0.95), planning (baseline_rate, a signed minimum_detectable_effect, effect_type absolute or relative, alpha from 0.000001 to 0.5 and power from 0.5 to 0.9999), or both. Rates and probabilities are dimensionless fractions.
What the result contains
Rates, absolute and relative difference, pooled rate, standard error, z, p-value, the interval for the difference with its method and critical value, and a small_expected_counts flag for pooled expected counts below 5. Planning returns the target rate, z_alpha, z_beta, the unrounded and rounded sample size per group and the total. z and p_value are null when both groups have no conversion or only conversions. Assumptions, limits and references are returned with every result.
Example MCP call
{
"name": "evaluate_ab_test",
"arguments": {
"observed": {
"control": {
"conversions": 48,
"visitors": 80
},
"variant": {
"conversions": 56,
"visitors": 70
}
},
"planning": {
"baseline_rate": 0.05,
"minimum_detectable_effect": 0.1,
"effect_type": "relative",
"alpha": 0.05,
"power": 0.8
}
}
}Send this tool name and arguments through a connected MCP client. Discover the authoritative input schema with tools/list.
Call this engine in one command
Node.js 20+ and npm. This downloads a small remote MCP client; it does not install the engine locally.
npx --yes --package https://scorecompute.com/downloads/scorecompute-call-0.14.2.tgz scorecompute-call evaluate_ab_test --arguments '{"observed":{"control":{"conversions":48,"visitors":80},"variant":{"conversions":56,"visitors":70}},"planning":{"baseline_rate":0.05,"minimum_detectable_effect":0.1,"effect_type":"relative","alpha":0.05,"power":0.8}}'Client download, PowerShell input and verification →
Direct MCP access
evaluate_ab_test is independently callable. It is deliberately not connected to the automatic planner, so nothing passes its results to another engine for you. Two tools returning similar JSON fields does not mean their results are compatible.
Cite this engine
Version 0.1.0, source SHA-256 d15abad172cf…. Evidence recorded on release 0.18.0; the public service currently runs 0.18.0. Replace the access date when you cite it.
ScoreCompute. A/B test statistics for two proportions (evaluate_ab_test), version 0.1.0, source SHA-256 d15abad172cfdb87f8f1aeda38bfb4c88ae6ce3f183cd041cdaaa6ba71da0df2. Evidence release 0.18.0, service release 0.18.0. https://scorecompute.com/engines/evaluate-ab-test/ (accessed YYYY-MM-DD).
All engine citations · Evidence card
Execution and availability
ScoreCompute exposes this tool through MCP Streamable HTTP. Rust computation runs on a connected worker; the public website and MCP gateway run separately. Among these 24 scientific tools, CUDA is implemented for simulate_pi; the other scientific engines run on CPU. The separate contributor network runs two compiled public workloads: a π estimate and fixed synthetic schedule probes. Requests are bounded and concurrent work may be refused when capacity is occupied.
Record inputs, assumptions and returned provenance when sharing a result. The public observatory displays software client names and tool activity, without publishing calculation arguments or results.