Module contents
Stage 6 of 8Advanced 110 min

Heston Monte Carlo and model risk in exotics

Implement Andersen's quadratic-exponential scheme for Heston, compare its bias with truncated Euler, and apply variance-reduction techniques. Price barrier and Asian options using two models calibrated to the same vanillas and measure their differences: the model risk that the vanilla surface does not resolve.

After this lesson you can

  • Implement Andersen's QE scheme and measure its bias against truncated Euler.
  • Apply antithetic and control variates and quasi-Monte Carlo, measuring variance reduction.
  • Price barrier and Asian options with local volatility and Heston calibrated to the same vanillas.
  • Explain price differences in terms of each model's forward smile dynamics.

Before you start

The same surface does not fix the path

Two models can fit today’s European calls and assign different probabilities to the asset crossing a barrier before maturity. The vanilla surface constrains marginal distributions; a barrier or Asian average depends on the joint distribution of the whole path. This lesson builds both models from the same synthetic Heston surface in the previous lesson and measures their differences, rather than attributing a discrepancy to parameters chosen to produce one.

InteractiveSame vanillas, different barrier
  • Heston QE-M
  • Local
  • Barrier B
Up-and-out call price
Four Heston paths
Four local paths
120
Heston2.4864
Local2.1682
Paired difference0.3182
Difference SE0.0077
Select a discretely monitored barrier and compare the prices obtained in this lesson's experiment. The standard error of the paired difference is reported. Paths are the first from the fixed-seed run and show one of every eight steps, so they may conceal crossings; they are not market predictions.

The QE variance step

Full-truncation Euler uses v+=max⁡(v,0)v^+=\max(v,0) in drift and diffusion, but can produce a negative next vv. Truncation does not make the CIR transition exact and its bias must be measured. Andersen’s quadratic-exponential (QE) scheme approximates the conditional distribution using its first two moments, with a nonnegative form adapted to its dispersion. For a step hh, e=e−κhe=e^{-\kappa h},

m=θ+(v−θ)e,s2=vξ2e(1−e)κ+θξ2(1−e)22κ,ψ=s2/m2.m=\theta+(v-\theta)e,\qquad s^2=\frac{v\xi^2 e(1-e)}{\kappa}+\frac{\theta\xi^2(1-e)^2}{2\kappa},\qquad \psi=s^2/m^2.

If ψ≤1.5\psi\le1.5, take Z∼N(0,1)Z\sim\Normal(0,1) and v′=a(b+Z)2v'=a(b+Z)^2, where

b2=2ψ−1+2ψ2ψ−1,a=m1+b2.b^2=\frac2\psi-1+\sqrt{\frac2\psi}\sqrt{\frac2\psi-1},\qquad a=\frac{m}{1+b^2}.

If ψ>1.5\psi>1.5, use a mixture with mass p=(ψ−1)/(ψ+1)p=(\psi-1)/(\psi+1) at zero and an exponential tail with rate β=(1−p)/m\beta=(1-p)/m. For U∼Unif⁡(0,1)U\sim\Unif(0,1), v′=0v'=0 when U≤pU\le p and v′=log⁡[(1−p)/(1−U)]/βv'=\log[(1-p)/(1-U)]/\beta otherwise. Both branches match mm and s2s^2 by construction; matching moments is not the same as simulating the exact transition. Andersen develops the scheme, and the QuantLib implementation allows the martingale correction to be checked.

For log-price, use a trapezoidal approximation to integrated variance, combined with the innovation independent of variance. The QE-M variant adjusts the increment constant using the conditional moment-generating function of v′v' so that E[St+h/St∣vt]=1\E[S_{t+h}/S_t\mid v_t]=1 at zero rates. That correction preserves the scheme’s martingale; it does not eliminate all discretization bias in a call. In the laboratory we compare both methods at the same step against the COS reference price and also show statistical uncertainty.

Reducing variance without hiding bias

