{"openapi":"3.1.0","info":{"title":"Statistical Tests","version":"1.0.0","description":"Chi-square, ANOVA, Mann-Whitney, Fisher exact, binomial and paired t-tests, multiple-comparison corrections, effect sizes, power and normality. One call, one computed answer, no accounts or API keys. Machine-payable over x402.","x-guidance":"Statistical Tests: Chi-square, ANOVA, Mann-Whitney, Fisher exact, binomial and paired t-tests, multiple-comparison corrections, effect sizes, power and normality. Statistical Tests runs the hypothesis tests agents otherwise approximate: chi-square goodness of fit and independence (/chi-square-test), one-way ANOVA (/anova-oneway), Mann-Whitney U (/mann-whitney), Fisher's exact test for 2x2 tables (/fisher-exact), the exact binomial test (/binomial-test), the paired t-test (/paired-t-test), Bonferroni, Holm and Benjamini-Hochberg corrections (/multiple-comparisons), odds ratio, relative risk and risk difference with confidence intervals (/effect-size-2x2), sample size for a t-test (/power-t-test) and a normality screen (/normality-check). Each paid GET returns a computed verdict with the reasons, the source and what was NOT checked. A verdict of UNVERIFIED means a lookup failed: treat it as unknown. No account or key: pay per call in USDC over x402."},"servers":[{"url":"https://stats-tests.x402tookit.com"}],"paths":{"/anova-oneway":{"get":{"operationId":"anova_oneway","summary":"One-way ANOVA across 2 to 12 groups: F statistic, degrees of freedom, p-value, eta squared and omega squared, with group means.","description":"One-way ANOVA across 2 to 12 groups: F statistic, degrees of freedom, p-value, eta squared and omega squared, with group means.","tags":["statistics","anova","hypothesis-test","f-test"],"parameters":[{"name":"groups","in":"query","required":true,"description":"Groups separated by semicolons: 6,8,4,5,3,4;8,12,9,11,6,8;13,9,11,8,7,12","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"groups":{"type":["null","number"]},"totalObservations":{"type":["null","number"]},"groupMeans":{"type":["array","null"],"items":{"type":"number"}},"groupSizes":{"type":["array","null"],"items":{"type":"number"}},"grandMean":{"type":["null","number"]},"sumSquaresBetween":{"type":["null","number"]},"sumSquaresWithin":{"type":["null","number"]},"dfBetween":{"type":["null","number"]},"dfWithin":{"type":["null","number"]},"meanSquareBetween":{"type":["null","number"]},"meanSquareWithin":{"type":["null","number"]},"fStatistic":{"type":["null","number"]},"pValue":{"type":["null","number"]},"etaSquared":{"type":["null","number"]},"omegaSquared":{"type":["null","number"]},"significantAt5pct":{"type":["boolean","null"]},"maxVarianceRatio":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SIGNIFICANT","summary":"F(2, 15) = 9.2647, p = 0.002399; eta squared 0.553 (large effect). At least one group mean differs.","reasons":["Group variances are similar enough.","Effect size bands for eta squared: 0.01 small, 0.06 medium, 0.14 large.","…1 more"],"groups":3,"totalObservations":18,"groupMeans":[5,9],"groupSizes":[6,6],"grandMean":8,"sumSquaresBetween":84,"sumSquaresWithin":68,"dfBetween":2,"dfWithin":15,"meanSquareBetween":42,"meanSquareWithin":4.533333333,"fStatistic":9.264705882,"pValue":0.0023987773,"etaSquared":0.55263158,"omegaSquared":0.47870528,"significantAt5pct":true,"maxVarianceRatio":1.75,"degraded":false,"notChecked":["assumptions: independent groups, roughly normal residuals and similar variances (a variance ratio warning is given)","which groups differ (a significant F does not say; follow up with corrected pairwise tests)","…1 more"],"source":"computed locally","asOf":"2026-10-11T08:55:54.742Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/anova-oneway"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/anova-oneway"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/anova-oneway"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/anova-oneway"}}]}}},"/binomial-test":{"get":{"operationId":"binomial_test","summary":"Exact binomial test of k successes in n trials vs a hypothesised probability, with p-values and the Clopper-Pearson CI.","description":"Exact binomial test of k successes in n trials vs a hypothesised probability, with p-values and the Clopper-Pearson CI.","tags":["statistics","binomial-test","hypothesis-test","proportion"],"parameters":[{"name":"successes","in":"query","required":true,"description":"Number of successes k","schema":{"type":"integer"}},{"name":"trials","in":"query","required":true,"description":"Number of trials n","schema":{"type":"integer"}},{"name":"p0","in":"query","required":false,"description":"Hypothesised success probability (default 0.5)","schema":{"type":"number"}},{"name":"confidence","in":"query","required":false,"description":"Interval level 0.8 to 0.999 (default 0.95)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"successes":{"type":["null","number"]},"trials":{"type":["null","number"]},"sampleProportion":{"type":["null","number"]},"hypothesisedProbability":{"type":["null","number"]},"pValueTwoSided":{"type":["null","number"]},"pValueGreater":{"type":["null","number"]},"pValueLess":{"type":["null","number"]},"clopperPearson":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]},"level":{"type":["null","number"]}}},"significantAt5pct":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"NOT_SIGNIFICANT","summary":"8 of 10 (80%) vs p0 = 0.5: two-sided exact p = 0.1094; 95% Clopper-Pearson CI 0.4439 to 0.9748.","reasons":["Exact binomial probabilities: valid for any sample size.","One-sided: P(X >= 8) = 0.05469, P(X <= 8) = 0.9893."],"successes":8,"trials":10,"sampleProportion":0.8,"hypothesisedProbability":0.5,"pValueTwoSided":0.109375,"pValueGreater":0.0546875,"pValueLess":0.98925781,"clopperPearson":{"lower":0.44390454,"upper":0.97478927,"level":0.95},"significantAt5pct":false,"degraded":false,"notChecked":["independence of trials and a constant success probability","choice of one-sided versus two-sided test (decide before looking)","…1 more"],"source":"computed locally","asOf":"2026-10-11T08:55:55.001Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/binomial-test"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/binomial-test"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/binomial-test"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/binomial-test"}}]}}},"/chi-square-test":{"get":{"operationId":"chi_square_test","summary":"Chi-square goodness of fit (observed vs expected counts) or independence test on a table, with p-value and effect size.","description":"Chi-square goodness of fit (observed vs expected counts) or independence test on a table, with p-value and effect size.","tags":["statistics","chi-square","hypothesis-test","contingency-table"],"parameters":[{"name":"observed","in":"query","required":false,"description":"Observed counts for goodness of fit, e.g. 5,8,9,8,10,20","schema":{"type":"string"}},{"name":"expected","in":"query","required":false,"description":"Expected counts (same length) or leave out for equal expected","schema":{"type":"string"}},{"name":"table","in":"query","required":false,"description":"Contingency table for independence, rows separated by semicolons: 12,5;3,10","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"test":{"type":["null","string"]},"chiSquare":{"type":["null","number"]},"degreesOfFreedom":{"type":["null","number"]},"pValue":{"type":["null","number"]},"total":{"type":["null","number"]},"expected":{"type":["array","null"],"items":{"type":"number"}},"contributions":{"type":["array","null"],"items":{"type":"number"}},"cellsWithExpectedBelow5":{"type":["null","number"]},"significantAt5pct":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SIGNIFICANT","summary":"Goodness of fit: chi-square 13.4, df 5, p = 0.01991: observed counts differ significantly from the expected pattern at the 5% level.","reasons":["All expected counts are at least 5.","Statistic = sum of (observed - expected)^2 / expected; df = categories - 1."],"test":"chi-square goodness of fit","chiSquare":13.4,"degreesOfFreedom":5,"pValue":0.01990522,"total":60,"expected":[10,10],"contributions":[2.5,0.4],"cellsWithExpectedBelow5":0,"significantAt5pct":true,"degraded":false,"notChecked":["independence of observations (each subject counted once)","random sampling","…2 more"],"source":"computed locally","asOf":"2026-10-11T08:55:55.262Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/chi-square-test"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/chi-square-test"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/chi-square-test"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/chi-square-test"}}]}}},"/effect-size-2x2":{"get":{"operationId":"effect_size_2x2","summary":"Odds ratio, relative risk, risk difference and number needed to treat from a 2x2 table, each with a confidence interval.","description":"Odds ratio, relative risk, risk difference and number needed to treat from a 2x2 table, each with a confidence interval.","tags":["statistics","odds-ratio","relative-risk","epidemiology"],"parameters":[{"name":"exposedEvents","in":"query","required":true,"description":"Events in the exposed (or treated) group","schema":{"type":"integer"}},{"name":"exposedNoEvents","in":"query","required":true,"description":"Non-events in the exposed group","schema":{"type":"integer"}},{"name":"unexposedEvents","in":"query","required":true,"description":"Events in the unexposed (or control) group","schema":{"type":"integer"}},{"name":"unexposedNoEvents","in":"query","required":true,"description":"Non-events in the unexposed group","schema":{"type":"integer"}},{"name":"confidence","in":"query","required":false,"description":"0.8 to 0.999 (default 0.95)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"riskExposed":{"type":["null","number"]},"riskUnexposed":{"type":["null","number"]},"oddsRatio":{"type":["null","number"]},"oddsRatioCI":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]}}},"relativeRisk":{"type":["null","number"]},"relativeRiskCI":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]}}},"riskDifference":{"type":["null","number"]},"riskDifferenceCI":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]}}},"numberNeededToTreat":{"type":["null","number"]},"direction":{"type":["null","string"]},"correctionApplied":{"type":["boolean","null"]},"confidence":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"INTERVAL_INCLUDES_NO_EFFECT","summary":"Risk 20% vs 10%: odds ratio 2.25 (95% CI 0.994295 to 5.09155), relative risk 2 (0.986563 to 4.05448), risk difference 10 points, NNT 10.","reasons":["The interval includes 1: the data are consistent with no association.","When the outcome is common (over about 10%) the odds ratio overstates the relative risk.","…1 more"],"riskExposed":0.2,"riskUnexposed":0.1,"oddsRatio":2.25,"oddsRatioCI":{"lower":0.994295,"upper":5.09155},"relativeRisk":2,"relativeRiskCI":{"lower":0.986563,"upper":4.05448},"riskDifference":0.1,"riskDifferenceCI":{"lower":0.0020018008,"upper":0.1979982},"numberNeededToTreat":10,"direction":"NNH (harm) if the event is bad","correctionApplied":false,"confidence":0.95,"degraded":false,"notChecked":["confounding and bias: these measure association in these data, not cause","study design (case-control studies cannot estimate relative risk directly)","…1 more"],"source":"computed locally","asOf":"2026-10-11T08:55:55.525Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/effect-size-2x2"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/effect-size-2x2"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/effect-size-2x2"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/effect-size-2x2"}}]}}},"/fisher-exact":{"get":{"operationId":"fisher_exact","summary":"Fisher's exact test for a 2x2 table: two-sided and one-sided p-values from the hypergeometric distribution, plus odds ratio.","description":"Fisher's exact test for a 2x2 table: two-sided and one-sided p-values from the hypergeometric distribution, plus odds ratio.","tags":["statistics","fisher-exact","hypothesis-test","contingency-table"],"parameters":[{"name":"a","in":"query","required":true,"description":"Row 1, column 1 count","schema":{"type":"integer"}},{"name":"b","in":"query","required":true,"description":"Row 1, column 2 count","schema":{"type":"integer"}},{"name":"c","in":"query","required":true,"description":"Row 2, column 1 count","schema":{"type":"integer"}},{"name":"d","in":"query","required":true,"description":"Row 2, column 2 count","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"table":{"type":["array","null"],"items":{"type":"array","items":{"type":"number"}}},"total":{"type":["null","number"]},"pValueTwoSided":{"type":["null","number"]},"pValueGreater":{"type":["null","number"]},"pValueLess":{"type":["null","number"]},"sampleOddsRatio":{"type":["null","number"]},"probabilityOfObservedTable":{"type":["null","number"]},"significantAt5pct":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"NOT_SIGNIFICANT","summary":"Table 3,1;1,3 (n = 8): two-sided p = 0.4857, one-sided (more in the top-left) p = 0.2429; sample odds ratio 9.","reasons":["Exact test from the hypergeometric distribution with fixed margins: valid for any sample size, unlike chi-square for small counts.","The two-sided p adds every table at most as likely as the observed one."],"table":[[3,1],[1,3]],"total":8,"pValueTwoSided":0.48571429,"pValueGreater":0.24285714,"pValueLess":0.98571429,"sampleOddsRatio":9,"probabilityOfObservedTable":0.22857143,"significantAt5pct":false,"degraded":false,"notChecked":["independence of observations","which of the one-sided p-values matches your prior hypothesis (decide before looking)","…1 more"],"source":"computed locally","asOf":"2026-10-11T08:55:55.790Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/fisher-exact"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/fisher-exact"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/fisher-exact"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/fisher-exact"}}]}}},"/mann-whitney":{"get":{"operationId":"mann_whitney","summary":"Mann-Whitney U test for two independent samples: U, exact p for small samples without ties or normal approximation, effect size.","description":"Mann-Whitney U test for two independent samples: U, exact p for small samples without ties or normal approximation, effect size.","tags":["statistics","mann-whitney","non-parametric","hypothesis-test"],"parameters":[{"name":"a","in":"query","required":true,"description":"Sample A values","schema":{"type":"string"}},{"name":"b","in":"query","required":true,"description":"Sample B values","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"nA":{"type":["null","number"]},"nB":{"type":["null","number"]},"uA":{"type":["null","number"]},"uB":{"type":["null","number"]},"uStatistic":{"type":["null","number"]},"pValueTwoSided":{"type":["null","number"]},"method":{"type":["null","string"]},"probabilityAExceedsB":{"type":["null","number"]},"rankBiserial":{"type":["null","number"]},"rankSumA":{"type":["null","number"]},"ties":{"type":["boolean","null"]},"significantAt5pct":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SIGNIFICANT","summary":"U = 0 (U_A = 0, U_B = 25), two-sided p = 0.007937 (exact distribution); probability a random A value exceeds a random B value: 0.","reasons":["No ties and small samples: the p-value is exact.","Rank-biserial correlation 1 (0 none, 1 complete separation)."],"nA":5,"nB":5,"uA":0,"uB":25,"uStatistic":0,"pValueTwoSided":0.0079365079,"method":"exact distribution","probabilityAExceedsB":0,"rankBiserial":1,"rankSumA":15,"ties":false,"significantAt5pct":true,"degraded":false,"notChecked":["assumptions: independent observations and similar distribution shapes (otherwise it tests stochastic dominance, not medians)","paired data (use the paired t-test or Wilcoxon signed-rank)","…1 more"],"source":"computed locally","asOf":"2026-10-11T08:55:56.056Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/mann-whitney"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/mann-whitney"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/mann-whitney"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/mann-whitney"}}]}}},"/multiple-comparisons":{"get":{"operationId":"multiple_comparisons","summary":"Adjust p-values for multiple testing (Bonferroni, Sidak, Holm, Benjamini-Hochberg) and see which tests survive.","description":"Adjust p-values for multiple testing (Bonferroni, Sidak, Holm, Benjamini-Hochberg) and see which tests survive.","tags":["statistics","multiple-testing","bonferroni","fdr"],"parameters":[{"name":"pvalues","in":"query","required":true,"description":"Raw p-values separated by commas, 2 to 200","schema":{"type":"string"}},{"name":"alpha","in":"query","required":false,"description":"Significance or false-discovery level (default 0.05)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"tests":{"type":["null","number"]},"alpha":{"type":["null","number"]},"rawPValues":{"type":["array","null"],"items":{"type":"number"}},"adjusted":{"type":["null","object"],"properties":{"bonferroni":{"type":["array","null"],"items":{"type":"number"}},"sidak":{"type":["array","null"],"items":{"type":"number"}},"holm":{"type":["array","null"],"items":{"type":"number"}},"benjaminiHochberg":{"type":["array","null"],"items":{"type":"number"}}}},"significantCounts":{"type":["null","object"],"properties":{"raw":{"type":["null","number"]},"bonferroni":{"type":["null","number"]},"sidak":{"type":["null","number"]},"holm":{"type":["null","number"]},"benjaminiHochberg":{"type":["null","number"]}}},"significantIndexes":{"type":["null","object"],"properties":{"holm":{"type":["array","null"],"items":{"type":"number"}},"benjaminiHochberg":{"type":["array","null"],"items":{"type":"number"}}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SOME_SURVIVE","summary":"4 tests at 0.05: raw 4 significant; Bonferroni 2, Holm 2, Benjamini-Hochberg 4 survive.","reasons":["Bonferroni and Holm control the chance of any false positive (family-wise error); Holm is never less powerful than Bonferroni.","Benjamini-Hochberg controls the expected share of false discoveries (FDR) and is more powerful when many tests are real.","…1 more"],"tests":4,"alpha":0.05,"rawPValues":[0.01,0.04],"adjusted":{"bonferroni":[0.04,0.16],"sidak":[0.03940399,0.15065344],"holm":[0.03,0.06],"benjaminiHochberg":[0.02,0.04]},"significantCounts":{"raw":4,"bonferroni":2,"sidak":2,"holm":2,"benjaminiHochberg":4},"significantIndexes":{"holm":[0,3],"benjaminiHochberg":[0,1]},"degraded":false,"notChecked":["whether the tests are independent (Benjamini-Hochberg assumes independence or positive dependence)","the choice of family of tests (decide it before seeing results)","…1 more"],"source":"computed locally","asOf":"2026-10-11T08:55:56.312Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/multiple-comparisons"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/multiple-comparisons"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/multiple-comparisons"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/multiple-comparisons"}}]}}},"/normality-check":{"get":{"operationId":"normality_check","summary":"Normality screen for a sample: skewness, excess kurtosis, Jarque-Bera test with p-value, and the 68-95-99.7 rule check.","description":"Normality screen for a sample: skewness, excess kurtosis, Jarque-Bera test with p-value, and the 68-95-99.7 rule check.","tags":["statistics","normality","jarque-bera","skewness"],"parameters":[{"name":"values","in":"query","required":true,"description":"Sample values (8 to 500)","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"n":{"type":["null","number"]},"mean":{"type":["null","number"]},"sd":{"type":["null","number"]},"skewness":{"type":["null","number"]},"excessKurtosis":{"type":["null","number"]},"jarqueBera":{"type":["null","number"]},"pValue":{"type":["null","number"]},"within1SdPct":{"type":["null","number"]},"within2SdPct":{"type":["null","number"]},"within3SdPct":{"type":["null","number"]},"significantAt5pct":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"NO_EVIDENCE_AGAINST_NORMAL_SMALL_SAMPLE","summary":"n=12: skewness -0.039, excess kurtosis -0.433, Jarque-Bera 0.097 (p = 0.9527); 66.7% within 1 SD (normal: 68.3%), 100% within 2 SD (95.4%).","reasons":["No significant departure detected.","Fewer than 30 values: this test has little power, so 'consistent with normal' is weak evidence.","…1 more"],"n":12,"mean":5.05,"sd":0.5248376372,"skewness":-0.03940741347,"excessKurtosis":-0.4330947946,"jarqueBera":0.09689143904,"pValue":0.95270905,"within1SdPct":66.667,"within2SdPct":100,"within3SdPct":100,"significantAt5pct":false,"degraded":false,"notChecked":["small samples (Jarque-Bera is unreliable under about 30 observations: look at a histogram or Q-Q plot)","that approximate normality is what your method needs (many tests tolerate moderate departures)","…1 more"],"source":"computed locally","asOf":"2026-10-11T08:55:56.578Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/normality-check"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/normality-check"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/normality-check"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/normality-check"}}]}}},"/paired-t-test":{"get":{"operationId":"paired_t_test","summary":"Paired t-test on before and after data: mean change, t, degrees of freedom, p-value, confidence interval and Cohen dz.","description":"Paired t-test on before and after data: mean change, t, degrees of freedom, p-value, confidence interval and Cohen dz.","tags":["statistics","paired-t-test","hypothesis-test","before-after"],"parameters":[{"name":"before","in":"query","required":true,"description":"First measurements","schema":{"type":"string"}},{"name":"after","in":"query","required":true,"description":"Second measurements, same subjects in the same order","schema":{"type":"string"}},{"name":"alpha","in":"query","required":false,"description":"Significance level 0.001 to 0.2 (default 0.05)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"pairs":{"type":["null","number"]},"meanBefore":{"type":["null","number"]},"meanAfter":{"type":["null","number"]},"meanDifference":{"type":["null","number"]},"sdDifferences":{"type":["null","number"]},"standardError":{"type":["null","number"]},"tStatistic":{"type":["null","number"]},"degreesOfFreedom":{"type":["null","number"]},"pValueTwoSided":{"type":["null","number"]},"confidenceInterval":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]},"level":{"type":["null","number"]}}},"cohensDz":{"type":["null","number"]},"significant":{"type":["boolean","null"]},"differences":{"type":["array","null"],"items":{"type":"number"}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SIGNIFICANT","summary":"Mean change 3 (after minus before), t(4) = 4.2426, two-sided p = 0.01324 -> significant at alpha 0.05; 95% CI 1.03676 to 4.96324; Cohen's dz 1.897.","reasons":["Tests whether the mean of the paired differences is zero. Effect size dz: about 0.2 small, 0.5 medium, 0.8 large.","Small sample: normality of the differences matters."],"pairs":5,"meanBefore":14,"meanAfter":17,"meanDifference":3,"sdDifferences":1.58113883,"standardError":0.7071067812,"tStatistic":4.242640687,"degreesOfFreedom":4,"pValueTwoSided":0.0132356,"confidenceInterval":{"lower":1.036756839,"upper":4.963243161,"level":0.95},"cohensDz":1.8973666,"significant":true,"differences":[1,2],"degraded":false,"notChecked":["that the pairs are truly matched (same subject measured twice)","normality of the differences for small samples","…2 more"],"source":"computed locally","asOf":"2026-10-11T08:55:56.841Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/paired-t-test"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/paired-t-test"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/paired-t-test"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/paired-t-test"}}]}}},"/power-t-test":{"get":{"operationId":"power_t_test","summary":"Sample size for a two-sample, one-sample or paired t-test from effect size, alpha and power; or the power for a given size.","description":"Sample size for a two-sample, one-sample or paired t-test from effect size, alpha and power; or the power for a given size.","tags":["statistics","power-analysis","sample-size","t-test"],"parameters":[{"name":"effectSize","in":"query","required":true,"description":"Cohen's d (0.2 small, 0.5 medium, 0.8 large)","schema":{"type":"number"}},{"name":"design","in":"query","required":false,"description":"two-sample (default), one-sample or paired","schema":{"type":"string"}},{"name":"alpha","in":"query","required":false,"description":"Two-sided significance level (default 0.05)","schema":{"type":"number"}},{"name":"power","in":"query","required":false,"description":"Desired power, 0.5 to 0.99 (default 0.8)","schema":{"type":"number"}},{"name":"nPerGroup","in":"query","required":false,"description":"If given, returns the power for this sample size instead","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"effectSize":{"type":["null","number"]},"design":{"type":["null","string"]},"alpha":{"type":["null","number"]},"power":{"type":["null","number"]},"nPerGroup":{"type":["null","number"]},"totalSubjects":{"type":["null","number"]},"unrounded":{"type":["null","number"]},"zAlpha":{"type":["null","number"]},"zBeta":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SAMPLE_SIZE","summary":"two-sample, d = 0.5, alpha 0.05, power 80%: 64 per group (128 in total).","reasons":["Formula n = k (z(alpha/2) + z(power))^2 / d^2 plus z(alpha/2)^2 / (2k) as the small-sample correction (k = 2 for two groups, 1 otherwise).","Plan for dropouts: divide by the expected completion rate."],"effectSize":0.5,"design":"two-sample","alpha":0.05,"power":0.8,"nPerGroup":64,"totalSubjects":128,"unrounded":63.751403,"zAlpha":1.959964,"zBeta":0.84162123,"degraded":false,"notChecked":["the true effect size, which is unknown before the study (use the smallest effect worth detecting)","attrition, non-compliance and non-normal data","…2 more"],"source":"computed locally","asOf":"2026-10-11T08:55:57.107Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/power-t-test"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/power-t-test"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/power-t-test"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://stats-tests.x402tookit.com/power-t-test"}}]}}}}}