White Panda Labs
A few things I’ve been working on.
Black–Scholes
Explore option prices in 3D. The research below looks at approximating a digital option with a call spread and hedging it at fixed intervals.
Background
Model
The Black–Scholes model prices a European call with payoff max(S − K, 0) at maturity, constant volatility, and a constant risk-free rate.
Signed error is the selected numerical price minus the analytical price on the same grid. Absolute error is its magnitude.
Methods
Analytical uses the closed-form Black–Scholes formula.
Implicit solves a linear system at each time step.
CN Direct uses Crank–Nicolson time stepping for second-order accuracy in time.
Rannacher stepping starts with four implicit substeps before continuing with Crank–Nicolson to damp early oscillations.
Parameters
- K
- Strike price.
- T
- Time to maturity, in years.
- r
- Annual risk-free rate, entered as a percentage.
- σ
- Annual volatility, entered as a percentage.
- n
- Number of space steps.
- m
- Number of time steps.
The surface spans spot prices S from 0 to 4K and time to expiry from 0 to T. Height represents call price or pricing error.
A digital option pays 1 if the underlying finishes at or above the strike. This study approximates that payoff with a normalized call spread and examines how spread width affects discrete Delta hedging.
S₀ = K = 1 · σ = 20% · T = 1 year · r = 0 · 64 rebalancing intervals
Narrower spreads improve the payoff approximation and increase hedging error. In the 64-step experiment, the direct digital hedge had the lowest total RMSE among the strategies tested.
Background
Call spread
A normalized call spread buys a call at strike K and sells a call at K + h, with both positions scaled by 1/h. Its payoff rises from 0 to 1 between the strikes; h is the spread width.
Discrete hedging
The stock holding is reset to the call-spread Delta at 64 equally spaced rebalancing dates, with the balance held in cash. Direct digital Delta hedging provides the benchmark.
Error measures
Payoff approximation measures the difference between the call-spread and digital payoffs at maturity.
Pure hedging measures the portfolio’s terminal error relative to the call-spread payoff.
Total measures the portfolio’s terminal error relative to the digital payoff, including the cross term between hedging and payoff approximation errors.
Equal-capital total adjusts initial cash so every strategy starts with the digital option price. All four measures are root mean square errors (RMSE).
EEG & Perception
This study asks whether emotional imagery changes adolescents’ visual judgments and EEG responses. It compares pure perception with congruent and incongruent imagery.
N1
P300
Polar Station
A native agent development environment unifying local and SSH workspaces, terminal sessions, AI coding agents, and voice input.
Built with AI coding agents using modular Rust infrastructure and Ghostty terminals. A Godot-based 3D data analysis and visualization platform is in development, with a preliminary prototype available.