Properties
_antitheticVariate
_antitheticVariate: boolean
_arguments
_arguments
: Arguments = new VarianceSwap.Arguments()
Protected _brownianBridge
_brownianBridge: boolean
_controlVariate
_controlVariate: boolean
_isDisposed
_isDisposed: boolean = false
Protected _maxSamples
Protected _process
Protected _requiredSamples
Protected _requiredTolerance
_results
_results: Results = new VarianceSwap.Results()
Protected _seed
Protected _timeSteps
Protected _timeStepsPerYear
calculate
calculate: () => void
calculate1
calculate1
: (requiredTolerance
: Real, requiredSamples
: Size, maxSamples
: Size) => void
Type declaration
-
- (requiredTolerance: Real, requiredSamples: Size, maxSamples: Size): void
-
Parameters
-
requiredTolerance: Real
-
requiredSamples: Size
-
maxSamples: Size
Returns void
controlVariateValue
control
VariateValue: () => Real
deepUpdate
deepUpdate: () => void
dispose
dispose: () => void
errorEstimate
error
Estimate: () => Real
getResults
getResults: () => Results
isDisposed
isDisposed: boolean
mcsInit
mcs
Init: (antitheticVariate: boolean, controlVariate: boolean) => McSimulation
Type declaration
-
- (antitheticVariate: boolean, controlVariate: boolean): McSimulation
-
Parameters
-
antitheticVariate: boolean
-
controlVariate: boolean
notifyObservers
notifyObservers: () => void
registerWithObservables
register
WithObservables: (o: Observer) => void
unregisterObserver
unregister
Observer: (o: Observer) => void
unregisterWithAll
unregisterWithAll: () => void
update
update: () => void
valueWithSamples
value
WithSamples: (samples: Size) => Real
Variance-swap pricing engine using Monte Carlo simulation
as described in Demeterfi, Derman, Kamal & Zou, "A Guide to Volatility and Variance Swaps", 1999
todo define tolerance of numerical integral and incorporate it in errorEstimate
test returned fair variances checked for consistency with implied volatility curve.