Probability & Statistics Studio
Distributions, descriptive stats, confidence intervals and t, chi-square and z tests with p-values.
How it works
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.
- Special functions are implemented directly: log-gamma (Lanczos), the regularised incomplete gamma function (series and continued fraction) and the regularised incomplete beta function (continued fraction). The normal CDF uses erfc via the incomplete gamma function; its quantile uses Acklam’s approximation refined by Halley steps.
- CDFs: t and F via the incomplete beta function, chi-square and Poisson via the incomplete gamma function, binomial via the incomplete beta function. Quantiles of continuous distributions are found by bisection with a Newton polish; discrete quantiles are the smallest k with P(X ≤ k) ≥ p.
- Values are checked in the test suite against published tables (e.g. Φ(1.96) = 0.975002, t₀.₉₇₅ with 10 df = 2.228139, χ²₀.₉₅ with 5 df = 11.0705, F₀.₉₅(5, 10) = 3.3258).
- Descriptive statistics use the sample (n − 1) variance, quartiles by linear interpolation (the R/Excel default), the adjusted skewness and excess kurtosis, and the 1.5 × IQR outlier rule.
- Tests: one-sample, Welch or pooled two-sample and paired t-tests; chi-square goodness-of-fit and independence (without continuity correction); one- and two-proportion z-tests (pooled for the test, unpooled for the interval). The interpretation compares p with α = 1 − confidence.
A p-value is not the probability that H0 is true, and “not significant” does not prove H0. Check the assumptions listed with each test.
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Proofline Math notebook
Solve, graph, test and visualise in one notebook — with data, findings and a report.
-
RavingDesk Paper trading & data workspace
Practise trading on paper and chart your data: orders, risk, datasets, analyses, reports.
-
Rising Kingpin Turn-based crime strategy game
Rise from pickpocket to Kingpin in a turn-based 90s crime strategy game.
Related tools
- Graphing Calculator – Plot up to 6 functions or parametric curves with roots, extrema, intersections and SVG/PNG export.
- Math Workbench – Simplify, factor, differentiate, integrate, solve, take limits, series and plots in one box.
How to use the Probability & Statistics Studio
Get distribution probabilities and quantiles, describe a data set, build confidence intervals and run t, chi-square and z tests with p-values explained.
What it is for
You need a p-value for a lab report, a 95 % interval for a survey result, or just P(Z ≤ 1.96) without hunting for a printed table. The studio covers the statistics most people meet in a first or second course, all in one form.
Pick an analysis. distribution gives the density, the cumulative probability and quantiles for normal, t, chi-square, F, binomial, Poisson, exponential and uniform distributions. describe summarises a data set. ci-mean and ci-proportion build confidence intervals. The tests cover one-sample, two-sample and paired t-tests, chi-square goodness-of-fit and independence, and one- and two-proportion z-tests. Every test reports the statistic, degrees of freedom, p-value, an effect size and a plain-language interpretation.
It does not run regressions, ANOVA or non-parametric tests. It also can't tell you whether your study design justifies a test. That part is your call.
Worked example
Suppose you weighed eight items, got 5.1 4.9 5.6 5.8 6.0 5.3 5.5 5.7, and the spec says 5. Choose t-one, paste the data and set μ0 = 5.
The tool reported t = 3.7454, df = 7, p = 0.007212; reject H0 at α = 0.05. The sample mean is 5.4875 with SD 0.368, and the 95 % confidence interval for the mean is 5.18 to 5.80. It also warned that with fewer than 30 values the t-test assumes roughly normal data. In plain words: if the true mean were 5, a sample this far off would turn up less than 1 % of the time.
Two more real runs:
- ci-proportion, 42 successes in 120 trials: estimate 0.35, Wilson interval [0.27052, 0.43879]. For comparison, Clopper–Pearson gave [0.2652, 0.4424] and Wald gave [0.2647, 0.4353].
- chisq-indep with the table
30 10/20 40: χ² = 16.667, df = 1, p < 0.0001, Cramér's V = 0.408.
How to read the result
- Distribution:
pdf/pmf at xis the height (or, for discrete distributions, the probability of exactly x).P(X ≤ x)is the cumulative probability andsurvivalis P(X > x). For Binomial(10, 0.5) at x = 5, P(X = 5) = 0.2461, P(X ≤ 5) = 0.6230, and with x₂ = 7, P(5 ≤ X ≤ 7) = 0.5684. - Describe: mean, median, SD (sample, n − 1), quartiles, IQR, skewness, kurtosis and outliers by the 1.5 × IQR rule. For
12, 15, 11, 18, 14, 15, 22, 13, 16, 15, 40, the value 40 is flagged and pulls the mean (17.36) well above the median (15). - Test: H0 and H1, the statistic, df, p-value, α, reject or not, a confidence interval and an effect size. The effect size tells you whether a "significant" difference is also large.
Tips and common mistakes
- The two-sample t-test defaults to Welch (unequal variances). Tick the box only if you have a reason to pool. Welch is the safer default.
- Use t-paired for before/after measurements on the same subjects. Running a two-sample test on paired data throws away power.
- Pick a one-sided alternative ("less" or "greater") before you look at the data, not after.
- The chi-square tests have no continuity correction, so p-values for 2×2 tables can be slightly smaller than in software that applies Yates by default.
- Changing the confidence level also changes α for the tests: 0.99 means testing at α = 0.01.
- For proportions near 0 or 1, or with small n, trust the Wilson or Clopper–Pearson interval over Wald.
FAQ
Does p = 0.007 mean H0 has a 0.7 % chance of being true?
No. It's the probability of data at least this extreme if H0 were true. And a non-significant result doesn't prove H0 either.
How accurate are the probabilities?
The special functions are implemented directly and tested against published tables, for example Φ(1.96) = 0.975002 and t₀.₉₇₅ with 10 df = 2.228139.
Can I enter expected proportions for goodness of fit?
Yes. Put the observed counts in the first box and the expected counts or proportions in the second. If you leave it empty, equal proportions are assumed.
How do I get a critical value like z₀.₉₇₅?
Choose distribution, pick the distribution and enter the probability 0.975. The standard normal gives 1.959964.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://probabilitystatisticsstudio.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://probabilitystatisticsstudio.usefulweb.site/mcp· tool nameprobability_statistics_studio
Example request
curl -s -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}'