quantdata.dysanos.grid.torch_det_measure_change#

Deterministic measure change

quantdata.dysanos.grid.torch_det_measure_change.stats(X, D=None)[source]#

Compute the mean and standard error of a 2D array X along axis=0.

class quantdata.dysanos.grid.torch_det_measure_change.MeasureChange(mode='powexp', lmbda=1.0, *, device='cpu')[source]#

Bases: object

plot(label, dS, dC, dQdP, verbose=<cdxcore.verbose.Context object>)[source]#
solve(dS, dC, *, mode='dS, dC[0]', method='jax', num_iter=10, plot=True, verbose=<cdxcore.verbose.Context object>)[source]#

Find a risk-neutral measure change dQ/dP for the given dX using the utility function specified by self.mode and self.lmbda.

quantdata.dysanos.grid.torch_det_measure_change.change(universe, method='jax', mode='dS', plot=True, verbose=<cdxcore.verbose.Context object>)[source]#