Statistics Calculator Skill
Computes descriptive and inferential statistics including central tendency, dispersion, and hypothesis testing.
Usage
python3 -c "
import statistics
data = [23, 45, 12, 67, 34, 89, 23, 56]
print(f'Mean: {statistics.mean(data):.2f}')
print(f'Median: {statistics.median(data):.2f}')
print(f'Std Dev: {statistics.stdev(data):.2f}')
"
Examples
- "Calculate statistics for this data" -> Computes mean, median, mode, and std dev
- "Is this difference significant?" -> Performs t-test or chi-square test
- "What is the 95% confidence interval?" -> Calculates CI for the sample mean
Guidelines
- Report the appropriate measure of central tendency for the data distribution
- Include sample size alongside all statistics
- State assumptions clearly for hypothesis tests