Black-Scholes delta calculation with dividend yield
Uses the standard normal CDF from statrs for precision
x = ln(K/F), so d1 uses -x for standard Black-Scholes formula
Convenience function to build linear IV output using underlying price from market data
Uses the underlying_price from the first market data point as the forward price
Compute sorted (log-moneyness, total_variance) points from market data
Filters out invalid IVs (market_iv <= 0), handles duplicates by averaging, and sorts by log-moneyness