# Distribution Analysis

> Analyze and fit statistical distributions: normality tests, distribution fitting, skewness and kurtosis interpretation, QQ plots, and distribution comparison. Use when assessing data normality, choosing statistical tests, or understanding data generating processes.

- **Type:** Skill
- **Install:** `agentstack add skill-ericwang915-data-scientist-skills-distribution-analysis`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ericwang915](https://agentstack.voostack.com/s/ericwang915)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ericwang915](https://github.com/ericwang915)
- **Source:** https://github.com/ericwang915/data-scientist-skills/tree/main/ds-exploratory-analysis/skills/distribution-analysis

## Install

```sh
agentstack add skill-ericwang915-data-scientist-skills-distribution-analysis
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Distribution Analysis

## Purpose
Characterize the statistical distribution of your data. Determines whether data is normal, identifies the best-fitting distribution, and provides the right statistical tools based on the distribution shape.

## How It Works

### Step 1: Visual Assessment
- Histogram with KDE overlay
- QQ plot against normal distribution
- Box plot with outlier markers
- ECDF (Empirical Cumulative Distribution Function)

### Step 2: Normality Testing
- Shapiro-Wilk test (best for n < 5000)
- D'Agostino-Pearson test (combines skewness and kurtosis)
- Anderson-Darling test (sensitive to tails)
- Kolmogorov-Smirnov test (general goodness-of-fit)

### Step 3: Distribution Fitting
Fit candidate distributions and rank by goodness-of-fit:
- Normal, Log-normal, Exponential, Gamma, Beta, Weibull, Poisson, Uniform
- AIC/BIC comparison across candidates
- Best-fit parameters with confidence intervals

### Step 4: Transformation Recommendations
If non-normal:
- Log transform (right-skewed data)
- Box-Cox transform (optimal power transform)
- Yeo-Johnson transform (handles negative values)
- Square root transform (count data)

### Step 5: Practical Implications
- Which statistical tests are appropriate (parametric vs. non-parametric)
- Impact on confidence intervals and hypothesis tests
- Modeling recommendations (GLM family choice, kernel selection)

## Usage Examples

```
"Is this revenue data normally distributed? What transformation should I apply?"
```

```
"Fit the best distribution to this event time data for simulation modeling"
```

## Output Format

- **Visual Summary**: Histogram, QQ plot, box plot
- **Test Results**: Normality test p-values with interpretation
- **Best Fit**: Distribution name, parameters, goodness-of-fit metrics
- **Transformation**: Recommended transform with before/after comparison
- **Python Code**: Reproducible analysis script

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ericwang915](https://github.com/ericwang915)
- **Source:** [ericwang915/data-scientist-skills](https://github.com/ericwang915/data-scientist-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ericwang915-data-scientist-skills-distribution-analysis
- Seller: https://agentstack.voostack.com/s/ericwang915
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
