quantdata.dysanos.implied.universe#

Blockwise coherent spot/option universes for direct PCA IV surfaces.

class quantdata.dysanos.implied.universe.PCAMatchedUniverseBlock(*, start, stop, expiry, incremental)[source]#

Bases: object

Expiry and incremental markets derived from one simulated path block.

class quantdata.dysanos.implied.universe.PCAUniverseBlock(*, start, stop, universe)[source]#

Bases: object

One independently simulated path block and its global row interval.

class quantdata.dysanos.implied.universe.PCAUniverseStreamDiagnostics(wing_hits=WingHitDiagnostics(queries=0, left_hits=0, right_hits=0), minimum_log_spot=inf, maximum_log_spot=-inf, importance_accumulator=None, importance_component_counts=None, minimum_log_weight=inf, maximum_log_weight=-inf)[source]#

Bases: object

Mutable online diagnostics finalized after a universe stream is consumed.

wing_hits: WingHitDiagnostics = WingHitDiagnostics(queries=0, left_hits=0, right_hits=0)#
minimum_log_spot: float = inf#
maximum_log_spot: float = -inf#
importance_accumulator: dict[str, ndarray | float] | None = None#
importance_component_counts: ndarray | None = None#
minimum_log_weight: float = inf#
maximum_log_weight: float = -inf#
add_wing_hits(value)[source]#
quantdata.dysanos.implied.universe.default_static_strike_mesh(points=201)[source]#

Dense fixed relative-strike mesh containing ATM exactly.

quantdata.dysanos.implied.universe.finalize_stream_diagnostics(diagnostics)[source]#

Return path diagnostics after fully consuming the block iterator.

quantdata.dysanos.implied.universe.iter_pca_matched_universe_blocks(experiment, *, decoder, sampler, diagnostics, static_accumulator=None, static_strikes=None, verbose=<cdxcore.verbose.Context object>)[source]#

Yield both return horizons from one sufficiently long coherent path.

The experiment’s return_horizon is deliberately ignored here. It is not a simulation input: the same ten decoded trading surfaces and daily spot path determine the ten expiry cohorts and nine incremental intervals.

quantdata.dysanos.implied.universe.iter_pca_universe_blocks(experiment, *, decoder, sampler, diagnostics, static_accumulator=None, static_strikes=None, verbose=<cdxcore.verbose.Context object>)[source]#

Yield coherent path blocks without materializing a full second copy.

quantdata.dysanos.implied.universe.traded_nms_indices(grid_strikes, num_traded_nms)[source]#

Return the deterministic evenly spaced subset of the training grid.