Variance reduction in pricing applies to the estimator; it does not change the payoff being priced. Antithetic variates pair ZZ and −Z-Z and average the two payoffs; the independent unit is the pair. For a control variate YY with known mean μY\mu_Y, the estimator is X−β(Y−μY)X-\beta(Y-\mu_Y) and

β∗=Cov⁡(X,Y)Var⁡(Y),Var⁡(X−β∗(Y−μY))=Var⁡(X)(1−Corr⁡(X,Y)2).\beta^*=\frac{\Cov(X,Y)}{\Var(Y)},\qquad \Var(X-\beta^*(Y-\mu_Y))=\Var(X)(1-\Corr(X,Y)^2).

The laboratory estimates β\beta in an independent pilot and uses a vanilla call as a control for an Asian option. Its reference mean is the continuous COS price; at finite step size, the mean of the vanilla simulated by QE can differ from COS, so the control introduces an additional discrepancy proportional to that bias. Check this as the step is refined. A control can reduce dispersion without fixing a biased scheme.

Sobol with one deterministic set does not by itself provide a sample standard error. We use 16 independent randomizations, each with a power-of-two number of points, and estimate the variance of means across replicates. The Brownian bridge constructs the endpoint first and then conditional midpoints, so the first Sobol coordinates control broad time scales. The result depends on payoff and effective dimension; observed factors are not guarantees for every option.

Discrete and continuous barrier

An up-and-out call pays (ST−K)+(S_T-K)^+ only if the maximum does not reach BB. Looking only at step endpoints can miss intermediate crossings and overvalue a continuous barrier. For a log-price bridge with constant volatility over an interval, with endpoints x,y<b=log⁡Bx,y<b=\log B, the conditional crossing probability is exp⁡[−2(b−x)(b−y)/(σ2h)]\exp[-2(b-x)(b-y)/(\sigma^2h)]. This formula is exact for that Brownian bridge; replacing local or stochastic variance with an average is an approximation requiring checks as the step is refined, not a universally exact correction.

The main experiment defines a discrete barrier, observed at the same 256 times in both models. This compares the same contract without presenting a bridge approximation as an exact continuous value. The Asian average uses the same 256 post-step values. A continuous barrier requires an appropriate crossing correction and an additional convergence study in each model.

Local projection of the same surface

We take the previous lesson’s Heston model with v0=θ=0.04v_0=\theta=0.04, κ=1.5\kappa=1.5, ξ=0.3\xi=0.3, ρ=−0.7\rho=-0.7, F=100F=100, and discount one. COS determines its vanillas. From the same characteristic function, we calculate CTC_T by differentiating the Riccati equations and the log-price density by COS. Dupire’s formula yields the local volatility reproducing those marginals in the continuous limit.

The implementation uses 1024 terms, interval [−3,3][-3,3], 401 log-moneyness nodes, and simulation times. To avoid dividing by numerically tiny tail densities, it extends volatility flat outside ∣k∣≤0.6T+0.01|k|\le0.6\sqrt T+0.01. That extrapolation and the grid make the implementation approximate: vanillas are explicitly repriced in both models and their differences from COS are reported. Exact equality of simulated prices is not presumed.

Laboratory: reproducible engine and reference

The cells are self-contained and require NumPy, SciPy, PyTorch, and threadpoolctl. CUDA is used if available; the CPU runs the same calculation with a different random sequence. This lesson’s figures correspond to the RTX 3060. First we reconstruct the Heston COS reference; no checkpoint or hidden file from another session is loaded.

[ ]COS reference and QE-M stepLocal GPU
import math
import numpy as np
import torch
from scipy.special import ndtri
from scipy.stats import qmc
from threadpoolctl import threadpool_limits

p=(.04,.04,1.5,.3,-.7); v0,theta,kappa,xi,rho=p
def cf(u,T,p=p):
    v0,theta,kappa,xi,rho=p; u=np.asarray(u,complex)
    beta=kappa-rho*xi*1j*u; d=np.sqrt(beta*beta+xi*xi*(u*u+1j*u))
    g=(beta-d)/(beta+d); e=np.exp(-d*T)
    C=kappa*theta/xi**2*((beta-d)*T-2*np.log((1-g*e)/(1-g)))
    D=(beta-d)/xi**2*(1-e)/(1-g*e)
    return np.exp(C+D*v0)
