Inverse Langevin approach to time-series data analysis Fbio Macdo - - PowerPoint PPT Presentation

inverse langevin approach to time series data analysis
SMART_READER_LITE
LIVE PREVIEW

Inverse Langevin approach to time-series data analysis Fbio Macdo - - PowerPoint PPT Presentation

Motivation Parabolic scheme for stochastic inference Summary Inverse Langevin approach to time-series data analysis Fbio Macdo Mendes Annbal Dias Figueiredo Neto Universidade de Braslia Saratoga Springs, MaxEnt 2007 Fbio Macdo


slide-1
SLIDE 1

Motivation Parabolic scheme for stochastic inference Summary

Inverse Langevin approach to time-series data analysis

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto

Universidade de Brasília

Saratoga Springs, MaxEnt 2007

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-2
SLIDE 2

Motivation Parabolic scheme for stochastic inference Summary

Outline

1

Motivation Brownian Motion Limit from discrete process Inference about forces/noise

2

Parabolic scheme for stochastic inference Newton’s method Implementation Examples A very naive application to finance

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-3
SLIDE 3

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Outline

1

Motivation Brownian Motion Limit from discrete process Inference about forces/noise

2

Parabolic scheme for stochastic inference Newton’s method Implementation Examples A very naive application to finance

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-4
SLIDE 4

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Classic Brownian motion

Einstein: drunkard walk (Smoluchowski controversy) ) Lots of “Brownian” motions all around: physics, finance, communication etc. Random Gaussian increments (SDE’s — Wanier, Itô) dx = m(x; t) dt + σ(x; t) dB

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-5
SLIDE 5

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Langevin dynamics

We must retain Newtonian physics:

expand the state dv = a(x, v; t) dt + D(x, v; t) dB dx = v dt rich set of solutions from simple equations: linear, exponential, oscillatory, etc

Similar results (classic Brownian)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-6
SLIDE 6

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Outline

1

Motivation Brownian Motion Limit from discrete process Inference about forces/noise

2

Parabolic scheme for stochastic inference Newton’s method Implementation Examples A very naive application to finance

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-7
SLIDE 7

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Limit from discrete process

What we tackle (work in progress)

Wanier noise dB = β √ dt: Fokker-Planck/forward Kolmogorov equation. (Brownian motion) Non-analytic noises, Levy, and others: Kramer-Moyal

  • equation. (gas of rigid spheres)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-8
SLIDE 8

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Questions

What the drift and the noise?

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-9
SLIDE 9

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Questions

What the drift and the noise? Is it Fokker-Planck or Kramer-Moyal?

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-10
SLIDE 10

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Questions

What the drift and the noise? Is it Fokker-Planck or Kramer-Moyal? Can we compare Fokker-Planck to Kramer-Moyal models?

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-11
SLIDE 11

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Outline

1

Motivation Brownian Motion Limit from discrete process Inference about forces/noise

2

Parabolic scheme for stochastic inference Newton’s method Implementation Examples A very naive application to finance

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-12
SLIDE 12

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Markov Chain

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-13
SLIDE 13

Motivation Parabolic scheme for stochastic inference Summary Brownian Motion Limit from discrete process Inference about forces/noise

Use Bayes theorem...

Likelihood (µ: measurement noise, w: hidden state, η, θ: parameters of interest) p(η| y) = 1 p( y)p(η)p( y|η) p( y|η) =

  • d

w dµ dθ p(η, θ)p(µ)p( y| w, µ)p( w|η, θ) Similar thing for p(θ| y)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-14
SLIDE 14

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Outline

1

Motivation Brownian Motion Limit from discrete process Inference about forces/noise

2

Parabolic scheme for stochastic inference Newton’s method Implementation Examples A very naive application to finance

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-15
SLIDE 15

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Exactly soluble propagators

A Markov process is characterized by its propagator p(w0, w1, . . . , wN) = p(w0)p(w1|w0) . . . p(wN|wN−1) We know analytical (Gaussians!) results only for simplest cases F(x, v; t) m = −γv − ω2x + a0

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-16
SLIDE 16

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

The parabolic method

We don’t know how to integrate every model Newton approximation

The force at a small δt is almost constant (but depends on initial position + parameters) We can calculate the trajectory/propagator Repeat this procedure for the next step

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-17
SLIDE 17

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Outline

1

Motivation Brownian Motion Limit from discrete process Inference about forces/noise

2

Parabolic scheme for stochastic inference Newton’s method Implementation Examples A very naive application to finance

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-18
SLIDE 18

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Delta function approximation

Conjugate prior for p(µ). At some level approximation for large data sets...

  • dµ p(µ)p(

y| w, µ) ∼ δ( y − x) Now we have only Gaussian integrations over velocities. Φ =

  • d

v p(y0, v0, y1, v1, . . . , yN, vN,|θ, η)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-19
SLIDE 19

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Main loop

