Optimal stopping in mathematical statistics with applications to finance
Peter Johnson Outline Optimal stopping in mathematical statistics Sequential testing with applications to finance Quickest detection
More general diffusions Peter Johnson Financial applications School of Mathematics, The University of Manchester Other applications References 9 Feb 2016 Optimal stopping in mathematical statistics with applications to finance
Peter Johnson 1 Sequential testing Outline 2 Quickest detection Sequential testing 3 General diffusion processes Quickest detection 4 Financial applications More general • Pairs trading stategy diffusions • Arbitrage detection Financial applications • Updating model parameters (e.g. bubble modelling) Other 5 Other applications applications
References 6 References Optimal stopping in mathematical statistics with applications to finance
Peter Johnson
Outline
Sequential testing
Quickest detection Sequential testing. More general diffusions
Financial applications
Other applications
References Optimal stopping in mathematical statistics with Problem. applications to finance
Peter Johnson Say we observe diffusion process X = (Xt )t≥0 such that X Outline solves the following SDE Sequential testing Quickest dXt = µ0 + θ µ1 − µ0 dt + σdBt , detection
More general diffusions with X0 = 0. Financial applications However, θ is an unobservable random variable that takes Other applications either value 1 or 0 with probability π or (1 − π) respectively. References It is also assumed to be independent of Bt .
Then through observation of X we wish to determine the value of θ as quickly and accurately as possible. Optimal stopping in mathematical statistics with Hypothesis test. applications to finance
Peter Johnson
Outline
Sequential testing This can be seen as a hypothesis testing problem on the value Quickest of θ. detection
More general diffusions H0 : θ = 0, Xt = µ0t + σBt , Financial H θ = 1, X = µ t + σB applications 1 : t 1 t
Other applications To solve this problem we can formalise it as an optimal References stopping problem. Optimal stopping in mathematical statistics with Defining the probability measure. applications to finance
Peter Johnson
Outline
Sequential testing
Quickest detection Firstly we can define a measure Pπ such that
More general 1 0 diffusions Pπ = πP + (1 − π)P Financial applications where under P1(θ = 1) = 1 and P0(θ = 0) = 1. Other applications
References Optimal stopping in mathematical statistics with Formulation of problem. applications to finance In order to find the optimal time to come to a decision on the Peter Johnson value of θ the problem can be formulated as an optimal
Outline stopping problem where we wish to minimise the following
Sequential costs; testing • Expected time to come to a decision Quickest detection More general Eπ[τ] diffusions
Financial applications • Expected costs of a wrong terminal decision
Other applications aPπ(d = 0, θ = 1) + bPπ(d = 1, θ = 0) References Hence this can be written as the following optimal stopping problem V (π) = inf Eπ(τ) + aPπ(d = 0, θ = 1) + bPπ(d = 1, θ = 0) (τ,d) Optimal stopping in mathematical statistics with Traditional formulation. applications to finance
Peter Johnson This formulation may be rewritten in terms of the a posteriori Outline
Sequential process, defined as testing X Quickest πt = P (θ = 1|F ), π0 = π. detection π t
More general diffusions Becoming of the form
Financial applications V (π) = inf Eπ [τ + aπτ ∧ b(1 − πτ)] Other τ applications
References where
• d = 1 if πτ > b/(a + b)
• d = 0 if πτ < b/(a + b) Optimal stopping in mathematical statistics with Likelihood ratio applications to finance
Peter Johnson
Outline The a posteriori process can be defined via the likelihood ratio Sequential process Lt in the one-to-one function testing Quickest π L detection 1−π t πt = π More general 1 + 1 Lt diffusions −π Financial 1 applications where Lt is defined as the Girsanov measure change from P to 0 Other P given to be applications References 2 2 µ1 − µ0 µ1 − µ0 Lt = exp Xt − t σ2 2σ2 Optimal stopping in mathematical statistics with SDE of a posteriori process. applications to finance
Peter Johnson
Outline Sequential The a posteriori process can be seen to solve the following SDE testing
Quickest detection µ1 − µ0 dπt = πt (1 − πt )dB¯t More general σ diffusions
Financial where applications t Other 1 Z applications B¯t = Xt − (µ0 + πs (µ1 − µ0)) ds σ 0 References Optimal stopping in mathematical statistics with Reduction to ODE. applications to finance
Peter Johnson
Outline 2 2 Sequential (µ1 − µ0) 2 2 d testing π (1 − π) V (π) = −1 for π ∈ (A, B), 2σ2 dπ2 Quickest detection V (A) = aA More general diffusions V (B) = b(1 − A) Financial applications V 0 A a smoothfit Other ( ) = ( ) applications 0 References V (B) = −b (smoothfit) V < aπ ∧ b(1 − π) for π ∈ (A, B) V = aπ ∧ b(1 − π) for π ∈ [0, A) ∪ (B, 1] Optimal stopping in mathematical statistics with Solution to ODE. applications to finance Letting π Peter Johnson ψ(π) = (1 − 2π)log( ) 1 − π Outline then we have that Sequential testing
Quickest 2 2 detection 2σ 2σ V ( ) = ( ( ) − (A)) + (a − 0(A))( − A) + aA More general π 2 ψ π ψ 2 ψ π diffusions µ µ
Financial applications if π ∈ (A, B) and
Other applications V (π) = aπ ∧ b(1 − π) References if π ∈ [0, A) ∪ (B, 1]. While A ∈ (0, c) and B ∈ (c, 1) are given as the solution of the following transcendental equations:
V (B; A) = b(1 − B)
V 0(B; A) = −b Optimal stopping in mathematical statistics with Pictures. applications to finance
Peter Johnson
Outline 1.0
Sequential testing 0.8 Quickest detection
More general 0.6 diffusions Out[3034]= Financial applications 0.4
Other applications 0.2 References
0.0 0 200 400 600 800 1000 Optimal stopping in mathematical statistics with Pictures. applications to finance
Peter Johnson
Outline 1000 Sequential testing 800 Quickest detection 600 More general diffusions Out[3035]= 400 Financial applications
Other 200 applications
References 200 400 600 800 1000 Optimal stopping in mathematical statistics with Pictures. applications to finance
Peter Johnson
Outline 1.0
Sequential testing 0.8 Quickest detection
More general 0.6 diffusions Out[3106]= Financial applications 0.4
Other applications 0.2 References
0.0 0 200 400 600 800 1000 Optimal stopping in mathematical statistics with Pictures. applications to finance
Peter Johnson
Outline 600 Sequential testing
Quickest detection 400 More general diffusions Out[3107]= Financial 200 applications
Other applications
References 200 400 600 800 1000 Optimal stopping in mathematical statistics with applications to finance
Peter Johnson
Outline
Sequential testing
Quickest detection Bayesian quickest detection. More general diffusions
Financial applications
Other applications
References Optimal stopping in mathematical statistics with Problem. applications to finance
Peter Johnson Say we observe diffusion process X = (Xt )t≥0 such that X solves the following SDE Outline Sequential testing dXt = µ0 + I (t ≥ Θ) µ1 − µ0 dt + σdBt , Quickest detection with X = 0. More general 0 diffusions
Financial applications However, Θ is an unobservable random variable which takes the
Other value Θ = 0 with probability π and is exponentially distributed applications with parameter λ given Θ > 0 with probability (1 − π). References It is also assumed to be independent of Bt .
Then through observation of X we wish to determine when the change point Θ has occurred, as quickly and accurately as possible . Optimal stopping in mathematical statistics with Bayesian quickest detection. applications to finance
Peter Johnson
Outline So to reiterate before the change point the observed process Sequential testing behaves like Quickest detection Xt = µ0t + σBt , More general diffusions
Financial and after the change point Θ it behaves like applications Other X = µ t + σB , applications t 1 t References To solve this problem we can again formalise it as an optimal stopping problem. Optimal stopping in mathematical statistics with Defining the probability measure. applications to finance
Peter Johnson
Outline
Sequential testing Quickest Firstly we can define a measure Pπ such that detection
More general Z ∞ 0 −λs s diffusions Pπ = πP + (1 − π) λe P ds Financial 0 applications s Other where under P (Θ = s) = 1. applications
References Optimal stopping in mathematical statistics with Formulation of the problem. applications to finance In order to find the optimal stopping time the problem can be Peter Johnson formulated as an optimal stopping problem where we wish to Outline minimise the following; Sequential testing • Probability of false alarm Quickest detection Pπ(τ < Θ) More general diffusions
Financial • The delay taken to come to a decision after Θ applications
Other + applications Eπ[(τ − Θ) ]
References Hence this can be written as the following optimal stopping problem