def cos_price(K,T=1.,N=256,L=3.,params=p):
    K=np.atleast_1d(np.asarray(K,float)); a=-L; b=L; u=np.arange(N)*np.pi/(b-a)
    chi=(np.cos(-u*a)+u*np.sin(-u*a)-np.exp(a))/(1+u*u)
    psi=np.empty_like(u); psi[0]=-a; psi[1:]=np.sin(-u[1:]*a)/u[1:]
    H=2/(b-a)*(psi-chi); H[0]*=.5; coef=cf(u,T,params)*np.exp(-1j*a*u)*H
    phase=np.outer(np.log(100/K),u)
    return K*(np.cos(phase)@coef.real-np.sin(phase)@coef.imag)+100-K

def qe_step(v,dt,z1,z2):
    e=math.exp(-kappa*dt); m=theta+(v-theta)*e
    s2=v*xi*xi*e*(1-e)/kappa+theta*xi*xi*(1-e)**2/(2*kappa); psi=s2/(m*m)
    q=(2/psi).clamp_min(1); b2=q-1+torch.sqrt(q*(q-1)); a=m/(1+b2)
    vq=a*(torch.sqrt(b2)+z1)**2
    prob=((psi-1)/(psi+1)).clamp(0,1-1e-7); beta=(1-prob)/m
    U=(.5*(1+torch.erf(z1/math.sqrt(2)))).clamp(1e-7,1-1e-7)
    ve=torch.where(U<=prob,torch.zeros_like(v),torch.log((1-prob)/(1-U))/beta)
    vn=torch.where(psi<=1.5,vq,ve)
    K1=.5*dt*(kappa*rho/xi-.5)-rho/xi; K2=.5*dt*(kappa*rho/xi-.5)+rho/xi
    K3=.5*dt*(1-rho*rho); K4=K3; A=K2+K4/2
    denominator=1-2*A*a
    if A>=0 and (torch.any(denominator<=0) or torch.any(beta<=A)):
        raise ValueError('Momento exponencial del paso inexistente')
    log_mq=-.5*torch.log(denominator)+A*a*b2/denominator
    log_me=torch.log(prob+(1-prob)*beta/(beta-A))
    log_m=torch.where(psi<=1.5,log_mq,log_me)
    K0=-(K1+K3/2)*v-log_m
    dx=K0+K1*v+K2*vn+torch.sqrt((K3*v+K4*vn).clamp_min(0))*z2
    return vn,dx
This cell needs the local lab (PyTorch with your GPU). Start it with npm run lab and open the connection link.

In this parameterization A<0A<0, so the moment-generating functions used in the correction are defined. Uniform bounds prevent log(0) from finite-precision rounding; they are a numerical tail approximation. The code exercise also checks the variance step by its moments.

[ ]Step bias against COSLocal GPU
device='cuda' if torch.cuda.is_available() else 'cpu'; n=2_000_000
ref=float(cos_price([100.])[0]); print('referencia COS ATM',ref)
for steps in (4,8,16,32):
    gen=torch.Generator(device=device).manual_seed(100+steps); dt=1/steps
    v=torch.full((n,),v0,device=device); x=torch.zeros_like(v); ve=v.clone(); xe=x.clone()
    for _ in range(steps):
        z1=torch.randn(n,device=device,generator=gen); z2=torch.randn(n,device=device,generator=gen)
        v,dx=qe_step(v,dt,z1,z2); x+=dx
        pos=ve.clamp_min(0); xe+=-.5*pos*dt+torch.sqrt(pos*dt)*(rho*z1+math.sqrt(1-rho*rho)*z2)
        ve+=kappa*(theta-pos)*dt+xi*torch.sqrt(pos*dt)*z1
    for name,xx in [('QE-M',x),('Euler truncado',xe)]:
        payoff=(100*torch.exp(xx)-100).clamp_min(0)
        mean=payoff.mean().item(); se=payoff.std(unbiased=True).item()/math.sqrt(n)
        print('pasos',steps,name,'precio',mean,'desviación frente a COS',mean-ref,'SE',se)
del v,x,ve,xe,z1,z2,payoff
This cell needs the local lab (PyTorch with your GPU). Start it with npm run lab and open the connection link.

With four steps, this run obtained deviations from COS of −0.01389 for QE-M and 0.12765 for Euler, with standard errors 0.00729 and 0.00756. Observed deviation combines bias and noise: here QE-M’s coarse-step advantage greatly exceeds noise, but it is not a dominance theorem for every payoff and parameterization. With more steps the differences approach the size of the standard errors.

Now build the local grid. If fX(k,T)f_X(k,T) is the density of XT=log⁡(ST/100)X_T=\log(S_T/100), then CKK=fX(k,T)/KC_{KK}=f_X(k,T)/K and σloc2=2CT/(KfX)\sigma_{\rm loc}^2=2C_T/(K f_X) at zero rates. The characteristic function’s time derivative follows from ϕT=ϕ(C′+v0D′)\phi_T=\phi(C'+v_0D') using Riccati. The cell rejects nonpositive densities or derivatives in the trusted region and extends the boundary outside it.

[ ]Local projection from HestonLocal GPU
def projected_grid(steps=256,nk=401,N=1024,L=3.):
    a=-L; b=L; u=np.arange(N)*np.pi/(b-a); k=np.linspace(-.8,.8,nk); K=100*np.exp(k)
    chi=(np.cos(-u*a)+u*np.sin(-u*a)-np.exp(a))/(1+u*u)
    psi=np.empty_like(u); psi[0]=-a; psi[1:]=np.sin(-u[1:]*a)/u[1:]
    H=2/(b-a)*(psi-chi); H[0]*=.5
    density_weight=np.full(N,2/(b-a)); density_weight[0]*=.5
    phase=np.outer(-k-a,u); c=np.cos(phase); s=np.sin(phase); denphase=np.cos(np.outer(k-a,u))
    beta=kappa-rho*xi*1j*u; d=np.sqrt(beta**2+xi**2*(u*u+1j*u)); g=(beta-d)/(beta+d)
    result=[]
    with threadpool_limits(limits=1,user_api='blas'):
        for i in range(1,steps):
            t=i/steps; e=np.exp(-d*t); D=(beta-d)/xi**2*(1-e)/(1-g*e)
            Dprime=.5*xi**2*D*D+(rho*xi*1j*u-kappa)*D-.5*(u*u+1j*u)
            phi=cf(u,t); phit=phi*(kappa*theta*D+v0*Dprime); coef=phit*H
            ct=K*([email protected]@coef.imag)
            density=denphase@(np.real(phi*np.exp(-1j*u*a))*density_weight)
            radius=.6*np.sqrt(t)+.01; mask=np.abs(k)<=radius
            if np.any(density[mask]<=0) or np.any(ct[mask]<=0): raise ValueError('Densidad o derivada temporal no positivas')
            local2=2*ct/(K*density); left=np.searchsorted(k,-radius); right=np.searchsorted(k,radius)-1
            local2[:left]=local2[left]; local2[right+1:]=local2[right]
            result.append(np.sqrt(local2))
    return k,np.asarray(result)
k,local_grid=projected_grid(); print('malla',local_grid.shape,'rango',local_grid.min(),local_grid.max())
This cell needs the local lab (PyTorch with your GPU). Start it with npm run lab and open the connection link.

Both engines use the same set of independent normal innovations for a paired comparison. In Heston, correlation is incorporated through QE-M; in the local projection, the second innovation is used as the Brownian increment. The induced dependence between estimators does not change their marginals and permits direct calculation of the standard error of the payoff difference.

