source experience distilled PUBLISHING BIRMINGHAM - MUMBAI

Size: px
Start display at page:

Download "source experience distilled PUBLISHING BIRMINGHAM - MUMBAI"

Transcription

1 Python for Finance Build real-life Python applications for quantitative finance and financial engineering Yuxing Yan source experience distilled PUBLISHING BIRMINGHAM - MUMBAI

2 Table of Contents Preface 1 Chapter 1: Introduction and Installation of Python 9 Introduction to Python 10 Installing Python 12 Different versions of Python 12 Ways to launch Python 13 Launching Python with GUI 13 Launching Python from the Python command line 14 Launching Python from our own DOS window 15 Quitting Python 16 Error messages 16 Python language is case sensitive 17 Initializing the variable 17 Rinding the help window 18 Finding manuals and tutorials 19 Rinding the version of Python 21 Summary 21 Exercises 22 Chapter 2: Using Python as an Ordinary Calculator 23 Assigning values to variables 24 Displaying the value of a variable 24 Error messages 24 Can't call a variable without assignment 25 Choosing meaningful names 25 Using dir() to find variables and functions 26 Deleting or unsigning a variable 27

3 Table of Contents Basic math Operations - addition, subtraction, multiplication, and division 28 The power function, floor, and remainder 28 A true power function 30 Choosing appropriate precision 31 Rinding out more Information about a specific built-in function 32 Listing all built-in functions 32 Importing the math module 33 The pi, e, log, and exponential functions 34 "Import math" versus "from math import *" 34 A few frequently used functions 36 The print() function 36 The type() function 36 Last expression _ (underscore) 36 Combining two strings 37 The upper() function 37 The tuple data type 39 Summary 40 Exercises 40 Chapter 3: Using Python as a Financial Calculator 43 Writing a Python function without saving it 44 Default input values for a function 45 Indentation is critical in Python 45 Checking the existence of our functions 46 Defining functions from our Python editor 47 Activating our function using the import function 48 Debugging a program from a Python editor 48 Two ways to call our pv_f() function 49 Generating our own module 50 Types of comments 51 The first type of comment 51 The second type of comment 52 Finding Information about our pv_f() function 52 The if() function 53 Annuity estimation 54 Converting the interest rates 55 Continuously compounded interest rate 57 A data type - list 58 Net present value and the NPV rule 58 Defining the payback period and the payback period rule 60 Defining IRR and the IRR rule 61 [ü]

4 lable of Contents Showing certain files in a specific subdirectory 62 Using Python as a financial calculator 63 Adding our project directory to the path 64 Summary 66 Exercises 67 Chapter 4: 13 Lines of Python to Price a Call Option 71 Writing a program - the empty Shell method 73 Writing a program - the comment-all-out method 75 Using and debugging other programs 76 Summary 76 Exercises 77 Chapter 5: Introduction to Modules 79 What is a module? 80 Importing a module 80 Adopting a short name for an imported module 81 Showing all functions in an imported module 82 Comparing "Import math" and "from math Import *" 82 Deleting an imported module 83 Importing only a few needed functions 84 Rinding out all built-in modules 85 Rinding out all the available modules 86 Rinding the location of an imported module 87 More Information about modules 88 Rinding a specific uninstalled module 90 Module dependency 90 Summary 92 Exercises 93 Chapter 6: Introduction to NumPy and SciPy 95 Installation of NumPy and SciPy 96 Launching Python from Anaconda 96 Examples of using NumPy 97 Examples of using SciPy 98 Showing all functions in NumPy and SciPy 102 More Information about a specific function 103 Understanding the list data type 103 Working with arrays of ones, zeros, and the identity matrix 104 Performing array manipulations 105 Performing array Operations with +, *, / 105 Performing plus and minus Operations 105

5 Table of Contents Performing a matrix multiplication Operation 105 Performing an item-by-item multiplication operation 107 The x.sum() dot function 107 Looping through an array 108 Using the help function related to modules 108 A list of subpackages for SciPy 109 Cumulative Standard normal distribution 109 Logic relationships related to an array 110 Statistic submodule (stats) from SciPy 111 Interpolation in SciPy 112 Solving linear equations using SciPy 113 Generating random numbers with a seed 114 Rinding a function from an imported module 116 Understanding optimization 116 Linear regression and Capital Assets Pricing Model (CAPM) 117 Retrieving data from an externa! text file 118 The loadtxt() and getfromtxt() functions 118 Installing NumPy independently 119 Understanding the data types 119 Summary 120 Exercises 120 Chapter 7: Visual Finance via Matplotlib 123 Installing matplotlib via ActivePython 124 Alternative Installation via Anaconda 125 Understanding how to use matplotlib 125 Understanding simple and compounded interest rates 129 Adding texts to our graph 131 Working with DuPont identity 133 Understanding the Net Present Value (NPV) profile 135 Using colors effectively 137 Using different shapes 139 Graphical representation of the portfolio diversification effect 140 Number of stocks and portfolio risk 142 Retrieving historical price data from Yahoo! Finance 144 Histogram showing return distribution 145 Comparing stock and market returns 148 Understanding the time value of money 150 Candlesticks representation of IBM's daily price 151 Graphical representation of two-year price movement 153 IBM's intra-day graphical representations 154

6 lable of Contents Presenting both closing price and trading volume 156 Adding mathematical formulae to our graph 157 Adding simple Images to our graphs 158 Saving our figure to a fite 159 Performance comparisons among stocks 160 Comparing return versus volatility for several stocks 161 Finding manuals, examples, and Videos 163 Installing the matplotlib module independently 163 Summary 163 Exercises 164 Chapter 8: Statistical Analysis of Time Series 167 Installing Pandas and statsmodels 168 Launching Python using the Anaconda command prompt 169 Launching Python using the DOS window 169 Launching Python using Spyder 170 Using Pandas and statsmodels 171 Using Pandas 171 Examples from statsmodels 173 Open data sources 174 Retrieving data to our programs 176 Inputting data from the clipboard 176 Retrieving historical price data from Yahoo! Finance 177 Inputting data from a text file 178 Inputting data from an Excel file 179 Inputting data from a CSV file 180 Retrieving data from a web page 180 Inputting data from a MATLAB dataset 181 Several important functionalities 182 Using pd.series() to generate one-dimensional time series 182 Using date variables 183 Using the Data Frame 183 Return estimation 185 Converting daily returns to monthly returns 187 Converting daily returns to annual returns 190 Merging datasets by date 191 Forming an n-stock portfolio 192 T-test and F-test 193 Tests of equal means and equal variances 194 Testing the January effect 195

