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

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.

Inputs of Probability & Statistics Studio
FieldTypeDefaultDescription
analysisselect (distribution, describe, ci-mean, ci-proportion, t-one, t-two, t-paired, chisq-gof, chisq-indep, z-one-prop, z-two-prop)"distribution"Analysis
distributionselect (normal, t, chisq, f, binomial, poisson, exponential, uniform)"normal"Distribution
param1number—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.
param2number—Parameter 2. Defaults: normal σ = 1, F d2 = 10, binomial p = 0.5, uniform b = 1.
xnumber—Value x. Distribution: compute pdf/pmf and P(X ≤ x).
x2number—Second value x₂. Optional: also compute P(x ≤ X ≤ x₂).
probabilitynumber—Probability p (for a quantile). Distribution: the x with P(X ≤ x) = p (e.g. 0.975).
datatextarea—Data / sample 1 / observed counts / table. Numbers separated by spaces, commas or new lines. For the independence test: one row of counts per line.
data2textarea—Sample 2 / expected counts. Two-sample and paired tests: the second sample. Goodness of fit: expected counts or proportions (optional; equal by default).
mu0number0Hypothesised mean μ0
sigmanumber—Known population SD σ. Optional, for a z interval for the mean.
successesinteger—Successes x (group 1)
trialsinteger—Trials n (group 1)
successes2integer—Successes x (group 2)
trials2integer—Trials n (group 2)
p0number0.5Hypothesised proportion p0
confidencenumber0.95Confidence level. Also sets α = 1 − confidence for the tests.
alternativeselect (two-sided, less, greater)"two-sided"Alternative hypothesis
equalVariancesbooleanfalseAssume 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)

{
  "mcpServers": {
    "probability-statistics-studio": { "type": "http", "url": "https://probabilitystatisticsstudio.usefulweb.site/mcp" }
  }
}