[ ]Same vanillas, barrier, and Asian optionLocal GPU
n=500_000; steps=256; dt=1/steps; gen=torch.Generator(device=device).manual_seed(26)
grid=torch.tensor(local_grid,device=device,dtype=torch.float32)
x=torch.zeros(n,device=device); v=torch.full_like(x,v0); xl=torch.zeros_like(x)
maximum=x.clone(); maximum_l=xl.clone(); sum_s=x.clone(); sum_l=xl.clone(); tracks=[]
for i in range(steps):
    z1=torch.randn(n,device=device,generator=gen); z2=torch.randn(n,device=device,generator=gen)
    v,dx=qe_step(v,dt,z1,z2); x+=dx
    if i==0: sigma=torch.full_like(xl,.2)
    else:
        z=((xl+.8)/.004).clamp(0,399.999); j=z.floor().long(); f=z-j
        sigma=grid[i-1,j]*(1-f)+grid[i-1,j+1]*f
    xl+=-.5*sigma*sigma*dt+sigma*math.sqrt(dt)*z2
    maximum=torch.maximum(maximum,x); maximum_l=torch.maximum(maximum_l,xl)
    sum_s+=100*torch.exp(x); sum_l+=100*torch.exp(xl)
    if i%8==7: tracks.append((x[:8].cpu().numpy(),xl[:8].cpu().numpy()))
if not torch.isfinite(x).all() or not torch.isfinite(xl).all(): raise ValueError('Trayectorias no finitas')
S=100*torch.exp(x); SL=100*torch.exp(xl)
for strike in (85.,100.,115.):
    h=(S-strike).clamp_min(0); l=(SL-strike).clamp_min(0); ref=float(cos_price([strike])[0])
    print('vanilla K',strike,'COS',ref,'QE',h.mean().item(),'SE',h.std(unbiased=True).item()/math.sqrt(n),
          'local',l.mean().item(),'SE',l.std(unbiased=True).item()/math.sqrt(n))
for B in (110.,115.,120.,125.,130.,135.,140.):
    h=(S-100).clamp_min(0)*(maximum<math.log(B/100)); l=(SL-100).clamp_min(0)*(maximum_l<math.log(B/100)); diff=h-l
    print('barrera',B,'QE',h.mean().item(),'local',l.mean().item(),'diferencia',diff.mean().item(),
          'SE pareado',diff.std(unbiased=True).item()/math.sqrt(n))
h=(sum_s/steps-100).clamp_min(0); l=(sum_l/steps-100).clamp_min(0); diff=h-l
print('asiática QE',h.mean().item(),'local',l.mean().item(),'diferencia',diff.mean().item(),
      'SE pareado',diff.std(unbiased=True).item()/math.sqrt(n))
This cell needs the local lab (PyTorch with your GPU). Start it with npm run lab and open the connection link.

In the run with 500,000 paths, for K=100K=100 the COS vanilla was 7.54027; QE-M estimated 7.55601 (SE 0.01457) and local volatility 7.56629 (SE 0.01459). Discrepancies for K=85K=85 and 115 are also printed: the first local estimate was slightly over two standard errors away, so grid or sampling error must not be hidden. The B=120B=120 barrier gave 2.48639 in Heston and 2.16820 in local volatility: the paired difference 0.31818 had SE 0.00774. For the Asian option, the difference was 0.00780 with SE 0.00633 and is not clearly separated from noise in this run. The barrier difference is much larger than its SE, although discretization and grid extrapolation bias still need study.

The next estimator comparison uses an Asian option with 32 observations and 8192 paths per replicate. A pilot of another 8192 paths fixes the control coefficient once; its cost is reported separately. The same pseudorandom sample serves the simple and control estimators, while antithetics and each Sobol randomization have their own seeds. There are only 16 replicates: variance ratios are noisy estimates.

