statistical_test
Perform statistical tests including t-test, correlation, regression, chi-square, normality, and ANOVA. Obtain numerical results and a diagnostic plot for analysis.
Instructions
Run a statistical test and return results with a diagnostic plot.
Supports t-test, correlation, regression, chi-square, and normality tests. Returns both numerical results (p-values, effect sizes) and a visualization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column_x | Yes | Primary column (numeric for most tests) | |
| column_y | No | Second column (for correlation/regression) or value column (for ttest) | |
| test_type | Yes | Test to run — 'ttest', 'correlation', 'regression', 'chi2', 'normality', 'anova' | |
| confidence | No | Confidence level (default 0.95) | |
| dataset_name | Yes | Name of the loaded dataset | |
| group_column | No | Grouping column for t-test/ANOVA (splits data into groups) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |