quantmetrics.price_calculators.gbm_pricing.gbm_paths_Q.GBMSimulatePathsQ

class quantmetrics.price_calculators.gbm_pricing.gbm_paths_Q.GBMSimulatePathsQ(model: LevyModel, option: Option)[source]

Implements the paths simulation for a Geometric Brownian Motion (GBM) model under the risk-neutral measure.

Parameters

modelLevyModel

A LevyModel object specifying the underlying asset’s model and its parameters.

optionOption

An Option object specifying the option parameters: interest rate, strike price, time to maturity, dividend yield and the equivalent martingale measure.

__init__(model: LevyModel, option: Option)[source]

Methods

__init__(model, option)

simulate(num_timesteps, num_paths, seed)

Generate paths for the Geometric Brownian Motion (GBM) model.