[ ]Antithetics, control, and Sobol with bridgeLocal GPU
torch.set_num_threads(1)
N=8192; steps=32; T=1.; dt=T/steps; vanilla_ref=float(cos_price([100.])[0])
def bridge(z):
    n,steps=z.shape; W=np.zeros((n,steps+1)); W[:,-1]=z[:,0]*np.sqrt(T)
    queue=[(0,steps)]; column=1
    while queue:
        left,right=queue.pop(0)
        if right-left<2: continue
        mid=(left+right)//2
        W[:,mid]=(W[:,left]+W[:,right])/2+np.sqrt((right-left)*dt/4)*z[:,column]
        column+=1; queue.extend([(left,mid),(mid,right)])
    return np.diff(W,axis=1)/np.sqrt(dt)
def generate(seed,mode):
    if mode=='sobol':
        u=qmc.Sobol(d=steps*2,scramble=True,seed=seed).random_base2(int(np.log2(N)))
        z=ndtri(np.clip(u,1e-12,1-1e-12)).reshape(N,steps,2)
        return np.stack((bridge(z[:,:,0]),bridge(z[:,:,1])),axis=2)
    rng=np.random.default_rng(seed)
    if mode=='antithetic':
        z=rng.standard_normal((N//2,steps,2)); return np.concatenate([z,-z],axis=0)
    return rng.standard_normal((N,steps,2))
def asian_and_vanilla(z):
    z=torch.as_tensor(z,dtype=torch.float64); v=torch.full((len(z),),v0,dtype=torch.float64)
    x=torch.zeros_like(v); total=torch.zeros_like(v)
    for i in range(steps):
        v,dx=qe_step(v,dt,z[:,i,0],z[:,i,1]); x+=dx; total+=100*torch.exp(x)
    return (total/steps-100).clamp_min(0).numpy(),(100*torch.exp(x)-100).clamp_min(0).numpy()

pilot_x,pilot_y=asian_and_vanilla(generate(999,'plain'))
beta=np.cov(pilot_x,pilot_y,ddof=1)[0,1]/np.var(pilot_y,ddof=1)
results={name:[] for name in ('plain','antithetic','control','sobol')}
for i in range(16):
    ax,vy=asian_and_vanilla(generate(1000+i,'plain'))
    results['plain'].append(np.mean(ax)); results['control'].append(np.mean(ax-beta*(vy-vanilla_ref)))
    ax,_=asian_and_vanilla(generate(2000+i,'antithetic')); results['antithetic'].append(np.mean(ax))
    ax,_=asian_and_vanilla(generate(3000+i,'sobol')); results['sobol'].append(np.mean(ax))
base=np.var(results['plain'],ddof=1); print('coeficiente del piloto',beta,'media vanilla COS',vanilla_ref)
for name,values in results.items():
    variance=np.var(values,ddof=1)
    print(name,'media',np.mean(values),'varianza de medias',variance,'factor frente a simple',base/variance)
This cell needs the local lab (PyTorch with your GPU). Start it with npm run lab and open the connection link.

In this run, estimated factors relative to simple sampling were 1.43 for antithetics, 4.07 for control, and 84.37 for randomized Sobol with bridge. The pilot produced β=0.5062\beta=0.5062. These are variance ratios of 16 means, not guaranteed speedup factors; pilot cost is additional and the control mean uses the continuous COS vanilla. Changing monitoring, dimension, or seeds can greatly change the result.

As a monitoring control, compare a constant-volatility Black barrier observed at 32 times with its continuous version. Conditional on the final endpoint, the bridge survival probability is exact for this process; we do not transfer it unconditionally to Heston or varying local volatility.

[ ]Brownian bridge control under BlackBrowser
import numpy as np
rng=np.random.default_rng(41); n_bridge=100_000; steps_bridge=32; dt_bridge=1/steps_bridge
sigma=.2; b=np.log(1.2); x=np.zeros(n_bridge); maximum=x.copy()
for _ in range(steps_bridge):
    x+=-.5*sigma*sigma*dt_bridge+sigma*np.sqrt(dt_bridge)*rng.standard_normal(n_bridge)
    maximum=np.maximum(maximum,x)
payoff=np.maximum(100*np.exp(x)-100,0)
discrete=payoff*(maximum<b)
survival=np.where(x<b,1-np.exp(-2*b*(b-x)/(sigma*sigma)),0)
continuous=payoff*survival; difference=discrete-continuous
print('discreta',discrete.mean(),'continua por puente',continuous.mean(),
      'diferencia',difference.mean(),'SE pareado',difference.std(ddof=1)/np.sqrt(n_bridge))

In this run, the discrete estimate was 1.4757 and the continuous bridge estimate 1.1028; the paired difference was 0.3729 with SE 0.00914. The Black correction is an isolated control of the crossing mechanism. Prices compared in the figure remain the discrete-barrier prices for Heston and its local projection; this example does not replace them.

Future smiles and model risk

In Heston, fixing the same spot and time still leaves current variance as an additional state: two values of vtv_t produce different conditional future distributions. In the one-dimensional local model, conditional dynamics are fixed by spot and time. To make this concrete, calculate two conditional Heston smiles from S=100S=100, with the same half-year horizon and only the initial variance changed. They are not predictions of two historical scenarios; they are two states of the synthetic model.

[ ]Two states, two forward smilesLocal GPU
from scipy.optimize import brentq
from scipy.special import ndtr
def black(K,T,sigma):
    s=sigma*np.sqrt(T); d1=np.log(100/K)/s+s/2
    return 100*ndtr(d1)-K*ndtr(d1-s)
strikes=np.array([90.,100.,110.]); horizon=.5
for state in (.02,.08):
    conditional=(state,theta,kappa,xi,rho); values=cos_price(strikes,horizon,params=conditional)
    vols=[brentq(lambda v:black(K,horizon,v)-price,.00001,4.) for K,price in zip(strikes,values)]
    print('varianza de estado',state,'IV condicionales',vols)
This cell needs the local lab (PyTorch with your GPU). Start it with npm run lab and open the connection link.

For variance 0.02, the three strikes’ IVs are approximately 0.1781, 0.1532, and 0.1311; with 0.08 they are 0.2713, 0.2538, and 0.2374. Different forward-smile evolution is one reason conditional behavior after spot moves can differ between models. These calculations alone do not identify a single quantitative cause for the entire observed barrier difference: monitoring and numerical approximation also contribute.

Model uncertainty in exotics appears when different dynamics compatible with vanillas give different values to path-sensitive payoffs. The result depends on the model family, calibration, and contract chosen; it is not a statistical confidence interval or a trading recommendation. A second set of instruments, such as no-touch options or liquid barriers if available, can provide information about maxima and reduce some of that ambiguity.

Exercises

NumericCorrelated control
If the correlation between payoff and control is 0.95, calculate the factor by which variance decreases with the optimal coefficient, defined as original variance divided by variance with control.
ProofAn optimal control does not increase variance
Prove: Prove that choosing the optimal coefficient for a control variate does not increase variance, assuming positive control variance.
0
Zβ = X − β(Y − E[Y]), with Var(Y) > 0 and finite second moments.

Step 1 of 3. What is the variance of Zβ?

QuizSame vanillas
Two models approximately reproduce the same vanillas, but one prices an up-and-out differently. What conclusion is justified?
CodeQE variance step
Implement qe_variance(v,dt,kappa,theta,xi,z,u). z and u are independent standard normal and uniform (0,1) arrays. Use critical ψ 1.5 and return a nonnegative array with the QE approximation. Assume v ≥ 0 and positive parameters and dt.
def qe_variance(v,dt,kappa,theta,xi,z,u):
  raise NotImplementedError()
Shift+Enter to run

Ideas to remember

Key idea
Variance reduction makes an estimator more precise, but does not by itself correct time-step bias or identify dynamics from marginals.

QE-M preserves the scheme’s martingale and approximates variance moments. When comparing exotics across models, check the vanilla fit, observation schedule, and error sources separately.