Team HauntQuant October 25th, 2013

Slides:



Advertisements
Similar presentations
Value-at-Risk: A Risk Estimating Tool for Management
Advertisements

Chapter 12: Basic option theory
FIN 685: Risk Management Topic 6: VaR Larry Schrenk, Instructor.
Data Mining Methodology 1. Why have a Methodology  Don’t want to learn things that aren’t true May not represent any underlying reality ○ Spurious correlation.
A Simple Simulation to Value Options Douglas Ulmer University of Arizona AWS 2002.
VAR METHODS. VAR  Portfolio theory: risk should be measure at the level of the portfolio  not single asset  Financial risk management before 1990 was.
VAR.
By: Piet Nova The Binomial Tree Model.  Important problem in financial markets today  Computation of a particular integral  Methods of valuation 
Mafinrisk Market Risk Course
Cluster Analysis.
Return, Risk, and the Security Market Line Return, Risk, and the Security Market Line.
CHAPTER 10 Overcoming VaR's Limitations. INTRODUCTION While VaR is the single best way to measure risk, it does have several limitations. The most pressing.
© University of Minnesota Data Mining for the Discovery of Ocean Climate Indices 1 CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance.
13 Investing in Mutual Funds Mutual Fund = an investment vehicle offered by investment companies to those who wish to: –Pool money –Buy stocks, bonds,
VALUING STOCK OPTIONS HAKAN BASTURK Capital Markets Board of Turkey April 22, 2003.
Ensemble Learning: An Introduction
Pricing an Option Monte Carlo Simulation. We will explore a technique, called Monte Carlo simulation, to numerically derive the price of an option or.
Statistics.
Drake DRAKE UNIVERSITY Fin 288 Valuing Options Using Binomial Trees.
Student: Hsu-Yung Cheng Advisor: Jenq-Neng Hwang, Professor
Value at Risk (VAR) VAR is the maximum loss over a target
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Options By: Kyle Lau, Matthew Cheung, and Fabian Kwan.
University of Minnesota, Jan. 21, 2011 Equity Derivatives Dave Engebretson Quantitative Analyst Citigroup Derivative Markets, Inc. January 21, 2011.
Lecture No.2 By M Fahad Siddiqi Lecturer- Finance.
Investments: Analysis and Behavior Chapter 15- Bond Valuation ©2008 McGraw-Hill/Irwin.
Constant process Separate signal & noise Smooth the data: Backward smoother: At any give T, replace the observation yt by a combination of observations.
Evaluating Performance for Data Mining Techniques
Lecturer :Jan Röman Students:Daria Novoderejkina,Arad Tahmidi,Dmytro Sheludchenko.
LSS Black Belt Training Forecasting. Forecasting Models Forecasting Techniques Qualitative Models Delphi Method Jury of Executive Opinion Sales Force.
Ewa Lukasik - Jakub Lawik - Juan Mojica - Xiaodong Xu.
Alternative Measures of Risk. The Optimal Risk Measure Desirable Properties for Risk Measure A risk measure maps the whole distribution of one dollar.
Machine Learning1 Machine Learning: Summary Greg Grudic CSCI-4830.
I. The Circular Flow of Economic Activity A healthy market depends on a flow of resources, goods, and services.
Risk: The Volatility of Returns The uncertainty of an investment. The actual cash flows that we receive from a stock or bond investment may be different.
LECTURE 22 VAR 1. Methods of calculating VAR (Cont.) Correlation method is conceptually simple and easy to apply; it only requires the mean returns and.
RNGs in options pricing Presented by Yu Zhang. Outline Options  What is option?  Kinds of options  Why options? Options pricing Models Monte Carlo.
Risks and Rates of Return
Lecture 10 The Capital Asset Pricing Model Expectation, variance, standard error (deviation), covariance, and correlation of returns may be based on.
START OF DAY 8 Reading: Chap. 14. Midterm Go over questions General issues only Specific issues: visit with me Regrading may make your grade go up OR.
Benk Erika Kelemen Zsolt
1 Chapter 11 Options – Derivative Securities. 2 Copyright © 1998 by Harcourt Brace & Company Student Learning Objectives Basic Option Terminology Characteristics.
1 Chapter 19 Monte Carlo Valuation. 2 Simulation of future stock prices and using these simulated prices to compute the discounted expected payoff of.
Value at Risk Chapter 16. The Question Being Asked in VaR “What loss level is such that we are X % confident it will not be exceeded in N business days?”
Basic Numerical Procedure
1 MathFinance Colloquium Frankfurt, June 1 st, 2006 Exploring the Limits of Closed Pricing Formulas in the Black and Scholes.
Monte-Carlo Simulation. Mathematical basis The discounted price is a martingale (MA4257 and MA5248).
 Measures the potential loss in value of a risky asset or portfolio over a defined period for a given confidence interval  For example: ◦ If the VaR.
