Statistics Test
Perform basic statistical tests using pure Python (no scipy/numpy required). Supports: (1) Chi-square goodness-of-fit test with p-value via gamma function, (2) Fisher's exact test for 2x2 contingency tables via hypergeometric distribution, (3) Simple linear regression (OLS) with R-squared, t-statistics, and p-values via incomplete beta function, (4) Two-sample t-test (Welch's) for comparing group means. Use for: hypothesis testing, contingency table analysis, regression analysis, group comparis…
Overview
Perform basic statistical tests using pure Python (no scipy/numpy required). Supports: (1) Chi-square goodness-of-fit test with p-value via gamma function, (2) Fisher's exact test for 2x2 contingency tables via hypergeometric distribution, (3) Simple linear regression (OLS) with R-squared, t-statistics, and p-values via incomplete beta function, (4) Two-sample t-test (Welch's) for comparing group means. Use for: hypothesis testing, contingency table analysis, regression analysis, group comparison.
Status
The most recent probe succeeded. Safe to call from the agent today.
- Last probed
- 1d ago
- Last success
- 1d ago
- Last latency
- 114ms
Schema
JSON Schema the agent (or your API call) must match.
{
"properties": {
"a": {
"description": "Top-left cell of 2x2 table (required for fisher_exact).",
"type": [
"integer",
"null"
]
},
"alternative": {
"default": "two-sided",
"description": "Alternative hypothesis for Fisher's exact test (default: two-sided).",
"enum": [
"two-sided",
"less",
"greater",
null
],
"type": [
"string",
"null"
]
},
"b": {
"description": "Top-right cell of 2x2 table (required for fisher_exact).",
"type": [
"integer",
"null"
]
},
"c": {
"description": "Bottom-left cell of 2x2 table (required for fisher_exact).",
"type": [
"integer",
"null"
]
},
"d": {
"description": "Bottom-right cell of 2x2 table (required for fisher_exact).",
"type": [
"integer",
"null"
]
},
"data_x": {
"description": "X values for linear_regression, or group 1 data for t_test.",
"items": {
"type": "number"
},
"type": [
"array",
"null"
]
},
"data_y": {
"description": "Y values for linear_regression, or group 2 data for t_test.",
"items": {
"type": "number"
},
"type": [
"array",
"null"
]
},
"expected": {
"description": "Expected counts/frequencies (required for chi_square). Will be rescaled to match observed total if totals differ.",
"items": {
"type": "number"
},
"type": [
"array",
"null"
]
},
"observed": {
"description": "Observed counts/frequencies (required for chi_square).",
"items": {
"type": "number"
},
"type": [
"array",
"null"
]
},
"operation": {
"description": "Test type: 'chi_square' for goodness-of-fit, 'fisher_exact' for 2x2 tables, 'linear_regression' for OLS, 't_test' for two-sample Welch's t-test.",
"enum": [
"chi_square",
"fisher_exact",
"linear_regression",
"t_test"
],
"type": "string"
}
},
"required": [
"operation"
],
"type": "object"
}Examples (1)
Default Statistics Test call
{
"operation": ""
}Anonymous-safe example. Rate-limited; no sign-in required.
Identifiers
- Catalog ID
- tu_Statistics_test
- Tool name
- Statistics_test
- Added
- 2026-04-30 22:47Z
- Tags
- tooluniverse