joellewis avatar

Volatility Modeling

A solid toolkit for anyone building volatility forecasts or working with options data. You get EWMA and GARCH(1,1) implementations with proper mean reversion math, implied volatility extraction from option prices, and tools to construct volatility surfaces and term structures. The skill covers both historical forecasting (with half-life calculations and multi-step GARCH projections) and forward-looking measures like the VIX and volatility risk premium. Useful for risk management, position sizing, or any trading strategy that depends on vol estimates. The GARCH formulas are production-ready with stationarity checks, and the IV treatment handles smiles and skew correctly. If you need to compare realized versus implied vol or understand why the skew exists in equity markets, this gets you there without the academic bloat.

skills.sh installs
753
GitHub stars
224
last updated
Aug 21, 2026

Install

$ npx -y skills add joellewis/finance_skills --skill volatility-modeling --agent claude-code

Installs into .claude/skills of the current project.

Files

Volatility Modeling

Core Concepts

EWMA (Exponentially Weighted Moving Average)

A simple volatility model that gives more weight to recent observations. RiskMetrics popularized this approach with a standard decay factor.

sigma^2_t = lambda * sigma^2_{t-1} + (1 - lambda) * r^2_{t-1}

where:

  • lambda = decay factor (RiskMetrics standard: 0.94 for daily, 0.97 for monthly)
  • r_{t-1} = return in period t-1 (typically demeaned, but for daily returns the mean is often assumed to be zero)
  • sigma^2_{t-1} = previous period's variance estimate

Properties:

  • Assigns exponentially decaying weights to past squared returns.
  • Effective window is approximately 1/(1 - lambda) observations. For lambda = 0.94, effective window is approximately 17 days.
  • No mean reversion: the model is equivalent to IGARCH (integrated GARCH) where alpha + beta = 1. Volatility shocks persist indefinitely.
  • Simple to implement and requires only one parameter.

GARCH(1,1)

The Generalized Autoregressive Conditional Heteroskedasticity model adds a constant term that induces mean reversion in volatility.

sigma^2_t = omega + alpha * r^2_{t-1} + beta * sigma^2_{t-1}

Sponsors

Details

Repository
github.com/joellewis/finance_skills
Category
Finance & Trading
First seen
Jun 3, 2026

More from joellewis/finance_skills

All 84
1joellewis avatartax-efficiencyjoellewis/finance_skillsMaximizes after-tax returns through strategic asset location, gain/loss management, and withdrawal sequencing. Use when the user asks about asset location, Roth724skills.sh installs
2star23 avatarus-value-investingstar23/day1global-skillsUS stock value investing analysis framework. Systematically evaluates listed companies through 4 core dimensions (ROE sustainability, debt safety, free cash flo723skills.sh installs
3joellewis avatarknow-your-customerjoellewis/finance_skillsGuide customer onboarding identification, due diligence, and profile maintenance under FINRA Rule 2090, the CIP rules, and the FinCEN CDD Rule. Use when the use715skills.sh installs
4joellewis avatarregulatory-reportingjoellewis/finance_skillsGuide regulatory filing mechanics and deadlines for investment advisers, broker-dealers, and large traders — which forms to file, where, and by when. Use when t707skills.sh installs
5joellewis avatarreference-datajoellewis/finance_skillsDesign and manage reference data systems — security master, client master, account master, identifier mapping, pricing data sources, golden source designation, 692skills.sh installs
6aicoincom avataraicoin-marketaicoincom/coinos-skillsCrypto market data from AiCoin Open API v3 — 200+ exchanges, real-time. Use whenever the user asks about crypto prices, K-lines, funding rates, open interest, l688skills.sh installs