stats
Compute descriptive statistics and hypothesis tests (t-test, correlation, chi-square) to check significance, returning p-values and effect sizes.
Instructions
Descriptive statistics and hypothesis tests (SciPy), with a neutral one-line interpretation.
test is one of: describe, ttest_1samp (vs mu), ttest_ind (Welch),
ttest_rel (paired), mannwhitneyu, wilcoxon, chi2_contingency and
fisher_exact (data = table, e.g. [[8, 2], [1, 9]]), pearson, spearman,
linregress (x in data/column, y in data2/column2), proportion_ci
(Wilson; successes, trials, confidence), normal_ci (mean CI), binom_test
(successes, trials, p0).
Numbers come inline (data, data2) or from a registered dataset:
dataset + column (+ column2), group_by = a column with exactly two
values for two-sample tests, where = a row filter such as
"region = 'North'". Dataset columns use every row, not a sample.
Report the p_value and effect size as given; the interpretation states
significance only - never add causal claims. Cite as its cite.
Keywords: statistics, t-test, is it significant, p-value, correlation, regression, confidence interval, average, standard deviation, median, estadística, prueba t, es significativo, valor p, correlación, regresión, intervalo de confianza, media, desviación típica, mediana.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mu | No | ||
| p0 | No | ||
| data | No | ||
| test | Yes | ||
| data2 | No | ||
| where | No | ||
| column | No | ||
| trials | No | ||
| column2 | No | ||
| dataset | No | ||
| group_by | No | ||
| successes | No | ||
| confidence | No |