API & MCP
Everything a person can do on Probability & Statistics Studio, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://probabilitystatisticsstudio.usefulweb.site/api/v1/calculate– run Probability & Statistics StudioGET https://probabilitystatisticsstudio.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Probability & Statistics Studio
Probabilities, densities and quantiles for the normal, t, chi-square, F, binomial, Poisson, exponential and uniform distributions with plots; descriptive statistics of a data set; confidence intervals for a mean or a proportion; and one-sample, two-sample and paired t-tests, chi-square goodness-of-fit and independence tests and z-tests for proportions, each with a p-value and a plain-language interpretation.
| Field | Type | Default | Description |
|---|---|---|---|
analysis | select (distribution, describe, ci-mean, ci-proportion, t-one, t-two, t-paired, chisq-gof, chisq-indep, z-one-prop, z-two-prop) | "distribution" | Analysis |
distribution | select (normal, t, chisq, f, binomial, poisson, exponential, uniform) | "normal" | Distribution |
param1 | number | — | Parameter 1. Defaults: normal μ = 0, t df = 10, chi-square df = 1, F d1 = 5, binomial n = 10, Poisson λ = 1, exponential λ = 1, uniform a = 0. |
param2 | number | — | Parameter 2. Defaults: normal σ = 1, F d2 = 10, binomial p = 0.5, uniform b = 1. |
x | number | — | Value x. Distribution: compute pdf/pmf and P(X ≤ x). |
x2 | number | — | Second value x₂. Optional: also compute P(x ≤ X ≤ x₂). |
probability | number | — | Probability p (for a quantile). Distribution: the x with P(X ≤ x) = p (e.g. 0.975). |
data | textarea | — | Data / sample 1 / observed counts / table. Numbers separated by spaces, commas or new lines. For the independence test: one row of counts per line. |
data2 | textarea | — | Sample 2 / expected counts. Two-sample and paired tests: the second sample. Goodness of fit: expected counts or proportions (optional; equal by default). |
mu0 | number | 0 | Hypothesised mean μ0 |
sigma | number | — | Known population SD σ. Optional, for a z interval for the mean. |
successes | integer | — | Successes x (group 1) |
trials | integer | — | Trials n (group 1) |
successes2 | integer | — | Successes x (group 2) |
trials2 | integer | — | Trials n (group 2) |
p0 | number | 0.5 | Hypothesised proportion p0 |
confidence | number | 0.95 | Confidence level. Also sets α = 1 − confidence for the tests. |
alternative | select (two-sided, less, greater) | "two-sided" | Alternative hypothesis |
equalVariances | boolean | false | Assume equal variances (pooled two-sample t-test) |
Example request
Normal: P(Z ≤ 1.96) and the 97.5% quantile
curl -X POST https://probabilitystatisticsstudio.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"analysis":"distribution","distribution":"normal","param1":0,"param2":1,"x":1.96,"probability":0.975}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://probabilitystatisticsstudio.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
probability_statistics_studio - Local stdio connector:
node src/mcp-stdio.ts --tool=probability-statistics-studio
{
"mcpServers": {
"probability-statistics-studio": { "type": "http", "url": "https://probabilitystatisticsstudio.usefulweb.site/mcp" }
}
}