7 Table of Contents Many useful applications week high and low trading strategy 196 Roll's model to estimate spread (1984) 197 Amihud's model for illiquidity (2002) 198 Pastor and Stambaugh (2003) liquidity measure 199 Fama-French three-factor model 204 Fama-MacBeth regression 206 Estimating rolling beta 207 Understanding VaR 210 Constructing an efficient frontier 211 Estimating a variance-covariance matrix 212 Optimization - minimization 214 Constructing an optimal portfolio 215 Constructing an efficient frontier with n stocks 217 Understanding the Interpolation technique 220 Outputting data to external files 221 Outputting data to a text file 221 Saving our data to a binary file 222 Reading data from a binary file 222 Python for high-frequency data 222 Spread estimated based on high-frequency data 227 More on using Spyder 228 A useful dataset 230 Summary 232 Exercise 232 Chapter 9: The Black-Scholes-Merton Option Model 237 Payoff and profit/loss functions for the call and put options 238 European versus American options 242 Cash flows, types of options, a right, and an Obligation 243 Normal distribution, Standard normal distribution, and cumulative Standard normal distribution 243 The Black-Scholes-Merton option model on non-dividend paying stocks 247 The p4f module for options 248 European options with known dividends 250 Various trading strategies 251 Covered call - long a stock and Short a call 252 Straddle - buy a call and a put with the same exercise prices 253 A calendar spread 254 [vi]

8 lable of Contents Butterfly with calls 256 Relationship between input values and option vaiues 257 Greek letters for options 258 The put-call parity and its graphical representation 259 Binomial tree (the CRR method) and its graphical representation 261 The binomial tree method for European options 268 The binomial tree method for American options 268 Hedging strategies 269 Summary 270 Exercises 271 Chapter 10: Python Loops and Implied Volatility 275 Definition of an implied volatility 276 Understanding a for loop 277 Estimating the implied volatility by using a for loop 278 Implied volatility function based on a European call 279 Implied volatility based on a put option model 280 The enumerate() function 281 Estimation of IRR via a for loop 282 Estimation of multiple IRRs 283 Understanding a while loop 284 Using keyboard commands to stop an Infinitive loop 285 Estimating implied volatility by using a while loop 286 Nested (multiple) for loops 288 Estimating implied volatility by using an American call 288 Measuring efficiency by time spent in finishing a program 289 The mechanism of a binary search 290 Sequential versus random access 292 Looping through an array/dataframe 293 Assignment through a for loop 294 Looping through a dictionary 294 Retrieving option data from CBOE 295 Retrieving option data from Yahoo.» Finance 297 Different expiring dates from Yahoo! Finance 299 Retrieving the current price from Yahoo! Finance 300 The put-call ratio 300 The put-call ratio for a Short period with a trend 302 Summary 303 Exercises 304

9 lable of Contents Chapter 11: Monte Carlo Simulation and Options 307 Generating random numbers from a Standard normal distribution 308 Drawing random samples from a normal (Gaussian) distribution 309 Generating random numbers with a seed 309 Generating n random numbers from a normal distribution 310 Histogram for a normal distribution 310 Graphical presentation of a lognormal distribution 311 Generating random numbers from a uniform distribution 312 Using Simulation to estimate the pi value 313 Generating random numbers from a Poisson distribution 315 Selecting m stocks randomly from n given stocks 315 Bootstrapping with/without replacements 317 Distribution ofannual returns 319 Simulation of stock price movements 320 Graphical presentation of stock prices at options' maturity dates 322 Rinding an efficient portfolio and frontier 324 Rinding an efficient frontier based on two stocks 324 Impact of different correlations 326 Constructing an efficient frontier with n stocks 329 Geometrie versus arithmetic mean 332 Long-term return forecasting 333 Pricing a call using Simulation 334 Exotic options 335 Using the Monte Carlo Simulation to price average options 335 Pricing barrier options using the Monte Carlo Simulation 337 Barrier in-and-out parity 339 Graphical presentation of an up-and-out and up-and-in parity 340 Pricing lookback options with floating strikes 342 Using the Sobol sequence to improve the efficiency 344 Summary 344 Exercises 345 Chapter 12: Volatility Measures and GARCH 347 Conventional volatility measure - Standard deviation 348 Tests of normality 349 Estimating fat tails 350 Lower partial Standard deviation 352 Test of equivalency of volatility over two periods 354 Test of heteroskedasticity, Breusch, and Pagan (1979) 355 Retrieving option data from Yahoo! Finance 358 Volatility smile and skewness 360 Graphical presentation of volatility clustering 362

10 lable of Contents The ARCH model 363 Simulating an ARCH (1) process 364 The GARCH (Generalized ARCH) model 365 Simulating a GARCH process 366 Simulating a GARCH (p,q) process using modified garchsim() 367 GJR_GARCH by Glosten, Jagannanthan, and Runkle (1993) 369 Summary 373 Exercises 373 Index 375

INTRODUCTION TO THE ECONOMICS AND MATHEMATICS OF FINANCIAL MARKETS. Jakša Cvitanić and Fernando Zapatero

INTRODUCTION TO THE ECONOMICS AND MATHEMATICS OF FINANCIAL MARKETS. Jakša Cvitanić and Fernando Zapatero INTRODUCTION TO THE ECONOMICS AND MATHEMATICS OF FINANCIAL MARKETS Jakša Cvitanić and Fernando Zapatero INTRODUCTION TO THE ECONOMICS AND MATHEMATICS OF FINANCIAL MARKETS Table of Contents PREFACE...1

More information

