from hft to laplace demon
play

From HFT to Laplace Demon @abifet When timed data technology - PowerPoint PPT Presentation

From HFT to Laplace Demon @abifet When timed data technology curves the market @erichoresnyi HFT in the hey days High Frequency Trading 5ms=20m$ Source: Tabb Group $100trn HFT context Fidelity StateStreet GS BoNY Blackrock* JPM


  1. From HFT to Laplace Demon @abifet When timed data technology curves the market @erichoresnyi

  2. HFT in the hey days High Frequency Trading 5ms=20m$ Source: Tabb Group

  3. $100trn HFT context Fidelity StateStreet GS BoNY Blackrock* JPM Pimco Prudential Vanguard CapGroup *Blackrock is actually headquartered in NY, main AUM coming from ETF/ passive originally BGI in SF Approx 3xGDP in USA ie 155k$/hab AUM>$1trn, source: Towers Watson

  4. Liquidity Flow HFT context PCX NASDAQ Buy Side 1 NSX NYSE Sell Side 2 Sell Side 1 70% Algo Buy Side 2

  5. Order Flow HFT context IL CA CT NY NJ Sell Side 1 Sell Side 2 Market Maker

  6. Cambrian Explosion HFT context NASDAQ ARCA IEX BRUT CME NYSE INET CBOT CBOE NYMEX BATS ICE Reg.ATS'98-Reg.NMS'05 PCX

  7. Infra view HFT context 20ms 2ms IL NJ 2ms NY Fiber CO NJ 4ms POP

  8. HFT: Proximity Host in Network Nodes, then Exchanges IL NY CT 1 2 1 16 HFT 1 NJ

  9. Latency = Propagation + Serialization + Processing

  10. HFT: Ultra Dark Fiber IL NY CT 1 15 1 HFT NJ

  11. Buy-Side view of HFT

  12. It's not a ghost...

  13. HFT: Straight Fiber 1,000 miles > 825 miles 14.5 ms > 11.5 ms

  14. HFT: Microwaves 11.5 > 8.5ms N:1.33 > 1.0003 v = c/n

  15. HFT: FPGA Nanosecs

  16. Choose your lane HFT <> Algo Trading "Once you get into milliseconds it's almost not HFT any more"

  17. Spacetime is relative Market Events: [ct,x,y,z]

  18. Speed curves spacetime HFT built a wormhole to win on [ct',x,y,z] events

  19. Mass curves spacetime AI builds a blackhole by massively processing [ct,x,y,z] events { 8 π G + Λ g = G T µ ν µ ν c 4 µ ν

  20. Laplace Demon The endgame of Determinism ∀ [ct,x,y,z] ∈ R n ⊢ ∀ [ct',x',y',z']

  21. The Endgame 1/3 Event Machine View

  22. The Endgame 2/3 Graph View : Regression Loss aka Cost Function = J( θ ) : distance points to line

  23. The Endgame 3/3 Matrix view Features [ x , x , ..., x n ] 0 1 Labels ⎡ w ⎤ ⎡ y 1 ⎤ ... w w 1,1 1,2 1, n $AAPL ⎢ ⎥ ⎢ ⎥ ... w ⎢ ⎥ ⎢ ⎥ $GOOG w w y 2 2,1 2,2 2, n . ... w . ⎣ n , n ⎦ ⎣ y n ⎦ w w ...,1 ...,2 ..., n ... w w w $FB n ,1 n ,2 Matrices of Weights

  24. AI not news to trading +35% yoy for 20 years : $2,500 > $1,000,000 PhD Mathematics, Berkeley - String Theory Chern-Simons Form

  25. AI age:Gradient Descent Follow the steepest slope, 100m+ features α : Learning Rate, ∇ J : Gradient

  26. AI age:Back Propagation Adapt weight to control error from previous layer's input, 150+ layers Source: Neural Networks simulation by Matt Mazur at Emergent Mind

  27. AI age: GPU From Final Fantasy to Autonomous Car "The implementation of streaming algorithms, typied by highly parallel computations with little reuse of input data, has been widely explored on GPUs." (Stanford, 2004)

  28. Bullish Fitness Drill 1-Train 2-Validate 3-Test Over fi tting?

  29. Bearish Fitness Drill 1-Train 2-Validate 3-Test Over fi tting?

  30. Standard Approach Batch-based, fi nite training sets, static models Dataset Model

  31. Data Stream Approach In fi nite training sets, dynamic models D D D D D D M M M M M M

  32. Approximation Algo What is the largest number that we can store in 8 bits?

  33. Approximation Algo What is the largest number that we can store in 8 bits?

  34. Approximation Algorithm

  35. Massive Online Analysis

  36. Stream Setting Process an example at a time Inspect it only once (at most) Use a limited amount of memory Work in a limited amount of time Be ready to predict at any point

  37. Prequential Evaluation Sequence of examples > Error of a model

  38. Command Line java -cp .:moa.jar:weka.jar -javaagent:sizeofag.jar moa.DoTask EvaluatePrequential -l DecisionStump //training DecisionStump classifier ... -s generators.WaveformGenerator //...on WaveformGenerator data -n 100000 //using the first 100 thousand examples for testing -i 100000000 //training on a total of 100 million examples -f 1000000 //testing every one million examples > dsresult.csv

  39. Resourceful Classi fi cation Regression Concept Drift Sentiment Analysis Stock Price Alerting

  40. Simple learner.getVotesForInstance(instance) learner.trainOnInstance(instance)

  41. Scalable http://samoa-project.net

  42. An experiment Public Stock Dataset MOA Regression Error Stock Price

  43. An Experiment

  44. The New HF Frontier: AI Sentiment Analysis {API} Alerts Regression/Perceptron

  45. Fast vs Smart Data Stream a compromise ct x,y,z HFT AI Data Stream

  46. Thanks! Apache & Wikipedia Foundation : please donate! MOA, Kaggle & Giphy : please contribute! Books & Lectures Data Stream Mining, MOA team Yann LeCun Deep Learning Class, NYU Matt Mazure, Emergent Mind & Andrew Ng, Coursera on AI My Life as a Quant:Re fl ections on Physics&Finance, E.Derman The Value of a Millisecond: Finding the Optimal Speed of a Trading Infra., TabbGroup Flashboys, M.Lewis Movies & Games The Big Short, Back to the Future, Interstellar, The Black Hole, Harry Potter, Rocky, Into the Mind, Star Wars, Matrix; Final Fantasy

Recommend


More recommend