Chapter 19 Monte Carlo Valuation. Copyright © 2006 Pearson Addison-Wesley. All rights reserved Monte Carlo Valuation Simulation of future stock.
12-1. Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin 12 Return, Risk, and the Security Market Line.
Options, Futures, and Other Derivatives, 4th edition © 1999 by John C. Hull 14.1 Value at Risk Chapter 14.
1 Chapter 8: Model Inference and Averaging Presented by Hui Fang.
BUS 525: Managerial Economics Lecture 4 The Theory of Individual Behavior.
CZ5211 Topics in Computational Biology Lecture 4: Clustering Analysis for Microarray Data II Prof. Chen Yu Zong Tel:
System Analysis System – set of interdependent elements that interact in order to accomplish a one or more final outcomes. Constrained and affected by:
IEEE AI - BASED POWER SYSTEM TRANSIENT SECURITY ASSESSMENT Dr. Hossam Talaat Dept. of Electrical Power & Machines Faculty of Engineering - Ain Shams.
MTH 105. FINANCIAL MARKETS What is a Financial market: - A financial market is a mechanism that allows people to trade financial security. Transactions.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
13 – 1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall. Forecasting 13 For Operations Management, 9e by Krajewski/Ritzman/Malhotra.
Generalization Performance of Exchange Monte Carlo Method for Normal Mixture Models Kenji Nagata, Sumio Watanabe Tokyo Institute of Technology.
Value at Risk (VaR).
Types of risk Market risk
Market-Risk Measurement
Chapter 18 Option Valuation.
Risk Mgt and the use of derivatives
CS 179 Lecture 17 Options Pricing.
Types of risk Market risk
(some general forecasting issues)
Cluster Analysis.
Approximate Mean Value Analysis of a Database Grid Application
Presentation transcript:

Team HauntQuant October 25th, 2013 GS Quantify Team HauntQuant October 25th, 2013 Ankit Behura Jayant Thatte K Nitish Kumar GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 1 Algorithmic Trading GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 1 | Algorithmic Trading Overview Compute the raw amount to be traded (A0) for the current time instant 𝐴0= 𝐴𝑚𝑜𝑢𝑛𝑡 𝑙𝑒𝑓𝑡 𝑡𝑜 𝑏𝑒 𝑠𝑜𝑙𝑑 𝑇𝑖𝑚𝑒 𝑙𝑒𝑓𝑡 Compute Modify Trade Modify the raw amount based on Departure of price from local avg. Slope of the price curve 2nd derivative of the price curve Exercise trade based on demand / supply modified amount to be sold GS Quantify October 25, 2013 HauntQuant, IIT Madras

Modifying Raw Quantity: Models I Problem 1 | Algorithmic Trading Modifying Raw Quantity: Models I Departure: 𝑑= 𝑓− 𝑓 𝜎 Linear Model 𝐴=𝐴0(1+α𝑑) 𝐴 is limited between 0 and 𝐴𝑚𝑎𝑥 A0 GS Quantify October 25, 2013 HauntQuant, IIT Madras

Modifying Raw Quantity: Models II Problem 1 | Algorithmic Trading Modifying Raw Quantity: Models II Exp-Exp Model 𝐴=(𝐴𝑚𝑎𝑥−𝐴0)[1− exp −𝛼1𝑑 ]+𝐴0 for 𝑑≥0 𝐴=𝐴0 exp 𝛼2𝑑 for 𝑑<0 Log-Exp model 𝐴=min⁡{𝐴𝑚𝑎𝑥, 𝐴0[1+ log 1+α1𝑑 ]} for 𝑑≥0 A0 A0 GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 1 | Algorithmic Trading Using Predictions Quadratic fit  1st and 2nd derivatives The departure (d) from the previous models is modified using the predictor 𝑑 =𝑑[ exp −β1 𝑓 ′ −β 2𝑓 ′′ ] GS Quantify October 25, 2013 HauntQuant, IIT Madras