At each integration step, collect a bunch of coefficients ηαi Gi e− η

2 (aiv2 i +2bivi+2civivi−1+div2 i−1+2eivi−1+fi)

After each step, some coefficients must be updated before we start with the next integration Φ =

  • d

v p( y, v|θ, η) = η

N−1 2

G(θ)e− η

2 f(θ,

y)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-20
SLIDE 20

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Inference results

Use Laplace approximation to normalize p(θ| y, η), plug-in a Gamma prior p(η) p(θ| y) ∝ p(θ) G(θ)

  • f(

y) + f(θ, y) − f(¯ θ, y) + δ N+1

2 +σ+ d 2

p(η| y) is calculated analytically

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-21
SLIDE 21

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Inference results

Use Laplace approximation to normalize p(θ| y, η), plug-in a Gamma prior p(η) p(θ| y) ∝ p(θ) G(θ)

  • f(

y) + f(θ, y) − f(¯ θ, y) + δ N+1

2 +σ+ d 2

p(η| y) is calculated analytically We use a flat prior p(θ) (I’m ashamed!)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-22
SLIDE 22

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Outline

1

Motivation Brownian Motion Limit from discrete process Inference about forces/noise

2

Parabolic scheme for stochastic inference Newton’s method Implementation Examples A very naive application to finance

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-23
SLIDE 23

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Oscillatory brownian motion

10

3

10

4

10

5

Data length

  • 0.20
  • 0.15
  • 0.10
  • 0.05

0.00 0.05

Coefficient

Force parameters vs. data length

constant linear quadratic

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-24
SLIDE 24

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Comments

Works pretty well with artificially generated time series Still, it does not get the diffusion coefficient quite right in some cases It is also somewhat robust to the existence of dissipative forces

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-25
SLIDE 25

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Some results

η(1) θ1(0) θ2(0.1) Simple 0.96(0.03) −0.07(0.02) −9 × 10−7(5 × 10−4) Harmonic 0.78(0.03) −0.04(0.08) −0.099(0.003) Dissipative 1.06(0.03) 0.08(0.02) −5 × 10−4(9 × 10−4) D-H 1.07(0.03) −0.04(0.08) −0.096(0.004)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-26
SLIDE 26

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

Outline

1

Motivation Brownian Motion Limit from discrete process Inference about forces/noise

2

Parabolic scheme for stochastic inference Newton’s method Implementation Examples A very naive application to finance

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-27
SLIDE 27

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

You will not win any money!

There is no force. This will NOT make you win money!

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-28
SLIDE 28

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

You will not win any money!

There is no force. This will NOT make you win money! But this is the expected behavior, of course Things to explore (speculation-crash patterns):

noise may not be Wanier volatility time we can introduce trends as a time-dependent force

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-29
SLIDE 29

Motivation Parabolic scheme for stochastic inference Summary Newton’s method Implementation Examples A very naive application to finance

The time series data

1970 1980 1990 2000

year

  • 1.5
  • 1.0
  • 0.5

0.0 0.5 1.0

log2-return

GE closing values

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-30
SLIDE 30

Motivation Parabolic scheme for stochastic inference Summary

Summary

Given f(x, θ), it is possible to infer θ and the intensity of the noise which governs a Langevin system

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-31
SLIDE 31

Motivation Parabolic scheme for stochastic inference Summary

Summary

Given f(x, θ), it is possible to infer θ and the intensity of the noise which governs a Langevin system Open possibilities: better linear approximations, time-dependent parameters, linear diffusion coefficient.

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-32
SLIDE 32

Motivation Parabolic scheme for stochastic inference Summary

Summary

Given f(x, θ), it is possible to infer θ and the intensity of the noise which governs a Langevin system Open possibilities: better linear approximations, time-dependent parameters, linear diffusion coefficient. Open issues

Work out a decent prior p(θ) (and calculate the evidence!)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-33
SLIDE 33

Motivation Parabolic scheme for stochastic inference Summary

Summary

Given f(x, θ), it is possible to infer θ and the intensity of the noise which governs a Langevin system Open possibilities: better linear approximations, time-dependent parameters, linear diffusion coefficient. Open issues

Work out a decent prior p(θ) (and calculate the evidence!) Treatment of noise is not really satisfactory

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis

slide-34
SLIDE 34

Motivation Parabolic scheme for stochastic inference Summary

Summary

Given f(x, θ), it is possible to infer θ and the intensity of the noise which governs a Langevin system Open possibilities: better linear approximations, time-dependent parameters, linear diffusion coefficient. Open issues

Work out a decent prior p(θ) (and calculate the evidence!) Treatment of noise is not really satisfactory Dissipative forces (easy) and non-Wanier and Levy noises (potentially very hard)

Fábio Macêdo Mendes Anníbal Dias Figueiredo Neto Inverse Langevin approach to time-series data analysis