---
name: statistics
description: "Statistics and hypothesis tests in Python, including quick calculations you could do by hand: a confidence interval for a proportion or a mean, a sample size, a p-value; compare two groups or means (t test, Welch, paired, Mann-Whitney), proportions, variances, chi-square and Fisher tests on tables, normality, correlation, power, multiple testing, whether a 'not significant' result means no effect, updating a probability or a mean with a prior (Bayesian, credible interval), or teaching basic statistics. Entry point to the econometrics skill's statistics module: load it instead of answering from general knowledge (hand formulas such as the Wald interval are often the wrong ones) or with a data-analysis skill."
---
# Statistics (entry point)
This is the door to the statistics module of the `econometrics` skill in the same plugin. It holds no instructions of its own, so that every number still comes from the same tested scripts and rules.
1. Load the main skill now: call the Skill tool with `econometrics:econometrics` and follow it (Consultant, Teacher or Reviewer mode, environment check, script skeleton, manifest). If the Skill tool cannot load it, read `../SKILL.md` (the folder above this one) and follow it the same way.
2. For the question at hand, read `../references/statistics-foundations.md` and use `../scripts/inference.py` (describe_dist, one_sample, two_sample, variance_test, proportion_ci, proportion_test, n_for_proportion, chisq_fit, normality, contingency, nonparametric, correlation_test, power_curve, adjust_pvalues) and the Module 0 demos in `../scripts/simulation.py`. For a probability or a mean updated with a prior (posterior, credible interval, P(theta > c)), read §15 and use `../scripts/bayes.py` (beta_binomial, normal_mean). For an A/B test or other data looked at as they arrive (daily looks, stopping at the first p < 0.05, a sequential design), read §14 of the same file and use `../scripts/sequential.py` (peeking_size, sprt_design, sprt, n_for_error).
3. When the question grows into a model (an effect with controls, a regression, a forecast), stay in the main skill: it routes it.
— ‹guest · 2026-12-04› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.