Other Considerations I Problem 1 | Algorithmic Trading Other Considerations I RTL Keep monitoring prices; don’t trade Modify A0 once RTL is over Trade limits After computing amount to be sold, only sell as much as “possible” Buy / Sell The algorithm always solves sell problem Buy problem is easily converted to sell problem by inverting the price curve GS Quantify October 25, 2013 HauntQuant, IIT Madras

Other Considerations II Problem 1 | Algorithmic Trading Other Considerations II Multiple exchanges (algorithm) Define a new time series that is maximum of the prices across all exchanges at each time instant Using the raw amount to be traded (A0), compute the actual amount to be traded (A) using the chosen model Trade away as much of A as possible on the exchange with best price Subtract the traded amount from A0 Having exhausted the “best” exchange, replace the current price of the security with the next best available current price Using this new current price and the new A0 computed in step 4, compute the new amount to be computed Continue this process till the desired amount (original A0) is traded or all exchanges are exhausted GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 1 | Algorithmic Trading Results I II GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 1 | Algorithmic Trading Problem I: Conclusion Departure models Greater stability Better average performance Generic Predictive models The size of window for prediction depends on the security Overall performance is good; can perform very bad in specific cases Model choice depends on investor profile Low risk models: Departure models High risk models: Predictive models GS Quantify October 25, 2013 HauntQuant, IIT Madras

Error Detection in Prices Problem 2 Error Detection in Prices GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 2 | Error Detection in Prices Breaks: Detection Price Series The time series of the price of a certain stock Jump Series 𝑗𝑢𝑚𝑝=𝑝𝑟𝑖𝑐𝑒 𝑡 −𝑝𝑟𝑖𝑐𝑒(𝑡−1) Find jump (𝑗) in price for each day 𝝁𝒋, 𝝈𝒋 Find mean and standard deviation of the jumps (𝜇𝑗, 𝜎𝑗) Norm jump Normalized Jump 𝑁𝑗=(𝑗−𝜇𝑗)/𝜎𝑗 Break If the normalized jump is outside ±3 sigma, declare break GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 2 | Error Detection in Prices Breaks: Ranking Securities in portfolio Decreasing order of change in dollar value of the portfolio Securities not in portfolio Decreasing order of magnitude of normalized jump Securities which are in portfolio are always ranked higher A Breaks Inaccurate Historical Data B Break Stock Split GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 2 | Error Detection in Prices Stock Splits Effect: n-for-1 split No. of stocks = n*(Old no. of stocks); Stock price = (Old stock price )/ n Purpose Very high stock price Small investors can’t afford the stock Stock split More people can afford the stock Demand rises, liquidity rises Detection Price Ratio = Price(d-1)/Price(d) Ratio usually around 1 Stock split Price Ratio value approx. integer or simple fraction Sudden change should be uncorrelated with the market GS Quantify October 25, 2013 HauntQuant, IIT Madras

Security Classification Problem 2 | Error Detection in Prices Security Classification Classification based on 2 parameters Mean and Variance k-Means Algorithm Unsupervised learning: No training data needed The Algorithm Start from initial guess on parameters Classify each point into nearest cluster Re-compute the class centroids Iterate till centroids converge Class Centroids Compute Distances Classify into Nearest Class GS Quantify October 25, 2013 HauntQuant, IIT Madras

k-Means Classification Problem 2 | Error Detection in Prices k-Means Classification GS Quantify October 25, 2013 HauntQuant, IIT Madras

Accuracy of Historical Data Problem 2 | Error Detection in Prices Accuracy of Historical Data Correlation For each stock, compute correlation with the market (𝜌) Expected Movement Compute expected movement (hence price) knowing Market movement for that day 𝜌 value for the stock Jump Define 𝑗𝑢𝑚𝑝=𝑎𝑐𝑡𝑢𝑎𝑙 𝑝𝑟𝑖𝑐𝑒 −𝑒𝑥𝑝𝑒𝑐𝑡𝑒𝑑 𝑝𝑟𝑖𝑐𝑒 Jump corresponds to uncorrelated movement Break Declare break using the normalized jump approach mentioned earlier Normalized jump outside ±3 is declared as inaccurate data GS Quantify October 25, 2013 HauntQuant, IIT Madras

