Guide 02 Options, binaries and whole smiles
Payoffs
Payoffs are defined in FinancialMonteCarlo.jl. Every method prices the following ones; any other payoff, such as a barrier option, raises a MethodError.
| Payoff | Constructor | Result |
|---|---|---|
| European option | EuropeanOption(T, K, iscall = true) | number |
| Binary option | BinaryEuropeanOption(T, K, iscall = true) | number |
| Smile of European options | FinancialMonteCarlo.EuropeanOptionSmile(T, Ks, iscalls) | vector, one price per strike |
| Smile of binary options | FinancialMonteCarlo.BinaryEuropeanOptionSmile(T, Ks, iscalls) | vector, one price per strike |
Single options
pricer(model, und, zero_rate, method, EuropeanOption(1.0, 105.0)), pricer(model, und, zero_rate, method, BinaryEuropeanOption(1.0, 105.0, false))(6.234595809498316, 0.6034125169635123)Smiles
A smile has one maturity and several strikes, each with its own call or put flag. This is how to price several strikes: pricer does not take a vector of strikes.
smile = FinancialMonteCarlo.EuropeanOptionSmile(1.0, [90.0, 100.0, 110.0], [false, true, true])
pricer(model, und, zero_rate, method, smile)3-element Vector{Float64}:
3.26459552027899
8.34940576709677
4.564243161927735smile = FinancialMonteCarlo.BinaryEuropeanOptionSmile(1.0, [90.0, 100.0, 110.0], [false, true, true])
pricer(model, und, zero_rate, method, smile)3-element Vector{Float64}:
0.3104792577414433
0.4705553456232836
0.2933271471028047Different maturities
Options with different maturities are priced by broadcasting, and pricer does not take an array of options.
options = [EuropeanOption(0.5, 100.0), BinaryEuropeanOption(1.0, 105.0), EuropeanOption(2.0, 110.0, false)]
pricer.(model, und, zero_rate, method, options)3-element Vector{Float64}:
5.846717440697091
0.376786156343243
15.688951104897644Puts
Each method prices one of the two and gets the other from the put–call parity, so calls and puts share their accuracy, and their cost when they are in the same smile. LewisMethod and the Carr-Madan methods compute calls. CosMethod and the two density methods compute puts: a put is bounded by its strike, so the probability left outside their truncation range costs at most that much, while the coefficients of a call grow like the exponential of the upper end of the range, so a call would need the right tail under the share measure.