stat-analyze-distribution
Skill4 starsChanged 12 days agoMITView on GitHub
Characterize the distribution of one or more numeric variables with summary statistics, normality tests, and diagnostic plots.
In this repository56 other files it gives its agents.
- bioinformatics-env-setupSkill
- design-thermostable-mutationsSkill
- download-gdcSkill
- download-geoSkill
- download-sraSkill
- source-summarizerSkill
- genome-alignment-qcSkill
- genome-read-alignmentSkill
- genome-variant-annotationSkill
- genome-variant-callingSkill
- genome-variant-filteringSkill
- metagenome-assemblySkill
- metagenome-binningSkill
- metagenome-functional-profilingSkill
- metagenome-host-removalSkill
- metagenome-taxonomic-profilingSkill
- ncbi-eutilities-assistantSkill
- ngs-quality-controlSkill
- ngs-read-preprocessingSkill
- paper-to-briefSkill
- predict-protein-heat-stabilitySkill
- researchSkill
- rnaseq-alignment-qcSkill
- rnaseq-differential-expressionSkill
- rnaseq-functional-enrichmentSkill
- rnaseq-read-alignmentSkill
- rnaseq-read-countingSkill
- rnaseq-transcript-quantificationSkill
- rpsblast-assistantSkill
- scrnaseq-cellranger-countSkill
- scrnaseq-cell-type-annotationSkill
- scrnaseq-clusteringSkill
- scrnaseq-differential-expressionSkill
- scrnaseq-integrationSkill
- scrnaseq-quality-controlSkill
- scrnaseq-trajectory-analysisSkill
- search-enaSkill
- search-geoSkill
- search-gsaSkill
- search-ncbi-datasetsSkill
- search-sraSkill
- stat-assess-data-qualitySkill
- stat-bayesian-estimationSkill
- stat-cluster-samplesSkill
- stat-compare-multiple-groupsSkill
- stat-compare-two-groupsSkill
- stat-fit-glmSkill
- stat-fit-linear-modelSkill
- stat-learn-bayesian-networkSkill
- stat-logistic-regressionSkill
- stat-nonlinear-embeddingSkill
- stat-pairwise-correlationSkill
- stat-pcaSkill
- stat-survival-analysisSkill
- structured-intelligence-skill-creatorSkill
- <skill-id>Skill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Read the data file; identify numeric columns to analyze (or use user-specified subset).
- Distinctive: line 34
If multiple variables, produce a summary table across all variables.
- Distinctive: line 35
Write summary statistics table (TSV) and plots (PDF) to output directory.
- Distinctive: line 49
Avoid one-sample KS tests against a fitted normal distribution unless a corrected procedure is explicitly implemented.
- Distinctive: line 51
Does not handle categorical or date columns.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Statistical Distribution Analysis
Use When
- User wants to understand the distribution of a numeric variable before choosing a statistical test
- User needs to check whether data is approximately normally distributed
- User wants summary statistics (mean, median, variance, skewness, kurtosis) for one or more columns
- User is preparing an EDA (exploratory data analysis) report
Inputs
- Required:
- Data table (CSV or TSV) with at least one numeric column
- Optional:
- Column(s) to analyze (default: all numeric columns)
- Normality test method:
shapiro(default, n ≤ 5000) oranderson(Anderson-Darling, recommended for larger samples) - Output directory (default:
./dist_output)
Workflow
- Read the data file; identify numeric columns to analyze (or use user-specified subset).
- For each target column, compute summary statistics: mean, median, standard deviation, variance, min, max, 25th/75th percentiles, skewness, kurtosis.
- Run normality test:
- Shapiro-Wilk when n ≤ 5000
- Anderson-Darling when n > 5000 Report test statistic, p-value (or significance level where applicable), and sample size.
- Classify each variable as
approximately_normalornon_normalusing both test output and Q-Q plot inspection (do not classify from hypothesis-test p-value alone). - Generate plots for each variable: histogram with density overlay, Q-Q plot.
- If multiple variables, produce a summary table across all variables.
- Write summary statistics table (TSV) and plots (PDF) to output directory.
- Save an executable analysis script (
analysis_code.pyoranalysis_code.R) and software version manifest (session_info.txt) used to produce results. - Report which variables appear normally distributed and suggest appropriate downstream tests.
Output Contract
- Summary statistics table (TSV): variable, n, mean, median, sd, variance, skewness, kurtosis, normality_test, test_statistic, p_value_or_significance, normality_call
- Histogram + density plot per variable (PDF)
- Q-Q plot per variable (PDF)
- Reproducibility artifacts:
analysis_code.pyoranalysis_code.R, plussession_info.txt
Limits
- Shapiro-Wilk test is unreliable for very large n; use Anderson-Darling and visual diagnostics instead.
- Avoid one-sample KS tests against a fitted normal distribution unless a corrected procedure is explicitly implemented.
- Normality tests have low power for small samples (n < 20); visual inspection of Q-Q plot is recommended.
- Does not handle categorical or date columns; these are silently skipped.
- Common failure: non-numeric columns passed explicitly cause an error — pre-filter if needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