for Finance Python Yves Hilpisch Koln Sebastopol Tokyo O'REILLY Farnham Cambridge Beijing

for Finance Python Yves Hilpisch Koln Sebastopol Tokyo O'REILLY Farnham Cambridge Beijing Python for Finance Yves Hilpisch Beijing Cambridge Farnham Koln Sebastopol Tokyo O'REILLY Table of Contents Preface xi Part I. Python and Finance 1. Why Python for Finance? 3 What Is Python? 3 Brief History

More information

Python for Finance. Build real-life Python applications for quantitative finance and financial engineering. Yuxing Yan BIRMINGHAM - MUMBAI

Python for Finance. Build real-life Python applications for quantitative finance and financial engineering. Yuxing Yan BIRMINGHAM - MUMBAI Python for Finance Build real-life Python applications for quantitative finance and financial engineering Yuxing Yan BIRMINGHAM - MUMBAI Python for Finance Copyright 2014 Packt Publishing All rights reserved.

More information

Handbook of Financial Risk Management

Handbook of Financial Risk Management Handbook of Financial Risk Management Simulations and Case Studies N.H. Chan H.Y. Wong The Chinese University of Hong Kong WILEY Contents Preface xi 1 An Introduction to Excel VBA 1 1.1 How to Start Excel

More information

CFE: Level 1 Exam Sample Questions

CFE: Level 1 Exam Sample Questions CFE: Level 1 Exam Sample Questions he following are the sample questions that are illustrative of the questions that may be asked in a CFE Level 1 examination. hese questions are only for illustration.

More information

Statistics and Finance

Statistics and Finance David Ruppert Statistics and Finance An Introduction Springer Notation... xxi 1 Introduction... 1 1.1 References... 5 2 Probability and Statistical Models... 7 2.1 Introduction... 7 2.2 Axioms of Probability...

More information

Key Features Asset allocation, cash flow analysis, object-oriented portfolio optimization, and risk analysis

Key Features Asset allocation, cash flow analysis, object-oriented portfolio optimization, and risk analysis Financial Toolbox Analyze financial data and develop financial algorithms Financial Toolbox provides functions for mathematical modeling and statistical analysis of financial data. You can optimize portfolios

More information

Market Risk Analysis Volume I

Market Risk Analysis Volume I Market Risk Analysis Volume I Quantitative Methods in Finance Carol Alexander John Wiley & Sons, Ltd List of Figures List of Tables List of Examples Foreword Preface to Volume I xiii xvi xvii xix xxiii

More information

Hull, Options, Futures & Other Derivatives Exotic Options

Hull, Options, Futures & Other Derivatives Exotic Options P1.T3. Financial Markets & Products Hull, Options, Futures & Other Derivatives Exotic Options Bionic Turtle FRM Video Tutorials By David Harper, CFA FRM 1 Exotic Options Define and contrast exotic derivatives

More information

Mathematics of Finance Final Preparation December 19. To be thoroughly prepared for the final exam, you should

Mathematics of Finance Final Preparation December 19. To be thoroughly prepared for the final exam, you should Mathematics of Finance Final Preparation December 19 To be thoroughly prepared for the final exam, you should 1. know how to do the homework problems. 2. be able to provide (correct and complete!) definitions

More information

Statistical Models and Methods for Financial Markets

Statistical Models and Methods for Financial Markets Tze Leung Lai/ Haipeng Xing Statistical Models and Methods for Financial Markets B 374756 4Q Springer Preface \ vii Part I Basic Statistical Methods and Financial Applications 1 Linear Regression Models

More information

ACST829 CAPITAL BUDGETING AND FINANCIAL MODELLING. Semester 1, Department of Actuarial Studies

ACST829 CAPITAL BUDGETING AND FINANCIAL MODELLING. Semester 1, Department of Actuarial Studies ACST829 CAPITAL BUDGETING AND FINANCIAL MODELLING Semester 1, 2010 Department of Actuarial Studies MACQUARIE UNIVERSITY FACULTY OF BUSINESS AND ECONOMICS UNIT OUTLINE Year and Semester: Semester 1, 2010

More information

Contents Critique 26. portfolio optimization 32

Contents Critique 26. portfolio optimization 32 Contents Preface vii 1 Financial problems and numerical methods 3 1.1 MATLAB environment 4 1.1.1 Why MATLAB? 5 1.2 Fixed-income securities: analysis and portfolio immunization 6 1.2.1 Basic valuation of

More information

Financial Models with Levy Processes and Volatility Clustering

Financial Models with Levy Processes and Volatility Clustering Financial Models with Levy Processes and Volatility Clustering SVETLOZAR T. RACHEV # YOUNG SHIN ICIM MICHELE LEONARDO BIANCHI* FRANK J. FABOZZI WILEY John Wiley & Sons, Inc. Contents Preface About the

More information

Market Volatility and Risk Proxies

Market Volatility and Risk Proxies Market Volatility and Risk Proxies... an introduction to the concepts 019 Gary R. Evans. This slide set by Gary R. Evans is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International

More information

ก ก ก ก ก ก ก. ก (Food Safety Risk Assessment Workshop) 1 : Fundamental ( ก ( NAC 2010)) 2 3 : Excel and Statistics Simulation Software\

ก ก ก ก ก ก ก. ก (Food Safety Risk Assessment Workshop) 1 : Fundamental ( ก ( NAC 2010)) 2 3 : Excel and Statistics Simulation Software\ ก ก ก ก (Food Safety Risk Assessment Workshop) ก ก ก ก ก ก ก ก 5 1 : Fundamental ( ก 29-30.. 53 ( NAC 2010)) 2 3 : Excel and Statistics Simulation Software\ 1 4 2553 4 5 : Quantitative Risk Modeling Microbial

More information

Computer Exercise 2 Simulation

Computer Exercise 2 Simulation Lund University with Lund Institute of Technology Valuation of Derivative Assets Centre for Mathematical Sciences, Mathematical Statistics Fall 2017 Computer Exercise 2 Simulation This lab deals with pricing

More information

An Introduction to Derivatives and Risk Management, 7 th edition Don M. Chance and Robert Brooks. Table of Contents

