quantdata.dysanos.grid.gendysanos#
Generative SANOS terminal-payoff experiments.
- class quantdata.dysanos.grid.gendysanos.TerminalPathDiagnostics(*, mode, option_return_horizon, trading_times, trading_step_stride, simulated_state_steps, expiry_step_offsets, dt, maximum_expiry_time_error, minimum_log_spot, maximum_log_spot, importance_sampling=None)[source]#
Bases:
objectGeometry and numerical range of a coherent simulated state path.
- class quantdata.dysanos.grid.gendysanos.TerminalSamplingDiagnostics(*, minimum_raw_weight, maximum_mass_error, clipped_negative_weight_count)[source]#
Bases:
objectNumerical corrections applied to SANOS probability weights.
- quantdata.dysanos.grid.gendysanos.build_one_time_terminal_universe(*, xstate, expiries, normalized_strikes, normalized_calls, component_spots, component_weights, sqrt_variances, smoothness, rng)[source]#
Construct one-trade-time option returns from SANOS terminal payoffs.
Calls are entered at the decoded cash price and held to their actual expiry. All strikes for one path/expiry share the same terminal spot. The first-expiry terminal spot also supplies the single spot return.
- quantdata.dysanos.grid.gendysanos.build_terminal_path_universe(*, xstate_path, trading_times, trading_step_stride=1, expiries, expiry_offsets, normalized_strikes, normalized_calls, normalized_deltas, normalized_calls_tp1=None, option_return_step_offset=1, require_bounded_deltas=True)[source]#
Build expiry or repriced option P&Ls from one common state path.
Contract
(t, j, k)is entered at daily-path indext * trading_step_stride. With nonormalized_calls_tp1, its payoff uses the same sample’s spot at the contract expiry. When endpoint calls are supplied, they must be prices att + option_return_step_offsetof the original cash strike and remaining maturity. An option expiring on or before that endpoint is instead settled at its exact daily expiry and its cash payoff is carried to the return endpoint. The option’s stock hedge is closed at the same exact expiry; otherwise it is closed at the common return endpoint.normalized_deltasare the initial cash-call deltas. SANOS deltas are bounded by default. Direct surface decoders may setrequire_bounded_deltas=Falseso smile-induced violations remain visible rather than being rejected or clipped.
- quantdata.dysanos.grid.gendysanos.expiry_step_offsets(expiries, *, dt)[source]#
Map year-fraction expiries to an increasing daily path grid.
- quantdata.dysanos.grid.gendysanos.sample_sanos_terminal_ratios(*, component_spots, component_weights, sqrt_variances, smoothness, rng, negative_weight_tolerance=1e-06)[source]#
Draw one normalized terminal spot per path and expiry.
For component spot
xand smoothed standard deviationv, the draw isx * exp(-v**2/2 + v*Z). Its conditional mean isxand its call expectation is exactly the Black–Scholes component used by SANOS.
Modules#
- quantdata.dysanos.grid.gendysanos.arb_tracing
- quantdata.dysanos.grid.gendysanos.candidate_replay
- quantdata.dysanos.grid.gendysanos.case_c
- quantdata.dysanos.grid.gendysanos.case_c_kernel
- quantdata.dysanos.grid.gendysanos.case_c_partition
- quantdata.dysanos.grid.gendysanos.case_store
- quantdata.dysanos.grid.gendysanos.cell_measure_change
- quantdata.dysanos.grid.gendysanos.compare_surface_spot_drift
- quantdata.dysanos.grid.gendysanos.conditional
- quantdata.dysanos.grid.gendysanos.conditional_static_arbitrage
- quantdata.dysanos.grid.gendysanos.expiry_arbitrage
- quantdata.dysanos.grid.gendysanos.historical_state_period_audit
- quantdata.dysanos.grid.gendysanos.matched_cache
- quantdata.dysanos.grid.gendysanos.multi_expiry_arbitrage
- quantdata.dysanos.grid.gendysanos.norm_continuation
- quantdata.dysanos.grid.gendysanos.plot_conditional_spot_example
- quantdata.dysanos.grid.gendysanos.required_runs
- quantdata.dysanos.grid.gendysanos.run_arb_tracing
- quantdata.dysanos.grid.gendysanos.run_batched_multi_expiry_arbitrage
- quantdata.dysanos.grid.gendysanos.run_case_c
- quantdata.dysanos.grid.gendysanos.run_cell_measure_change
- quantdata.dysanos.grid.gendysanos.run_conditional_arb_replay
- quantdata.dysanos.grid.gendysanos.run_conditional_static_arbitrage
- quantdata.dysanos.grid.gendysanos.run_expiry_arbitrage_experiments
- quantdata.dysanos.grid.gendysanos.run_historical_state_period_audit
- quantdata.dysanos.grid.gendysanos.run_historical_state_risk_aversion
- quantdata.dysanos.grid.gendysanos.run_implied_cvar
- quantdata.dysanos.grid.gendysanos.run_implied_cvar_t0_dual
- quantdata.dysanos.grid.gendysanos.run_implied_cvar_t0_lp
- quantdata.dysanos.grid.gendysanos.run_implied_cvar_t6_dual
- quantdata.dysanos.grid.gendysanos.run_implied_cvar_t6_partition_lp
- quantdata.dysanos.grid.gendysanos.run_incremental_candidate_adversarial_replay
- quantdata.dysanos.grid.gendysanos.run_incremental_candidate_replay
- quantdata.dysanos.grid.gendysanos.run_incremental_pca_candidate_replay
- quantdata.dysanos.grid.gendysanos.run_norm_continuation
- quantdata.dysanos.grid.gendysanos.run_one_time_comparison
- quantdata.dysanos.grid.gendysanos.run_one_time_control
- quantdata.dysanos.grid.gendysanos.run_parallel_direction_comparison
- quantdata.dysanos.grid.gendysanos.run_payoff_cone_lp_control
- quantdata.dysanos.grid.gendysanos.run_required_experiments
- quantdata.dysanos.grid.gendysanos.run_surface_first_diagnostics
- quantdata.dysanos.grid.gendysanos.run_terminal_arbitrage_tests
- quantdata.dysanos.grid.gendysanos.run_terminal_mode_comparison
- quantdata.dysanos.grid.gendysanos.run_traded_strike_static
- quantdata.dysanos.grid.gendysanos.static_spread_strategy
- quantdata.dysanos.grid.gendysanos.summarize_payoff_cone_controls
- quantdata.dysanos.grid.gendysanos.terminal_universe
- quantdata.dysanos.grid.gendysanos.torch_prep