Add Greeks and local volatility analytics to dashboard#9
Merged
CameronScarpati merged 2 commits intomainfrom Mar 13, 2026
Merged
Add Greeks and local volatility analytics to dashboard#9CameronScarpati merged 2 commits intomainfrom
CameronScarpati merged 2 commits intomainfrom
Conversation
Elevate the dashboard from a visualization tool to a complete derivatives pricing and hedging toolkit — the kind of output a quant researcher interviewer expects: - Greeks surface panel (Delta, Gamma, Vega, Theta) computed from the fitted SVI surface via Black-Scholes, with 3D surface + cross-sectional views - Local volatility via Dupire's formula, bridging implied vol to the risk-neutral diffusion coefficient - Delta-space smile view with 25-delta risk-reversals and butterflies — the standard quoting convention on derivatives desks - Enhanced mispricing table with BS delta and log-moneyness for hedging context - Tab-based navigation for cleaner organization of 6 analysis panels - Methodology summary in dashboard header and sidebar pipeline overview - Aggregate fit quality metrics (avg R², avg RMSE) in summary bar - Updated README with Dupire methodology, new findings, and references https://claude.ai/code/session_01QrYW5B7Q9eKjnaN78BVJXm
8aec05e to
c7774ac
Compare
…in components Move all descriptive/explanatory captions to app.py (the layout orchestrator) so every tab follows the same pattern. Component files retain only data-driven captions (e.g. residual statistics) that depend on computed values. https://claude.ai/code/session_01QrYW5B7Q9eKjnaN78BVJXm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the volatility surface dashboard with three new analytical panels: Black-Scholes Greeks surfaces, Dupire local volatility computation, and delta-space volatility smile analysis. Reorganizes the dashboard into a tab-based layout for cleaner navigation.
Key Changes
New Components:
dashboard/components/greeks.py— Computes and visualizes Delta, Gamma, Vega, and Theta surfaces from the fitted SVI surface using Black-Scholes formulas. Includes both 3D surface and cross-sectional slice views with interactive Greek selection.dashboard/components/local_vol.py— Implements Dupire's formula to derive local volatility from the fitted SVI surface. Handles finite-difference computation of dw/dT across expiry slices with forward/backward/central difference schemes depending on position in the time grid.dashboard/components/delta_smile.py— Plots implied volatility in delta-space (the standard practitioner quoting convention) rather than strike-space. Includes skew and convexity metrics (25Δ risk-reversals and butterflies) in a summary table.Dashboard Reorganization:
Supporting Changes:
dashboard/components/__init__.pyto export the three new render functions.dashboard/components/term_structure.pywith delta and log-moneyness columns in the mispricing table for hedging context.dashboard/app.pyto integrate new components and reorganize layout with tabs.README.mdto reflect the extended pipeline and new analytical capabilities.Implementation Details
https://claude.ai/code/session_01QrYW5B7Q9eKjnaN78BVJXm