An Introduction to Derivatives and Risk Management, 7 th edition Don M. Chance and Robert Brooks. Table of Contents An Introduction to Derivatives and Risk Management, 7 th edition Don M. Chance and Robert Brooks Table of Contents Preface Chapter 1 Introduction Derivative Markets and Instruments Options Forward Contracts

More information

MFE/3F Questions Answer Key

MFE/3F Questions Answer Key MFE/3F Questions Download free full solutions from www.actuarialbrew.com, or purchase a hard copy from www.actexmadriver.com, or www.actuarialbookstore.com. Chapter 1 Put-Call Parity and Replication 1.01

More information

MÄLARDALENS HÖGSKOLA

MÄLARDALENS HÖGSKOLA MÄLARDALENS HÖGSKOLA A Monte-Carlo calculation for Barrier options Using Python Mwangota Lutufyo and Omotesho Latifat oyinkansola 2016-10-19 MMA707 Analytical Finance I: Lecturer: Jan Roman Division of

More information

palgrave Shipping Derivatives and Risk Management macmiuan Amir H. Alizadeh & Nikos K. Nomikos

palgrave Shipping Derivatives and Risk Management macmiuan Amir H. Alizadeh & Nikos K. Nomikos Shipping Derivatives and Risk Management Amir H. Alizadeh & Nikos K. Nomikos Faculty of Finance, Cass Business School, City University, London palgrave macmiuan Contents About the Authors. xv Preface and

More information

Financial Computing with Python

Financial Computing with Python Introduction to Financial Computing with Python Matthieu Mariapragassam Why coding seems so easy? But is actually not Sprezzatura : «It s an art that doesn t seem to be an art» - The Book of the Courtier

More information

Implied Volatility using Python s Pandas Library

Implied Volatility using Python s Pandas Library Implied Volatility using Python s Pandas Library Brian Spector New York Quantitative Python Users Group March 6 th 2014 Experts in numerical algorithms and HPC services Introduction Motivation Python Pandas

More information

Contents. Part I Introduction to Option Pricing

Contents. Part I Introduction to Option Pricing Part I Introduction to Option Pricing 1 Asset Pricing Basics... 3 1.1 Fundamental Concepts.................................. 3 1.2 State Prices in a One-Period Binomial Model.............. 11 1.3 Probabilities

More information

ExcelSim 2003 Documentation

ExcelSim 2003 Documentation ExcelSim 2003 Documentation Note: The ExcelSim 2003 add-in program is copyright 2001-2003 by Timothy R. Mayes, Ph.D. It is free to use, but it is meant for educational use only. If you wish to perform

More information

List of tables List of boxes List of screenshots Preface to the third edition Acknowledgements

List of tables List of boxes List of screenshots Preface to the third edition Acknowledgements Table of List of figures List of tables List of boxes List of screenshots Preface to the third edition Acknowledgements page xii xv xvii xix xxi xxv 1 Introduction 1 1.1 What is econometrics? 2 1.2 Is

More information

Index. High-Frequency Trading Models By Gewei Ye Copyright 2011 by Gewei Ye.

Index. High-Frequency Trading Models By Gewei Ye Copyright 2011 by Gewei Ye. High-Frequency Trading Models By Gewei Ye Copyright 2011 by Gewei Ye. Index Abstraction, 14 Advanced trading strategies with SAPE Black-Scholes model, 290 292 large cap hedge strategy, 219 large cap long

More information

MFIN 7003 Module 2. Mathematical Techniques in Finance. Sessions B&C: Oct 12, 2015 Nov 28, 2015

MFIN 7003 Module 2. Mathematical Techniques in Finance. Sessions B&C: Oct 12, 2015 Nov 28, 2015 MFIN 7003 Module 2 Mathematical Techniques in Finance Sessions B&C: Oct 12, 2015 Nov 28, 2015 Instructor: Dr. Rujing Meng Room 922, K. K. Leung Building School of Economics and Finance The University of

More information

KARACHI UNIVERSITY BUSINESS SCHOOL UNIVERSITY OF KARACHI BS (BBA) VI

KARACHI UNIVERSITY BUSINESS SCHOOL UNIVERSITY OF KARACHI BS (BBA) VI 88 P a g e B S ( B B A ) S y l l a b u s KARACHI UNIVERSITY BUSINESS SCHOOL UNIVERSITY OF KARACHI BS (BBA) VI Course Title : STATISTICS Course Number : BA(BS) 532 Credit Hours : 03 Course 1. Statistical

More information

MSc Financial Mathematics

MSc Financial Mathematics MSc Financial Mathematics Programme Structure Week Zero Induction Week MA9010 Fundamental Tools TERM 1 Weeks 1-1 0 ST9080 MA9070 IB9110 ST9570 Probability & Numerical Asset Pricing Financial Stoch. Processes

More information

MATH4143: Scientific Computations for Finance Applications Final exam Time: 9:00 am - 12:00 noon, April 18, Student Name (print):

MATH4143: Scientific Computations for Finance Applications Final exam Time: 9:00 am - 12:00 noon, April 18, Student Name (print): MATH4143 Page 1 of 17 Winter 2007 MATH4143: Scientific Computations for Finance Applications Final exam Time: 9:00 am - 12:00 noon, April 18, 2007 Student Name (print): Student Signature: Student ID: Question

More information

ALGORITHMIC TRADING STRATEGIES IN PYTHON

ALGORITHMIC TRADING STRATEGIES IN PYTHON 7-Course Bundle In ALGORITHMIC TRADING STRATEGIES IN PYTHON Learn to use 15+ trading strategies including Statistical Arbitrage, Machine Learning, Quantitative techniques, Forex valuation methods, Options

More information

HANDBOOK OF. Market Risk CHRISTIAN SZYLAR WILEY

HANDBOOK OF. Market Risk CHRISTIAN SZYLAR WILEY HANDBOOK OF Market Risk CHRISTIAN SZYLAR WILEY Contents FOREWORD ACKNOWLEDGMENTS ABOUT THE AUTHOR INTRODUCTION XV XVII XIX XXI 1 INTRODUCTION TO FINANCIAL MARKETS t 1.1 The Money Market 4 1.2 The Capital

