Statistical Analysis
calc_statisticsCalculate mean, median, mode, standard deviation, or variance for a list of numbers. Provides descriptive statistics for data analysis.
Instructions
Perform statistical calculations on a list of numbers.
Available operations: mean, median, mode, std_dev, variance
Note: Use this tool to compute descriptive statistics over a list of numbers. To evaluate a single mathematical expression, use the calculate tool instead.
Examples: statistics([1.0, 2.5, 3.0, 4.5, 5.0], "mean") # Returns 3.2 statistics([1.0, 2.5, 3.0, 4.5, 5.0], "std_dev") # Returns ~1.58
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numbers | Yes | List of numbers to compute descriptive statistics on. Example: [1.0, 2.5, 3.0, 4.5, 5.0] | |
| operation | Yes | Statistical operation to perform. Allowed values: mean, median, mode, std_dev, variance |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| result | Yes | ||
| operation | Yes | ||
| difficulty | Yes | ||
| sample_size | Yes |