Market-wide Movements Problem 2 | Error Detection in Prices Market-wide Movements Method 1 Take the average of all prices and check for breaks in this curve Simple to implement Method 2 On each day look for breaks in individual stocks (based on that stock’s past price alone) Report the number of stocks that have breaks If majority of stocks have breaks on a certain day, declare market-wide movement A good approach would be to combine both these methods GS Quantify October 25, 2013 HauntQuant, IIT Madras

Monte Carlo in Derivative Pricing Problem 3 Monte Carlo in Derivative Pricing GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 3: Overview Poisson Process Problem 3 | Monte Carlo in Derivative Pricing Problem 3: Overview Poisson Process 𝑆 𝑡 =𝑆 0 exp 𝑋 𝑡 𝑑𝑋 𝑡 =𝑦𝜖𝑡−𝑑𝑡𝜗𝑑𝑡 where, y = +1 with 𝑝=1−λ𝑑𝑡 y = -1 with 𝑝=λ𝑑𝑡 Stock price S(t) Binary option V Strike Price K Expiration Time T Binomial Distribution n(Y-) Poisson Distribution NY- Exponential Distribution t2-t1 GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 3 | Monte Carlo in Derivative Pricing Analytical Solution 𝑋1 𝑋2 1−𝑋1−𝑋2 Poisson Arrivals P 𝑋=𝑥 = 𝑃 𝑁=1 P 2𝑋1−1=𝑥 /𝑁=1 + 𝑃 𝑁=2 P 1−2𝑋2−2𝑋4=𝑥 /𝑁=2 +… Assuming equal probabilities for both X(0) = 1 and X(0) = -1, we arrive at E 𝑋 =0 σ2 𝑋 = 1 2 𝑛=1 ∞ 𝑣2𝑃 𝑛,λ 2(𝑛/3) where, P 𝑛,λ is Poisson Distribution 1 N=1⇒ 𝑋=2𝑋1−1 N=3⇒ 𝑋=2𝑋1+2𝑋3−1 N=5⇒ 𝑋=2𝑋1+2𝑋3+2𝑋5−1 N=2⇒ 𝑋=1−2𝑋2 N=4⇒ 𝑋=1−2𝑋2−2𝑋4 N=6⇒ 𝑋=1−2𝑋2−2𝑋4−2𝑋6 GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 3 | Monte Carlo in Derivative Pricing Monte Carlo Solution td 1 Generate exponentially distributed time samples summing to >1 2 Create Path: Introduce a direction flip at each event 3 Repeat 1 & 2 to generate many paths for Monte Carlo Simulation GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 3 | Monte Carlo in Derivative Pricing Compute Parameters Averaging over all the simulation paths Symmetric Paths 𝑺 𝒕 <𝑩 => Reduced Sample Space Re-evaluate parameters Parameter Average of Mean Xi Standard Deviation (Xi-X)2 Skewness (Xi-X)3/σ3 Kurtosis (Xi-X)4/σ4 GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 3 | Monte Carlo in Derivative Pricing Parameter Extraction Given, 𝑆 𝑡 𝑓𝑜𝑟 0≤𝑡≤5 To extract : λ , 𝑣 𝑋 𝑡 = log 𝑆 𝑡 𝑆 0 GS Quantify October 25, 2013 HauntQuant, IIT Madras

Problem 3 | Monte Carlo in Derivative Pricing Parameter Extraction 𝑌 𝑡 = 1 𝑣 × 𝑑𝑋(𝑡) 𝑑𝑡 Extract 𝑣 Inter-arrival times (ti’s)– exponentially distributed with parameter λ Extract λ ti Results Parameter Extracted Value 𝑣 0.56$/year λ 4.57 per year GS Quantify October 25, 2013 HauntQuant, IIT Madras

Thank you Questions? GS Quantify October 25, 2013 HauntQuant, IIT Madras

References References GS Quantify October 25, 2013 Jan Ivar Larsen, “Predicting Stock Prices Using Technical Analysis and Machine Learning”, Norwegian University of Science and Technology T. Dai et. al., “Automated Stock Trading using Machine Learning Algorithms”, Stanford University D. Moldovan et. al., “A Stock Trading Algorithm Model Proposal, based on Technical IndicatorsSignals”, Vol 15 no. 1/2011, Informatica Economica http://www.vatsals.com/Essays/MachineLearningTechniquesforStockPrediction.pdf Other References GS Logo: http://www.goldmansachs.com/ IITM Logo: http://researchportal.iitm.ac.in/?q=download-forms GS Quantify October 25, 2013 HauntQuant, IIT Madras