Stabilize Risks of Discontinuous Payoffs With Fuzzy Logic: Danske Bank
Stabilize Risks of Discontinuous Payoffs With Fuzzy Logic: Danske Bank
Fuzzy Logic 2
Danske Bank
Malliavin’s calculus
a a , X
f X ai a , X dX f X i
a , X dX
X X a, X
f X log a , X a , X dX E f X log a , X
X
ai
ai
− Compute log a, X a pathwise
i
Fuzzy Logic 3
Danske Bank
Payoff smoothing
x
-e/2 0 e/2
Fuzzy Logic 4
Danske Bank
Smoothing a digital
Fuzzy Logic 5
Danske Bank
Smoothing a barrier
Fuzzy Logic 6
Danske Bank
Smoothing everything
• ”Hard coded” payoffs only allow evaluation against scenarios: ”compiled code”
• But scripted payoffs provide full information: ”source code”
Fuzzy Logic 7
Danske Bank
Scripting Languages
Fuzzy Logic 8
Danske Bank
• Crucially for us, provide ”source code” cash-flow information to the software
− So the software can, among (many) others:
− Obviously, evaluate cash-flows in different scenarios
− Detect contingency, path-dependence or early exit and select the appropriate model
− Optimise the calculation of value and risk sensitivities
− Detect (and smooth) discontinuities
Fuzzy Logic 9
Danske Bank
Identifying discontinuities
• Autocallable:
− 3 control flows
− Unstable risk
Fuzzy Logic 10
Danske Bank
Manual smoothing
• Does the job, but hard to write and read and error prone, even in simple cases
Fuzzy Logic 11
Danske Bank
Automatic smoothing
• Automatically turn
− Nice, easy, natural scripts
Fuzzy Logic 12
Danske Bank
Fuzzy Logic 13
Danske Bank
Fuzzy Logic
Fuzzy Logic 14
Danske Bank
Fuzzy Logic 15
Danske Bank
Fuzzy Logic 16
Danske Bank
Fuzzy Logic 17
Danske Bank
• No change in scripts
• Change the evaluation of if this then that statements only
• Effectively stabilises risks sensitivities with minimal PV impact
• (With proper optimization) just as fast as normal
• Easily flick between sharp (pricing) and fuzzy (risk) evaluation
Fuzzy Logic 18
Danske Bank
• This is easy to correct but we must first compute the domains of all conditions
• Fortunately, we have access to the script
• We can write code that traverses the script and calculates condition domains
• This is not as hard as it sounds
Fuzzy Logic 19
Danske Bank
• With fuzzy logic, where spot > 100 to a degree and <= 100 to a degree
− The logic that underlies the script is not applicable
− And the result is a bias in the value by orders of magnitude!
− With fuzzy logic, best stick to the decription of cash-flows and refrain from injecting additional ”logic”
Fuzzy Logic 20
Danske Bank
• Typical e for a condition expr > 0 = fraction of the std dev of expr
• Alternative = set e such that Proba ( - e/2 < expr < e/2) = target
Fuzzy Logic 21