MATLAB for Finance FRM CFA

20
MATLAB for Finance Shivgan Joshi http://stockcreditfinance cfa.blogspot.in/

description

MATLAB for Finance FRM CFA

Transcript of MATLAB for Finance FRM CFA

Page 1: MATLAB for Finance FRM CFA

MATLAB for Finance

Shivgan Joshihttp://stockcreditfinancecfa.blogspot.in/

Page 2: MATLAB for Finance FRM CFA

Content

• Introduction• Old work and experience• Areas of Work of MATLAB in Industry• Job requirements • Conclusive points• Literature Review• Version of output • TTD• Conclusion

Page 3: MATLAB for Finance FRM CFA

Introduction

• Usefulness with certification programs such as SAS

• How it takes your beyond excel • Comparison of MATALB SAS R Excel/VBA

Page 4: MATLAB for Finance FRM CFA

Prerequisite

• Master level course in Finance

Page 5: MATLAB for Finance FRM CFA

Linking old work and experience to MATLAB

• Old work ppt: Reliability, HPC, game theory, Neural network simulink etc

• Data cleaning, data modifications, data arrays, struct, rating matrix, selection of elements from rating matrix, banks internal rating and pod computations, post that you made

• For fixed income Bond pricing, CDS, and other leveraged fixed income tools on MATLAB

• Data handing from sql and other parameters for MATLAB

Page 6: MATLAB for Finance FRM CFA

Areas of Work in Risk

• Back-testing of investment strategies• Credit risk modelling using KMV approach (Merton Model),

there is a tool of Moodies, and they are also working on Municipal bonds (question in Genpact)

• Monte-Carlo simulation , Portfolio Optimization • Statistical modelling, variance-covariance modelling, value at

risk modelling, regular risk reporting (hot spot reports, concentration reports), risk assessment and style analysis of money managers, term structure modelling, rich cheap analysis, Mark-to-market, Yield and CDS spreads

• Credit research reports covering liquidity and debt analysis (Equity based)

Page 7: MATLAB for Finance FRM CFA

Job Requirements in MATLAB

• FRM L2 library: PD, LGD, Downgrade, Credit Rating Methodologies

• Functions such as struct & Pearson correlations • Monte Carlo and Black scholes• Scenario & Sensitivity Analysis, Portfolio Optimization, Asset

liability management • Real time risk management (looking across entire numbers)• Normalizing and making data relevant by Data cleaning

(playing with matrix) example for financial times series • A/L using different types of bonds with different durations

Page 8: MATLAB for Finance FRM CFA

Conclusive points

1. As far as the comparison goes, R vs MATLAB, MATLAB is much easier and the only reason people do R in west is because R is free and MATLAB is very expensive

2. As per my knowledge R and SAS are not so much user friendly, although when it comes to hardcore data handling SAS is much much better. MATLAB is good for easier applications like backtesting

3. MATLAB Credit Risk : Credit Risk Modeling Using Excel and VBA is a good book to look out for excel based modeling which then can be taken into MATLAB (link was on the references of the above articles)

Page 9: MATLAB for Finance FRM CFA

Literature review

1. Financial toolbox user’s guide (1500 pgs)2. Fixed income toolbox 2083. MATLABR (50 pages)

Page 10: MATLAB for Finance FRM CFA

Version of Lessons

• In 10 minutes concept• MATLAB Financial toolbox Dummies• Linking it to CFA FRM: Questions of these

exam executed on MATLAB• Prepare / Sensitize yourself for MATLAB in

Finance

Page 11: MATLAB for Finance FRM CFA

Financial toolbox user’s guide (1500 pgs)

1. Portfolio, Asset Allocation and Performance2. Credit Risk (Ratings etc)3. Financial times series (Trading data)4. Technical Analysis (Trading, may include Ago

or VAR or Regulations etc)5. Trading risk or Market risk is interesting for

Bank on CDS and other leveraged items

Page 12: MATLAB for Finance FRM CFA

Increasing number of lines codes

• 10 Lessons of 10 min each

Page 13: MATLAB for Finance FRM CFA

TTD (Internal use)

• Revise CFA L2 and FRM L2 Fixed income, also helpful in passing these 2 exams

• Revise Financial time series and Quant of CFA level 2

• Algo trading or related can be skipped

Page 14: MATLAB for Finance FRM CFA

Online resources

• Simulation and Optimization in Finance + Website: Modeling with MATLAB By Dessislava Pachamanova, Frank J. Fabozzi, CFA

• Numerical Methods in Finance and Economics: A MATLAB-Based Introduction (Statistics in Practice)

• http://ocw.mit.edu/courses/sloan-school-of-management/15-450-analytics-of-finance-fall-2010/readings/

• http://ocw.mit.edu/courses/sloan-school-of-management/15-070-advanced-stochastic-processes-fall-2005/lecture-notes/

Page 15: MATLAB for Finance FRM CFA

To Run on MATLAB

• http://ocw.mit.edu/courses/sloan-school-of-management/15-450-analytics-of-finance-fall-2010/lecture-notes/

Page 16: MATLAB for Finance FRM CFA

2 ways to make the course

• Books• MIT or university course

Page 17: MATLAB for Finance FRM CFA

List of areas to Cover

Page 18: MATLAB for Finance FRM CFA

From Financial toolbox help [1500p]

1. Portfolio Analysis and Optimization in MATLAB

2. Investment metrics for portfolio optimization [2nd biggest section]

3. Credit risk (small section)4. Financial times series [biggest section]

Page 19: MATLAB for Finance FRM CFA

Financial times series

• MATLAB or SAS which does it? • Both are used, SAS is in fact very popular• Is it used in Fixed income as well?• Not much• But you can learn some basics of how to do

that on SAS as well

Page 20: MATLAB for Finance FRM CFA

Conclusion

• Everything is linked to exams• MATLAB basics will get over in some days • Links things that you can link to SAS or R, a file

called MATLABR will be useful • Might help you in SAS as well for the Base and

Advanced Exams