Skip to content
joellewis avatar

Statistics Fundamentals

Statistical methods for financial returns covering distributions, covariance shrinkage, CAPM regression, and bootstrap inference.

CCM score
66 of 100
skills.sh installs
909
GitHub stars
270
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers descriptive statistics, covariance and correlation, OLS regression, hypothesis testing, and bootstrap resampling for return series
  • Includes a five-step analysis workflow that runs distribution checks, covariance estimation, regression diagnostics, and bootstrap confidence intervals in order
  • Enforces n-1 sample variance and flags that the Jarque-Bera test has low power on small samples, so a failed rejection is not evidence of normality
  • Designed for analysts checking fat tails, beta and alpha significance, or unstable optimizer weights, with scripts/statistics_fundamentals.py providing the helper functions

Install

$ npx -y skills add joellewis/finance_skills --skill statistics-fundamentals -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Statistics Fundamentals

Core Concepts

Conventions and Decision Rules

Sample variance: use n-1

When estimating variance or standard deviation from a sample of returns, divide by n - 1 (Bessel's correction), not n. Dividing by n systematically underestimates dispersion. Standard deviation of returns is "volatility"; annualize with sigma_annual = sigma_period * sqrt(periods_per_year) (e.g., * sqrt(12) for monthly, * sqrt(252) for daily).

Normality testing: Jarque-Bera and its limits

JB = (n/6) * (skew^2 + excess_kurtosis^2 / 4), distributed chi-squared with 2 df under the null of normality (5% critical value: 5.99).

Low-power caveat: with small samples (n below roughly 50), JB rarely rejects even for clearly non-normal data — failing to reject is weak evidence of normality, not confirmation. With large samples, financial return series almost always reject due to fat tails and (for equities) negative skewness. Treat the test as a screen, and pair it with a look at the actual skew/kurtosis magnitudes and extreme observations.

Details

Repository
github.com/joellewis/finance_skills
Categories
Finance & Trading, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What is statistics-fundamentals?

statistics-fundamentals is an agent skill listed on Claude Marketplaces in the Finance & Trading category. The listing describes statistics-fundamentals like this: Apply statistical methods to financial data including descriptive statistics, covariance estimation, regression, hypothesis testing, and resampling.

How do I install statistics-fundamentals?

Run npx -y skills add joellewis/finance_skills --skill statistics-fundamentals -y in a project to install statistics-fundamentals. After that, the agent can use statistics-fundamentals in that project.

Which category is statistics-fundamentals in?

statistics-fundamentals is in the Finance & Trading category on Claude Marketplaces. Other listings in that category next to statistics-fundamentals include wind-mcp-skill, stripe-best-practices and wind-find-finance-skill.

Where is the source code of statistics-fundamentals?

The source code of statistics-fundamentals is on GitHub at https://github.com/joellewis/finance_skills. The joellewis account on GitHub publishes statistics-fundamentals.

More from joellewis/finance_skills

All 84

Similar to Statistics Fundamentals

More Finance & Trading