
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-codeInstalls 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- Financial Planning Workflow751
- Emergency Fund748
- Performance Metrics746
- Data Quality745
- Return Calculations745
- Lending741
- Savings Goals741
- Trade Execution739
- Fund Vehicles737
- Forward Risk733
- Privacy Data Security731
- Performance Reporting729
- Equities727
- Tax Efficiency724
- Anti Money Laundering723
- Financial Planning Integration723
- Advertising Compliance722
- Fixed Income Corporate722
- Portfolio Management Systems721
- Real Assets721
- Digital Assets719
- Fixed Income Sovereign718
- Know Your Customer715
- Tax Loss Harvesting715