More information

Subject CS1 Actuarial Statistics 1 Core Principles. Syllabus. for the 2019 exams. 1 June 2018

Subject CS1 Actuarial Statistics 1 Core Principles. Syllabus. for the 2019 exams. 1 June 2018 ` Subject CS1 Actuarial Statistics 1 Core Principles Syllabus for the 2019 exams 1 June 2018 Copyright in this Core Reading is the property of the Institute and Faculty of Actuaries who are the sole distributors.

More information

Introductory Econometrics for Finance

Introductory Econometrics for Finance Introductory Econometrics for Finance SECOND EDITION Chris Brooks The ICMA Centre, University of Reading CAMBRIDGE UNIVERSITY PRESS List of figures List of tables List of boxes List of screenshots Preface

More information

Sample Size Calculations for Odds Ratio in presence of misclassification (SSCOR Version 1.8, September 2017)

Sample Size Calculations for Odds Ratio in presence of misclassification (SSCOR Version 1.8, September 2017) Sample Size Calculations for Odds Ratio in presence of misclassification (SSCOR Version 1.8, September 2017) 1. Introduction The program SSCOR available for Windows only calculates sample size requirements

More information

Introducing LIST. Riccardo Bernini Head of Financial Engineering Enrico Melchioni Head of International Sales. March 2018

Introducing LIST. Riccardo Bernini Head of Financial Engineering Enrico Melchioni Head of International Sales. March 2018 Introducing LIST Riccardo Bernini Head of Financial Engineering Enrico Melchioni Head of International Sales March 2018 LIST in a Nutshell LIST is a privately owned company founded in Pisa in 1985 LIST

More information

Chapter 9 - Mechanics of Options Markets

Chapter 9 - Mechanics of Options Markets Chapter 9 - Mechanics of Options Markets Types of options Option positions and profit/loss diagrams Underlying assets Specifications Trading options Margins Taxation Warrants, employee stock options, and

More information

Derivative Securities Fall 2012 Final Exam Guidance Extended version includes full semester

Derivative Securities Fall 2012 Final Exam Guidance Extended version includes full semester Derivative Securities Fall 2012 Final Exam Guidance Extended version includes full semester Our exam is Wednesday, December 19, at the normal class place and time. You may bring two sheets of notes (8.5

More information

PROBABILITY. Wiley. With Applications and R ROBERT P. DOBROW. Department of Mathematics. Carleton College Northfield, MN

PROBABILITY. Wiley. With Applications and R ROBERT P. DOBROW. Department of Mathematics. Carleton College Northfield, MN PROBABILITY With Applications and R ROBERT P. DOBROW Department of Mathematics Carleton College Northfield, MN Wiley CONTENTS Preface Acknowledgments Introduction xi xiv xv 1 First Principles 1 1.1 Random

More information

CONTENTS. Introduction. Acknowledgments. What Is New in the Second Edition? Option Pricing Formulas Overview. Glossary of Notations

CONTENTS. Introduction. Acknowledgments. What Is New in the Second Edition? Option Pricing Formulas Overview. Glossary of Notations Introduction Acknowledgments What Is New in the Second Edition? Option Pricing Formulas Overview Glossary of Notations xvii xix xxi xxiii xxxv 1 Black-Scholes-Merton 1 1.1 Black-Scholes-Merton 2 1.1.1

More information

Modelling for the Financial Markets with Excel

Modelling for the Financial Markets with Excel Overview Modelling for the Financial Markets with Excel This course is all about converting financial theory to reality using Excel. This course is very hands on! Delegates will use live data to put together

More information

MFE/3F Questions Answer Key

MFE/3F Questions Answer Key MFE/3F Questions Download free full solutions from www.actuarialbrew.com, or purchase a hard copy from www.actexmadriver.com, or www.actuarialbookstore.com. Chapter 1 Put-Call Parity and Replication 1.01

More information

Computational Statistics Handbook with MATLAB

Computational Statistics Handbook with MATLAB «H Computer Science and Data Analysis Series Computational Statistics Handbook with MATLAB Second Edition Wendy L. Martinez The Office of Naval Research Arlington, Virginia, U.S.A. Angel R. Martinez Naval

More information

Errata and updates for ASM Exam MFE/3F (Ninth Edition) sorted by page.

Errata and updates for ASM Exam MFE/3F (Ninth Edition) sorted by page. Errata for ASM Exam MFE/3F Study Manual (Ninth Edition) Sorted by Page 1 Errata and updates for ASM Exam MFE/3F (Ninth Edition) sorted by page. Note the corrections to Practice Exam 6:9 (page 613) and

More information

Accelerated Option Pricing Multiple Scenarios

Accelerated Option Pricing Multiple Scenarios Accelerated Option Pricing in Multiple Scenarios 04.07.2008 Stefan Dirnstorfer (stefan@thetaris.com) Andreas J. Grau (grau@thetaris.com) 1 Abstract This paper covers a massive acceleration of Monte-Carlo

More information

NATIONAL UNIVERSITY OF SINGAPORE Department of Finance

NATIONAL UNIVERSITY OF SINGAPORE Department of Finance NATIONAL UNIVERSITY OF SINGAPORE Department of Finance Instructor: DR. LEE Hon Sing Office: MRB BIZ1 7-75 Telephone: 6516-5665 E-mail: honsing@nus.edu.sg Consultation Hrs: By appointment through email

More information

The Pennsylvania State University. The Graduate School. Department of Industrial Engineering AMERICAN-ASIAN OPTION PRICING BASED ON MONTE CARLO

The Pennsylvania State University. The Graduate School. Department of Industrial Engineering AMERICAN-ASIAN OPTION PRICING BASED ON MONTE CARLO The Pennsylvania State University The Graduate School Department of Industrial Engineering AMERICAN-ASIAN OPTION PRICING BASED ON MONTE CARLO SIMULATION METHOD A Thesis in Industrial Engineering and Operations

More information

Implementing Models in Quantitative Finance: Methods and Cases

Implementing Models in Quantitative Finance: Methods and Cases Gianluca Fusai Andrea Roncoroni Implementing Models in Quantitative Finance: Methods and Cases vl Springer Contents Introduction xv Parti Methods 1 Static Monte Carlo 3 1.1 Motivation and Issues 3 1.1.1

More information

MSc Financial Mathematics

MSc Financial Mathematics MSc Financial Mathematics The following information is applicable for academic year 2018-19 Programme Structure Week Zero Induction Week MA9010 Fundamental Tools TERM 1 Weeks 1-1 0 ST9080 MA9070 IB9110

More information

The histogram should resemble the uniform density, the mean should be close to 0.5, and the standard deviation should be close to 1/ 12 =

The histogram should resemble the uniform density, the mean should be close to 0.5, and the standard deviation should be close to 1/ 12 = Chapter 19 Monte Carlo Valuation Question 19.1 The histogram should resemble the uniform density, the mean should be close to.5, and the standard deviation should be close to 1/ 1 =.887. Question 19. The

More information

Master s in Financial Engineering Foundations of Buy-Side Finance: Quantitative Risk and Portfolio Management. > Teaching > Courses

Master s in Financial Engineering Foundations of Buy-Side Finance: Quantitative Risk and Portfolio Management.  > Teaching > Courses Master s in Financial Engineering Foundations of Buy-Side Finance: Quantitative Risk and Portfolio Management www.symmys.com > Teaching > Courses Spring 2008, Monday 7:10 pm 9:30 pm, Room 303 Attilio Meucci

More information

yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0

yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0 yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0 Emanuele Guidotti, Stefano M. Iacus and Lorenzo Mercuri February 21, 2017 Contents 1 yuimagui: Home 3 2 yuimagui: Data

More information

Notes. Cases on Static Optimization. Chapter 6 Algorithms Comparison: The Swing Case

Notes. Cases on Static Optimization. Chapter 6 Algorithms Comparison: The Swing Case Notes Chapter 2 Optimization Methods 1. Stationary points are those points where the partial derivatives of are zero. Chapter 3 Cases on Static Optimization 1. For the interested reader, we used a multivariate

More information

2017 IAA EDUCATION SYLLABUS

2017 IAA EDUCATION SYLLABUS 2017 IAA EDUCATION SYLLABUS 1. STATISTICS Aim: To enable students to apply core statistical techniques to actuarial applications in insurance, pensions and emerging areas of actuarial practice. 1.1 RANDOM

More information

Math Option pricing using Quasi Monte Carlo simulation

Math Option pricing using Quasi Monte Carlo simulation . Math 623 - Option pricing using Quasi Monte Carlo simulation Pratik Mehta pbmehta@eden.rutgers.edu Masters of Science in Mathematical Finance Department of Mathematics, Rutgers University This paper

More information

Table of Contents. Chapter 1 General Principles... 1

Table of Contents. Chapter 1 General Principles... 1 Table of Contents Chapter 1 General Principles... 1 1. Build a broad knowledge base...1 2. Practice your interview skills...1 3. Listen carefully...2 4. Speak your mind...2 5. Make reasonable assumptions...2

More information

Table of Contents. Part I. Deterministic Models... 1

Table of Contents. Part I. Deterministic Models... 1 Preface...xvii Part I. Deterministic Models... 1 Chapter 1. Introductory Elements to Financial Mathematics.... 3 1.1. The object of traditional financial mathematics... 3 1.2. Financial supplies. Preference

More information

Option Valuation (Lattice)

Option Valuation (Lattice) Page 1 Option Valuation (Lattice) Richard de Neufville Professor of Systems Engineering and of Civil and Environmental Engineering MIT Massachusetts Institute of Technology Option Valuation (Lattice) Slide

More information

Queens College, CUNY, Department of Computer Science Computational Finance CSCI 365 / 765 Spring 2018 Instructor: Dr. Sateesh Mane.

Queens College, CUNY, Department of Computer Science Computational Finance CSCI 365 / 765 Spring 2018 Instructor: Dr. Sateesh Mane. Queens College, CUNY, Department of Computer Science Computational Finance CSCI 365 / 765 Spring 218 Instructor: Dr. Sateesh Mane c Sateesh R. Mane 218 19 Lecture 19 May 12, 218 Exotic options The term

More information

Using Fat Tails to Model Gray Swans

Using Fat Tails to Model Gray Swans Using Fat Tails to Model Gray Swans Paul D. Kaplan, Ph.D., CFA Vice President, Quantitative Research Morningstar, Inc. 2008 Morningstar, Inc. All rights reserved. Swans: White, Black, & Gray The Black

More information

AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO Academic Press is an Imprint of Elsevier

AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO Academic Press is an Imprint of Elsevier Computational Finance Using C and C# Derivatives and Valuation SECOND EDITION George Levy ELSEVIER AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO

More information

by Kian Guan Lim Professor of Finance Head, Quantitative Finance Unit Singapore Management University

by Kian Guan Lim Professor of Finance Head, Quantitative Finance Unit Singapore Management University by Kian Guan Lim Professor of Finance Head, Quantitative Finance Unit Singapore Management University Presentation at Hitotsubashi University, August 8, 2009 There are 14 compulsory semester courses out

More information

NUMERICAL AND SIMULATION TECHNIQUES IN FINANCE

NUMERICAL AND SIMULATION TECHNIQUES IN FINANCE NUMERICAL AND SIMULATION TECHNIQUES IN FINANCE Edward D. Weinberger, Ph.D., F.R.M Adjunct Assoc. Professor Dept. of Finance and Risk Engineering edw2026@nyu.edu Office Hours by appointment This half-semester

More information

MATH6911: Numerical Methods in Finance. Final exam Time: 2:00pm - 5:00pm, April 11, Student Name (print): Student Signature: Student ID:

MATH6911: Numerical Methods in Finance. Final exam Time: 2:00pm - 5:00pm, April 11, Student Name (print): Student Signature: Student ID: MATH6911 Page 1 of 16 Winter 2007 MATH6911: Numerical Methods in Finance Final exam Time: 2:00pm - 5:00pm, April 11, 2007 Student Name (print): Student Signature: Student ID: Question Full Mark Mark 1

More information

POSSIBILITY CGIA CURRICULUM

POSSIBILITY CGIA CURRICULUM LIMITLESSPOSSIBILITY CGIA CURRICULUM CANDIDATES BODY OF KNOWLEDGE FOR 2017 ABOUT CGIA The Chartered Global Investment Analyst (CGIA) is the world s largest and recognized professional body providing approved

More information

Linda Allen, Jacob Boudoukh and Anthony Saunders, Understanding Market, Credit and Operational Risk: The Value at Risk Approach

Linda Allen, Jacob Boudoukh and Anthony Saunders, Understanding Market, Credit and Operational Risk: The Value at Risk Approach P1.T4. Valuation & Risk Models Linda Allen, Jacob Boudoukh and Anthony Saunders, Understanding Market, Credit and Operational Risk: The Value at Risk Approach Bionic Turtle FRM Study Notes Reading 26 By

More information

INSTITUTE OF ACTUARIES OF INDIA

INSTITUTE OF ACTUARIES OF INDIA INSTITUTE OF ACTUARIES OF INDIA EXAMINATIONS 10 th November 2008 Subject CT8 Financial Economics Time allowed: Three Hours (14.30 17.30 Hrs) Total Marks: 100 INSTRUCTIONS TO THE CANDIDATES 1) Please read

More information

Expected Return Methodologies in Morningstar Direct Asset Allocation

Expected Return Methodologies in Morningstar Direct Asset Allocation Expected Return Methodologies in Morningstar Direct Asset Allocation I. Introduction to expected return II. The short version III. Detailed methodologies 1. Building Blocks methodology i. Methodology ii.

More information

Washington University Fall Economics 487. Project Proposal due Monday 10/22 Final Project due Monday 12/3

Washington University Fall Economics 487. Project Proposal due Monday 10/22 Final Project due Monday 12/3 Washington University Fall 2001 Department of Economics James Morley Economics 487 Project Proposal due Monday 10/22 Final Project due Monday 12/3 For this project, you will analyze the behaviour of 10

More information

ASC 718 Valuation Consulting Services

ASC 718 Valuation Consulting Services provides a comprehensive range of valuation consulting services for compliance with ASC 718 (FAS 123R), SEC Staff Accounting Bulletin 107/110 and PCAOB ESO Guidance. 1) Fair Value of Share-Based Payment

More information

Analytical Finance 1 Seminar Monte-Carlo application for Value-at-Risk on a portfolio of Options, Futures and Equities

Analytical Finance 1 Seminar Monte-Carlo application for Value-at-Risk on a portfolio of Options, Futures and Equities Analytical Finance 1 Seminar Monte-Carlo application for Value-at-Risk on a portfolio of Options, Futures and Equities Radhesh Agarwal (Ral13001) Shashank Agarwal (Sal13002) Sumit Jalan (Sjn13024) Calculating

More information

Monte Carlo Simulations

Monte Carlo Simulations Is Uncle Norm's shot going to exhibit a Weiner Process? Knowing Uncle Norm, probably, with a random drift and huge volatility. Monte Carlo Simulations... of stock prices the primary model 2019 Gary R.

More information

FE570 Financial Markets and Trading. Stevens Institute of Technology

FE570 Financial Markets and Trading. Stevens Institute of Technology FE570 Financial Markets and Trading Lecture 6. Volatility Models and (Ref. Joel Hasbrouck - Empirical Market Microstructure ) Steve Yang Stevens Institute of Technology 10/02/2012 Outline 1 Volatility

More information

Market Risk Analysis Volume II. Practical Financial Econometrics

Market Risk Analysis Volume II. Practical Financial Econometrics Market Risk Analysis Volume II Practical Financial Econometrics Carol Alexander John Wiley & Sons, Ltd List of Figures List of Tables List of Examples Foreword Preface to Volume II xiii xvii xx xxii xxvi

More information

CFA Level I - LOS Changes

CFA Level I - LOS Changes CFA Level I - LOS Changes 2018-2019 Topic LOS Level I - 2018 (529 LOS) LOS Level I - 2019 (525 LOS) Compared Ethics 1.1.a explain ethics 1.1.a explain ethics Ethics Ethics 1.1.b 1.1.c describe the role

More information

Downside Risk: Implications for Financial Management Robert Engle NYU Stern School of Business Carlos III, May 24,2004

Downside Risk: Implications for Financial Management Robert Engle NYU Stern School of Business Carlos III, May 24,2004 Downside Risk: Implications for Financial Management Robert Engle NYU Stern School of Business Carlos III, May 24,2004 WHAT IS ARCH? Autoregressive Conditional Heteroskedasticity Predictive (conditional)

More information

PRINCIPLES of INVESTMENTS

PRINCIPLES of INVESTMENTS PRINCIPLES of INVESTMENTS Boston University MICHAItL L D\if.\N Griffith University AN UP BASU Queensland University of Technology ALEX KANT; University of California, San Diego ALAN J. AAARCU5 Boston College

More information

Risk Video #1. Video 1 Recap

Risk Video #1. Video 1 Recap Risk Video #1 Video 1 Recap 1 Risk Video #2 Video 2 Recap 2 Risk Video #3 Risk Risk Management Process Uncertain or chance events that planning can not overcome or control. Risk Management A proactive

More information

ABSA Technical Valuations Session JSE Trading Division

ABSA Technical Valuations Session JSE Trading Division ABSA Technical Valuations Session JSE Trading Division July 2010 Presented by: Dr Antonie Kotzé 1 Some members are lost.. ABSA Technical Valuation Session Introduction 2 some think Safex talks in tongues.

More information

Trading Volatility Using Options: a French Case

Trading Volatility Using Options: a French Case Trading Volatility Using Options: a French Case Introduction Volatility is a key feature of financial markets. It is commonly used as a measure for risk and is a common an indicator of the investors fear

More information

Washington University Fall Economics 487

Washington University Fall Economics 487 Washington University Fall 2009 Department of Economics James Morley Economics 487 Project Proposal due Tuesday 11/10 Final Project due Wednesday 12/9 (by 5:00pm) (20% penalty per day if the project is

More information

NATIONAL UNIVERSITY OF SINGAPORE Department of Finance FIN3130: Financial Modeling Semester 1, 2018/2019

NATIONAL UNIVERSITY OF SINGAPORE Department of Finance FIN3130: Financial Modeling Semester 1, 2018/2019 NATIONAL UNIVERSITY OF SINGAPORE Department of Finance FIN3130: Financial ing Semester 1, 2018/2019 Instructor: DR. LEE Hon Sing Office: MRB BIZ1 7-75 Telephone: 6516-5665 E-mail: honsing@nus.edu.sg Consultation

More information

Steps for Software to Do Simulation Modeling (New Update 02/15/01)

Steps for Software to Do Simulation Modeling (New Update 02/15/01) Steps for Using @RISK Software to Do Simulation Modeling (New Update 02/15/01) Important! Before we get to the steps, we want to provide several notes to help you do the steps. Use the browser s Back button

More information

Options Markets: Introduction

Options Markets: Introduction 17-2 Options Options Markets: Introduction Derivatives are securities that get their value from the price of other securities. Derivatives are contingent claims because their payoffs depend on the value

More information

Tuomo Lampinen Silicon Cloud Technologies LLC

Tuomo Lampinen Silicon Cloud Technologies LLC Tuomo Lampinen Silicon Cloud Technologies LLC www.portfoliovisualizer.com Background and Motivation Portfolio Visualizer Tools for Investors Overview of tools and related theoretical background Investment

More information

UPDATED IAA EDUCATION SYLLABUS

UPDATED IAA EDUCATION SYLLABUS II. UPDATED IAA EDUCATION SYLLABUS A. Supporting Learning Areas 1. STATISTICS Aim: To enable students to apply core statistical techniques to actuarial applications in insurance, pensions and emerging

More information

Better decision making under uncertain conditions using Monte Carlo Simulation

Better decision making under uncertain conditions using Monte Carlo Simulation IBM Software Business Analytics IBM SPSS Statistics Better decision making under uncertain conditions using Monte Carlo Simulation Monte Carlo simulation and risk analysis techniques in IBM SPSS Statistics

More information

APPEND I X NOTATION. The product of the values produced by a function f by inputting all n from n=o to n=n

APPEND I X NOTATION. The product of the values produced by a function f by inputting all n from n=o to n=n APPEND I X NOTATION In order to be able to clearly present the contents of this book, we have attempted to be as consistent as possible in the use of notation. The notation below applies to all chapters

More information

Regression Analysis and Quantitative Trading Strategies. χtrading Butterfly Spread Strategy

Regression Analysis and Quantitative Trading Strategies. χtrading Butterfly Spread Strategy Regression Analysis and Quantitative Trading Strategies χtrading Butterfly Spread Strategy Michael Beven June 3, 2016 University of Chicago Financial Mathematics 1 / 25 Overview 1 Strategy 2 Construction

More information

Market Risk Analysis Volume IV. Value-at-Risk Models

Market Risk Analysis Volume IV. Value-at-Risk Models Market Risk Analysis Volume IV Value-at-Risk Models Carol Alexander John Wiley & Sons, Ltd List of Figures List of Tables List of Examples Foreword Preface to Volume IV xiii xvi xxi xxv xxix IV.l Value

More information

Economic Risk and Decision Analysis for Oil and Gas Industry CE School of Engineering and Technology Asian Institute of Technology

Economic Risk and Decision Analysis for Oil and Gas Industry CE School of Engineering and Technology Asian Institute of Technology Economic Risk and Decision Analysis for Oil and Gas Industry CE81.98 School of Engineering and Technology Asian Institute of Technology January Semester Presented by Dr. Thitisak Boonpramote Department

More information

Certified Portfolio Manager Course Curriculum

Certified Portfolio Manager Course Curriculum Certified Portfolio Manager Course Curriculum Modules Part I: Ethics CFA Code of Ethics and Professional Conduct Part II: Quantitative Methods Business Math Boot Camp Time Value of Money Statistics Essentials

More information

JEM034 Corporate Finance Winter Semester 2017/2018

JEM034 Corporate Finance Winter Semester 2017/2018 JEM034 Corporate Finance Winter Semester 2017/2018 Lecture #5 Olga Bychkova Topics Covered Today Risk and the Cost of Capital (chapter 9 in BMA) Understading Options (chapter 20 in BMA) Valuing Options

More information

The Black-Scholes Model

The Black-Scholes Model The Black-Scholes Model Liuren Wu Options Markets (Hull chapter: 12, 13, 14) Liuren Wu ( c ) The Black-Scholes Model colorhmoptions Markets 1 / 17 The Black-Scholes-Merton (BSM) model Black and Scholes

More information

Risk Finance and Asset Pricing

Risk Finance and Asset Pricing Risk Finance and Asset Pricing Value, Measurements, and Markets CHARLES S. TAPIERO WILEY John Wiley & Sons, Inc. Contents Introduction xv Who This Book Is For xvi How This Book Is Structured xvii What's

More information

Asset Allocation in the 21 st Century

Asset Allocation in the 21 st Century Asset Allocation in the 21 st Century Paul D. Kaplan, Ph.D., CFA Quantitative Research Director, Morningstar Europe, Ltd. 2012 Morningstar Europe, Inc. All rights reserved. Harry Markowitz and Mean-Variance

More information

The following content is provided under a Creative Commons license. Your support

The following content is provided under a Creative Commons license. Your support MITOCW Recitation 6 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To make

More information

Market risk measurement in practice

Market risk measurement in practice Lecture notes on risk management, public policy, and the financial system Allan M. Malz Columbia University 2018 Allan M. Malz Last updated: October 23, 2018 2/32 Outline Nonlinearity in market risk Market

More information

MFE Course Details. Financial Mathematics & Statistics

MFE Course Details. Financial Mathematics & Statistics MFE Course Details Financial Mathematics & Statistics FE8506 Calculus & Linear Algebra This course covers mathematical tools and concepts for solving problems in financial engineering. It will also help

More information