Hypothesis Test
hypothesis_testRun a statistical significance test and get the statistic, p-value, effect size, confidence interval and a plain-English verdict — results match scipy.stats. Tests: Welch / Student two-sample t, paired t, one-sample t, one-proportion z, A/B test of two conversion rates (pooled z, lift, CI of the difference), chi-square goodness of fit and independence (Yates for 2×2, Cramér's V), one-way ANOVA (η²), Kruskal–Wallis, Mann–Whitney U (exact for small samples, rank-biserial r), Wilcoxon signed-rank (exact / permutation / normal), Pearson and Spearman correlation (Fisher-z CI) and Fisher's exact test. Two-sided or one-sided alternatives. Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/hypothesis-test
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"test": "<test>"
},
"name": "hypothesis_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Sample A (or x for correlations, or the differences for wilcoxon) | |
| b | No | Sample B (or y) | |
| mu | No | Hypothesised mean (one-sample t) | |
| p0 | No | ||
| test | Yes | ||
| alpha | No | ||
| table | No | Contingency table (rows of counts) for chi-square-independence / fisher-exact (2×2) | |
| yates | No | chi-square-independence: Yates continuity correction for 2×2 tables | |
| groups | No | anova / kruskal-wallis: array of samples, or an object of named samples | |
| trials | No | ||
| trialsA | No | ||
| trialsB | No | ||
| expected | No | chi-square-gof expected counts or proportions (default: uniform) | |
| observed | No | chi-square-gof observed counts | |
| successes | No | ||
| successesA | No | ||
| successesB | No | ||
| alternative | No | two-sided | |
| equalVariance | No | t-test: Student (true) instead of Welch (false) |